PDII Exam Questions
402 real PDII exam questions with expert-verified answers and explanations. Page 7 of 9.
- Question #310
Consider the following code snippet: A developer created the following test class to provide the proper code coverage for the snippet above: However, when the test runs, no data is...
- Question #311
Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private....
- Question #312
A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the Opportunity's stage is changed, a workflow rule is fi...
- Question #313
A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run...
- Question #314
Refer to the code below: When the code runs, it results in a System Limit Exception with the error message: Apex heap size too large. What should be done to fix this error?
- Question #315
A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achiev...
- Question #316
Given the following code: Assuming there were 10 Contacts and five Accounts created today, what is the expected result?
- Question #317
A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data?
- Question #318
What are three reasons that a developer should write Jest tests for Lightning web components? (Choose three.)
- Question #319
A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes. Wh...
- Question #320
A developer created the following test method: The developer org has five accounts where the name starts with "Test". The developer executes this test in the Developer Console. Aft...
- Question #321
Instead of waiting to send emails to support personnel directly from the finish method of a batch Apex process, Universal Containers wants to notify an external system in the event...
- Question #322
Users report that a button on a custom Lightning web component is not working. However, there are no other details provided. What should the developer use to ensure error messages...
- Question #323
A developer is asked to look into an issue where a scheduled Apex is running into DML limits. Upon investigation, the developer finds that the number of records processed by the sc...
- Question #324
A developer is creating a Lightning web component that displays a list of records in a lightning- datatable. After saving a new record to the database, the list is not updating. Wh...
- Question #325
A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list...
- Question #326
A developer is tasked with creating a Lightning web component that is responsive on various devices. Which two components should help accomplish this goal? (Choose two.)
- Question #327
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? (Choose two.)
- Question #328
Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit...
- Question #329
A developer wrote a class named AccountHistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a pa...
- Question #330
A developer recently released functionality to production that performs complex commission calculations in Apex code called from an Opportunity trigger. Users report that the calcu...
- Question #331
Consider the following code snippet: When the component is deployed, an error is reported. Which two changes should the developer implement in the code to ensure the component depl...
- Question #333
A developer is asked to create a Lightning web component that will be invoked via a button on a record page. The component must be displayed in a modal dialog. Which three steps sh...
- Question #334
What should a developer use to query all Account fields for the Acme account in their sandbox?
- Question #336
An org records customer order information in a custom object, Order__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping charg...
- Question #337
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 #338
A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment. A Salesforce admin with a custom profil...
- Question #339
A company accepts orders for customers in their enterprise resource planning (ERP) system that must be integrated into Salesforce as Order__c records with a lookup field to Account...
- Question #340
A developer writes a Lightning web component that displays a dropdown list of all custom objects in the org from which a user will select. An Apex method prepares and returns data...
- Question #341
The Account object has a field, Audit_Code__c, that is used to specify what type of auditing the Account needs and a Lookup to User, Auditor__c, that is the assigned auditor. When...
- Question #342
Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. I...
- Question #343
A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity mult...
- Question #344
An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, CommissionBaseAmount__c, when an Opportunity is edited and the Opportunity's A...
- Question #345
Consider the controller code below that is called from an Aura component and returns data wrapped in a class. The developer verified that the queries return a single record each an...
- Question #346
A developer is writing a Listener for implementing outbound messaging. Which three considerations must the developer keep in mind in this case? (Choose three.)
- Question #347
A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts...
- Question #348
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 #349
Consider the following code snippet: Which two best practices should the developer implement to optimize this code? (Choose two.)
- Question #350
A developer is working on a set of custom Aura components that can be individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Acco...
- Question #351
Universal Containers uses Salesforce to manage its product offerings to customers. A developer is building a custom mobile app that must allow app users to view product information...
- Question #352
Refer to the code segment above. When following best practices for writing Apex triggers, which two lines are wrong or cause for concern? (Choose two.)
- Question #353
Universal Containers (UC) calculates commissions on their Opportunities in different ways base on complex rules that vary depending on the line of business of the Opportunity. When...
- Question #354
How should a developer reference a third-party JavaScript library from a Lightning component?
- Question #355
Which use case can be performed only by using asynchronous Apex?
- Question #356
A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be consid...
- Question #357
A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Li...
- Question #358
Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? (Choose two.)
- Question #359
A developer is creating a page in App Builder that will be used in the Salesforce mobile app. Which two practices should the developer follow to ensure the page operates with optim...
- Question #360
A developer is writing a Jest test for a Lightning web component that conditionally displays child components based on a user's checkbox selections. What should the developer do to...
- Question #361
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...