A fully updated 2021 PDII Exam Dumps exam guide from training expert PrepAwayPDF [Q72-Q93]

Share

A fully updated 2021 PDII Exam Dumps exam guide from training expert PrepAwayPDF

Provides complete coverage of every objective on exam and exam preparation PDII

NEW QUESTION 72
A developer wishes to improve runtime performance of Apex calls by caching results on the client.
What is the best way to implement this?

  • A. Call the setStorable() method on the action in the JavaScript client-side code.
  • B. Decorate the server-side method with @AuraEnabled(storable=true).
  • C. Decorate the server-side method with @AuraEnabled(cacheable=true).
  • D. Set a cookie in the browser for use upon return to the page.

Answer: A

 

NEW QUESTION 73
Which of the following elements can be members of a public group? (Choose three.)

  • A. Case Teams
  • B. Territories
  • C. Roles
  • D. Users
  • E. Profiles

Answer: B,C,D

 

NEW QUESTION 74
What are three benefits of using declarative customizations over code? Choose 3 answers

  • A. Declarative customizations generally require less maintenance.
  • B. Declarative customizations are not subject to governor limits.
  • C. Declarative customizations will automatically update with each Salesforce release.
  • D. Declarative customizations do not require user testing.
  • E. Declarative customizations cannot generate run time errors.

Answer: A,B,C

 

NEW QUESTION 75
A developer creates an application event that has triggered an infinite loop. What may have caused this problem?

  • A. The event handler calls a trigger.
  • B. An event is fired ontouchend" and is unhandled.
  • C. The event has multiple handlers registered in the project.
  • D. The event Is fired from a custom renderer.

Answer: D

 

NEW QUESTION 76
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec__Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountlnstance: Trigger.New){ if (Trigger . isBefore){ accountlnstance Exec_Count_c += 1; } System, debug (accountlnstance.Exec_Count_c); } }

  • A. 1,2,3,4
  • B. 1,2,3,3
  • C. 2, 2, 4, 4
  • D. 2,2,3,3

Answer: C

 

NEW QUESTION 77
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)

  • A. <apex:outputLink value="!viewCase(case.Id)}" target="_blank">{lease.Name} </apex:outputLink>
  • B. <apex:outputLink value="/{!case.Id}" target="blank"> {lease.Name}</ apex:outputLink>
  • C. <apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}" target="blank">(LIE{!case.Name}</apex:outputLink>
  • D. <apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank"> {lease.Name} </apex:outputLink>

Answer: B,C

 

NEW QUESTION 78
What is the transaction limit on the number of "sendEmail" method calls?

  • A. 0
  • B. There is no limit
  • C. 1
  • D. 2
  • E. 3

Answer: C

 

NEW QUESTION 79
A company requires an external system to be notified whenever an account is updated.

What LimitException could the following code trigger?

  • A. System.LimitException: Too many callouts
  • B. System.LimitException: Too many future calls
  • C. System.LimitException: Too many SOQL queries
  • D. System.CalloutException: Callout from triggers are currently not supported

Answer: B

 

NEW QUESTION 80
Universal Containers (UC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish-speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site.
What should the developer use to ensure the site is multilingual?

  • A. Use Custom Metadata to translate custom picklist values.
  • B. Use Custom Objects to translate custom picklist values.
  • C. Use Custom Settings to ensure custom messages are translated properly.
  • D. Use Custom Labels to ensure custom messages are translated property.

Answer: D

 

NEW QUESTION 81
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. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.
  • D. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.

Answer: B

 

NEW QUESTION 82
A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.
What should the developer use to store and package the custom configuration settings for the app?

  • A. Custom Metadata
  • B. Custom Objects
  • C. Custom Settings
  • D. Process Builder

Answer: B

 

NEW QUESTION 83
A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user's input, when the search Is completed, a searchComplete event is fired, with the results put in a results attribute of the event. The component is designed to be used within other components and may appear on a single page more than once.
What is the optimal code that should be added to fire the event when the search has completed?

  • A.
  • B.
  • C.
  • D.

Answer: A

 

NEW QUESTION 84
A developer wants to retrieve and deploy metadata, perform a simple CSV export of query results, and debug APEX Rest calls by viewing the JSON responses. Which tool should the developer use?

  • A. Force.com Migration Tool
  • B. Workbench
  • C. Developer Console
  • D. Force.com IDE

Answer: B

 

NEW QUESTION 85
What is a recommended practice with regard to the Apex CPU limit? (Choose two.)

  • A. Optimize SOQL query performance
  • B. Avoid nested Apex iterations
  • C. Use Map collections to cache sObjects
  • D. Reduce view state in Visualforce pages

Answer: B,C

 

NEW QUESTION 86
In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.
What is the most effective approach to ensure values displayed respect the users locale settings?

  • A. Use the FOR VIEW clause in the SOQL Query.
  • B. Use the FORMAT() function in the SOQL query.
  • C. Use REGEX expressions to format the values retrieved via SOQL.
  • D. Use a wrapper class to format the values retrieved via SOQL.

Answer: B

 

NEW QUESTION 87
A developer has written the following method:
static void processList(List<sobject> input){
Which code block can be used to call the method?

  • A. processList ([FIND 'Acme" 'RETURNING Account])
  • B. processList (ace)
  • C. for Account ace : [SELECT Id, Name FROM Account])
  • D. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])

Answer: D

 

NEW QUESTION 88
Refer to the code snippet below:

As part of an Integration development effort, a developer is tasked to create an Apex method mat solely relies on the use of foreign identifiers In order to relate new contact records to existing Accounts in Salesforce. The account object contains a field marked as an external ID, the API Name of this field is Legacy_Id_c.
What Is the most efficient way to instantiate the parentAccount: variable on line 02 to ensure the newly created contact is properly related to the Account?
A)

B)

C)

D)

  • A. Option A
  • B. Option D
  • C. Option B
  • D. Option C

Answer: A

 

NEW QUESTION 89
What are three benefits of using declarative customizations over code? Choose 3 answers

  • A. Declarative customizations generally require less maintenance.
  • B. Declarative customizations are not subject to governor limits.
  • C. Declarative customizations do not require user testing.
  • D. Declarative customizations cannot generate run time errors.
  • E. Dectarative customizations will automatically update with each Salesforce release.

Answer: A,B,E

 

NEW QUESTION 90
What is the transaction limit for the number of records per DML statement?

  • A. 50,000
  • B. There is no limit
  • C. 20,000
  • D. 5,000
  • E. 10,000

Answer: E

 

NEW QUESTION 91
A developer must create a way for external partners to submit millions of leads into Salesforce per day.
How should the developer meet this requirement?

  • A. Create a web service on Heroku that uses Heroku Connect
  • B. Publicly expose a Visualforce page via Force.com Sites
  • C. Publicly expose an Apex Web Service via Force.com Sites
  • D. Host a Web-to-Lead form on the company website

Answer: A

 

NEW QUESTION 92
A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and SP3 (created in order), before the final execution of the process.
During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll, back to SP3 is called, a runtime error occurs.
Why does the developer receive a runtime error?

  • A. The developer has too many DML statements between the savepoints.
  • B. SP3 became invalid when SP1 was rolled back.
  • C. The developer should have called SP2 before calling SP3.
  • D. The developer used too many savepoints in one trigger session.

Answer: B

 

NEW QUESTION 93
......

Tested Material Used To PDII: https://www.prepawaypdf.com/Salesforce/PDII-practice-exam-dumps.html

Steps Necessary To Pass The PDII Exam: https://drive.google.com/open?id=118uDDhqNfoH1QDv3ndUXtp2CMeYrSitK