Nov 01, 2021 Step by Step Guide to Prepare for PDII Exam BrainDumps
Salesforce Developers PDII Real Exam Questions and Answers FREE Updated on 2021
How to book the PDII Exam
These are following steps for registering the PDII Exam. Step 1: Visit to Webassessor Exam Registration Step 2: Signup/Login to Webassessor Step 3: Select the onsite proctored or online proctored delivery method of Certification Exam Step 4: Select Date, time and confirm with a payment method
For more information, please click here.
NEW QUESTION 10
What is the transaction limit on the number of @future invocations?
- A. 0
- B. 1
- C. There is no limit
- D. 2
- E. 3
Answer: B
NEW QUESTION 11
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([SELECT Id, Name FROM sObject WHERE Type = 'Account'
- B. For Account acc : [SELECT Id, Name FROM Account]
- C. ProcessList (acc)
- D. ProcessList ( [FIND 'Acme" ' RETURNING Account] )
Answer: A
NEW QUESTION 12
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. 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 13
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. (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)}" target="blank">
Answer: C,D
NEW QUESTION 14
Choose the correct definition for <apex:actionFunction>.
- A. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
- B. Signifies which components should be processed by the server when an AJAX request is generated
- C. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them
- D. Allows for controller methods to be called directly from Javascript. Must be encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code
- E. Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
Answer: D
NEW QUESTION 15
A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system. What is the optimal way to update the Accounts from the external system?
- A. SOAP API
- B. Bulk API
- C. Apex REST Web Service
- D. Composite REST API
Answer: C
NEW QUESTION 16
What is the transaction limit for the number of DML statements allowed?
- A. 0
- B. 100 (synchronous), 200 (async)
- C. 200 (synchronous), 100 (async)
- D. 1
- E. 2,000
Answer: A
Explanation:
Explanation
Explanation/Reference:
Explanation:
Includes Approval functions, rollbacks/savepoints, and System.runAs
NEW QUESTION 17
Within the System.Limit class, what would you call to get the number of calls made in your transaction?
- A. Get[typeOfLimit] --> (Ex. getDMLStatements())
- B. GetLimit[typeOfLimit] --> (Ex. getLimitDMLStatements())
Answer: A
NEW QUESTION 18
Consider the code above.
When a user dicks on the Link of a Contact's name, what happens'
- A. The outputPanel refreshes, showing the Contacts details.
- B. A new page opens, showing the Contact's details.
- C. Nothing happens: the commandLink is missing an action attribute.
- D. The page refreshes, showing the Contact's details.
Answer: A
NEW QUESTION 19
An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end Won.
This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.
When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.
What is the most extendable way to update the Apex trigger to accomplish this?
- A. Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.
- B. Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.
- C. Use a Hierarchy Custom Setting to skip executing the logic inside the trigger for the user who loads the data.
- D. Use a List Custom Setting to disable the trigger for the user who loads the data.
Answer: C
NEW QUESTION 20
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. 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 21
What is the recommended approach to create test data when testing Apex that involves Pricebooks, PricebookEntries, and Products?
- A. Use the Test.getStandardPricebookId() method to get theId of the standard Pricebook so that it can be used with other test records.
- B. Use the isTest (SeeAllData=true) annotation on the entire Test Class to allow your Test Methods access to the standard Pricebook.
- C. Use the isTest (SeeAllData=true) annotation on Test Methods that require access to the standard Pricebook.
- D. Insert a new standard Pricebook record within your Test Method so that it can be used with other test records.
Answer: A
NEW QUESTION 22
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. Publicly expose an Apex Web Service via Force.com Sites
- B. Host a Web-to-Lead form on the company website
- C. Publicly expose a Visualforce page via Force.com Sites
- D. Create a web service on Heroku that uses Heroku Connect
Answer: D
NEW QUESTION 23
What is a recommended practice with regard to the Apex CPU limit? Choose 2 answers
- A. Use Map collections to cache sObjects.
- B. Optimize SOQL query performance.
- C. Avoid nested Apex iterations.
- D. Reduce view state in Visualforce pages.
Answer: A,C
NEW QUESTION 24
In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing?
- A. Team functionality is required on custom objects
- B. Poor performance when using native sharing components
- C. Every record created by sales users needs to be visible to their respective manager
- D. Here is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce
- E. You need to change record access to read/write for all users utilising a lightning component
Answer: A,B,D
NEW QUESTION 25
A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records. How should the developer handle the recursive trigger?
- A. Deactivate the trigger and move the logic into a Process or Flow.
- B. Use a static variable to prevent the trigger from executing more than once.
- C. Use a global variable to prevent the trigger from executing more than once.
- D. Deactivate the workflow rule to prevent the field update from executing.
Answer: B
NEW QUESTION 26
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
A)
B)
C)
D)
- A. Option D
- B. Option B
- C. Option A
- D. Option C
Answer: C
NEW QUESTION 27
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().
What is wrong?
- A. The member's Name and Option should not have getter and setter.
- B. Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.
- C. The member's Name and Option should not be declared public.
- D. The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled too.
Answer: D
NEW QUESTION 28
A developer writes the following code:
public with sharing class OrderController() public PaqeReference sendOrder() Order_c order = new Order_c insert order; ExternalOrder externalOrder = new ExternalOrder(order); Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('https://www.example.org/v1/orders'); req.setMethod('POST'); req.setBody(JSON.serialize(externalOrder)); HttpResponse res = h.send(req); order
= (ExternalOrder)JSON.deserialize(res.getBody(),ExternalOrder.class);
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. Use the asyncSend() method of the HTTP class to send the request in async context
- C. Move the web service callout into an @future method
- D. Use Database.insert (order, true) to immediately commit any database changes
Answer: A,C
NEW QUESTION 29
What is the transaction limit for the number of records for SOQL queries?
- A. 10,000
- B. 5,000
- C. 50,000
- D. There is no limit
- E. 20,000
Answer: C
NEW QUESTION 30
If you have a method "doStuff(List<sObject> records)", which is a valid call?
- A. doStuff(sObject obj);
- B. doStuff(Account acct);
- C. doStuff(List<Account> records);
- D. doStuff([Select Id From Account]);
Answer: D
Explanation:
Explanation
NEW QUESTION 31
As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
* Amount Probability, Stage, or Close Date
What is the most efficient way to Query such information?
- A. [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
- B. [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld = :oppId];
- C. [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN
- D. ('StageName', Probability',Amount /CloseDate')];
- E. [Select Amount CloseDate. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];
Answer: C
NEW QUESTION 32
Universal Containers wants to be able to bring up an Account detail page and view a table of containers currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the location of the container.
In addition to this, the page should have a section that shows the location of each container on a map. Universal Containers wants the map to re-render whenever the location of a container is changed.
What can a developer use to accomplish this task?
- A. A single visualforce Page leveraging Platform Events
- B. Two Visualforce Page Components leveraging Application Events
- C. Two Lightning Components leveraging Platform Events
- D. Two Lightning Components leveraging Application Events
Answer: D
NEW QUESTION 33
What is the output of the following code snippet? 1 Contact con = new Contact( LastName = 'JOHNSON', LeadSource = 'Web') 2 3 Savepoint sp = Database.setSavepoint(); 4 insert con; 5 Database.rollback(sp); 6 7 con.LeadSource = 'Email' 8 insert con;
- A. The contact record will be inserted with Leadsource value Email.
- B. A runtime error will be thrown on line 8.
- C. The contact record will be inserted with Leadsource value Web.
- D. A runtime error will be thrown on line 5.
Answer: B
NEW QUESTION 34
Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?
- A. use the Database.Delete method if the Contact insertion fails.
- B. use the Database.Insert method with allOrNone set to False.
- C. Disable validation rules on Contacts and set default values with a Trigger.
- D. use setSavePoint() and rollback() with a try/catch block.
Answer: D
NEW QUESTION 35
......
How to study the PDII Exam
There are two main types of resources for preparation of certification exams first there are the study guides and the books that are detailed and suitable for building knowledge from ground up then there are video tutorial and lectures that can somehow ease the pain of through study and are comparatively less boring for some candidates yet these demand time and concentration from the learner. Smart Candidates who want to build a solid foundation in all exam topics and related technologies usually combine video lectures with study guides to reap the benefits of both but there is one crucial preparation tool as often overlooked by most candidates the practice exams. Practice exams are built to make students comfortable with the real exam environment. Statistics have shown that most students fail not due to that preparation but due to exam anxiety the fear of the unknown. DumpsTorrent expert team recommends you to prepare some notes on these topics along with it don’t forget to practice Salesforce PDII dumps which been written by our expert team, Both these will help you a lot to clear this exam with good marks.
Ultimate Guide to Prepare PDII Certification Exam for Salesforce Developers: https://www.dumpstorrent.com/PDII-exam-dumps-torrent.html
PDII Ultimate Study Guide: https://drive.google.com/open?id=14D2FATsERKR8kHodY8TSeD5vW14NTuZx