Salesforce Salesforce Certified
Platform Developer 1 Exam CRT-450
Exam Dumps: Updated Questions &
Answers (December 2025)
Question # 1
Universal Containers has developed custom Apex code and Lightning
Components in a Sandbox environment. They need to deploy
the code and associated configurations to the Production environment.
What is the recommended process for deploying the code and
configurations to Production?
A.
Use the [Link] IDE to deploy the Apex code and Lightning Components.
B.
Use the Ant Migration Tool to deploy the Apex cade and Lightning Components.
C.
Use a change set to deploy the Apex code and Lightning Components.
D.
Use Salesforce CLI to deploy the Apex code and Lightning Components.
Question # 2
When the code executes, a DML exception is thrown.
How should a developer modify the code to ensure exceptions are
handled gracefully?
A.
Implement the upset DML statement.
B.
Implement Change Data Capture.
C.
Implement a try/catch block for the DML.
D.
Remove null items from the list of Accounts.
Question # 3
Which annotation exposes an Apex class as a RESTful web service?
A.
@RemoteAction
B.
@RestResource (urlMapping='/myService/*"')
C.
@HttpInvocable
D.
@Aurabnabled(cacheable=true)
Question # 4
Universal Containers decides to use exclusively declarative
development to build out a new Salesforce application.
Which three options should be used to build out the database layer for
the application?
Choose 3 answers
A.
Custom objects and fields
B.
Triggers
C.
Roll-up summaries
D.
Relationships
E.
Flows
Question # 5
A developer needs to prevent the creation of Request__c records when
certain conditions exist in the system. A RequestLogic class exists that
checks the conditions.
What is the correct implementation?
A.
apex
CopyEdit
trigger RequestTrigger on Request__c (before insert) {
[Link]([Link]);
B.
apex
CopyEdit
trigger RequestTrigger on Request__c (before insert) {
[Link]([Link]);
C.
apex
CopyEdit
trigger RequestTrigger on Request__c (before insert) {
if ([Link](Request__c)) {
[Link]('Your request cannot be created at this time.');
D.
apex
CopyEdit
trigger RequestTrigger on Request__c (after insert) {
if ([Link](Request__c)) {
[Link]('Your request cannot be created at this time.');
}
Question # 6
A developer considers the following snippet of code:
Boolean isOK;
Integer x;
String theString = 'Hello';
if (isOK == false && theString == 'Hello') {
x = 1;
} else if (isOK == true && theString == 'Hello') {
x = 2;
} else if (isOK == null && theString == 'Hello') {
x = 3;
} else {
x = 4;
}
Based an this code, what is the value of x?
A.
1
B.
2
C.
3
D.
4
Question # 7
The values 'High', 'Medium', and 'Low' are identified as common values
for multiple picklists across different objects.
What is an approach a developer can take to streamline maintenance of
the picklists and their values, while also restricting the values to the
ones mentioned above?
A.
Create the Picklist on each object and use a Global Picklist Value Set containing the
values.
B.
Create the Picklist on each object as a required field and select "Display values
alphabetically, not in the order entered".
C.
Create the Picklist on each object and add a validation rule to ensure data integrity.
D.
Create the Picklist on each object and select "Restrict picklist to the values defined in the
value set".
Question # 8
Which three Salesforce resources can be accessed from a Lightning
web component?
Choose 3 answers
A.
Static resources
B.
All external libraries
C.
SVG resources
D.
Third-party web components
E.
Content asset files
Question # 9
Refer to the following Apex code:
apex
Copy
Integer x = 0;
do {
x++;
} while (x < 1);
[Link](x);
What is the value of x when it is written to the debug log?
A.
0
B.
2
C.
1
D.
3
Question # 10
An Apex method, getAccounts, that returns a List of Accounts given a
searchTerm, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property
that uses the getAccounts method?
A.
@wire(getAccounts, { searchTerm: '$searchTerm' })
B.
@track(getAccounts, '$searchTerm')
C.
@wire(getAccounts, 'searchTerm: $searchTerm')
D.
@wire(getAccounts, '$searchTerm')
Question # 11
Flow Builder uses an Apex action to provide additional information
about multiple Contacts, stored in a custom class ContactInfo.
Which is the correct definition of the Apex method that gets the
additional information?
A.
@InvocableMethod(label='Additional Info') public ContactInfo getInfo(Id contactId) { /*
implementation */ }
B.
@InvocableMethod(label='Additional Info') public static List getInfo(List contactIds) {
/* implementation */ }
C.
@InvocableMethod(label='Additional Info') public static ContactInfo getInfo(Id contactId) { /*
implementation */ }
D.
@InvocableMethod(label='Additional Info') public List getInfo(List contactIds) { /*
implementation */ }
Question # 12
A developer has an integer variable called maxAttempts. The developer
needs to ensure that once maxAttempts is initialized, it preserves its
value for the length of the Apex transaction; while being able to share
the variable's state between trigger executions.
How should the developer declare maxAttempts to meet these
requirements?
A.
Declare maxattempts as a constant using the static and final keywords.
B.
Declare maxattempts as a member variable on the trigger definition.
C.
Declare maxattempts as a variable on a helper class.
D.
Declare maxAttempts as a private static variable on a helper class.
Question # 13
A developer at AW Computing is tasked to create the supporting test
class for a programmatic customization that leverages records stored
within the custom object, Pricing Structure c. AW Computing has a
complex pricing structure for each item on the store, spanning more
than 500 records.
Which two approaches can the developer use to ensure Pricing
_Structure__c records are available when the test class is executed?
Choose 2 answers
A.
Use a Test Date Factory class.
B.
Use the @TsTest (SeeAllData=true) annotation.
C.
Use the Test. leadteat{) method.
D.
Use without sharing on the class declaration.
Question # 14
Since Aura application events follow the traditional publish-subscribe
model, which method is used to fire an event?
A.
fire()
B.
SegdetesEvent (}
C.
FireEvent()
D.
emit()
Question # 15
A developer writes a trigger on the Account object on the before update
event that increments a count field. A record triggered flow also
increments the count field every time that an Account is created or
updated.
What is the value of the count field if an Account is inserted with an
initial value of zero, assuming no other automation logic is implemented
on the Account?
A.
4
B.
2
C.
1
D.
3
Question # 16
Universal Hiring uses Salesforce to capture job applications. A
salesforce administrator created two custom objects; Job__c acting as
the master object, to Application_c acting as the detail.
Within the Job__c object, a custom multi-select picklist, preferred
_Locations__c, contains a list of approved states for the position. Each
Job_Application__c record relates to a Contact within the system
through a master-detail relationship.
Recruiters have requested the ability to view whether the Contact's
Mailing State value matches a value selected on the Preferred
Locations__c field, within the Job_Application__c record. Recruiters
would like this value to be kept in sync if changes occur to the Contact's
Mailing State.
What is the recommended tool a developer should use to meet the
business requirement?
A.
Apex trigger
B.
Roll-up summary field
C.
Record-triggered flow
Question # 17
A developer creates a Lightning web component that imports a method
within an Apex class. When a Validate button is pressed, the method
runs to execute complex validations.
In this implementation scenario, which two options are.. of the
Controller according to the MVC architecture?
Choose 2 answers
A.
HTML file
B.
Apex class
C.
JavaScript file
D.
XML file
Question # 18
An org has an existing flow that edits an Opportunity with an Update
Records element. A developer must update the flow to also create a
Contact and store the created Contact’s ID on the Opportunity.
Which update must the developer make in the flow?
A.
Add a new Update Records element.
B.
Add a new Roll Back Records element.
C.
Add a new Create Records element.
D.
Add a new Get Records element.
Question # 19
A developer completed modifications feature that is comprised of two
elements:
* Apex trigger
* Trigger handler Apex class
What are two factors that the developer must take into account to
properly deploy them to the production environment?
Choose 2 answers
A.
Apex classes must have at least 75% code coverage org-wide.
B.
All methods in the test classes must use @istest.
C.
At least one line of code must be executed for the Apex trigger.
D.
Test methods must be declared with the testMethod keyword.
Question # 20
For which three items can a trace flag be configured?
Choose 3 answers
A.
Apex Class
B.
Flow
C.
User
D.
Visualforce
E.
Apex Trigger
Question # 21
Given the following Anonymous block:
What should a developer consider for an environment that has over
10,000 Case records?
What should a developer consider for an environment that has over
10,000 Case records?
A.
The transaction will succeed and changes will be committed.
B.
The try-catch block will handle exceptions thrown by governor limits.
C.
The transaction will fail due to exceeding the governor limit.
D.
The try-catch block will handle any DML exceptions thrown,
Question # 22
A Primaryld_c custom field exists on the Candidate _c¢ custom object.
The field is used to store each candidate's id number and is marked as
Unique in the schema definition.
As part of a data enrichment process, Universal Containers has a CSV
file that contains updated data for all candidates in the system. The file
contains each Candidate's primary .. as a data point. Universal
Containers wants to upload this information into Salesforce, while
ensuring all data rows are correctly mapped to a candidate in the
system.
Which technique should the developer implement to streamline the data
upload?
A.
Upload the CSV into-a custom object related to candidate__c.
B.
Create a before insert trigger to correctly map the records,
C.
Update the Primarytd_c field definition to mark it. [Link] External Id.
D.
Create a before save flow to correctly map the records.
Question # 23
A developer needs to implement a custom SOAP Web Service that is
used by an external Web Application. The developer chooses to include
helper methods that are not used by the Web Application in the
implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and
methods?
A.
apex
Copy
webservice class WebServiceClass {
private Boolean helperMethod() { /* implementation ... */ }
global static String updateRecords() { /* implementation ... */ }
B.
apex
Copy
global class WebServiceClass {
private Boolean helperMethod() { /* implementation ... */ }
webservice static String updateRecords() { /* implementation ... */ }
C.
apex
Copy
webservice class WebServiceClass {
private Boolean helperMethod() { /* implementation ... */ }
webservice static String updateRecords() { /* implementation ... */ }
D.
apex
Copy
global class WebServiceClass {
private Boolean helperMethod() { /* implementation ... */ }
global String updateRecords() { /* implementation ... */ }
}
Question # 24
Which Apex class contains methods to return the amount of resources
that have been used for a particular governor, such as the number of
DML statements?
A.
OrgLimits
B.
Limits
C.
Messaging
D.
Exception
Question # 25
Which exception type cannot be caught?
A.
custom exception
B.
LinkException
C.
NoAccessException
D.
CelloutException
Question # 26
Which two settings must be defined In order to update a record of a
junction object?
Choose 2 answers
A.
Read/Write access on the secondary relationship
B.
Read/Write access on the primary relationship
C.
Read/Write access on the junction object
D.
Read access on the primary relationship
Question # 27
Which code statement includes an Apex method named updateAccounts
in the class AccountController for use in a Lightning web component?
A.
import updateAccounts from "AccountControlles';
B.
import updateAccounts from "Salesforce/apex/AccountController:';
C.
import updateAccounts from "Account@[Link]';
D.
import updateAccounts from
"@salesforce/apex/[Link]";
Question # 28
While writing an Apex class, a developer wants to make sure that all
functionality being developed is handled as specified by the
requirements.
Which approach should the developer use to be sure that the Apex class
is working according to specifications?
A.
Include a savepoint and [Link]().
B.
Include a try/catch block to the Apex class.
C.
Run the code in an Execute Anonymous block in the Developer Console.
D.
Create a test class to execute the business logic and run the test in the Developer
Console.
Question # 29
What should a developer do to check the code coverage of a class after
running all tests?
A.
View the code coverage percentage for the class using the Overall Code Coverage
panel in the Developer Console Tests tab.
B.
View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.
C.
Select and run the class on the Apex Test Execution page in the Developer Console.
D.
View the Code Coverage column in the list view an the Apex Classes page.
Question # 30
Universal Containers decides to use purely declarative development to
build out a new Salesforce application.
Which two options can be used to build out the business logic layer for
this application?
Choose 2 answers
A.
Record-Triggered Flow
B.
Batch Jobs
C.
Remote Actions
D.
Validation Rules
Question # 31
What should a developer use to fix a Lightning web component bug in a
sandbox?
A.
Developer Console
B.
[Link] IDE
C.
Execute Anonymous
D.
VS Code
Question # 32
Which three data types can a SOQL query return?
Choose 3 answers
A.
Double
B.
O Long
C.
sObject
D.
dg Integer
E.
List
Question # 33
In the following example, which sharing context will myMethod execute
when it is invoked?
A.
Sharing rules will be enforced by the instantiating class.
B.
Sharing rules will be enforced for the running user.
C.
Sharing rules will not be enforced for the running user.
D.
Sharing rules will be inherited from the calling context.
Question # 34
Universal Containers (UC) is developing a process for their sales teams
that requires all sales reps to go through a set of scripted steps with
each new customer they create.
In the first step of collecting information, UC's ERP system must be
checked via a REST endpoint to see if the customer exists. If the
customer exists, the data must be presented to the sales rep in
Salesforce.
Which two should a developer implement to satisfy the requirements?
Choose 2 answers
A.
Flow
B.
Invocable method
C.
Future method
D.
Trigger
Question # 35
What are two use cases for executing Anonymous Apex code?
Choose 2 answers
A.
schedule an Apex class to run periodically
B.
To delete 15,000 inactive Accounts in a single transaction after a deployment
C.
To run a batch Apex class to update all Contacts
D.
To add unit test code coverage to an org
Question # 36
A developer wants to send an outbound message when a record meets a
specific criteria.
Which two features satisfy this use case?
A.
Flow Builder can be used to check the record criteria and send an outbound
message.
B.
Approval Process can be used to check the record criteria and send an outbound
message without Apex code.
C.
Entitlement Process can be used to check the record criteria and send an outbound
message without Apex code.
D.
Next Best Action can be used to check the record criteria and send an outbound message.
Question # 37
Universal Containers (UC) processes orders in Salesforce in a custom
object, Order__c. They also allow sales reps to upload CSV files with
thousands of orders at a time.
A developer is tasked with integrating orders placed in Salesforce with
UC's enterprise resource planning (ERP) system.
After the status for an Order__c is first set to 'Placed', the order
information must be sent to a REST endpoint in the ERP system that can
process one order at a time.
What should the developer implement to accomplish this?
A.
Callout from a Queueable class called from a trigger
B.
Callout from a Batchable class called from a scheduled job
C.
Flow with a callout from an invocable method
D.
Callout from an @future method called from a trigger
Question # 38
A developer wants to mark each Account in a List as either Active or
Inactive, based on the value in the LastModified each Account being
greater than 90 days in the past.
Which Apex technique should the developer use?
A.
An if-else statement, with a for loop inside
B.
A witch statement, with a for loop inside
C.
A for loop, with an if or if/else statement inside
D.
A for loop, with a switch statement inside
Question # 39
Which scenario is valid for execution by unit tests?
A.
Execute anonymous Apex as a different user.
B.
Generate a Visualforce PDF with getcontentaAsPDF ().
C.
Load data from a remote site with a callout.
D.
Set the created date of a record using a system method.
Question # 40
Universal Containers has an order system that uses an Order Number to
identify an order for customers and service agents. Order records will be
imported into Salesforce.
How should the Order Number field be defined in Salesforce?
A.
Indirect Lockup
B.
Direct Lookup
C.
External ID and Unique
D.
Lookup
Question # 41
A developer created a Lightning web component called
statuscomponent to be Inserted into the Account record page.
Which two things should the developer do to make this component
available?
Choose 2 answers
A.
Add lightning_Recordpage to the statuscomponent. js file,
B.
Add lightning RecordPage to the statusComp .[Link] file.
C.
Set is Exposes to true In the [Link] file.
D.
Add Account to the statusComponent. js-meta.xm1 file.
Question # 42
Universal Containers decided to transition from Classic to Lightning
Experience. They asked a developer to replace a JavaScript button that
was being used to create records with prepopulated values.
What can the developer use to accomplish this?
A.
Validation rules
B.
Apex triggers
C.
Record triggered flows
D.
Quick Actions
Question # 43
A developer needs to confirm that a Contact trigger works correctly
without changing the organization's data.
What should the developer do to test the Contact trigger?
A.
Use Deploy from the VSCode IDE co deploy an 'insert Contact' Apex class.
B.
Use the New button on the Salesforce Contacts Tab to create a new Contact record.
C.
Use the Test menu on the Developer Console to run oil test classes for the Contact
trigger.
D.
Use the Open Execute Anonymous feature on the Developer Console to run an "insert
Contact' DML statement.
Question # 44
Universal Containers implemented a private sharing model for the
Account object. A custom Account search tool was developed with
Apex to help sales representatives find accounts that match multiple
criteria they specify. Since its release, users of the tool report they can
see
Accounts they do not own.
What should the developer use to enforce sharing permissions for the
currently logged in user while using the custom search tool?
A.
Use the with sharing keyword on the class declaration.
B.
Use the without sharing keyword on the class declaration.
C.
Use the userInfo Apex class to filter all SOQL queries to returned records owned by the
logged-in user.
D.
Use the schema describe calls to determine if the logged-in user has access to the Account
object.
Question # 45
A developer is designing a new application on the Salesforce platform
and wants to ensure it can support multiple tenants effectively.
Which design framework should the developer consider to ensure
scalability and maintainability?
A.
Waterfall Model
B.
Flux (view, action, dispatcher, and store)
C.
Model-View-Controller (MVC)
D.
Agile Development
Question # 46
The following code snippet is executed by a Lightning web component
in an environment with more than 2,000 lead records:
Which governor limit will likely be exceeded within the Apex
transaction?
A.
Total number of SOOL quires issued
B.
Total number of DML statements issued
C.
Total number of records processed as a result of DML statements
Question # 47
A company decides to implement a new process where every time an
Opportunity is created, a follow up Task should be created and assigned
to the Opportunity Owner.
What is the most efficient way for a developer to implement this?
A.
Apex trigger on Task
B.
Task actions
C.
Auto-launched flow on Task
D.
Record-triggered flow on Opportunity
Question # 48
What are two benefits of using declarative customizations over code?
Choose 2 answer
A.
Declarative customizations automatically update with each Salesforce release.
B.
Declarative customizations automatically generate test classes.
C.
Declarative customizations cannot generate run time errors
D.
Declarative customizations generally require less maintenance
Question # 49
A developer needs to have records with specific field values in order to
test a new Apex class.
What should the developer do to ensure the data is available to the test?
A.
Use SOQL to query the org for the required data.
B.
Use [Link]() and reference a CSV file in a static resource.
C.
Use Anonymous Apex to create the required data.
D.
Use Test. loadData() and reference a JSON file in Documents.
Question # 50
Universal Containers wants Opportunities to no longer be editable when
reaching the Closed/Won stage.
How should a developer accomplish this?
A.
Use a validation rule.
B.
Make fields as read-only on the page layout.
C.
Use the Process Automation settings.
D.
Use Flow Builder.
Question # 51
A developer created a trigger on the Account object and wants to test if
the trigger is properly bulkified. The developer team decided that the
trigger should be tested with 200 account records with unique names.
What two things should be done to create the test data within the unit
test with the least amount of code?
Choose 2 answers
A.
Use the @isTest (seeAllData=true) annotation in the test class.
B.
Use the @isTest (isParallel=true) annotation in the test class.
C.
Create a static resource containing test data.
D.
Use Test, loadData to populate data in your test methods.
Question # 52
What are two ways for a developer to execute tests in an org?
Choose 2 answers
A.
Tooling API
B.
Metadata API
C.
Bulk API
D.
Developer Console
Question # 53
(Full question statement)
Universal Containers recently transitioned fromClassic to Lightning
Experience. One of its business processes requirescertain values from
the Opportunity objectto be sent via anHTTP REST calloutto itsexternal
order management systemwhen the user presses a custom button on
the Opportunity detail page.
Example fields:
Name
Amount
Account
Which two methods should the developer implement to fulfill the
business requirement?
Choose 2 answers.
A.
Create a customVisualforce quick actionthat performs the HTTP REST callout and
use it on the Opportunity detail page.
B.
Create anafter update triggeron the Opportunity object that calls a helper method using
@future(callout=true) to perform the HTTP REST callout.
C.
Create aLightning component quick actionthat performs the HTTP REST callout and
use it on the Opportunity detail page.
D.
Create aRemote Actionon the Opportunity object that executes an Apex immediate action to
perform the HTTP REST callout whenever the Opportunity is updated.
Question # 54
A developer must troubleshoot to pinpoint the causes of performance
issues when a custom page loads in their org.
Which tool should the developer use to troubleshoot query
performance?
A.
Setup Menu
B.
Visual Studio Code IDE
C.
AppExchange
D.
Developer Console
Question # 55
Which Lightning Web Component custom event property settings
enable the event to bubble up the containment hierarchy and cross
the Shadow DOM boundary?
A.
bubbles: true, composed: false
B.
bubbles: false, composed: false
C.
bubbles: true, composed: true
D.
bubbles: false, composed: true
Question # 56
A custom picklist field, Pool Preference ¢, exists on a custom object.
The picklist contains the following options: ‘Vegan’, ‘Kosher’, 'No
Preference’. The developer must ensure a value is populated every time
a record is created or updated.
What is the optimal way to ensure a value is selected every time a record
is saved?
A.
Set "Use the first value in the list as the default value" to True.
B.
Write an Apex trigger to ensure a value is selected,
C.
Mark the field as Required on the object's page layout.
D.
Mark the field as Required on the field definition.
Question # 57
A software company is using Salesforce to track the companies they sell
their software to in the Account object. They also use Salesforce to track
bugs in their software with a custom object, Bug__c.
As part of a process improvement initiative, they want to be able to
report on which companies have reported which bugs. Each company
should be able to report multiple bugs and bugs can also be reported by
multiple companies.
What is needed to allow this reporting?
A.
Roll-up summary field of Bug_c on Account
B.
Master-detail field on Bug_c to Account
C.
Lookup field on Bug_c to Account
D.
Function object between Bug__c and Account
Question # 58
Universal Containers (UC) uses out-of-the-box order management, that
has a Master-Detail relationship between Order and Order Line Item.
UC stores the availability date on each Order Line Item and Orders are
only shipped when all of the Order Line Items are available.
Which method should be used to calculate the estimated ship date for
an Order?
A.
Use 2 LATEST formula on each of the latest availability date fields.
B.
Use a CEILING formula on each of the latest availability date fields.
C.
Use @ DAYS formula on each of the availability date fields and a COUNT Roll-Up
Summary field on the Order.
D.
Use a MAX Roll-Up Summary field on the latest availability date fields.
Question # 59
A developer wrote Apex code that calls out to an external system using
REST API.
How should a developer write the test to prove the code is working as
intended?
A.
Write a class that implements HTTPcalloutMock.
B.
Write a class that extends webserviceloo.
C.
Write a class that implements webservicemock.
D.
Write a class that extends HTTPcalloutMock.
Question # 60
A software company uses the following objects and relationships:
* Case: to handle customer support issues
* Defect__c: a custom object to represent known issues with the
company's software
* Case Defect__c a junction object between Case and Defect __c to
represent that a defect is a cause of a customer issue
Case and Defect__c have Private organization-wide defaults.
What should be done to share a specific Case_Defect__c record with a
user?
A.
Share the parent Cast record Defect_c records.
B.
Share the parent Case and record_c record.
C.
Share the parent Defect__c record.
D.
Share the case_Defect_c record.
Question # 61
Cloud Kicks has a multi-screen flow that its call center agents use when
handling inbound service desk calls.
At one of the steps in the flow, the agents should be presented with a
list of order numbers and dates that are retrieved from an external order
management system in real time and displayed on the screen.
What should a developer use to satisfy this requirement?
A.
An outbound message
B.
An Apex REST class
C.
An Apex controller
D.
An invocable method