PDII Exam Questions
402 real PDII exam questions with expert-verified answers and explanations. Page 1 of 9.
- Question #1
The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to True when it completes....
- Question #2
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. Wha...
- Question #3
A company's support process dictates that any time a Case is closed with a Status of 'Could not fix', an Engineering Review custom object record should be created and populated wit...
- Question #4
A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system (OMS). The OMS exposes SO...
- Question #5
Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?
- Question #6
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?
- Question #7
A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen. Which functionality consideration impacts the final decision?
- Question #8
A developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?
- Question #9
What is a benefit of JavaScript remoting over Visualforce Remote Objects?
- Question #10
A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?
- Question #11
Recently a Salesforce org's integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion...
- Question #12
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 c...
- Question #13
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors. Which chan...
- Question #14
An environment has two Apex Triggers: an after-update trigger on Account and an after-update trigger on Contact. The Account after-update trigger fires whenever an Account's addres...
- Question #15
A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests...
- Question #16
A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful me...
- Question #17
global with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter() {} @RemoteAction global static Acc...
- Question #18
A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to displ...
- Question #19
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?
- Question #20
A developer wants to call an Apex Server-side Controller from a Lightning Aura Component. What are two limitations to the data being returned by the Controller? (Choose two.)
- Question #21
Which interface needs to be implemented by a Lightning Component so that it may be displayed in modal dialog by clicking a button on a Lightning Record page?
- Question #22
Sometimes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to...
- Question #23
What are three benefits of using declarative customizations over code? (Choose three.)
- Question #24
Which use case can only be performed by using asynchronous Apex?
- Question #25
@isTest static void testIncrement() { Account acct = new Account(Name = 'Test'); acct.Number_Of_Times_Viewed__c = 0; insert acct; AuditUtil.incrementViewed(acct.Id); Account acctAf...
- Question #26
A company represents their customers as Accounts that have an External ID field called Customer_Number__c. They have a custom Order (Order__c) object, with a Lookup to Account, to...
- Question #27
What are three benefits of using static resources in Visualforce and Lightning Components? (Choose three.)
- Question #28
A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format. Which is th...
- Question #29
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...
- Question #30
Which method should be used to convert a Date to a String in the current user's locale?
- Question #31
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 inser...
- Question #32
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 terr...
- Question #33
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with t...
- Question #34
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?
- Question #35
A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration...
- Question #36
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...
- Question #37
A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on u...
- Question #38
Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b. These are the fields on Customer_Transaction__b: Account__c -...
- Question #39
Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the dat...
- Question #40
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 is...
- Question #41
A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails...
- Question #42
UC Loans is a small company with a part time Salesforce administrator. UC Loans wants to create a Loan__c record whenever an Opportunity is won. What is the optimal solution for UC...
- Question #43
A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RES...
- Question #44
A developer gets an error saying 'Maximum Trigger Depth Exceeded'. What is a possible reason to get this error message?
- Question #45
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 checkbo...
- Question #46
A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?
- Question #47
The progress of an apex job queued is using the System.enqueueJob method and needs to be monitored. Which options are valid? (Choose two.)
- Question #48
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)
- Question #49
A developer is writing a complex application involving triggers, workflow rules, Apex classes, and processes. The developer needs to carefully consider the order of execution when...
- Question #50
A developer has been asked to create code that will meet the following requirements: - Receives input of: Map<Id, Project_c), List<Account> - Performs a potentially long-running ca...