Pass Authentic Salesforce PDI with Free Practice Tests and Exam Dumps [Q65-Q80]

Share

Pass Authentic Salesforce PDI with Free Practice Tests and Exam Dumps

New PDI  Exam Questions Real Salesforce Dumps


Certification Path

There is no prerequisite for this exam.

 

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

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

Answer: B


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

  • A. String qryName = % + String.escapeSingleQuotes(name)+ % ;
    String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;
    List queryResults = Database.query(qryString);
  • B. String qryName = % + 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 qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString);

Answer: A,B


NEW QUESTION # 67
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org.
Which tool should the developer use to troubleshoot?

  • A. Developer Console
  • B. Visual Studio Core IDE
  • C. AppExchange
  • D. Salesforce CLI

Answer: A


NEW QUESTION # 68
A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.
What should the developer use to satisfy this requirement in the most efficient manner?

  • A. Screen-based flow
  • B. Lightning Component
  • C. Apex trigger
  • D. Approval process

Answer: A


NEW QUESTION # 69
What should a developer do to check the code coverage of a class after running all tests?

  • A. View the Code Coverage column in the list view on the Apex Classes page.
  • B. Select and run the class on the Apex Test Execution page in the Developer Console.
  • C. View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.
  • D. View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.

Answer: C


NEW QUESTION # 70
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: D


NEW QUESTION # 71
Which action can a developer take to reduce the execution time of the following code? List<account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work } } }

  • A. Create an apex helper class for the SOQL
  • B. Put the account loop inside the contact loop
  • C. Add a group by clause to the contact SOQL
  • D. Use a map <id,contact> for allaccounts

Answer: D


NEW QUESTION # 72
A developer is building custom search functionality that uses SOSL to search account and contact records that match search terms provided by the end user. The feature is exposed through a Lightning web component, and the end user is able to providea list of terms to search.
Consider the following code snippet:

What is the maximum number of search terms the end user can provide to successfully execute the search without exceeding a governor limit?

  • A. 0
  • B. 1
  • C. 2,000
  • D. 2

Answer: A


NEW QUESTION # 73
A developer created a Lightning web component called statusComponent to be inserted into the Account record page.
Which two things should the developer do to make the component available?

  • A. Add <isExposed> true</isExposed> to the statusComponent.js-meta ml file.
  • B. Add<target> Lightning_RecordPage </target> to the statusComponent.js file.
  • C. Add <target> lighting _RecordPage </target> to the statusComponent.js-meta ml file.
  • D. Add < masterLabel>Account</master Label> to the statusComponent.js-meta ml file.

Answer: A,C


NEW QUESTION # 74
A developer is migrating a Visualforce page into a Lightning web component.
The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.
Which security consideration should the developer be aware of?

  • A. Lightning Data Service ignores field-level security.
  • B. Lightning Data Service handles sharing rules and field-level security.
  • C. The isAccessible ( ) method must be used for field-level access checks
  • D. The with sharing keyword must be used to enforce sharing rules.

Answer: D


NEW QUESTION # 75
What should a developer do to check the code coverage of a class after running all tests?

  • A. View the Class test Percentage tab on the Apex Class list view in Salesforce Setup.
  • B. Select and run the class on the Apex est Execution page in the Developer Console.
  • C. View the code coverage percentage or the class using the Overalll code Coverage panel in the Developer Console Test tab.
  • D. View the Code Coverage column in the list on the Apex Classes page.

Answer: A


NEW QUESTION # 76
When loading data into an operation, what can a developer do to match records to update existing records?
(Choose 2)

  • A. Match the Id field to a column in the imported file.
  • B. Match an auto-generated Number field to a column in the imported file.
  • C. Match an external Id Text field to a column in the imported file.
  • D. Match the Name field to a column in the imported file.

Answer: A,C


NEW QUESTION # 77
Candidates are reviewed by four separate reviewers and their comments and scores which range from 1 (lowest) to 5 (highest) are stored on a review record that is a detail record for a candidate what is the best way to indicate that a combined review score of 15 of better is required to recommend that the candidate come in for an interview?

  • A. Use visual workflow to set a recommended field on the candidate whenever the cumulative review score is 15 or better
  • B. Use a workflow rule to calculate the sum of the review scores and send an email to the hiring manager when the total is 15 or better
  • C. Use a rollup summary field to calculates the sum of the review scores, and store this in a total score field on the candidate
  • D. Use a validation rule on a total score field on the candidate record that prevents a recommended field from being true if the total score is less than 15

Answer: B


NEW QUESTION # 78
A developer Is Integrating with a legacy on-premise SQL database.
What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?

  • A. External ID field
  • B. Lookup field
  • C. Formula field
  • D. External Object

Answer: A


NEW QUESTION # 79
Which two components are available to deploy using the METADATA API? Choose 2 answers

  • A. Case Settings
  • B. Lead Conversion Settings
  • C. Web-to-Lead
  • D. Web-to-Case

Answer: A,B


NEW QUESTION # 80
......

PDI Exam Info and Free Practice Test Professional Quiz Study Materials: https://www.prepawayete.com/Salesforce/PDI-practice-exam-dumps.html

Course 2024 PDI Test Prep Training Practice Exam Download: https://drive.google.com/open?id=1TNbTlED7V6a1ayGCUXL2AkU8j0C3Agce

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 )
From Monday to Saturday

Support: Contact now