PDII Exam Questions
402 real PDII exam questions with expert-verified answers and explanations. Page 5 of 9.
- Question #201
A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer...
- Question #202
A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code. What is the optimal way t...
- Question #203
Lightning Aura Component Lightning Aura Controller Apex Controller Given the code above, which two changes need to be made in the Apex Controller for the code to work? (Choose two....
- Question #204
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of all the test data that is needed to perform the tests. Wh...
- Question #205
An org has a custom object, Part_ _c. Its records are regularly imported from the company's Enterprise Resource Planning (ERP) system. What can be used to ensure the correct Part_...
- Question #206
The test method above tests in Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers. The test method f...
- Question #207
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 #208
How should a developer assert that a trigger with an asynchronous process has successfully run?
- Question #209
A developer wants to use an Aura component with a custom action. What should be considered in order to do this?
- Question #210
Universal Containers implements a private sharing model for the Convention_Attendee_ _c custom object. As part of a new quality assurance effort, the company created an Event_Revie...
- Question #211
A developer has a test class that creates test data before making a mock call-out, but now receives a `榊ou have uncommitted work pending. Please commit or rollback before calling o...
- Question #212
A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response_ _c do not belong to a list of blocked...
- Question #213
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?
- Question #214
What is the best practice to initialize a Visualforce page in a test class?
- Question #215
A developer has working business logic code, but sees the following error in the test class: You have uncommitted work pending. Please commit or rollback before calling out. What i...
- Question #216
A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account an...
- Question #217
A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?
- Question #218
A company has an Apex process that makes multiple extensive database operations and web service callouts. The database processes and web services can take a long time to run and mu...
- Question #219
Consider the following code snippet, depicting an Aura component: Which two interfaces can the developer implement to make the component available as a quick action? (Choose two.)
- Question #220
A developer is integrating with a legacy on-premise SQL database. What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?
- Question #221
An org has a requirement that addresses on Contacts and Accounts should be normalized to a company standard by Apex code any time that they are saved. What is the optimal way to im...
- Question #222
A company has a custom object, Order__c, that has a custom picklist field, Status__c, with values of `楴ew', `業n Progress', or `楩ulfilled' and a lookup field, Contact__c, to Contact...
- Question #223
A developer wrote an Apex class to make several callouts to an external system. If the URLs used in these callouts will change often, which feature should the developer use to mini...
- Question #224
Universal Containers stores user preferences in a Hierarchy Custom Setting, User_Prefs_c, with a Checkbox field, Show_Help_c. Company-level defaults are stored at the organizationa...
- Question #225
There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help...
- Question #226
What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
- Question #227
Customer billing data must be added and updated into Salesforce from a remote system on weekly basis. Additionally, customer activity information must be extracted from Salesforce...
- Question #228
How should a developer verify that a specific Account record is being tested in a test class for a Visualforce controller?
- Question #229
A company needs to automatically delete sensitive information after seven years. This could delete almost a million records every day. How can this be achieved?
- Question #230
An org contains two custom objects: Building__c and Office__c. Office__c has a Lookup field to Building__c. A developer is asked to automatically populate the Number_of_Offices__c...
- Question #231
A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make real-time callouts from the billing system...
- Question #232
A developer receives the exception 'SOQL query not selective enough' when performing a query on an object with a large amount of data. Which step should be taken to resolve the iss...
- Question #233
For compliance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than one object and,...
- Question #235
Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? (Choose three.)
- Question #236
Which technique can run custom logic when an Aura Component is loaded?
- Question #237
Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?
- Question #238
A developer has a requirement to query three fields (Id, Name, Type) from an Account and First and Last names for all Contacts associated with the Account. Which option is the pref...
- Question #239
A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a ti...
- Question #240
Just prior to a new deployment, the Salesforce Administrator, who configured a new order fulfillment process feature in a developer sandbox, suddenly left the company. As a part of...
- Question #241
A company has the Lightning Component above that allows users to click a button to save their changes and redirects them to a different page. Currently, when the user hits the Save...
- Question #242
The head of recruiting at Universal Containers wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting a...
- Question #243
The Salesforce instance at Universal Containers currently integrates with a third-party company to validate mailing addresses via REST services. The third-party address verificatio...
- Question #244
Which tag should a developer use to display different text while an is executing versus not executing?
- Question #245
A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and u...
- Question #246
A lead developer is creating tests for a Lightning web component. The component re-renders when a property called bypassSelection changes its value. What should the developer use t...
- Question #247
Universal Containers (UC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Span...
- Question #248
A developer is tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in Lightning Experience whil...
- Question #250
A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both...
- Question #252
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving an Account. How can a developer fix this error?
- Question #253
A company has a custom object, Request_c, that has a checkbox field, Completed_c, and a Lookup to Opportunity, Opportunity_c. Which SOQL query will get a unique list of all of the...