PDII Exam Questions
402 real PDII exam questions with expert-verified answers and explanations. Page 4 of 9.
- Question #151
REST uses __________.
- Question #152
The SOAP API __________.
- Question #153
The REST API __________.
- Question #154
The Bulk API __________.
- Question #155
The Metadata API __________.
- Question #156
Code must have X% overall code coverage.
- Question #157
How would you test a web service?
- Question #158
Which of the following about Dynamic Apex is incorrect?
- Question #159
Which of the following exceptions cannot be caught and will force an error? (Choose three.)
- Question #160
What is the best way to display field-level error messages in Lightning?
- Question #161
What is the transaction limit for SOQL queries?
- Question #162
When testing batch classes, what must a developer do? (Choose two.)
- Question #163
If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?
- Question #164
During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?
- Question #165
Where in a query can you use Geolocation and Distance? (Choose two.)
- Question #166
What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?
- Question #167
What are the ways a developer can create test data of Contacts? (Choose two.)
- Question #168
If you have a method "doStuff(List<sObject> records)", which is a valid call?
- Question #169
If you wanted to create a record following the update of another (with data from the source object), what is the most customizable approach?
- Question #170
What is the correct order of execution for Visualforce Page "postback" requests (when user interaction requires a page update)?
- Question #171
The "action" attribute on <apex:page> is ONLY evaluated on which type of request?
- Question #172
If the "PageReference.setRedirect" Apex function is set to True, what type of request is made?
- Question #173
If the "PageReference.setRedirect" Apex function is set to False, what type of request is made?
- Question #174
When should you use the "transient" property on variables?
- Question #175
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?
- Question #176
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page and want to include multiple records?
- Question #177
Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?
- Question #178
Within the System.Limit class, what would you call to get the number of calls made in your transaction?
- Question #179
Within the System.Limit class, what would you call to get the total limit you can call in a single transaction?
- Question #180
Universal Container needs to integrate with an external system. Every time an Account record is updated to meet certain criteria, a SOAP message must be sent to a third party end-p...
- Question #181
How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomentJS, in a Lightning component?
- Question #182
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? (Choose two.)
- Question #183
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a `Maximu...
- Question #184
Which statement is considered a best practice for writing bulk safe Apex Triggers?
- Question #185
Consider the code above. When a user clicks on the Link of a Contact's name, what happens?
- Question #186
Which annotation exposes an Apex class as a RESTful web service?
- Question #187
Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? (Choose three.)
- Question #188
A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet: How can the component's Controller get the conte...
- Question #189
A developer is asked to develop a new AppExchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type....
- Question #190
A developer is tasked by Universal Containers to build out a system to track the container repair process. Containers should be tracked as they move through the repair process, sta...
- Question #191
A Salesforce developer is hired by a multi-national company to build a custom Lightning application that shows employees their employment benefits and earned commissions over time....
- Question #192
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 develop...
- Question #193
A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at th...
- Question #194
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...
- Question #195
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the...
- Question #196
The Contact object in an org is configured with workflow rules that trigger field updates. The fields are not updating, even though the end user expects them to. The developer crea...
- Question #197
A Visualforce Page throws an 'Attempt to dereference a null object' error for a Contact. What change in the controller will fix the error?
- Question #198
A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate, and Created ById must be passed to the external system in near rea...
- Question #199
A developer creates an application event that has triggered an infinite loop. What may have caused this problem?
- Question #200
The use of the transient keyword in Visualforce Page Controllers helps with which common performance issue?