Enhance your career with PDI PDF Dumps - True Salesforce Exam Questions [Q87-Q109]

Share

Enhance your career with PDI PDF Dumps - True Salesforce Exam Questions

New (2022) Download free PDI PDF for Salesforce Practice Tests


How much PDI Exam Cost

The price of the Salesforce PDI Exam is $200 USD.

 

NEW QUESTION 87
Which two statements are true about Getter and Setter methods as they relate to Visualforce?

  • A. Setter methods always have to be declared global.
  • B. There is no guarantee for the order in which Getter methods are called.
  • C. A corresponding Setter method is required for each Getter method.
  • D. Getter methods pass values from a controller to a page.

Answer: C,D

 

NEW QUESTION 88
An after trigger on the account object performs a DML update operation on all of the child opportunities of an account. There are no active triggers on the opportunity object, yet a "maximum trigger depth exceeded" error occurs in certain situation. Which two reasons possibly explain the account trigger firing recursively? choose 2 answers

  • A. Changes are being made to the account during criteria based sharing evaluation
  • B. Changes to opportunities are causing roll-up summary fields to update on the account
  • C. Changes to opportunities are causing cross-object workflow field updates to be made on the account
  • D. Changes are being made to the account during an unrelated parallel save operation

Answer: C

 

NEW QUESTION 89
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. A Update the primaryid__c field definition to mark it as an External Id
  • B. Upload the CSV into a custom object related to Candidate_c.
  • C. Create a before Insert trigger to correctly map the records.
  • D. Create a Process Builder on the Candidate_c object to map the records.

Answer: A

 

NEW QUESTION 90
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?

  • A. Create a custom field on the child object of type External Relationship.
  • B. Create and populate a custom field on the parent object marked as Unique
  • C. Create and populate a custom field on the parent object marked as an External ID.
  • D. Create a custom field on the child object of type Foreign Key

Answer: A

 

NEW QUESTION 91
Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a server Update platform event.
The developer is working on a Lightning web component to display the information.

  • A. import (subscribe, unsubscribe, onError ) from 'lightning/MessageChannel'
  • B. import ( subscribe, unsubscribe, onError ) from 'lightning/pubsub'
  • C. import ( subscribe, unsubscribe, onError ) from 'lightning/empApi '
  • D. import ( subscribe, unsubscribe, onError ) from 'lightning/ServerUpdate'

Answer: C

 

NEW QUESTION 92
Universal Containers stores Orders and Line Items in Salesforce. For security reason, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line items on the Order. Which type of relationship should be used?

  • A. Lookup
  • B. Master Detail
  • C. Direct Lookup
  • D. Indirect lookup

Answer: B

 

NEW QUESTION 93
A developer needs to confirm that an Account trigger is working correctly without changing the organization's data.What would the developer do to test the Account trigger?

  • A. Use Deply from the Force.com IDE to deploy an 'insert Account' Apex class.
  • B. Use the Open Execute Anonymous feature on the Developer Console to run an 'insert Account' DML statement.
  • C. Use the Test menu on the developer Console to run all test classes for the account trigger.
  • D. Use the New button on the Salesforce Accounts Tab to create a new Account record.

Answer: C

 

NEW QUESTION 94
Which code displays the contents of a Visualforce page as a PDF?

  • A. <apex:page rendersAs="application/pdf">
  • B. <apex:page renderAs="pdf">
  • C. <apex:page contentType="application/pdf">
  • D. <apex:page contentType="pdf">

Answer: B

Explanation:
Reference:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_renderas.htm You can generate a downloadable, printable PDF file of a Visualforce page using the PDF rendering service. Convert a page to PDF by changing the <apex:page> tag.
<apex:page renderAs="pdf">

 

NEW QUESTION 95
What can be developed using the Lightning Component framework?

  • A. Dynamic web sites
  • B. Single-page web apps
  • C. Salesforce integrations
  • D. Hosted web applications

Answer: B

 

NEW QUESTION 96
A developer considers the following snippet of code:

Based on this code, what is the value of x?

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

Answer: D

 

NEW QUESTION 97
what are the methods used to show input in classic and lightning ?

  • A. Use visualforce page in classic and lightning component in lightning

Answer: A

 

NEW QUESTION 98
A Next Best Action strategy uses an Enchance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?

  • A. @InvocableMethod
    global List<List<Recommendation>> getLevel(List<ContactWrapper> input)
    { /*implementation*/ }
  • B. @InvocableMethod
    global Recommendation getLevel (ContactWrapper input)
    { /*implementation*/ }
  • C. @InvocableMethod
    global static ListRecommendation getLevel(List<ContactWrapper> input)
    { /*implementation*/ }
  • D. @InvocableMethod
    global static List<List<Recommendation>> getLevel(List<ContactWrapper> input)
    { /*implementation*/ }

Answer: D

 

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

  • A. Use SOQL and the Tooling API
  • B. Use the code Coverage Setup page
  • C. Use the Flow properties page.
  • D. Use the Apex testresult class

Answer: A

 

NEW QUESTION 100
Which standard field is required when creating a new contact record?

  • A. LastName
  • B. Name
  • C. AccountId
  • D. FirstName

Answer: A

 

NEW QUESTION 101
The Salesforce Administrator created a custom picklist field, Account_status_c, on the a Account object. This picklist has possible values of Inactive'' and Active?
As part of a new business process, management wants to ensure an opportunity record is created only for Accounts marked as "Active". A developer is asked to implement this business requirement.
Which two automation tools should be used to fulfill the business need?
Choose 2 answers

  • A. Process Builder
  • B. Workflow Rules
  • C. Salesforce Flow
  • D. Approval Process

Answer: A,C

 

NEW QUESTION 102
Developer needs to automatically populate the Reports To field in a Contact record based on the values of the related Account and Department fields in the Contact record. Which type of trigger would the developer create? Choose 2 answers

  • A. After update
  • B. Before update
  • C. After insert
  • D. Before insert

Answer: B,D

 

NEW QUESTION 103
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

  • A. Use the @Readonly annotation and the with sharing keyword on the class.
  • B. Use variable binding and replace the dynamic query with a static SOQL.
  • C. Use a regular expression on the parameter to remove special characters.
  • D. Use the escapeSingleQuote method to sanitize the parameter before its use.

Answer: B,D

 

NEW QUESTION 104
Universal container wants a list button to display a visualforce page that allows users to edit multiple records which visualforce feature supports this requirement.

Answer:

Explanation:
Recordsetvar page attribute

 

NEW QUESTION 105
Which annotation exposes an Apex class as a RESTful web service?

  • A. @Remote Action
  • B. @AuraEnabled
  • C. @Httplnvocable
  • D. @RestResource

Answer: B

 

NEW QUESTION 106
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 a SOQL FOR loop, to chunk the result set in batches of 200 records.
  • B. Use WHERE clauses on the SOQL query to reduce the number of records retrieved.
  • C. Use visual keyword when declaring the retrieve variable.
  • D. Use the FOR UPDATE option on the SOQL query to lock down the records retrieved.

Answer: A,C

 

NEW QUESTION 107
A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?

  • A. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.
  • B. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.
  • C. A visualforce page that calculates the total number of hours for a timecard and displays it on the page.
  • D. A Process Builder process that updates a field on the timecard entry is created.

Answer: A

 

NEW QUESTION 108
What features are available when writing apex test classes?(Choose 2 Answers)

  • A. The ability to select error types to ignore in the developer console.
  • B. The ability to select testing data using csv files stored in the system.
  • C. The ability to set and modify the CreatedDate field in apex tests.
  • D. The ability to set breakpoints to freeze the execution at a given point.
  • E. The ability to write assertions to test after a @future method.

Answer: B,C

 

NEW QUESTION 109
......


Certification Path

There is no prerequisite for this exam.


Who should take the PDI Exam

Salesforce Certified Platform Developer I certification is an internationally-recognized validation that identifies persons who earn it as possessing skilled as a Salesforce Certified Platform Developer I. If a candidate wants significant improvement in career growth needs enhanced knowledge, skills, and talents. The Salesforce PDI Exam provides proof of this advanced knowledge and skill. If a candidate has knowledge of associated technologies and skills that are required to pass the Salesforce PDI Exam then he should take this exam.

 

100% Free PDI Files For passing the exam Quickly: https://www.examtorrent.com/PDI-valid-vce-dumps.html

PDI Dumps Questions Study Exam Guide : https://drive.google.com/open?id=17RAjQrWi3IUBvDXsn4nu1X1jwGAxqpJm