Salesforce Certified Platform Developer (Plat-Dev-201) Free Practice Test
Question 1
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface.
public interface PaymentProcessor { void pay(Decimal amount); }
Which is the correct implementation to use the PaymentProcessor interface class?
public interface PaymentProcessor { void pay(Decimal amount); }
Which is the correct implementation to use the PaymentProcessor interface class?
Correct Answer: B
Question 2
Where are two locations a developer can look to find information about the status of asynchronous or future methods? Choose 2 answers
Correct Answer: B,C
Question 3
While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed?
Correct Answer: C
Question 4
Given the following code snippet, that is part of a custom controller for a Visualforce page:

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers
Correct Answer: B,C
Question 5
Which action causes a before trigger to fire by default for Accounts?
Correct Answer: D
Question 6
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
Correct Answer: A,B,C
Question 7
In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?
Correct Answer: D
Question 8
Which three resources in an Azure Component can contain JavaScript functions?
Correct Answer: B,C,E
Question 9
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
Correct Answer: C
Question 10
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors. Why did the method fail in the sandbox test framework but succeed in the Developer Console?
Correct Answer: A