340 Q&As in UPDATED PDII Exam Questions Certification Test Engine to PDF
Get The Important Preparation Guide With PDII Dumps
How much PDII Exam Cost
The price of the Salesforce Certified Platform Developer II (PDII) Exam is $200 USD.
NEW QUESTION 70
A developer needs to design a custom object that will be integrated into a back-end system. What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? Choose 2 answers
- A. Configure a custom field as indexed.
- B. Configure a custom field as Salesforce ID.
- C. Configure a custom field as unique.
- D. Configure a custom field as external ID.
Answer: C,D
NEW QUESTION 71
A developer writes the following code:
While testing the code, the developer receives the following error message: System.CalloutException : You have uncommitted work pending What should the developer do? (Choose two.)
- A. Ensure all callouts are completed prior to executing DML statements
- B. Move the web service callout into an ©future method
- C. Use the asyncSend() method of the HTTP class to send the request in async context
- D. Use Database.insert (order, true) to immediately commit any database changes
Answer: A,B
NEW QUESTION 72
Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers
- A. Option

- B. Option

- C. Option

- D. Option

- E. Option

Answer: A,B,D
NEW QUESTION 73
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?
- A. Dynamic Record Choice
- B. Custom Lightning application
- C. Visualforce and Apex
- D. Lightning Process Builder
Answer: C
NEW QUESTION 74
Exhibit:
The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.
The test method fails at the Line 20 because of too many SOQL queries
What is the correct way to fix this?
The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
The test method fails at the Line 20 because of too many SOQL queries.
What is the correct way to fix this?
- A. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.
- B. Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.
- C. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.
- D. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.
Answer: B
NEW QUESTION 75
A developer receives a LimitException: Too many query rows: 50001 error when running code. What debugging approach using the Developer Console provides the fastest and most accurate mechanism to identify a specific component that may be returning an unexpected number of rows?
- A. Use the Execution Overview to see the number of rows returned by each Executed Unit.
- B. Count the number of Row Limit warning messages in the Debug Logs.
- C. Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query.
- D. Add System.debug (System.getoueryRows () to the code to track SOQL usage.
Answer: C
NEW QUESTION 76
A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate. and CreatedByld must be passed to the external system in near real-time when an Account is Inserted without error.
How should a developer achieve this?
- A. Use a before insert trigger and an @future method.
- B. Use a Workflow rule that calls an @InvocableMethod method.
- C. Use a before insert trigger and a Queueable class.
- D. Use a Process Builder that calls an @InvocableMethod method.
Answer: A
NEW QUESTION 77
messages are rendering on the page. Which component should be added to the Visualforce page to display the message?
- A.

- B.

- C.

- D.

Answer: D
NEW QUESTION 78
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)
- A. Log lines in the execution log panel can be analyzed for details about specific events
- B. The performance tree should be use to analyze events further starting from the one that take the least amount of time
- C. Multiple short bursts of Apex events should be analyzed since they can add up to a significant amount of time
- D. The execution tree can be used with the execution log to filter and get specific information about events
Answer: A,C
NEW QUESTION 79
A company wants to run different logic based on an Opportunity's record type. Which code segment handles this request and follows best practices?
A)
B)
- A. Option B
- B. Option A
Answer: B
NEW QUESTION 80
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.
What might be causing the failed assertion?
- A. The test class has not implemented seeAllData=true in the test method
- B. The test class is not using System.runAs() to run tests as a Salesforce administrator
- C. The test class has not defined an Account owner when inserting the test data
- D. The test class has not re-queried the Account record after updating the Opportunity
Answer: D
NEW QUESTION 81
A developer is building a Lightning web component to get data from an Apex method called getData that takes a parameter, name. The data should be retrieved when the user clicks the Load Data button.
Exhibit.
What must be added to get the data?
- A. Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.
- B. Add @wire(getData, (name: $name')} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
- C. Add this, account = getData (this,name); to the loadData ( ) function.
- D. Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
Answer: D
NEW QUESTION 82
A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed In the sandbox. However, the developer cannot get code coverage on the Batch Apex class.
The test class is below:
What is causing the code coverage problem?
- A. The batch needs more than one account record created.
- B. The account creation already sets the sates amount to 0.
- C. The batch process will not recognize new accounts created in the same session
- D. The executeBatch must fail within test. startTest ( ) and - test. stopTest().
Answer: D
NEW QUESTION 83
What is a valid return type for the following SOSL query? [FIND 'map"' IN ALL FIELDS RETURNING Account (Id, Name) , Contact, Opportunity,Lead]
- A. List < List< sObject>>
- B. List< AggregateResult>
- C. List< sobject>
- D. List< Account>
Answer: A
NEW QUESTION 84
A company has a Request__c object that has a lookup to the Opportunity object and a custom field. Status__c, with values of Open,' Closed, and Invalid.' An Opportunity should not be allowed to be deleted if there are any Request__c records related to it that have a Status__c value of Open or 'Closed.' what is the optimal way to enforce the requirement to prevent deletion?
- A. An Apex Trigger on Request__c
- B. A Process on Opportunity
- C. A Process on Request__c
- D. An Apex Trigger on Opportunity
Answer: D
NEW QUESTION 85
......
What is the duration of the PDII Exam
- Length of Examination: 120 minutes
- Number of Questions: 60
- Format: Multiple choices, multiple answers
- Passing Score: 68%
Prepare With Top Rated High-quality PDII Dumps For Success in Exam: https://www.exam4docs.com/PDII-study-questions.html
Get Totally Free Updates on PDII Dumps PDF Questions: https://drive.google.com/open?id=1TDQ7ngrRku3VqqLHIyx59SrPRfZZY83d

