[Jan 20, 2022] Free Salesforce PDII Exam Questions & Answer
Verified PDII dumps Q&As Latest PDII Download
PDII Exam topics
Candidates must know the exam topics before they start of preparation. Because it will really help them in hitting the core. Our Salesforce PDII dumps will include the following topics:
- Testing 12%
- Salesforce Fundamentals 5%
- Data Modeling and Management 7%
- Logic and Process Automation 33%
- User Interface 20%
- Integration 11%
- Performance 7%
NEW QUESTION 53
The SOAP API...
- A. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
- B. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches
- C. Is used to to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
- D. Is used to to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
Answer: D
NEW QUESTION 54
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. Use the asyncSend() method of the HTTP class to send the request in async context
- B. Move the web service callout into an @future method
- C. Ensure all callouts are completed prior to executing DML statements
- D. Use Database.insert (order, true) to immediately commit any database changes
Answer: B,C
NEW QUESTION 55
What is the transaction limit on the recursive trigger depth?
- A. There is no limit
- B. 0
- C. 1
- D. 2
- E. 3
Answer: B
NEW QUESTION 56
A developer must create a custom pagination solution for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex. How can the developer meet these requirements? Choose 2 answers
- A. Use OFFSET in SOQL queries.
- B. Use a StandardSetController.
- C. Use CURSOR 50 in SOQL queries.
- D. Use LIMIT 50 in SOQL queries.
Answer: A,D
NEW QUESTION 57
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. Reduce view state in Visualforce pages.
- D. Avoid nested Apex iterations.
Answer: A,D
NEW QUESTION 58
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
List <Contact> contactList = new List <Contact>();
- A. for ( Contact c : [SELECT Id FROM Contact WHERE AccountId IN
:opportunityList.AccountId] ){
contactList.add(c);
} - B. Set <Id> accountIds = new Set <Id> ();
for(Opportunity o : opportunityList){
accountIds.add(o.AccountId);
}
for(Account a : [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id IN
:accountIds]){
contactList.addAll(a.Contacts);
}
List <Contact> contactList = new List <Contact>(); - C. Set <Id> accountIds = new Set <Id> ();
for (Opportunity o : opportunityList){
contactIds.add(o.ContactId);
}
for(Contact c : [SELECT Id FROM Contact WHERE Id IN :contactIds]){
contactList.add(c);
}
List <Contact> contactList = new List <Contact>(); - D. for(Opportunity o : opportunityList){
Account a = [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id
:o.AccountId]
contactList.addAll(a.Contacts);
)
List <Contact> contactList = new List <Contact>();
Answer: B
NEW QUESTION 59
A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly. What will improve performance? Choose 3 answers
- A. Using selective queries.
- B. Using actionRegion and rerender.
- C. Turning off the standard stylesheet.
- D. Setting the Apex Page attribute cache=true.
- E. Reducing the view state.
Answer: A,D,E
NEW QUESTION 60
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer.
What modification is necessary on the Salesforce side? (Choose two.)
- A. Create an entry for the certificate in Certificate and Key Management
- B. Configure two-factor authentication with the provided certificate
- C. Update the code to use HttpRequest.setClientCertificateName()
- D. Update the code to use HttpRequest.setHeader() to set an Authorization header
Answer: A,C
NEW QUESTION 61
What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? Choose 2 answers
- A. < apex: commandFunction action="{ !Save}" value="Save" rendered="thePageBlock"/>
- B. < apex:actionFunction action="{ !Save}" name="Save" rerender="thePageBlock"/>
- C. < apex:actionSupport action="{ !Save} " event="" rerender="thePageBlock"/>
- D. < apex:commandButton action="{ !Save}" value="Save" redraw="thePageBlock"/>
Answer: B,C
NEW QUESTION 62
A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?
- A. Use a condition in the getter to return a new Contact if it is null.
- B. Change the getter's signature to be static Contact.
- C. Change the setters signature to return a Contact.
- D. Declare a static final Contact at the top of the controller.
Answer: A
NEW QUESTION 63
A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c.
Which statement should be used to perform the DML necessary to insert new records and update existing records in a List of Order__c records?
- A. merge orders Order_Number__c;
- B. upsert orders;
- C. merge orders;
- D. upsert orders Order_Number__c;
Answer: D
NEW QUESTION 64
Which of the following standard fields are indexed? Choose three answers
- A. Name
- B. CreatedBy
- C. LastModifedDate
- D. SystemModStamp
- E. RecordType
Answer: A,D,E
NEW QUESTION 65
Which is a valid Apex REST Annotation? (Choose two.)
- A. @HttpAction
- B. @HttpDelete
- C. @HttpPatch
- D. @HttpUpsert
Answer: B,C
NEW QUESTION 66
Which statement is true regarding both Flow and Lightning Process?
- A. Are able to be embedded directly into Visualforce pages.
- B. Can use Apex methods with the @InvocableMethod annotation.
- C. Can use Apex that implements the Process. Plugin interface.
- D. Are both server-side considerations in the Order of Execution.
Answer: B
NEW QUESTION 67
A developer is working on code that requires a call to an external web service from a batch. How should the developer enable this functionality?
- A. Implement a custom System.CalloutException class.
- B. Implement an @future method for the callout, and invoke it from the batch.
- C. Specify "callout=true" in the batch implementation.
- D. Include Database.AllowCallout() in the class definition.
Answer: D
NEW QUESTION 68
What are the ways a developer can create test data of Contacts?
- A. Test.createTestData()
- B. myDataFactory.createContacts(10)
- C. Test.loadData(Contact.sObjectType, 'staticResource')
- D. Test.loadTestRecords(Contact.sObjectType, 'staticResource')
Answer: B,C
NEW QUESTION 69
An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and 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 is 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 does the data loading.
- B. Add the Profile Id of the user who does the data loading to the Trigger so the Trigger won't fire for this user.
- C. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.
- D. Use a List Custom Setting to disable the Trigger for the user who does the data loading.
Answer: C
NEW QUESTION 70
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. <apex:selectList value=",!selectedIndustry- "> <apex:selectOptions values="{!industries}"/> </apex:selectList> When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.
What is the optimal way to implement this?
- A. add an <apex: actionFunction> within the <apex:selectList>.
- B. Add an <apex: actionSupport> within the <apex: selectOptions>.
- C. Add an <apex: actionSupport> within the <apex:selectList>.
- D. Add an <apex: actionFunction> within the <apex:selectOptions>.
Answer: C
NEW QUESTION 71
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. LimitException: To many SOQL Queries on Account.
- C. System. QueryException: To many DML Statement errors on Contact
- D. System. QueryException: List has more than one row after Assignment on Account.
Answer: D
NEW QUESTION 72
A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity's Probability is greater than 50%.
What is the optimal way to automate this?
- A. Create a Workflow on Opportunity.
- B. Build a Process on Opportunity.
- C. Use an Apex Trigger on Opportunity.
- D. Build a Flow on Opportunity.
Answer: C
Explanation:
Explanation/Reference:
NEW QUESTION 73
The SOAP API_________.
- A. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
- B. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
- C. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
- D. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
Answer: C
NEW QUESTION 74
What is a consideration when testing batch Apex? (Choose two.)
- A. Test methods must use the @isTest (SeeAllData=true) annotation
- B. Test methods must call the batch execute() method once
- C. Test methods must run the batch between Test.startTest() and Test.stopTest()
- D. Test methods must execute the batch with a scope size of less than 200 records
Answer: C,D
NEW QUESTION 75
Which code statement includes an Apex method named updateAccount in the class AccountController for use in a Lightning web component?
- A. Import updateAccounts from AccountControllerupdateAccount';
- B. Import updateAccounts from @salesforceapexAccountControllerupdateAccounts';
- C. Import updateAccounts from AccountController';
- D. Import updateAccounts from @salesforceapex AccountController';
Answer: D
NEW QUESTION 76
......
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.
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. ExamTorrent 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.
Use Real Dumps - 100% Free PDII Exam Dumps: https://prep4sure.examtorrent.com/PDII-exam-papers.html
