PDI Practice Test Questions

236 Questions


Universal Containers has large number of custom applications that were built using a third- party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?


A. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.


B. Rewrite all Visualforce pages asLightning components.


C. Set the attribute enableLightning to true in the definition.


D. Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.





A.
  Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.

Which action causes a before trigger to fire by default for Accounts?


A. Renaming or replacing picklist


B. Importing data using the Data Loader and the Bulk API


C. Converting Leads to Contact accounts


D. Updating addresses using the Mass Address update tool





B.
  Importing data using the Data Loader and the Bulk API

A develop completed modification to a customized feature that is comprised of two elements:

Apex trigger Trigger handler Apex class

What are two factors that the developer must take into account to properly deploy the modification to the production environment?


A. Apex classes must have at least 75% code coverage org-wide.


B. At least one line of code must be executed for the Apex trigger.


C. All methods in the test classes must use @isTest.


D. Test methods must be declared with the testMethod keyword.





A.
  Apex classes must have at least 75% code coverage org-wide.

B.
  At least one line of code must be executed for the Apex trigger.

How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?


A. Use the Flow properties page.


B. Use the code Coverage Setup page


C. Use the Apex testresult class


D. Use SOQL and the Tooling API





D.
  Use SOQL and the Tooling API

A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner?


A. A record trigger flow on the Opportunity object


B. An Apex trigger on the Opportunity object


C. approval process on the Opportunity object


D. An error condition formula on a validation rule on Opportunity





D.
  An error condition formula on a validation rule on Opportunity

A developer is writing tests for a class and needs to insert records to validate functionality. Which annotation method should be used to create record for every method in the test class?


A. @isTest (SeeAllData-true)


B. @FreTest


C. @TestSetup


D. @StartTest





C.
  @TestSetup

Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create. In the first steps of collecting information, UC’s ERP system must be checked via as a REST endpoint to see if the customerexists. If the customer exists, the data must be presented to the sales rep in Salesforce. Which two should a developer implement to satisfy the requirements? Choose2 answer


A. Flow


B. Future method


C. Trigger


D. Invocable method





B.
  Future method

D.
  Invocable method

What are two ways for a developer to execute tests in an org?


A. Tooling API


B. Developer console


C. Bulk API


D. Matadata API





A.
  Tooling API

B.
  Developer console

What can be easily developed using the Lightning Component framework?


A. Customized JavaScript buttons


B. Salesforce Classic user Interface pages


C. Lightning Pages


D. Salesforce integrations





C.
  Lightning Pages

As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients. Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers


A. Aura Components


B. Vlsualforce Components


C. Lightning Web Components


D. Visualforce Pages





A.
  Aura Components

B.
  Vlsualforce Components

D.
  Visualforce Pages

A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default } |
Opportunity record type, and set certain default values based on the record type before inserting the record.
How can the developer find the current user's default record type? ns


A. Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() | |method. ] |


B. Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types, and iterate through them until [ J isDefaultRecordTypeMapping() is true. Pencil & Paper |


C. Use the Schema.userlnfo.Opportunity.getDefaultRecordType() method. < Create the opportunity and check the opportunity.recordType before inserting, which will have the record ID of the current Dal user's default record type.





B.
  Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types, and iterate through them until [ J isDefaultRecordTypeMapping() is true. Pencil & Paper |

A developer needs to prevent the creation of Request c records when certain coVraitions exist in the system. A RequeatLogic class exists that checks the conditions. What is the correct implementation?


A. Option A


B. Option B


C. Option C


D. Option D





B.
  Option B


Page 8 out of 20 Pages
Previous