PDI Premium Bundle

PDI Premium Bundle

Platform Developer I (PDI) Certification Exam

4.5 
(50235 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Salesforce PDI Free Practice Questions

Exambible PDI Questions are updated and all PDI answers are verified by experts. Once you have completely prepared with our PDI exam prep kits you will be ready for the real PDI exam without a problem. We have Latest Salesforce PDI dumps study guide. PASSED PDI First attempt! Here What I Did.

Check PDI free dumps before getting the full version:

NEW QUESTION 1

How are debug levels adjusted In the Developer Console?

  • A. Under the Settings menu > Trace Settings..., click Change DebugLevel
  • B. Under the Edit menu, dick Change DebugLevels
  • C. Under the Logs tab, click Change in the DebugLevels panel
  • D. Under the Debug menu > Change Log Levels..., click Add/Change in the DebugLevel Action column

Answer: D

NEW QUESTION 2

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

  • A. Create a test class that provides coverage of the Visualforce page.
  • B. Create a test page that provides coverage of the Visualforce page.
  • C. Create a test page that provides coverage of the custom controller.
  • D. Create a test class that provides coverage of the custom controller.

Answer: D

NEW QUESTION 3

From which two locations can a developer determine the overall code coverage for a sandbox? Choose two answers

  • A. The Apex classes setup page
  • B. The Test Suite Run panel the Developer Console
  • C. The Test Tab of the Developer Console
  • D. The Apex Test Execution page

Answer: AC

NEW QUESTION 4

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 5

How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)

  • A. By using a helper class that can be invoked from multiple triggers
  • B. By using Maps to hold data from query results
  • C. By using the Database class to handle DML transactions
  • D. By performing DML transactions on a list of sObjects.

Answer: BD

NEW QUESTION 6

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 : includeScript
  • D. Apex : stylesheet

Answer: D

NEW QUESTION 7

Which user can edit a record after it has been locked for approval? (Choose 2)

  • A. Any user with a higher role in the hierarchy
  • B. A user who is assigned as the current approver
  • C. Any user who approved the record previously
  • D. An administrator

Answer: BD

NEW QUESTION 8

A developer created an Apex trigger using the Developer Console and now wants to debug codeHow can the developer accomplish this in the Developer Console?

  • A. Select the Override Log Triggers checkbox for the trigger
  • B. Add the user name in the Log Inspector.
  • C. Open the Progress tab in the Developer Console.
  • D. Open the logs tab in the Developer Console.

Answer: D

NEW QUESTION 9

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 10

Given:
Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]); What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)

  • A. for (ID accountID : accountMap.keySet()) {…}
  • B. for (Account accountRecord : accountMap.values()) {…}
  • C. for (Integer i=0; I < accountMap.size(); i++) {…}
  • D. for (ID accountID : accountMap) {…}
  • E. for (Account accountRecord : accountMap.keySet()) {…}

Answer: ABC

NEW QUESTION 11

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 12

Requirements state that a child record be to deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema Builder to support these requirements?

  • A. Lookup Relathionship from to child to the parent
  • B. Child relationship
  • C. Master-Detail relationship
  • D. Lookup Relathionship from to parent to the child

Answer: C

NEW QUESTION 13

In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value_c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value_c on Campaign.

  • A. The values in Campaignmember.Estimated_value_c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record.
  • B. The values in CampaignMember.Estimated_value_c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency.
  • C. The values in CampaignMember.Estimated_value_c are summed up and the resulting Total_estimated_value_c field is displayed as a numeric field on the Campaign record.
  • D. The values In CampaignMember.Estimated_value_c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record.

Answer: A

NEW QUESTION 14

A developer wants to handle the click event for a lightning:button component. The on click attribute for the component references a JavaScript function in which resource in the component bundle?

  • A. Helper.js
  • B. Handler.js
  • C. Controller.js
  • D. Renderer.js

Answer: C

NEW QUESTION 15

To which primitive data type in Apex is a currency field atomically assigned?

  • A. Integer
  • B. Decimal
  • C. Double
  • D. Currency

Answer: B

NEW QUESTION 16

The sales team at universal container would like to see a visual indicator appear on both account and opportunity page layout to alert salespeople when an account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without having to write custom code?

  • A. Workflow rule
  • B. Formula field
  • C. Roll-up summary field
  • D. Quick action

Answer: B

NEW QUESTION 17

Which statement results in an Apex compiler error?

  • A. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
  • B. Date d1 = Date.Today(), d2 = Date.ValueOf(‘2021-01-01’);
  • C. Integer a=5, b=6, c, d = 7;
  • D. List<string> s = List<string>{‘a’,‘b’,‘c’);

Answer: D

NEW QUESTION 18

A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? (Choose 2)

  • A. Download a Managed Package from the AppExhange that provides a custom Visualforce page to modify.
  • B. Copy the standard page and then make a new Visualforce page for Product data entry.
  • C. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.
  • D. Create a new Visualforce page and an Apex controller to provide Product data entry.

Answer: CD

NEW QUESTION 19

In Lightning component framework, which resource can be used to fire events? Choose 2 answers.

  • A. Third-party Javascript code
  • B. Javascript controller actions
  • C. Visualforce controller actions
  • D. Third-party web service code

Answer: AB

NEW QUESTION 20

A developer uses a test setup method to create an account named 'test'. The first method deletes the account record. What must be done in the second test method to use the account?

  • A. Use select id from account where name='test'
  • B. Restore the account using an undelete statement
  • C. Call the test setup method at the start of the test
  • D. The account cannot be used in the second method

Answer: A

NEW QUESTION 21

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 22

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 Visual Workflow.
  • B. Use a validation rule.
  • C. Use the Process Automation Settings.
  • D. Use a Trigger.

Answer: BD

NEW QUESTION 23

A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent?

  • A. After Committing to database.
  • B. Before Trigger execution.
  • C. After Trigger execution.
  • D. Before Committing to database.

Answer: A

NEW QUESTION 24

What is a valid statement about Apex classes and interfaces? Choose 2 answers:

  • A. The default modifier for a class is private.
  • B. Exception classes must end with the word exception.
  • C. A class can have multiple levels of inner classes.
  • D. The default modifier for an interface is private.

Answer: BD

NEW QUESTION 25

Why would a developer consider using a custom controller over a controller extension?

  • A. To increase the SOQL query governor limits.
  • B. To implement all of the logic for a page and bypass default Salesforce functionality
  • C. To leverage built-in functionality of a standard controller
  • D. To enforce user sharing settings and permissions

Answer: B

NEW QUESTION 26

A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)

  • A. ANT Migration Tool
  • B. Workbench Metadata Retrieval
  • C. Salesforce UI Apex Test Execution
  • D. Developer Console

Answer: CD

NEW QUESTION 27

A developer is asked to set a picklist field to ‘Monitor’ on any new Leads owned by a subnet of Users. How should the developer implement this request?

  • A. Create an after insert Lead trigger.
  • B. Create a before insert Lead trigger.
  • C. Create a Lead Workflow Rule Field Update.
  • D. Create a Lead formula field.

Answer: C

NEW QUESTION 28

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 29
......

P.S. Certshared now are offering 100% pass ensure PDI dumps! All PDI exam questions have been updated with correct answers: https://www.certshared.com/exam/PDI/ (373 New Questions)


START PDI EXAM