[Dec 23, 2021] Latest Salesforce Developers PDII Actual Free Exam Questions
Salesforce Developers PDII Dumps Updated Practice Test and 325 unique questions
Who should take the PDII exam
Salesforce Certified Platform Developer II Exam certification is an internationally-recognized validation that identifies persons who earn it as possessing skilled as a Salesforce Certified Platform Developer II. If a candidate wants significant improvement in career growth needs enhanced knowledge, skills, and talents. The Salesforce PDII Exam provides proof of this advanced knowledge and skill. If a candidate has knowledge of associated technologies and skills that are required to pass the Salesforce PDII Exam then he should take this exam.
Difficulty in writing PDII Exam
This is exam is very difficult for those candidates who don’t practice during preparation and candidates need a lab for practicing. Then practical exposure is much required to understand the contents of the exam. So, if anyone is associated with some kinds of an organization where he has opportunities to practice but if you can’t afford the lab and don’t have time to practice. So, TopExamCollection is the solution to this problem. We provide the best Salesforce PDII dumps and practice test for your preparation. Salesforce PDII dumps to ensure your success in the Salesforce PDII Certification Exam at first attempt. Our Salesforce PDII dumps are updated on regular basis. TopExamCollection providing very good options for the candidates in terms of practising questions online using our test engine, which would be providing real time feel to the participants. we are also providing some sample questions paper which can be download in PDF format by the participants to get fair understanding about types of questions being asked in the exam. Candidates must able to clear their exam if they are practising our dumps which always remain updated by our industry experts.
NEW QUESTION 93
A developer is inserting, updating, and deleting multiple lists of records in a Single transaction and wants to ensure that any error prevents all execution.
How should the developer implement error exception handling in their code to handle this?
- A. Use a Try/Catch and use sObject.addError() on any failures.
- B. Use a Try/Catch statement and handle DML cleanup in the catch statement.
- C. Use Database methods to obtain lists of Database.SaveResults.
- D. Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement.
Answer: D
NEW QUESTION 94
What is the transaction limit on the number of callouts?
- A. 0
- B. 1
- C. There is no limit
- D. 2
- E. 3
Answer: B
NEW QUESTION 95
A developer has a page with two extensions overriding the Standard controller for Case.
What will happen when a user clicks the command button?
- A. Save from Case Standard Controller will be executed
- B. Save from CaseExtensionOne will be executed
- C. All of the three Save methods will be executed
- D. Save from CaseExtensionTwo will be executed
Answer: B
NEW QUESTION 96
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters. What is the optimal way to implement these requirements?
- A. write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
- B. write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
- C. write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
- D. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
Answer: A
NEW QUESTION 97
What is a benefit of using list custom settings?
- A. Ability to delegate administrator rights to standard users.
- B. Ability to provide more efficient access than custom objects.
- C. Ability to include more field type options than custom objects.
- D. Ability to control sharing and visibility of custom setting data.
Answer: B
NEW QUESTION 98
A custom Aura component, AddressValidation,cmp,exists in the system. The Salesforce admin for the organization is unable to find and select the component while creating a quick action for the Account sObject.
What should the developer do to ensure that AddressValidation,cmp can be selected when creating a quick action?
- A. Ensure the component implements the force:lighningQuickAction.interface.
- B. Ensure the component implements the lightning:actionOverride interface.
- C. Ensure the component implements the force:hasRecordedId interface.
- D. Ensure the access attribute of the aura:component tag is st t Global.
Answer: A
NEW QUESTION 99
Which is a valid Apex REST Annotation? (Choose two.)
- A. @HttpDelete
- B. @HttpUpsert
- C. @Http Patch
- D. @HttpAction
Answer: A,C
NEW QUESTION 100
What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String si, Integer il, Boolean bl, String 52)
- A. <request> <sl>"my first string"</sl> <il>123</il> <sZ>!,my second string"</32> <bl>false</bl> </request>
- B. <request> <sl>my first string</sl> <ll>123</il> <32>my second string</32> <bl>false</bl> </request>
- C. il" : 123, "SI" : "my first string", "S2" : "my second string", "bl" : false
- D. si" : "my first string", 11" : "123", "bl" : "false", "S2" : "my second string"
Answer: A,C
NEW QUESTION 101
Given the following code:
Assuming there were 10 Contacts and five Accounts created today, what is the expected result?
- A. System. LimitException: Too many SOQL Queries on Contract
- B. System. QueryException: List has more than one row after Assignment on Account.
- C. System. LimitException: To many SOQL Queries on Account.
- D. System. QueryException: To many DML Statement errors on Contact
Answer: B
NEW QUESTION 102
What tool in the Developer Console contains information on SOQL query Cardinality?
- A. Log Inspector
- B. Query Editor
- C. Checkpoints tab
- D. Query Plan Tool
- E. View State Tab
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION 103
A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make realtime callouts from the billing system using the SOAP API. Unfortunately, the developer is getting a lot of errors when inserting the invoice line data because the invoice header record doesn't exist yet.
What will help ensure ne transactional Integrity of the integration?
- A. Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.
- B. Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same time.
- C. Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
- D. Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.
Answer: A
NEW QUESTION 104
A developer has a page with two extensions overriding the Standard controller for Case.
<apex:page standardController="Case" extension="CaseExtensionOne,CaseExtension Two" showHeader="false"> Each extension has a method called Save. The page has a command button as defined: <apex:commandButton value="Save" action="{!save}"/> What will happen when a user clicks the command button?
- A. Save from Case Standard Controller will be executed
- B. Save from CaseExtensionOne will be executed
- C. All of the three Save methods will be executed
- D. Save from CaseExtensionTwo will be executed
Answer: B
NEW QUESTION 105
What are three benefits of using declarative customizations over code? (Choose three.)
- A. Declarative customizations will automatically update with each Salesforce release.
- B. Declarative customizations are not subject to governor limits.
- C. Declarative customizations cannot generate run time errors.
- D. Declarative customizations do not require user testing.
- E. Declarative customizations generally require less maintenance.
Answer: A,B,E
Explanation:
Explanation/Reference:
NEW QUESTION 106
Refer to the code snippet below:
A custom object called Credit_Memo_c exist in a Salesforce environment. As part of a new feature development that retrieves and manipulates this type of record, the developer needs to ensure race conditions are prevented when a set of records are modified within an Apex transaction.
In the preceding Apex code, how can the developer alter the query statement to use SOQL features to prevent race condition within a transaction?
A)
B)
C)
D)
- A. Option D
- B. Option B
- C. Option A
- D. Option C
Answer: D
NEW QUESTION 107
Developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?
- A. Set a cookie in the browser for use upon return to the page.
- B. Call the setStorable() method on the action in the JavaScript client-side code.
- C. Decorate the server-side method with @AuraEnabled(cacheable=true).
- D. Decorate the server-side method with @AuraEnabled(storable=true).
Answer: B
NEW QUESTION 108
What log category should be used to see the limits in the Execution Overview of the Developer Console?
- A. System
- B. Profiling
- C. Database
- D. Apex Code
Answer: B
NEW QUESTION 109
A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?
- A. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
- B. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
- C. Move the prerequisite reference data setup to the constructor for the test class.
- D. Move the prerequisite reference data setup to a @testSetup method in the test class.
Answer: B
NEW QUESTION 110
A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?
- A. over 10 callouts will be made in a single transaction.
- B. The callouts will be made in an Apex Trigger.
- C. The callouts will be made in an Apex Test class.
- D. The callout could take longer than 60 seconds to complete.
Answer: B
NEW QUESTION 111
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
<apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank">
- A. {Icase.Name} </apex:outputLink>
<apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</ - B. apex:outputLink>
- C. target="blank">(LIE{!case.Name}</apex:outputLink>
<apex:outputLink value="!viewCase(case.Id)}" target="_blank">{Icase.Name} </ - D. apex:outputLink>
<apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}"
Answer: C,D
NEW QUESTION 112
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class.
How can the developer generate the code coverage?
- A. Add @testVisible to the method in the class the developer is testing.
- B. Call the Apex class method from a testMethod instead of the testSetup method.
- C. Use system.assert() in testSetup to verify the values are being returned.
- D. Verify the user has permissions passing a user into System.runAs().
Answer: D
NEW QUESTION 113
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 two.)
- A. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in 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. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
Answer: A,B
NEW QUESTION 114
The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it.
How should a developer implement this?
- A. Override the edit button for both Lightning and Classic with a Lightning Component
- B. Override the edit button for both Lightning and Classic with a new Visualforce page
- C. Override the edit button for Lightning with a Lightning Page, and Classic with a Visualforce page that contains the Lightning Component
- D. Override the edit button for Lightning with a Lightning Component, and Classic with a Visualforce page that contains the Lightning Component
Answer: C
NEW QUESTION 115
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?
- A.

- B.

- C.

- D.

Answer: B
NEW QUESTION 116
When should a developer use the transient keyword? Choose 2 answers
- A. To declare an Apex variable as type-less when developing with dynamic Apex.
- B. To exclude Apex class variables from getting serialized if they are in a serializable class
- C. To prevent Apex interface definitions being included in the Apex-based partner WSDL.
- D. To prevent Apex controller variables being sent to the Visualforce page as view state.
Answer: B,D
NEW QUESTION 117
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 118
......
For more info visit:
Salesforce Certified Platform Developer II (PDII) Exam Reference
Verified PDII dumps Q&As - 100% Pass from TopExamCollection: https://www.topexamcollection.com/PDII-vce-collection.html
Latest 100% Exam Passing Ratio - PDII Dumps PDF: https://drive.google.com/open?id=161f11noP5MTVr1pjtIgau7Nd4yZd8zCA

