[May-2023] Use Real PDI Dumps - 100% Free PDI Exam Dumps [Q50-Q70]

Share

[May-2023] Use Real PDI Dumps - 100% Free PDI Exam Dumps

PDI PDF Dumps Exam Questions – Valid PDI Dumps


The Salesforce PDI (Platform Developer I) Certification Exam is a great way to validate your skills as a Salesforce developer. This certification is designed for developers who have experience building custom applications on the Salesforce platform. The exam covers a broad range of topics including Apex, Visualforce, data modeling, and more.


The Salesforce PDI Certification Exam is a multiple-choice exam that consists of 60 questions. Candidates have 105 minutes to complete the exam and must score at least 65% to pass. The exam is available in several languages, including English, Spanish, French, German, Japanese, and Portuguese.


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.

 

NEW QUESTION # 50
Universal Containers requires Service Representatives to update all Cases at least one every three days. To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?

  • A. Workflow rule
  • B. Process Builder
  • C. Formula field
  • D. Scheduled Apex Class

Answer: C


NEW QUESTION # 51
Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?

  • A. <apex:page lightningStyleSheets="true">
  • B. <apex:page>
  • C. <apex:commandButton styleClass="slds-vf-button_brand" value="Refresh the Page">
  • D. apex:actionStatus

Answer: A


NEW QUESTION # 52
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?

  • A. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
  • B. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
  • C. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
  • D. ApexPages.currentPage() .getParameters() .get('url_param')

Answer: C


NEW QUESTION # 53
The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record. What would a developer do to meet this requirement?

  • A. Create a Workflow rule on the Opportunity object that updates a field on the parent Account.
  • B. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field.
  • C. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities.
  • D. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field.

Answer: B


NEW QUESTION # 54
On which object can an administrator create a roll-up summary field?

  • A. Any object that is on the parent side of a lookup relationship.
  • B. Any object that is on the master side of a master-detail relationship.
  • C. Any object that is on the detail side of a master-detail relationship.
  • D. Any object that is on the child side of a lookup relationship.

Answer: B


NEW QUESTION # 55
How many level of child records can be returned in a single SOQL query from one parent object

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

Answer: C


NEW QUESTION # 56
Which three options can be accomplished with formula fields? (Choose three.)

  • A. Return and display a field value from another object using the VLOOKUP function.
  • B. Generate a link using the HYPERLINK function to a specific record.
  • C. Display the previous value for a field using the PRIORVALUE function.
  • D. Determine if a datetime field value has passed using the NOW function.
  • E. Determine which of three different images to display using the IF function.

Answer: B,D,E


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

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

Answer: C


NEW QUESTION # 58
A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current user'sprofile and display this on a Visualforce Page?

  • A. {!$Setup.Url_Settings__C.URL__c}
  • B. {!$Setup.Url_Settings__C.[$Profile.Id].URL__c}
  • C. {!$Setup.Url_Settings__C.[Profile.Id].URL__c}
  • D. {!$Setup.Url_Settings__C.Instance[Profile.Id].URL__c}

Answer: A


NEW QUESTION # 59
Which aspect of Apex programming is limited due to multitenancy?

  • A. The number of methods in an Apex Class
  • B. The number of records returned from database queries
  • C. The number of active Apex classes
  • D. The number of records processed in a loop

Answer: B


NEW QUESTION # 60
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 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 WHERE clauses on the SOQL query to reduce the number of records retrieved.

Answer: A,C


NEW QUESTION # 61
A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debtAmount' should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers

  • A. Use the final keyword and assign its value in the class constructor.
  • B. Use the static keyword and assign its value in the class constructor.
  • C. Use the static keyword and assign its value in a static initializer.
  • D. Use the final keyword and assign its value when declaring the variable.

Answer: A,D


NEW QUESTION # 62
An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use.
What is the correct definition of a Lightning Web component property that uses the getAccounts method?

  • A. Option D
  • B. Option A
  • C. Option C
  • D. Option B

Answer: B


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

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

Answer: D

Explanation:
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 # 64
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 a regular expression on the parameter to remove special characters.
  • B. Use the @Readonly annotation and the with sharing keyword on the class.
  • C. Use variable binding and replace the dynamic query with a static SOQL.
  • D. Use the escapeSingleQuote method to sanitize the parameter before its use.

Answer: C,D


NEW QUESTION # 65
Which two characteristics are true for Aura component events? Choose 2 answers

  • A. Depending on the current propagation phase, calling event. Stoppropagation () may not stop the event propagation.
  • B. By default, containers can handle events thrown by components they contain.
  • C. The event propagates to every owner in the containment hierarchy.
  • D. If a container component needs to handle a component event, add a includeFacets" true" attribute to its handler.

Answer: A,C


NEW QUESTION # 66
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: public class customCtrlr{ private Account theAccount; public String actType; public customCtrlr() { theAccount =[SELECT Id, Type FROM Account WHERE Id =
:apexPages.currentPage().getParameters().get('id')]; actType = theAccount.Type; } } Visualforce page snippet:
The Account Type is {!actType} The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is property referenced on the Visualforce page, what should the developer do to correct the problem?

  • A. Add a getter method for the actType attribute.
  • B. Change theAccount attribute to public.
  • C. Add with sharing to the custom controller.
  • D. ConverttheAccount.Type to a String.

Answer: A

Explanation:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm


NEW QUESTION # 67
A developer created these three Rollup Summary fields in the custom object, Project_ct,

The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.
Which should the developer use to Implement the business requirement in order to minimize maintenance overhead?

  • A. Apex Trigger
  • B. Process Builder
  • C. Record-triggered Flow
  • D. Formula field

Answer: D


NEW QUESTION # 68
What are two uses for External IDs? (Choose two.)

  • A. To prevent an import from creating duplicate records using Upsert
  • B. To create relationships between records imported from an external system.
  • C. To identify the sObject type in Salesforce
  • D. To create a record in a development environment with the same Salesforce ID as in another environment

Answer: A,B


NEW QUESTION # 69
Refer to the following Apex code:

What is the value of x when it is written to the debug log?

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

Answer: A


NEW QUESTION # 70
......

Ultimate PDI Guide to Prepare Free Latest Salesforce Practice Tests Dumps: https://torrentpdf.exam4tests.com/PDI-pdf-braindumps.html