DON'T WANT TO MISS A THING?

Certification Exam Passing Tips

Latest exam news and discount info

Curated and up-to-date by our experts

Yes, send me the newsletter

Salesforce PDII Exam Questions and Answers PD | SPOTO

SPOTO's latest exam dumps on the homepage, with a 100% pass rate! SPOTO delivers authentic Cisco CCNA, CCNP study materials, CCIE Lab solutions, PMP, CISA, CISM, AWS, and Palo Alto exam dumps. Our comprehensive study materials are meticulously aligned with the latest exam objectives. With a proven track record, we have enabled thousands of candidates worldwide to pass their IT certifications on their first attempt. Over the past 20+ years, SPOTO has successfully placed numerous IT professionals in Fortune 500 companies.

Take other online exams

Question #1
A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce. This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate the orders to the corresponding accounts. Which two recommendations should make this process more efficient? Choose 2 answers
A. Ensure the data in the file is sorted by the order Icorrect
B. Use the upsert wizard in the Data Loader to import the data
C. Identify unique fields on Order and Account and set them as External IDs
D. Use the Insert wizard In the Data Loader to import the data
View answer
Correct Answer: AB
Question #2
Which statement is true regarding savepoints?
A. Savepoints are not limited by DML statement governor limits
B. You can roll back to any savepoint variable created In any order
C. Static variables are not reverted during a rollback
D. Reference to savepoints can cross trigger invocations
View answer
Correct Answer: C
Question #3
The "action" attribute onis ONLY evaluated on which type of request?
A. Get request
B. Postback request
View answer
Correct Answer: A
Question #4
There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.What can a developer do to help alleviate such issues?
A. Use the standard Account List controller and implement pagination
B. Use JavaScript remoting to query the accounts
C. Use the transient keyword in the Apex code when querying the Account records
D. Upload a third-party data table library as a static resource
View answer
Correct Answer: A
Question #5
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with the rest of their call script. Following best practices, what should a developer use to meet this requirement?
A. Approvals
B. Flow Buildercorrect
C. Apex Trigger
D. Process Builder
View answer
Correct Answer: B
Question #6
Within the System.Limit class, what would you call to get the number of calls made in your transaction?
A. get [typeOfLimit] --> (Ex
B. getLimit [typeOf Limit] --> (Ex
View answer
Correct Answer: A
Question #7
A developer created the following test method:The developer org has five accounts where the name starts with Test". The developer executes this test in the Developer Console. After the test code runs, which statement is true?
A. The test will fail
B. There will be no accounts where the name starts with "Test"
C. There will be five accounts where the name starts with Test"
D. There will be six accounts where the name starts with Test"
View answer
Correct Answer: C
Question #8
An org contains two custom objects: Building__c and Office__c. Office__c has a Lookup field to Building__c. A developer is asked to automatically populate the Number_of_Offices__c field on the Building__c object with the count of related Office__c records anytime an Office__c record is created or deleted. The developer cannot modify the field types.Which solution meets the requirements?
A. Flow
B. Workflow
C. Apex Trigger
D. Process Builder
View answer
Correct Answer: C
Question #9
A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list of blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page. What is the optimal way to implement this?
A. Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller
B. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact
C. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller
D. Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object
View answer
Correct Answer: C
Question #10
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
View answer
Correct Answer: A
Question #11
Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers
A. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key
B. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce
C. Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce
D. Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce
View answer
Correct Answer: CD
Question #12
A company decides that every time an Opportunity is created, they want to create a follow up Task and assign it to the Opportunity Owner. What should a developer use to implement the requirements?
A. A Process Builder on Opportunity
B. A trigger on Task
C. A trigger on Opportunity
D. A Process Builder on Task
View answer
Correct Answer: A
Question #13
A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitted support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records the selected filters.What should the developer do to improve performance of the component?
A. Use setStorable( ) in the Apex method to store the response in the client-side cache
B. Return all records into a list when the component is created and filter the array in JavaScript
C. Use SOSL to Query the records on filter change
D. Use a selective SOQL query with a custom index
View answer
Correct Answer: A
Question #14
A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.What must be done in the component to get the data from Salesforce?
A. Add the following code above record; @wire(getRecord, { recordId: `$recordId', fields: `$fields' })
B. Add the following code above record; @wire(getRecord, { recordId: `$recordId' }) Get the fields in renderedCallback() and assign them to record
C. Add the following code above record; @api(getRecord, { recordId: `$recordId' }) Get the fields in renderedCallback() and assign them to record
D. Add the following code above record; @api(getRecord, { recordId: `$recordId', fields: `$fields' })
View answer
Correct Answer: A
Question #15
A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order's status and tracking number if it is already shipped.Which two methods can make this ERP order data visible in Salesforce? (Choose two.)
A. Ensure real-time order data is in Salesforce using the Streaming API
B. Write a cron job In Salesforce to poll the ERP system for order updates
C. Have the ERP system push the data into Salesforce using the SOAP API
D. Use Salesforce Connect to view real-time Order data in the ERP system
View answer
Correct Answer: CD
Question #16
A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format. Which is the optimal method to implement this in Salesforce?
A. Apex SOAP Callout
B. Apex REST Callout
C. Apex SOAP Web Service
D. Apex REST Web Servicecorrect
View answer
Correct Answer: D
Question #17
A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitted support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records the selected filters. What should the developer do to improve performance of the component?
A. Use setStorable( ) in the Apex method to store the response in the client-side cachecorrect
B. Return all records into a list when the component is created and filter the array in JavaScript
C. Use SOSL to Query the records on filter change
D. Use a selective SOQL query with a custom index
View answer
Correct Answer: A
Question #18
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library. Which statement properly loads the static resource within the LWC?
A. import {jsUtilities} from '@salesforce/reaourceUrljsUtila’;
B. import jUtilities from ‘@salesforce/reaourceUrljsUtila’;correct
C.
D. const jsUtility = S
E. get ('SReaource
View answer
Correct Answer: B
Question #19
A developer wrote an Apex class to make several callouts to an external system. If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?
A. Session Id
B. Connected Apps
C. Remote Site Settings
D. Named Credentials
View answer
Correct Answer: D
Question #20
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?
A. use lazy loading to load the data on demand, instead of in the controller's constructor
B. use an in the page to load all of the data asynchronously
C. use Javascript to move data processing to the browser instead of the controller
D. Use the transient keyword for the List variables used in the custom controller
View answer
Correct Answer: A
Question #21
Universal Containers has an existing automation where a custom record called Account Plan is created upon an Account being marked as a Customer. Recently, a Workflow Rule was added so that whenever an Account is marked as a Customer, a 'Customer Since' date field is updated with today's date. Now, since the addition of the Workflow Rule, two Account Plan records are created whenever the Account is marked as a Customer.What might cause this to happen?
A. The Apex Trigger responsible for the record creation is not bulk sate and calls insert inside of a for loop
B. The Apex Trigger responsible for the record creation does not use a static variable to ensure It only fires once
C. The Workflow Rule responsible for the record creation fires twice because the 'Customer Since' field Update Is marked as 'Re-evaluate Workflow Rules After Field Change
D. The Process Builder responsible for the record creation fires before and after the Workflow rule
View answer
Correct Answer: C
Question #22
Consider the following code snippet:Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code? Choose 2 answers
A. Create a Named Credential, endPoint_NC, to store the endpoint and credentials
B. Store the URL of the endpoint in a custom Label named endPointURL
C. Use req
D. Use req
View answer
Correct Answer: AC
Question #23
Universal containers needs to integrate with several external systems. The process is initiated when a record is created in Salesforce. The remote systems do not require Salesforce to wait for a response before continuing.What is the recommended best solution to accomplish this?
A. Trigger with callout
B. Platform event
C. PushTopic event
D. Outbound message
View answer
Correct Answer: D
Question #24
A developer is working on a set of custom Aura components that can be Individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Account and then select a specific found Account. Once selected, the other components. Should get other information related to the selected Account and display it Which event should the c: 2eazchRccounta component fire to make it known that an Account is selected?
A. An application event
B. A refrestiview event
C. A publish event
D. A component eventcorrect
View answer
Correct Answer: D
Question #25
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
View answer
Correct Answer: C
Question #26
A developer is working on a set of custom Aura components that can be Individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Account and then select a specific found Account. Once selected, the other components. Should get other information related to the selected Account and display itWhich event should the c: 2eazchRccounta component fire to make it known that an Account is selected?
A. An application event
B. A refrestiview event
C. A publish event
D. A component event
View answer
Correct Answer: D
Question #27
A company needs to automatically delete sensitive information after 7 years. This could delete almost a million records every day. How can this be achieved?
A. Schedule an @future process to Query records older than 7 years, and then recursively invoke itself in 1,000 record batches to delete them
B. Perform a SOSL statement to find records older than 7 years, and then delete the entire result set
C. Use aggregate functions to query for records older than 7 years, and then delete the AggregateResult objects
D. Schedule a batch Apex process to run every day that Queries and deletes records older than 7 years
View answer
Correct Answer: D
Question #28
Assuming the CreateOneAccount class creates one account and implements the Queuetable interface, which syntax tests the Apex code?
A. Option A
B. Option B
C. Option C
D. Option D
View answer
Correct Answer: B
Question #29
Universal Containers has an Apex trigger on Account that creates an Account Plan record when an Account is marked as a Customer. Recently a workflow rule was added so that whenever an Account is marked as a Customer, a 'Customer Since' date field is updated with today's date. Since the addition of the workflow rule, two Account Plan records are created whenever the Account is marked as a Customer.What might cause this to happen?
A. The workflow rule is configured to evaluate when a record is created and every time it is edited
B. The workflow rule field update is marked as 'Re-evaluate Workflow Rules After Field Change
C. The Apex trigger does not use a static variable to ensure it only fires once
D. The Apex trigger is not bulk safe and calls insert inside of a for loop
View answer
Correct Answer: B
Question #30
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 answers
A. Calling a method that makes a web service calloutcorrect
B. Calling a method that is not annotated with cacheable=truecorrect
C. Calling a method with the click of a buttoncorrect
D. Calling a method that is external to the main controller for the Lightning web component
View answer
Correct Answer: ABC

View The Updated Salesforce Exam Questions

SPOTO Provides 100% Real Salesforce Exam Questions for You to Pass Your Salesforce Exam!

View Answers after Submission

Please submit your email and WhatsApp to get the answers of questions.

Note: Please make sure your email ID and Whatsapp are valid so that you can get the correct exam results.

Email:
Whatsapp/phone number: