PDII Exam Questions
402 real PDII exam questions with expert-verified answers and explanations. Page 6 of 9.
- Question #254
A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validat...
- Question #255
The Account edit button must be overridden in an org where a subset of users still uses Salesforce Classic. The org already has a Lightning Component that will do the work necessar...
- Question #256
A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed. Which component should the developer add to the f...
- Question #257
Refer to the code snippet below: As part of an integration development effort, a developer is tasked to create an Apex method that solely relies on the use of foreign identifiers i...
- Question #258
When the sales team views an individual customer record, they need to see recent interactions for the customer. These interactions can be sales, orders, phone calls, or Cases. The...
- Question #259
In an organization that has multi-currency enabled, a developer is tasked with building a Lightning Component that displays the top ten Opportunities most recently accessed by the...
- Question #260
A company has reference data stored in multiple Custom Metadata records that represent default information for certain geographic regions. When a Contact is inserted, the default i...
- Question #261
An org has a requirement that the Shipping Address on the Account must be validated by a third- party web service, before the Account is allowed to be inserted. This validation mus...
- Question #262
As part of their quoting and ordering process, a company needs to send PDFs to their document storage system's REST endpoint that supports OAuth 2.0. Each Salesforce user must be i...
- Question #263
Which three approaches should a developer implement to obtain the best performance for data retrieval when building a Lightning web component? (Choose three.)
- Question #264
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.)
- Question #265
Refer to the code snippet below: A custom object called Credit_Memo_c exists in a Salesforce environment. As part of a new feature development that retrieves and manipulates this t...
- Question #266
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsUtils in Salesforce...
- Question #267
Refer to the code snippet below: A custom object called Credit_Memo_c exists in a Salesforce environment. As part of a new feature development that retrieves and manipulates this t...
- Question #269
Refer to the code snippet below: When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed...
- Question #270
A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property. What must be done in the component to get the data from...
- Question #271
A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog ma...
- Question #272
A company has a custom object Sales_Help_Request_c that has a Lookup relationship to Opportunity. The Sales_Help_Request_c has a number field, Number_of_Hours_c, that represents th...
- Question #274
When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tables-size an...
- Question #275
A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created. Which...
- Question #276
Users complain that a page is very slow to respond. Upon investigation, the query below is found to perform slowly. Which two actions can a developer take to improve performance? (...
- Question #277
There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user. The pag...
- Question #278
Refer to the following code snippet: A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by wire calling getF...
- Question #279
Ursa Major Solar has a custom object, ServiceJob_c, with an optional Lookup field to Account called Partner_Service_Provider_c. The TotalJobs_c field on Account tracks the total nu...
- Question #280
Refer to the markup below: A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared a...
- Question #282
A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions. When a contact is ins...
- Question #283
A company uses Opportunities to track sales to their customers and their org has millions of Opportunities. They want to begin to track revenue over time through a related Revenue...
- Question #284
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? (Choose two.)
- Question #285
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step- by-step wizard search for Accounts. One of the steps in the wizard is to allow the user...
- Question #286
When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within S...
- Question #287
Refer to the code below: A developer is building this Aura component to display information about top Opportunities in the org. Which three code changes must be made for the compon...
- Question #288
Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records tha...
- Question #291
A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert a parent record and a child record. A val...
- Question #292
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 #293
A software company uses a custom object, Defect__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect__c has a related list o...
- Question #294
A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed. W...
- Question #295
Which technique can run custom logic when a Lightning web component is loaded?
- Question #296
Which statement is true regarding savepoints?
- Question #297
A developer has created a Lightning web component that uses the getRecord wire adapter. Which three things should the developer do in a Jest test to validate the wire method is wor...
- Question #299
Consider the following code snippet: The Apex method is executed in an environment with a large data volume count for Accounts, and the query is performing poorly. Which technique...
- Question #300
Consider the following code snippet: Users of this Visualforce page complain that the page does a full refresh every time the Search button is pressed. What should the developer do...
- Question #301
A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Ligh...
- Question #302
As part of point-to-point integration, a developer must call an external web service which, due to high demand, takes a long time to provide a response. As part of the request, the...
- Question #303
The following code segment is called from a trigger handler class from the Opportunity trigger: Which two changes should improve this code and make it more efficient? (Choose two.)
- Question #304
As part of a new integration, a developer is asked to implement a new custom search functionality that is capable of performing unrestricted queries and can account for all values...
- Question #305
Universal Containers (UC) currently does all development in its full copy sandbox. Recently, UC has projects that require multiple developers to develop concurrently. UC is running...
- Question #306
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 #307
A developer wrote the following method to find all the test accounts in the org: However, the test method below fails. What should be used to fix this failing test?
- Question #308
Refer to the following code snippets: A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the cur...
- Question #309
Consider the following code snippet: How should the component communicate to the component that an order has been selected by the user?