PDII Exam Questions
402 real PDII exam questions with expert-verified answers and explanations. Page 2 of 9.
- Question #51
A developer wants to retrieve and deploy metadata, perform simple CSV export of query results, and debug Apex REST calls by viewing JSON responses. Which tool should the developer...
- Question #52
What is a best practice when unit testing a controller? (Choose two.)
- Question #53
What Visualforce tag can be used to display custom messages in pages using the Salesforce UI styling for errors, warnings, and other types of messages?
- Question #54
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?
- Question #55
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 A...
- Question #56
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?
- Question #57
Which is a valid Apex REST Annotation? (Choose two.)
- Question #58
A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update. How can thi...
- Question #59
A company requires an external system to be notified whenever an account is updated. trigger AccountTrigger on Account (after update){ for (Account updatedAccount:Trigger.new) { Ac...
- Question #60
A developer is using a third-party JavaScript library to create a custom user interface in Visualforce. The developer needs to use JavaScript to get data from a controller method i...
- Question #61
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 ha...
- Question #62
What is a consideration when using bind variables with dynamic SOQL? (Choose two.)
- Question #63
A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header tex...
- Question #64
Which two objects can be inserted in the same transaction? (Choose two.)
- Question #65
How can the DISTANCE and GEOLOCATION functions be used in SOQL queries? (Choose two.)
- Question #66
A developer has created a solution using the SOAP API for authenticating Communities users. What is needed when issuing the login() Call? (Choose two.)
- Question #67
When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three....
- Question #68
A developer needs test data for Apex test classes. What can the developer use to provide test data to the test methods? (Choose two.)
- Question #69
[FIND 'map' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead] What is a valid return type for the following SOSL query?
- Question #70
What level can a hierarchy custom setting be defined for? (Choose three.)
- Question #71
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remot...
- Question #72
Which API can be used to execute unit tests? (Choose three.)
- Question #73
Which statement is true about using ConnectApi namespace (also called Chatter in Apex)? (Choose two.)
- Question #74
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 accurat...
- Question #75
A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object. What is the recommended mechanism the developer should use to ac...
- Question #76
A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure th...
- Question #77
1 Contact con = new Contact( LastName ='Smith', Department = 'Admin') 2 insert con; 3 Contact insertedContact=[select Name from Contact where id=:con.Id]; 4 Savepoint sp_admin = Da...
- Question #78
What is a recommended practice with regard to the Apex CPU limit? (Choose two.)
- Question #79
A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen....
- Question #80
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 perf...
- Question #81
A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that multiple Survey_c records are being...
- Question #82
What is a potential design issue with the following code? trigger accountTrigger on Account (before update){ Boolean processOpportunity = false; List<opportunity> opptysClosedLost...
- Question #83
The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What is the outcome after executing the following code snippet in the org? List<...
- Question #84
Which statement is true regarding the use of user input as part of a dynamic SOQL query?
- Question #85
A developer has written the following method: static void processList(List<sobject> input){ Which code block can be used to call the method?
- Question #86
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...
- Question #87
A developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?
- Question #88
A developer has a Debug method within a class, which is invoked hundreds of times. What is the optimal functionality in the Developer Console to count the number of calls made to t...
- Question #89
What is a consideration when testing batch Apex? (Choose two.)
- Question #90
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...
- Question #91
A developer is building a Visualforce page that interacts with external services. Which interface should the developer implement to test this functionality? (Choose two.)
- Question #92
A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is...
- Question #93
A developer is writing unit tests for the following method: public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank(celsiusTemp) && celsiusTemp.isNumeric()) { re...
- Question #94
During the order of execution of a Visualforce page GET request, what happens after this step? Evaluate constructors on controllers and extensions
- Question #95
A developer needs to create a service that will process an email sent to it and create an account and contact using the contents of the email as data for the records. How might a d...
- Question #96
How can Apex be used with Visual Workflow?
- Question #97
An integration user makes a successful login() call via the SOAP API. What can be used in the SOAP header to provide server authorization for subsequent API requests?
- Question #98
A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the...
- Question #99
A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup. What are three act...
- Question #100
Which of the follow be used together in DML operations (transaction)? (Choose two.)