PDII Exam Questions

Total 193 Questions


Last Updated On : 17-Feb-2025



Preparing with PDII practice test is essential to ensure success on the exam. This Salesforce test allows you to familiarize yourself with the PDII exam questions format and identify your strengths and weaknesses. By practicing thoroughly, you can maximize your chances of passing the Salesforce certification exam on your first attempt.

A company has a web page that needs to get Account record information, such as name, website, and employee number. The Salesforce record 1D is known to the web page and it uses JavaScript to retrieve the account information. Which method of integration is optimal?


A. Apex SOAP web service


B. SOAP API


C. Apex REST web service


D. REST API





A.
  Apex SOAP web service

A company has a Lightning page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning page?


A. Salesforce Lightning Inspector Transactions tab


B. Salesforce Lightning Inspector Actions tab


C. Salesforce Lightning Inspector Event Log tab


D. Salesforce Lightning Inspector Storage tab





D.
  Salesforce Lightning Inspector Storage tab

Universal Containers has an Apex trigger on Account that creates an Account Plan record when an Account is marked as a Customer. Recently a record-triggered flow was added so that whenever an Account is marked as a Customer, a "Customer Since’ date field is updated with today's date. Since the addition of the flow, two Account Plan records are created whenever the Account is marked as a Customer. What might cause this to happen?


A. The Apex trigger does not use a static variable to ensure it only fires once.


B. The flow is configured to use an "Update Records’ element.


C. The Apex trigger is not bulk safe and calls insert inside of a for loop.


D. The flow is configured to evaluate when a record is created and every time it is edited.





D.
  The flow is configured to evaluate when a record is created and every time it is edited.

A developer is building a Lightning web component that searches for Contacts. The component must communicate the search results to other unrelated Lightning web components, that are in different DOM trees, when the search completes. What should the developer do to implement the communication?


A. Fire an application event.


B. Publish an event on an event channel.


C. Fire a custom component event.


D. Publish a message on a message channel.





D.
  Publish a message on a message channel.

Universal Containers (LIC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish-speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site. What should the developer use to ensure the site is multilingual?


A. Use custom labels to ensure custom messages are translated properly.


B. Use custom settings to ensure custom messages are translated properly.


C. Use custom objects to translate custom picklist values.


D. Use custom metadata to translate custom picklist values.





A.
  Use custom labels to ensure custom messages are translated properly.

Universal Containers (UC) has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Product__c, on the Account object that allows sales reps to specify which of UC’s products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, including the Product_c field. What should the developer do to ensure the value of Products__c is in the current user's language?


A. Use tolabel ducts__c) in the fields list of the SOQL query.


B. Set the locale on each record in the SOQL result list.


C. Call the translate method on each record in the SOQL result list.


D. Use the Locale clause in the SOQL query.





A.
  Use tolabel ducts__c) in the fields list of the SOQL query.

The use of the transient keyword in Visualforce page controllers helps with which common performance issue?


A. Reduces load times


B. Improves page transfers


C. Reduces view state


D. Improves query performance





C.
  Reduces view state

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. The application must acknowledge and respect the user's locale context for dates, times, numbers, currency, and currency symbols. When using Aura components, which approach should the developer implement to ensure the Lightning application complies with the user's locale?


A. Use the $User global variable to retrieve the user preferences.


B. Use the $Label global value provider.


C. Use the $Lacale value provider to retrieve the user preferences.


D. Create a Hierarchical custom setting to store user preferences.





C.
  Use the $Lacale value provider to retrieve the user preferences.

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 considered high value is an amount greater than or equal to $1,000,000. However, this criteria value can change over time. There is a new requirement to also display high value opportunities in a Lightning web component. Which two actions should the developer take to meet these business requirements, and also prevent the business logic that obtains the high value opportunities from being repeated in more than one place? Choose 2 answers


A. Call the trigger from the Lightning web component.


B. Create a helper class that fetches the high value opportunities,


C. Leave the business logic code inside the trigger for efficiency.


D. Use custom metadata to hold the high value amount.





B.
  Create a helper class that fetches the high value opportunities,

D.
  Use custom metadata to hold the high value amount.

An org has 2 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 implement this?


A. Apex triggers on Contact and Account that call a helper class to normalize the address


B. Apex trigger on Account that calls the Contact trigger to normalize the address


C. Apex triggers on Contact and Account that normalize the address


D. Apex trigger on Contact that calls the Account trigger to normalize the address





C.
  Apex triggers on Contact and Account that normalize the address


Page 8 out of 20 Pages
Previous