High Quality Salesforce PDI Exam Online

Proper study guides for Refresh Salesforce Platform Developer I (PDI) certified begins with Salesforce PDI preparation products which designed to deliver the Download PDI questions by making you pass the PDI test at your first time. Try the free PDI demo right now.

Online PDI free questions and answers of New Version:

NEW QUESTION 1

Given the code below, what can be done so that recordcount can be accessed by a test class, but not by a non-test class? Public class mycontroller{ private integer recordcount; }

  • A. Add a seealldata annotation to the test class
  • B. Add the testvisible annotation to recordcount
  • C. Change recordcount from private to public
  • D. Add the testvisible annotation to the mycontroller class

Answer: B

NEW QUESTION 2

Which two statement can a developer use to throw a custom exception of type MissingFieldValueException?Choose 2 answers

  • A. Throw (MissingFieldValueException,'Problem occurred');
  • B. Throw new MissingFieldValueException('Problem occurred');
  • C. Throw new MissingFieldValueException();
  • D. Throw Exception(new MissingFieldValueException());

Answer: BC

NEW QUESTION 3

The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?
What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record? Select one of the following:

  • A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
  • B. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.
  • C. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
  • D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.

Answer: B

NEW QUESTION 4

A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?

  • A. The Account should have a Master-Detail relationship to the Invoice.
  • B. The Invoice should have a Master-Detail relationship to the Account
  • C. The Account should have a Lookup relationship to the Invoice
  • D. The Invoice should have a Lookup relationship to the Account Previous

Answer: B

NEW QUESTION 5

A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for
the user who executes the code in the Salesforce organization?

  • A. Apex Triggers
  • B. HTTP Callouts
  • C. Apex Controllers
  • D. Anonymous Blocks

Answer: D

NEW QUESTION 6

What is the easiest way to verify a user before showing them sensitive content?

  • A. Sending the user a SMS message with a passcode.
  • B. Calling the generateVerificationUrl method in apex.
  • C. Sending the user an Email message with a passcode.
  • D. Calling the Session.forcedLoginUrl method in apex.

Answer: B

NEW QUESTION 7

What are the supported content sources for custom buttons and links? (Choose 2 Answers)

  • A. VisualForce Page.
  • B. Static Resource.
  • C. URL.
  • D. Chatter File.
  • E. Lightning Page.

Answer: AC

NEW QUESTION 8

What is the result of the following code block ?
Integer x = 1;Integer Y = 0;While(x < 10){Y++;}

  • A. An error occurs
  • B. Y = 9
  • C. Y = 10
  • D. X = 0

Answer: A

NEW QUESTION 9

A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword. The page will be used of by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private. Which additional set of stops should the developer take?

  • A. Create one Profile, two Permission Sets, and one Role.
  • B. Create one Profile, one Permission Set, and one Role.
  • C. Create one Profile, one Permission Set, and two Roles.
  • D. Create two Profiles, one Permission Set, and one Role.

Answer: C

NEW QUESTION 10

Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement?Choose 2 answers

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

Answer: AB

NEW QUESTION 11

A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?

  • A. No changes are made to the data.
  • B. Both the Apex Trigger and Workflow Rule are fired only once.
  • C. The Workflow Rule is fired more than once.
  • D. The Apex Trigger is fired more than once.

Answer: D

NEW QUESTION 12

When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers.

  • A. A process builder on the Account object
  • B. An Apex trigger on the Account object.
  • C. A cross-object formula field on the Account object
  • D. A workflow rule on the Account object

Answer: AB

NEW QUESTION 13

A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement?

  • A. Create a required Visualforce component.
  • B. Create a formula field.
  • C. Create a required comments field.
  • D. Create a validation rule.

Answer: D

NEW QUESTION 14

What is a benefit of using an after insert trigger over using a before insert trigger?

  • A. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
  • B. An after insert trigger allows a developer to insert other objects that reference the new record.
  • C. An after insert trigger allows a developer to make a callout to an external service.
  • D. An after insert trigger allows a developer to modify fields in the new record without a query.

Answer: B

NEW QUESTION 15

Given the code block: Integer x; For(x=0;x<10; x+=2) { If(x==8) break; If(x==10) break; } System.debug(x);
Which value will the system debug statement display?

  • A. 2
  • B. 10
  • C. 8
  • D. 4

Answer: C

NEW QUESTION 16

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 <apx:page> tag of the visualforce page to enable this functionality?
A,. Standardcontroller

  • A. Extensions
  • B. AcTion
  • C. Readonly
  • D. Renderas

Answer: ABC

NEW QUESTION 17

From which 2 locations can a developer determine the overall code coverage for a sandbox?

  • A. The test suite run panel of the developer console
  • B. The apex classes setup page
  • C. The apex test execution page
  • D. The tests tab of the developer console

Answer: BD

NEW QUESTION 18

A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension.
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?

  • A. controller=“Case” and extensions=“myControllerExtension”
  • B. extensions=“myControllerExtension”
  • C. controller=“myControllerExtension”
  • D. standardController=“Case” and extensions=“myControllerExtension”

Answer: D

NEW QUESTION 19

Which statement about change set deployments is accurate? (Choose 3)

  • A. They use an all or none deployment model.
  • B. They require a deployment connection.
  • C. They ca be used to transfer Contact records.
  • D. They can be used to deploy custom settings data.
  • E. They can be used only between related organizations.

Answer: ABE

NEW QUESTION 20

In order to override a standard action with a visualforce page, which attribute must be defined in the
<apex:page> tag?

  • A. Pagereference
  • B. Override
  • C. Standardcontroller
  • D. Controller

Answer: C

NEW QUESTION 21

What is a capability of formula fields? (Choose 3)

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

Answer: ADE

NEW QUESTION 22

How can a developer set up a debug log on a specific user?

  • A. It is not possible to setup debug logs for users other than yourself.
  • B. Ask the user for access to their account credentials, log in as the user and debug the issue.
  • C. Create Apex code that logs code actions into a custom object.
  • D. Set up a trace flag for the user, and define a logging level and time period for the trace.

Answer: D

NEW QUESTION 23

A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired. What can a developer do to accomplish this task?

  • A. Create an escalation rule to the hiring manager.
  • B. Create an auto response rule to the candidate.
  • C. Create a Process Builder with an outbound message action.
  • D. Create a workflow rule with an outbound message action.

Answer: D

NEW QUESTION 24

Which code segment can be used to control when the dowork() method is called?

  • A. For (Trigger.isRunning t: Trigger.new) { dowork(); }
  • B. If(Trigger.isRunning) dowork();
  • C. For (Trigger.isInsert t: Trigger.new) { dowork(); }
  • D. If(Trigger.isInsert) dowork();

Answer: D

NEW QUESTION 25

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

  • A. 1
  • B. 3
  • C. 5
  • D. 7

Answer: A

NEW QUESTION 26
......

Recommend!! Get the Full PDI dumps in VCE and PDF From Allfreedumps.com, Welcome to Download: https://www.allfreedumps.com/PDI-dumps.html (New 373 Q&As Version)