Free Salesforce Plat-Dev-301 Practice Test & Real Exam Questions
A developer created an Apex class that updates an Account based on input from a Lightning web component that Is used to register an Account. The update to the Account should only be made if it has not already been registered.

What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time? A)

B)

C)

D)


What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time? A)

B)

C)

D)

Correct Answer: C
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
An Apex class does not achieve expected code coverage. The testsetup method explicitly calls a method In the Apex class..
How can the developer generate the code coverage?
How can the developer generate the code coverage?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Consider the following code snippet:

How should the <e-orders> component communicate to the <c-selected-orders component that an order has been selected by the user?

How should the <e-orders> component communicate to the <c-selected-orders component that an order has been selected by the user?
Correct Answer: C
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERF Number_c, that is then used in a query to find matching Accounts.

Which step should be taken to resolve the issue?

Which step should be taken to resolve the issue?
Correct Answer: A
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Which scenario requires a developer to use an Apex callout
Instead of Outbound Messaging?
Instead of Outbound Messaging?
Correct Answer: D
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
What is a benefit of JavaScript remoting over Visualforce Remote Objects?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Consider the Apex controller below, that is called from an Aura component.

What is wrong with this code?

What is wrong with this code?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Universal Containers develops a Salesforce application that requires frequent interaction with an external REST API.
To avoid duplicating code and improve maintainability, how should they implement the APL integration for code reuse?
To avoid duplicating code and improve maintainability, how should they implement the APL integration for code reuse?
Correct Answer: D
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience.
What should the developer override the Case New Action with to satisfy the requirements?
What should the developer override the Case New Action with to satisfy the requirements?
Correct Answer: C
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Refer to the component code and requirements below:

A)

B)

C)

D)


A)

B)

C)

D)

Correct Answer: B
Vote an answer
