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

Free PDI Demo Online For Salesforce Certifitcation:

NEW QUESTION 1

What actions types should be configured to display a custom success message?

  • A. Update a record.
  • B. Post a feed item.
  • C. Delete a record.
  • D. Close a case.

Answer: A

NEW QUESTION 2

What is the advantage of Salesforce Lightning?

  • A. Uses service side for better handling
  • B. Option 4
  • C. Pre-defined components to give Standard Look and Feel
  • D. Option 3

Answer: C

NEW QUESTION 3

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 4

A developer executes the following code in the Developer Console:
List<Account> fList = new List <Account> ();For(integer i= 1; I <= 200; i++){fList.add(new Account ( Name
= ‘Universal Account ‘ + i));}Insert fList;List <Account> sList = new List<Account>();For (integer I = 201; I
<= 20000; i ++){sList.add(new Account (Name = ‘Universal Account ‘ + i));}Insert sList;How many accounts are created in the Salesforce organization ?

  • A. 20000
  • B. 200
  • C. 1000

Answer: B

NEW QUESTION 5

Which tool can deploy destructive changes to Apex classes in production?

  • A. Workbench
  • B. Developer Console
  • C. Salesforce Setup
  • D. Change Sets

Answer: A

NEW QUESTION 6

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 7

What is considered the primary purpose for creating Apex tests?

  • A. To confirm all classes and triggers compile successfully
  • B. To ensure every use case of the application is covered by a test
  • C. To confirm every trigger in executed at least once
  • D. To guarantee at least 50% of code is covered by unit tests before it is deployed

Answer: B

NEW QUESTION 8

What are three ways for a developer to execute tests in an org? Choose 3.

  • A. Bulk API
  • B. ToolingAPI
  • C. Metadata API
  • D. Setup Menu
  • E. Developer Console

Answer: BDE

NEW QUESTION 9

A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? Choose 3 answers

  • A. Use a custom controller
  • B. Use a custom controller with extensions
  • C. Use a standard controller with extensions
  • D. Do not specify a controller
  • E. Use a standard controller

Answer: ACE

NEW QUESTION 10

Which type of code represents the view in the MVC architecture on the Force.com platform?

  • A. An apex method in an extension that returns a list of cases
  • B. An apex method that executes SOQL to retrieve a list of cases
  • C. A visualforce page that dysplays information about case records by iterating over a list of cases
  • D. Validation rules for a page layout that includes a related list of cases

Answer: C

NEW QUESTION 11

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 12

A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse?

  • A. One -to -Many
  • B. Lookup
  • C. Master -Detail
  • D. Parent -Child

Answer: B

NEW QUESTION 13

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 14

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 are being made to the account during an unrelated parallel save operation
  • C. Changes to opportunities are causing cross-object workflow field updates to be made on the account
  • D. Changes to opportunities are causing roll-up summary fields to update on the account

Answer: C

NEW QUESTION 15

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 16

Which two number expressions evaluate correctly? (Choose two.)

  • A. Double d = 3.14159;
  • B. Integer I = 3.14159;
  • C. Decimal d = 3.14159;
  • D. Long l = 3.14159;

Answer: AC

NEW QUESTION 17

A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown.
Which step should the developer take to resolve the issue and properly test the exception?

  • A. Use try/catch within the unit test to catch the exception.
  • B. Use the finally bloc within the unit test to populate the exception.
  • C. Use the database methods with all or none set to FALSE.
  • D. Use Test.isRunningTest() within the custom controller.

Answer: A

NEW QUESTION 18

What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?

  • A. The StandardSetController to support related lists for pagination.
  • B. The Opportunity StandardController for pre -built functionality.
  • C. A callback constructor to reference the StandardController.
  • D. A constructor that initializes a private Opportunity variable.

Answer: B

NEW QUESTION 19

hat are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers

  • A. Create a visualforce page that uses a controller class that is declared without sharing
  • B. Type code into the developer console and execute it directly
  • C. Type code into the execute anonymous tab in the force.com IDE and click execute
  • D. Use the SOAP API to make a call to execute anonymous code
  • E. Create and execute a test method that does not specify a runas() call

Answer: BCD

NEW QUESTION 20

What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a visualforce controller?

  • A. Map
  • B. List
  • C. Enum
  • D. String[]

Answer: A

NEW QUESTION 21

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 22

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 23

What is a benefit of using a trigger framework?

  • A. Simplifies addition of context-specific logic
  • B. Increases trigger governor limits
  • C. Allows functional code to be tested b
  • D. Reduces trigger execution time

Answer: D

NEW QUESTION 24

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 25

Which two platform features allow for the use of unsupported languages? Choose 2 answers

  • A. Heroku Acm
  • B. App.json
  • C. Buildpacks
  • D. Docker

Answer: CD

NEW QUESTION 26

On which object can an administrator create a roll-up summary field?

  • A. Any object that is on the master side of a master-detail relationship.
  • B. Any object that is on the parent side of a lookup 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: A

NEW QUESTION 27

Which statement is true about a hierarchical relationship as it pertains to user records?

  • A. It uses a junction object and lookup relationships to allow many user records to be related to many other user records
  • B. It uses a junction object and master-detail relationship to allow many user records to be related to many other user records
  • C. It uses a master-detail relationship to allow one user record to be related to another user record
  • D. It uses a special lookup relationship to allow one user record to be related to another user record

Answer: D

NEW QUESTION 28

How would a developer change the field type of a custom field on the Account object from string to an integer?

  • A. Make the changes in the developer console, and then the change will automatically be reflected in the Apex code.
  • B. Mate the change in the declarative UI, then update the field type to an integer field in the Apex code.
  • C. Make the change in the declarative UI, an then the change will automatically be reflected in the Apex code.
  • D. Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.

Answer: D

NEW QUESTION 29

A developer needs to apply the look and feel of lightning experience to a number of applications built using a custom third-party javascript framework and rendered in visualforce pages which option achieves this?

  • A. Set the attribute enablelightning to "true" in the definition
  • B. Replace the third-party javascript library with native visualforce tags
  • C. Configure the user interface options in the setup menu to enable legacy mode for visualforce
  • D. Incorporate salesforce lightning design system css style sheets into the javascript applications

Answer: D

NEW QUESTION 30
......

Thanks for reading the newest PDI exam dumps! We recommend you to try the PREMIUM Dumps-files.com PDI dumps in VCE and PDF here: https://www.dumps-files.com/files/PDI/ (373 Q&As Dumps)