[Mar-2024] DEX-450 Free Sample Questions to Practice One Year Update
Download DEX-450 exam with Salesforce DEX-450 Real Exam Questions
NEW QUESTION # 128
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
* Rollup summary fields
* Custom validation rules
* Duplicate rules
A developer created a trigger on the Account object.
What two things should the developer consider while testing the trigger code?
Choose 2 answers
- A. The trigger may fire multiple times during a transaction.
- B. The validation rules will cause the trigger to fire again.
- C. Rollup summary fields can cause the parent record to go through Save.
- D. Duplicate rules are executed once all DML operations commit to the database.
Answer: A,C
NEW QUESTION # 129
What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?
- A. Test.getDmlStatements()
- B. @TestVisible
- C. Limits, startTest, stopTest
- D. @TestSetup.
Answer: C
NEW QUESTION # 130
A developer must create a lightning component that allows users to input contact record information to create a contact record, including a salary__c custom field. what should the developer use, along with a lightning-record-edit form, so that salary__c field functions as a currency input and is only viewable and editable by users that have the correct field levelpermissions on salary__C?
- A. <lightning-input-currency value="Salary__c">
</lightning-input-currency> - B. <lightning-input type="number" value="Salary__c" formatter="currency">
</lightning-input> - C. <lightning-formatted-number value="Salary__c" format-style="currency">
</lightning-formatted-number> - D. <ligthning-input-field field-name="Salary__c">
</lightning-input-field>
Answer: D
NEW QUESTION # 131
What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers:
- A. Use of change sets.
- B. Limited to 5 GB of data.
- C. Only Includes necessary metadata.
- D. More frequent refreshes.
Answer: B,D
NEW QUESTION # 132
A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List<Case> childCases = new List<Case>();for (Case parent : Trigger.new){Case child = new Case (ParentId = parent.Id, Subject = parent.Subject);childCases.add(child);}insert childCases; What happens after the code block executes?
- A. The trigger fails if the Subject field on the parent is blank.
- B. The trigger enters an infinite loop and eventually fails.
- C. Child case is created for each parent case in Trigger.new.
- D. Multiple child cases are created for each parent case in Trigger.new.
Answer: C
NEW QUESTION # 133
What are two uses for External IDs? (Choose two.)
- A. To create relationships between records imported from an external system.
- B. To prevent an import from creating duplicate records using Upsert
- C. To create a record in a development environment with the same Salesforce ID as in another environment
- D. To identify the sObject type in Salesforce
Answer: A,B
NEW QUESTION # 134
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each job posting in the schema for the organization?
- A. Create a lookup relationship on both objects to a junction object called Job Posting Applications.
- B. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.
- C. Create a lookup relationship in the Applications custom object to the Job Postings custom object.
- D. Create a master-detail relationship in the Application custom object to the Job Postings custom object.
Answer: D
NEW QUESTION # 135
What is the value of x after the code segment executes?String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x = 'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }
- A. B
- B. A
- C. C
- D. D
Answer: A
NEW QUESTION # 136
Given the following trigger implementation:
trigger leadTrigger on Lead (before update){
final ID BUSINESS_RECORDTYPEID = '012500000009Qad';
for(Lead thisLead : Trigger.new){
if(thisLead.Company != null && thisLead.RecordTypeId != BUSINESS_RECORDTYPEID){ thisLead.RecordTypeId = BUSINESS_RECORDTYPEID;
}
}
}
The developer receives deployment errors every time a deployment is attempted from Sandbox to Production.
What should the developer do to ensure a successful deployment?
- A. Ensure BUSINESS_RECORDTYPEID is retrieved using Schema.Describe calls.
- B. Ensure a record type with an ID of BUSINESS_RECORDTYPEID exists on Production prior to deployment.
- C. Ensure the deployment is validated by a System Admin user on Production.
- D. Ensure BUSINESS_RECORDTYPEID is pushed as part of the deployment components.
Answer: B
NEW QUESTION # 137
Given the code below:
What should a developer do to correct the code so that there is no chance of hitting a governor limit?
- A. Rework the code and eliminate the for loop.
- B. combine the two SELECT statements into a single SOQL statement.
- C. Add a WHERE clause to the first SELECT SOQL statement.
- D. Add a LIMIT clause to the first SELECT SOQL statement.
Answer: D
NEW QUESTION # 138
Which code segment can be used to control when the dowork() method is called?
- A. If(Trigger.isInsert) dowork();
- B. If(Trigger.isRunning) dowork();
- C. For (Trigger.isRunning t: Trigger.new) { dowork(); }
- D. For (Trigger.isInsert t: Trigger.new) { dowork(); }
Answer: A
NEW QUESTION # 139
What is an accurate constructor for a custom controller named "MyController"?
- A. public MyController (List objects) { accounts = (List ) objects; }
- B. public MyController (sObject obj) { account = (Account) obj; }
- C. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }
- D. public MyController () { account = new Account () ; }
Answer: D
NEW QUESTION # 140
niversal Containers (UC) processes orders in Salesforce in a custom object, Crder_c. They also allow sales reps to upload CSV files with 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 Craer__c is first set to "Placed', the order information must be sent to a REST endpoint in the ERP system that can process ne order at a time.
What should the developer implement to accomplish this?
- A. Callout from a queseatie class called from a trigger
- B. Callout from a Sarchabie class called from a scheduled job
- C. Callout from an surare method called from a trigger
- D. Flow with 2 callout from an invocable method
Answer: C
NEW QUESTION # 141
What is true of a partial sandbox that is not true of a full sandbox? Choose 2 answers
- A. More frequent refreshes
- B. Use of change sets
- C. Limited to 5 GB of data
- D. Only includes necessary meta data
Answer: A,C
NEW QUESTION # 142
A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface.
Which approach can be used to accomplish this?
- A. Wrap the Lightning Web Component In an Aura Component and surface the Aura Component as a Visualforce tab.
- B. Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout.
- C. Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.
- D. Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method.
Answer: C
NEW QUESTION # 143
A developer can use the debug log to see which three types of information? Choose 3 answers
- A. Resource usage and limits
- B. Actions triggered by time-based workflow
- C. HTTP callout to external systems
- D. User login events
- E. Database changes
Answer: B,C,E
NEW QUESTION # 144
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
- A. Public void doWork(Account Contact)
- B. Public void doWork(Record theRecord)
- C. Public void doWork(sObject theRecord)
- D. Public void doWork(Account || Contatc)
Answer: C
NEW QUESTION # 145
From which two locations can a developer determine the overall code coverage for a sandbox? Choose two answers
- A. The Test Suite Run panel the Developer Console
- B. The Apex Test Execution page
- C. The Apex classes setup page
- D. The Test Tab of the Developer Console
Answer: C,D
NEW QUESTION # 146
A developer deployed a trigger to update the status__c of Assets related to an Account when the Account''s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.
What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?
- A. Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.
- B. Add List<Asset> assets = [SELECT Id, Status__c FROM Asset WHERE AccountId = :acctId] to line 14 and iterate over the assets list in the for loop on line 15.
- C. Change the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of the for loop that starts on line 03.
- D. Move all of the logic to a Queueable class that queries for and updates the Assets and call it from the trigger.
Answer: C
NEW QUESTION # 147
Given the following Anonymous Block:
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?
- A. The transaction will fail due to exceeding the governor limit.
- B. The transaction will succeed and changes will be committed.
- C. The try/catch block will handle exceptions thrown by governor limits.
- D. The try/catch block will handle any DML exceptions thrown.
Answer: A
NEW QUESTION # 148
A developer wants to use all of the functionality provided by the standard controller for an object, but needs to override the Save standard action in a controller extension. Which two are required in the controller extension class?
- A. Create a method that references this.superSave()
- B. Define the class with a constructor that creates a new instance of the StandardController class.
- C. Create a method named Save with a return data type of PageReference.
- D. Define the class with a constructor that takes an instance of StandardController as a parameter.
Answer: C,D
NEW QUESTION # 149
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
- A. SalesforceDX
- B. Setup Menu
- C. Metadata APT
- D. Bulk API
- E. Tooling API
Answer: A,B,E
NEW QUESTION # 150
A developer needs to create records for the object Property__c. The developer creates the following code block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) { //exception handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?
- A. Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);
- B. insert propertiesToCreate;
- C. Database.insert(propertiesToCreate, false);
- D. Database.insert(propertiesToCreate);
Answer: C
NEW QUESTION # 151
......
Real exam questions are provided for Salesforce Developer tests, which can make sure you 100% pass: https://www.topexamcollection.com/DEX-450-vce-collection.html
DEX-450 Exam with Guarantee Updated 239 Questions: https://drive.google.com/open?id=1ypcR0bDMEg7-f1sFcpYcssMyxyfs92su

