Free Salesforce PDI Exam Questions & Answer from Training Expert ExamPrepAway [Q56-Q74]

Share

Free Salesforce PDI Exam Questions and Answer from Training Expert ExamPrepAway

Top Salesforce PDI Courses Online


The Platform Developer I (PDI) certification exam is a multiple-choice exam that consists of 60 questions. PDI exam duration is 105 minutes, and you need to score at least 65% to pass the exam. PDI exam fee is $200, and you can take the exam online or at a testing center.


Salesforce PDI exam covers a wide range of topics, including Apex programming, Visualforce pages, SOQL, SOSL, data modeling, and more. It is a multiple-choice exam that consists of 60 questions, and the duration of the test is 105 minutes. To pass the exam, candidates must score at least 65%.


Salesforce PDI or Platform Developer I (PDI) certification is an entry-level certification that validates a candidate's knowledge and skills in developing custom applications on the Salesforce platform. Platform Developer I (PDI) certification is designed for individuals who have experience in programming and developing applications using Apex and Visualforce.

 

NEW QUESTION # 56
The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.
What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?

  • A. Create an after trigger on Lead.
  • B. Use a validation rule.
  • C. Use Lead Conversation field mapping.
  • D. Use a formula field.

Answer: B


NEW QUESTION # 57
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. Determine which of three different images to display using the IF function.
  • D. Determine if a datetime field value has passed using the NOW function.
  • E. Display the previous value for a field using the PRIORVALUE function.

Answer: B,C,D


NEW QUESTION # 58
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 situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)

  • 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: B,C


NEW QUESTION # 59
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 with sharing to the custom controller.
    https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm
  • B. Add a getter method for the actType attribute.
  • C. Change theAccount attribute to public.
  • D. Convert theAccount.Type to a String.

Answer: B


NEW QUESTION # 60
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 B
  • B. Option C
  • C. Option A
  • D. Option D

Answer: C


NEW QUESTION # 61
What are three considerations when using the @InvocableMethod annotation in Apex?
Choose 3 answers

  • A. A method using the @InvocableMethod annotation must define a return value.
  • B. A method using the @InvocableMethod annotation must be declared as static (Missed)
  • C. A method using the @InvocableMethod annotation can have multiple input parameters.
  • D. A method using the @InvocableMethod annotation can be declared as Public or Global. (Missed)
  • E. Only one method using the @InvocableMethod annotqation can be defined per Apex class. (Missed)

Answer: B,D,E


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

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

Answer: C


NEW QUESTION # 63
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 special lookup relationship to allow one user record to be related to another user record
  • C. It uses a junction object and master-detail relationship to allow many user records to be related to many other user records
  • D. It uses a master-detail relationship to allow one user record to be related to another user record

Answer: B


NEW QUESTION # 64
What is the result of the following Classes page?

  • A. Select and run the class on the Apex Test Execution page
  • B. View the Code Coverage column in the view on the Apex Classes page.
  • C. View the Class test Coverage tab on the Apex Class record.
  • D. view the overall Code Coverage panel of the tab in the Developer Console.

Answer: C


NEW QUESTION # 65
A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers

  • A. Developer Console
  • B. Change Sets
  • C. VS Code
  • D. SFDX CLI

Answer: C,D


NEW QUESTION # 66
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.Instance[Profile.Id].URL__c}
  • B. {!$Setup.Url_Settings__C.[Profile.Id].URL__c}
  • C. {!$Setup.Url_Settings__C.URL__c}
  • D. {!$Setup.Url_Settings__C.[$Profile.Id].URL__c}

Answer: C


NEW QUESTION # 67
A developer is asked to create a PDF quote document formatted using the company's branding guidelines, and automatically save it to the Opportunity record.
Which two ways should a developer create this functionality? (Choose two.)

  • A. Install an application from the AppExchange to generate documents.
  • B. Create a Visualforce page with custom styling.
  • C. Create a visual flow that implements the company's formatting.
  • D. Create an email template and use it in Process Builder.

Answer: A,B


NEW QUESTION # 68
Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

  • A. Upload the SVG as a static resource. (Missed)
  • B. Reference the import in the HTML template.
  • C. Import the static resource and provide a getter for it in JavaScript. (Missed)
  • D. Import the SVG as a content asset file.
  • E. Reference the getter in the HTML template. (Missed)

Answer: A,C,E


NEW QUESTION # 69
Which action can a developer perform in a before update trigger? (Choose 2)

  • A. Display a custom error message in the application interface.
  • B. Change field values using the Trigger.new context variable.
  • C. Delete the original object using a delete DML operation.
  • D. Update the original object using an update DML operation.

Answer: A,B


NEW QUESTION # 70
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator.
How can the developer resolve the error?

  • A. Decorate the server-side method with (static=false).
  • B. A Decorate the server-side method with (static=true).
  • C. Change the function signature to be private static.
  • D. Add static to the server-side method signature.

Answer: D


NEW QUESTION # 71
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the
<apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type.
The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?

  • A. Create multiple lists in the controller that represent the relevant accounts for each account type when the page loads, then reference the correct one dynamically on the pageBlockTable.
  • B. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
  • C. Add the Rendered={!Acct.type==selection} attribute to the pageBlockTable component
  • D. Create a component for each option and use a variable with hide parameter on the element.

Answer: B


NEW QUESTION # 72
A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?

  • A. Mark the field as Required on the object's page layout.
  • B. Set "Use the first value in the list as the default value" as True.
  • C. Set a validation rule to enforce a value is selected.
  • D. Mark the field as Required on the field definition.

Answer: A


NEW QUESTION # 73
A developer has the following requirements:
* Calculate the total amount on an Order.
* Calculate the line amount for each Line Item based on quantity selected and price.
* Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements on its own7

  • A. Order has a re-parentable lookup field to Line Item.
  • B. Order has a re-parentable master-detail field to Line Item.
  • C. Line Item has a re-parentable lookup field to Order.
  • D. Line Item has a re-parentable master-detail field to Order.

Answer: D


NEW QUESTION # 74
......

New (2023) Salesforce PDI Exam Dumps: https://www.examprepaway.com/Salesforce/braindumps.PDI.ete.file.html

PDI Practice Dumps - Verified By ExamPrepAway Updated 171 Questions: https://drive.google.com/open?id=1FHnkYx47H2Y4VZg88rvB8aoJrpotBGAt