| PDF + Test Engine |
|
||
| Test Engine |
|
||
|
|
Here are Salesforce PDII PDF available features:
| 161 questions with answers | Updation Date : 16 Jul, 2026 |
| 1 day study required to pass exam | 100% Passing Assurance |
| 100% Money Back Guarantee | Free 3 Months Updates |
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
A)
C)
A. Option A
B. Option B
C. Option C
D. Option D
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?
A. Add static to the server-side method signature.
B. Decorate the server-side method with (static=true).
C. Change the function signature to be private static.
D. Decorate the server-side method with (static=false)
A developer receives the exception 'SOQL query not selective enough' when performing a query on an object with a large amount of data. Which step should be taken to resolve the issue?
A. Use an ID in the WHERE clause of the SOQL query.
B. Perform the SOQL query as part of a FOR loop.
C. Perform the SOQL query via a call to the REST API.
D. Move the SOQL query to within an asynchronous process.
A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resolution? Choose 2 answers
A. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
B. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
C. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests. What should the developer do to speed up test execution''
A. Define a method that creates test data and annotate with @testSetup.
B. Define a method that creates test data and annotate with @createData
C. Reduce the amount of test methods in the class.
D. Ensure proper usage of test data factory In all test methods.
A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration is optimal?
A. SOAP API
B. Apex REST Web Service
C. Apex SOAP Web Service
D. REST API
A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both Production and all Sandboxes?
A. Custom Metadata
B. Custom Object
C. Custom Setting
D. Custom Variable
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? Choose 2 answers
A. internal Apps can use Outbound Messages
B. Internal Apps can use Process Builder.
C. External Apps require a custom Apex web service.
D. External Apps can use the standard Streaming API.
An org has a requirement that the Shipping Address on the Account must be validated by a third-party web service, before the Account is allowed to be inserted. What is the optimal way to meet this requirement?
A. Make a callout to the web service from a custom Visualforce controller.
B. Make a callout to the web service from a standard Visualforce controller.
C. Make a callout to the web service from an after insert trigger.
D. Make a callout to the web service from a before insert trigger.
A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created. Which consideration should be checked to resolve the issue?
A. Ensure the Apex Classes are on the same API version.
B. Ensure Process Builder processes are inactive.
C. Ensure the sandbox is on the same release as production.
D. Ensure Workflow Rules are inactive.