[Oct 20, 2021] Latest Salesforce PDI Exam Practice Test To Gain Brilliante Result [Q101-Q121]

Share

Latest [Oct 20, 2021] Salesforce PDI Exam Practice Test To Gain Brilliante Result

Take a Leap Forward in Your Career by Earning Salesforce PDI


Difficulty in writing PDI Exam

This Salesforce PDI exam is very difficult to prepare. Because it requires all candidate attention with practice. So, if Candidate wants to pass this Salesforce PDI exam with good grades then he has to choose the right preparation material. By passing the Salesforce PDI exam can make a lot of difference in your career. Many Candidates wants to achieve success in the Salesforce PDI exam but they are failing in it. Because of their wrong selection but if the candidate can get valid and latest Salesforce PDI study material then he can easily get good grades in the Salesforce PDI exam. Prep4away providing many Salesforce PDI exam questions that help the candidate to get success in the Salesforce PDI test. Our Salesforce PDI dumps specially designed for those who want to get their desired results in the just first attempt. Salesforce PDI braindump questions provided by Prep4away make candidate preparation material more impactful and the best part is that the training material provided by Prep4away for Salesforce PDI exams are designed by our experts in the several fields of the IT industry.

 

NEW QUESTION 101
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.
What should the developer use to override the Contact's Edit button and provide this functionality?

  • A. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience
  • B. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience
  • C. A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience
  • D. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience

Answer: B

 

NEW QUESTION 102
A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes.
How should the developer design the Apex classes?

  • A. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
  • B. Have each class implement an interface that defines method getTextSummary() that returns the summary.
  • C. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
  • D. Have each class define method getTextSummary() that returns the summary.

Answer: B

 

NEW QUESTION 103
A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition.
As part of a data enrichment process. Universal Containers has a CSV file that contains updated data for all candidates in the system, f he file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.
Which technique should the developer implement to streamline the data upload?

  • A. Create a before Insert trigger to correctly map the records.
  • B. Create a Process Builder on the Candidate_c object to map the records.
  • C. A Update the primaryid__c field definition to mark it as an External Id
  • D. Upload the CSV into a custom object related to Candidate_c.

Answer: C

 

NEW QUESTION 104
Given the code below, which three statements can be used to create the controller variable? Public class accountlistcontroller{ public list<account>getaccounts(){ return controller.getrecords(); } } Choose 3 answers

  • A. Apexpages.standardsetcontroller controller=new
    apexpages.standardsetcontroller(database.getquerylocator('select id from account'));
  • B. Apexpages.standardcontroller controller= new apexpages.standardcontroller([select id from account]);
  • C. Apexpages.standardcontroller controller= new
    apexpages.standardcontroller(database.getquerylocator('select id from account'));
  • D. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.getquerylocator([select id from account]));
  • E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.query('select id from account'));

Answer: B,D,E

 

NEW QUESTION 105
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage.
Which two strategies should a developer use to accomplish this? (Choose two.)

  • A. Use a validation rule.
  • B. Use a Visual Workflow.
  • C. Use a Trigger.
  • D. Use the Process Automation Settings.

Answer: A,C

 

NEW QUESTION 106
What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?

  • A. The StandardSetController to support related lists for pagination.
  • B. The Opportunity StandardController for pre -built functionality.
  • C. A callback constructor to reference the StandardController.
  • D. A constructor that initializes a private Opportunity variable.

Answer: B

 

NEW QUESTION 107
Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? Choose 2 answers

  • A. String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString);
  • B. String qryName = % + String.escapeSingleQuotes(name)+ % ;
    String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;
    List queryResults = Database.query(qryString);
  • C. String qryName = % + String.enforceSecurityChecks(name)+ % ;
    String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;
    List queryResults = Database.query(qryString);
  • D. String qryName = % + name % ;
    String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;
    List queryResults = Database.query(qryString);

Answer: B,D

 

NEW QUESTION 108
The following Apex method is part of the ContactService class that is called from a trigger: public static void setBusinessUnitToEMEA(Contact thisContact){ thisContact.Business_Unit__c = "EMEA" ; update thisContact; } How should the developer modify the code to ensure best practice are met?

  • A. Public void setBusinessUnitToEMEA(List<Contact> contatcs){
    contacts[0].Business_Unit__c = 'EMEA' ;
    update contacts[0];
    }
  • B. Public static void setBusinessUnitToEMEA(Contact thisContact){
    List<Contact> contacts = new List<Contact>();
    contacts.add(thisContact.Business_Unit__c = 'EMEA');
    update contacts;
    }
  • C. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
    for(Contact thisContact : contacts){
    thisContact.Business_Unit__c = 'EMEA' ;
    update contacts[0];
    }
    }
  • D. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
    for(Contact thisContact : contacts) {
    thisContact.Business_Unit__c = 'EMEA' ;
    }
    update contacts;
    }

Answer: B

 

NEW QUESTION 109
Universal Containers (UC) has an integration with its Accounting system that creates tens of thousands of Orders inside of Salesforce in a nightly batch. UC wants to add automaton that can attempt to match Leads and Contacts to these Orders using the Email Address field on the insert. UC is concerned about the performance of the automation with a large data volume. Which tool should UC use to automate this process?

  • A. Process Builder
  • B. Workflow Rules
  • C. Apex
  • D. Process Builder with an Autolaunched Flow

Answer: C

 

NEW QUESTION 110
Which tag should a developer include when styling from external CSS is required in a Visualforce page?

  • A. Apex : stylesheet
  • B. Apex : require
  • C. Apex : includeStyle
  • D. Apex : includeScript

Answer: A

 

NEW QUESTION 111
In the Lightning Component framework, where is client-side controller logic contained?

  • A. Apex
  • B. JavaScript
  • C. Visualforce
  • D. HTML

Answer: B

 

NEW QUESTION 112
Which three web technologies can be integrated into a Visualforce page? (Choose three.)

  • A. HTML
  • B. PHP
  • C. JavaScript
  • D. CSS
  • E. Java

Answer: A,D,E

 

NEW QUESTION 113
As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows.

Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)

  • A. Use WHERE clauses on the SOQL query to reduce the number of records retrieved.
  • B. Use the FOR UPDATE option on the SOQL query to lock down the records retrieved.
  • C. Use visual keyword when declaring the retrieve variable.
  • D. Use a SOQL FOR loop, to chunk the result set in batches of 200 records.

Answer: C,D

 

NEW QUESTION 114
Which three data types can be returned from an SOQL statement?

  • A. String
  • B. List of objects
  • C. Boolean
  • D. Single object
  • E. Integer

Answer: B,D,E

 

NEW QUESTION 115
A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension.Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required."What can the developer do to successfully deploy the new Visualforce page and extension?

  • A. Select "Disable Parallel Apex Testing" to run all the tests.
  • B. Add test methods to existing test classes from previous deployments.
  • C. Create test classes to exercise the Visualforce page markup.
  • D. Select "Fast Deployment'' to bypass running all the tests.

Answer: B

 

NEW QUESTION 116
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature?

  • A. Build an Account custom Trigger.
  • B. Build an Account Workflow Rule.
  • C. Build an Account Assignment Rule.
  • D. Build an account Approval Process

Answer: A

 

NEW QUESTION 117
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order will be imported into Salesforce.

  • A. Indirect Lookup
  • B. Lookup
  • C. Direct Lookup
  • D. Number with External ID

Answer: D

 

NEW QUESTION 118
For which three items can a trace flag be configured?
Choose 3 answers

  • A. Process Builder
  • B. Apex Trigger
  • C. Apex Class
  • D. Visualforce
  • E. User

Answer: B,C,E

 

NEW QUESTION 119
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)

  • A. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.
  • B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
  • C. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
  • D. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.

Answer: A,C

 

NEW QUESTION 120
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? Choose three answers.

  • A. Controller
  • B. StandardController
  • C. Action
  • D. Extensions

Answer: B,C,D

 

NEW QUESTION 121
......

Authentic Best resources for PDI Online Practice Exam: https://www.prep4away.com/Salesforce-certification/braindumps.PDI.ete.file.html

Updates Up to 365 days On Developing PDI Braindumps: https://drive.google.com/open?id=1JwiuRNBIEgcN7THUCjfzBGE1_aKobXCU