Pass PDI Exam Latest Practice Questions Updated on Nov 19, 2023 [Q97-Q114]

Share

Pass PDI Exam Latest Practice Questions Updated on Nov 19, 2023

Salesforce PDI Study Guide Archives 

NEW QUESTION # 97
What are three ways for a developer to execute tests in an org? Choose 3.

  • A. Bulk API
  • B. Metadata API.
  • C. Setup Menu
  • D. Salesforce DX
  • E. Tooling API

Answer: C,D,E

Explanation:
Reference: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_testing.htm https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apextestsuite.htm


NEW QUESTION # 98
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

  • A. List<List < sObject>> searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like
    '%ACME%');
  • B. Map <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • C. List <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • D. List<List <sObject>> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);

Answer: D


NEW QUESTION # 99
Which statement would a developer use when creating test data for products and pricebooks?

  • A. Pricebook pb = new Pricebook();
  • B. List objList = Test.loadData(Account.sObjectType, 'myResource');
  • C. Id pricebookId = Test.getStandardPricebookId();
  • D. IsTest(SeeAllData = false);

Answer: C


NEW QUESTION # 100
Refer to the following code that runs in an Execute Anonymous block:

  • A. The transaction will succeed and the first ten thousand records will be committed to the database.
  • B. In an environment where the full result set is returned, what is a possible outcome of this code?
  • C. The total number of DML statements will be exceeded.
  • D. The total number of records processed as a result of DML statements will be exceeded.

Answer: B


NEW QUESTION # 101
What are three ways for a developer to execute tests in an org? Choose 3.

  • A. Developer Console
  • B. Bulk API
  • C. ToolingAPI
  • D. Setup Menu
  • E. Metadata API

Answer: C,D,E


NEW QUESTION # 102
Given the following code snippet, that is part of a custom controller for a Visualforce page:

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers

  • A. Use if (Schema.sObjectType.Contact.isAccessible ( ) )
  • B. Use if (Schema, sobjectType, Contact, isUpdatable ( ) )
  • C. Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )
  • D. Use if (thisContact.Owner = = UserInfo.getuserId ( ) )

Answer: B,C


NEW QUESTION # 103
Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers

  • A. Roll-Up Summaries
  • B. Custom Objects and Fields
  • C. Process Builder
  • D. Triggers
  • E. Relationships

Answer: A,B,E


NEW QUESTION # 104
Given the following trigger implementation:
trigger leadTrigger on Lead (before update){
final ID BUSINESS_RECORDTYPEID = '012500000009Qad';
for(Lead thisLead : Trigger.new){
if(thisLead.Company != null && thisLead.RecordTypeId != BUSINESS_RECORDTYPEID){ thisLead.RecordTypeId = BUSINESS_RECORDTYPEID;
}
}
}
The developer receives deployment errors every time a deployment is attempted from Sandbox to Production.
What should the developer do to ensure a successful deployment?

  • A. Ensure BUSINESS_RECORDTYPEID is pushed as part of the deployment components.
  • B. Ensure BUSINESS_RECORDTYPEID is retrieved using Schema.Describe calls.
  • C. Ensure the deployment is validated by a System Admin user on Production.
  • D. Ensure a record type with an ID of BUSINESS_RECORDTYPEID exists on Production prior to deployment.

Answer: D


NEW QUESTION # 105
Which tool can deploy destructive changes to Apex classes in production?

  • A. Workbench
  • B. Developer Console
  • C. Salesforce Setup
  • D. Change Sets

Answer: A


NEW QUESTION # 106
What are two considerations for deciding to use a roll-up summary field? Choose 2 answer's partner.

  • A. Roll-up cannot be performed on formula fields that use cross-object references or on-the-fly calculations such as NOW().
  • B. Roll-up summary fields do not cause validation rules on the parent object unless that object is edited separately.
  • C. Roll-up cannot be performed on formula fields.
  • D. Roll-up summary can be performed on formula fields, but if their formula contains an #Error result, it may affect the summary value.

Answer: A,D


NEW QUESTION # 107
A business implemented a magnification plan to encourage its customers to watch some educational videos.
Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user.
A developer implemented these requirements in the after update trigger by making a calf to an external web service. However, a System.CalloutException is occurring.
What should the developer do to fix this error?

  • A. Replace the after update trigger with a before insert trigger.
  • B. Move the callout to an asynchronous method with structure (callout=true) annotation.
  • C. Surround the external call with a try-catch block to handle the exception.
  • D. Write a REST service to integrate with the external web service.

Answer: B


NEW QUESTION # 108
Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?

  • A. Calendar Events
  • B. Developer Log
  • C. Asynchronous Data Capture Events
  • D. Event Monitoring Log

Answer: D


NEW QUESTION # 109
A Salesforce Administrator used Flow Builder to create a flow named ''accountOnboarding''. The flow must be used inside an Aura component.
Which tag should a developer use to display the flow in the component?

  • A. Aura:flow
  • B. Aura:flow
  • C. Lightning:flow
  • D. Lightning-flow

Answer: C


NEW QUESTION # 110
A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

  • A. Add a System.debug() statement before the insert method
  • B. Add a try/catch around the insert method
  • C. Set the second insert method parameter to TRUE
  • D. Collect the insert method return value a Saveresult variable

Answer: B


NEW QUESTION # 111
Which two statements accurately represent the MVC framework implementation in Salesforce? Choose 2 answers

  • A. Triggers that create records represent the Model (M) part of the MVC framework.
  • B. Standard and Custom objects used in the app schema represent the View (V) part of the MVC framework
  • C. Lightning component HTML files represent the Model (M) part of the MVC framework.
  • D. Validation rules enforce business rules and represent the Controller (C) part of the MVC framework

Answer: A,D


NEW QUESTION # 112
In the following example, which sharing context will myMethod execute when it is invoked?

  • A. Sharing rules will be inherited from the calling context.
  • B. Sharing rules Ml be enforced for the running user.
  • C. Sharing rules will not be enforced for the running user.
  • D. Sharing rules Ail be enforced by the instantiating class

Answer: A


NEW QUESTION # 113
Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers

  • A. Time-Based Workflow Monitor
  • B. Paused Flow Interviews component
  • C. Apex Jobs (Missed)
  • D. Apex Flex Queue (Missed)

Answer: C,D


NEW QUESTION # 114
......

PDI Questions Prepare with Learning Information: https://www.exams4sures.com/Salesforce/PDI-practice-exam-dumps.html

Download PDI Mock Test Study Material: https://drive.google.com/open?id=1TiXzBZZ8NAxdu-xG2PtFP7_cdMxLNwtR