
[2021] PDI by Salesforce PDI Actual Free Exam Practice Test
Free Salesforce PDI PDI Exam Question
How to study the PDI Exam
There are two main types of resources for preparation of certification exams first there are the study guides and the books that are detailed and suitable for building knowledge from ground up then there are video tutorial and lectures that can somehow ease the pain of through study and are comparatively less boring for some candidates yet these demand time and concentration from the learner. Smart Candidates who want to build a solid foundation in all exam topics and related technologies usually combine video lectures with study guides to reap the benefits of both but there is one crucial preparation tool as often overlooked by most candidates the practice exams. Practice exams are built to make students comfortable with the real exam environment. Statistics have shown that most students fail not due to that preparation but due to exam anxiety the fear of the unknown. ITCertMagic expert team recommends you to prepare some notes on these topics along with it don’t forget to practice Salesforce PDI dumps which been written by our expert team, Both these will help you a lot to clear this exam with good marks.
How to book the PDI Exam
These are following steps for registering the PDI Exam. Step 1: Visit to Webassessor Exam Registration Step 2: Signup/Login to Webassessor Step 3: Select the onsite proctored or online proctored delivery method of Certification Exam Step 4: Select Date, time and confirm with a payment method
For more information, please click here.
Platform Developer I (PDI) Exam
Platform Developer I (PDI) Exam is related to Salesforce Certified Platform Developer I Certification. This exam validates the Candidate knowledge and skills in building custom applications on the Lightning Platform. It also deals with the ability of the Lightning Platform to develop custom business logic and interfaces to extend Salesforce using Apex and Visualforce.
NEW QUESTION 61
What are three ways for a developer to execute tests in an org? Choose 3.
- A. Salesforce DX
- B. Tooling API
- C. Setup Menu
- D. Metadata API.
- E. Bulk API
Answer: A,B,C
Explanation:
Explanation
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_testing.htmhttps://developer
NEW QUESTION 62
In which order does SalesForce execute events upon saving a record?
- A. Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit
- B. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
- C. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
- D. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit
Answer: B
NEW QUESTION 63
Which three statements are true regarding the @istest annotation? Choose 3 answers
- A. A method annotated @istest (seealldata=true) in a class annotated @istest (seealladata=false) has access to all org data
- B. Products and pricebooks are visible in a test even if a class is annotated @istest (seealldata=false)
- C. A class containing test methods counts toward the apex code liit regardless of any @istest annotation (Missed
- D. Profiles are visible in a test even if a class is annotated @istest (seealldata=false)
- E. A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data
Answer: C,D,E
NEW QUESTION 64
Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?
- A. Event Monitoring Log
- B. Calendar Events
- C. Asynchronous Data Capture Events
- D. Developer Log
Answer: A
NEW QUESTION 65
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 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 master side of a master-detail relationship.
Answer: D
NEW QUESTION 66
What is the minimum log level needed to see user-generated debug statements?
- A. DEBUG
- B. INFO
- C. FINE
- D. WARN
Answer: A
NEW QUESTION 67
Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient.
The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?
- A. Add a Lookup field on the Global Address object to the Account object
- B. Add a Lookup field on the Account object to the Global Address object.
- C. Add a Master-Detail field on the Global Address object to the Account object.
- D. Add a Master-Detail field on the Account object to the Global Address object
Answer: D
NEW QUESTION 68
Which statement about change set deployments is accurate? (Choose 3)
- A. They ca be used to transfer Contact records.
- B. They use an all or none deployment model.
- C. They require a deployment connection.
- D. They can be used to deploy custom settings data.
- E. They can be used only between related organizations.
Answer: B,C,E
NEW QUESTION 69
A platform developer needs to implement a declarative solution that will display the most recent closed won date for all opportunity records associated with an account. Which field is required to achieve this declaratively?
- A. Roll-up summary field on the account object
- B. Cross-object formula field on the opportunity object
- C. Roll-up summary field on the opportunity object
- D. Cross-object formula field on the account object
Answer: A
NEW QUESTION 70
A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.
Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose three.)
- A. readOnly
- B. extensions
- C. standardController
- D. renderAs
- E. action
Answer: C,D,E
NEW QUESTION 71
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 variable binding and replace the dynamic query with a static SOQL.
- C. Use the @Readonly annotation and the with sharing keyword on the class.
- D. Use the escapeSingleQuote method to sanitize the parameter before its use.
Answer: B,D
NEW QUESTION 72
A developer is asked to create a Visualforce page that displays some Account fields as well as fields configured on the page layout for related Contacts.
How should the developer implement this request?
- A. Use the <apex:include> tag.
- B. Use the <apex:relatedList> tag.
- C. Create a controller extension.
- D. Add a method to the standard controller.
Answer: D
NEW QUESTION 73
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)
- A. Use SOQL to query case records in the org to get all values for the Status picklist field.
- B. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().
- C. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
- D. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
Answer: B,C
NEW QUESTION 74
Which salesforce org has a complete duplicate copy of the production org including data and configuration?
- A. Developer Pro Sandbox
- B. Full Sandbox
- C. Production
- D. Partial Copy Sandbox
Answer: B
NEW QUESTION 75
From which 2 locations can a developer determine the overall code coverage for a sandbox?
- A. The apex classes setup page
- B. The apex test execution page
- C. The test suite run panel of the developer console
- D. The tests tab of the developer console
Answer: A,D
NEW QUESTION 76
A developer created a helper class with a method that can be called from Visualforce pages, web services, triggers, and of even anonymous code. When the method is called from a trigger, the developer needs to execute logic that should not be executed If the method Is called from anywhere else. How can the developer determine if the code Is executed in a trigger context?
- A. Check if System.executionContext =='Trigger'.
- B. Check if Trigger.newMap !=null.
- C. Check if Trigger.isExecuting ==true
- D. Use the executeOnTrigger annotation on the method definition.
Answer: C
NEW QUESTION 77
Which three methods help ensure quality data?
- A. Adding a validation rule
- B. Handling an exception in Apex
- C. Create a lookup filter
- D. Adding an error to a field in before trigger
- E. Sending an email alert using a workflow rule
Answer: A,C,E
NEW QUESTION 78
In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context? Choose 2 answers
- A. Before insert
- B. Before update
- C. After insert
- D. After update
Answer: A,B
NEW QUESTION 79
What is an accurate constructor for a custom controller named "MyController"?
- A. public MyController (List objects) { accounts = (List ) objects; }
- B. public MyController (sObject obj) { account = (Account) obj; }
- C. public MyController () { account = new Account () ; }
- D. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }
Answer: C
NEW QUESTION 80
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
- A. Make an outbound web services call to the SOAP API.
- B. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
- C. Hardcode the ID as a constant in an Apex class.
- D. Execute a SOQL query on the RecordType object.
Answer: B,D
NEW QUESTION 81
In the following example, which sharing context will myMethod execute when it is invoked?
- A. Sharing rules will not be enforced for the running user.
- B. Sharing rules Ml be enforced for the running user.
- C. Sharing rules Ail be enforced by the instantiating class
- D. Sharingrules will be inherited from the calling context.
Answer: D
NEW QUESTION 82
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
- A. Create a process with Process Builder.
- B. Create a Visualforce page.
- C. Create a Lightning Component.
- D. Create a workflow rule with a field update.
Answer: A
NEW QUESTION 83
A workflow updates the value of a custom field for an existing Account.
How can a developer access the updated custom field value from a trigger?
- A. By writing, a Before Update trigger and accessing the field value from Trigger.new
- B. By writing an After Insert trigger and accessing the field value from Trigger.old
- C. By writing an After Update trigger and accessing the field value from Trigger.old
- D. By writing a Before Insert trigger and accessing the field value from Trigger.new
Answer: A
NEW QUESTION 84
A developer declared a class as follow.
public class wysiwyg { // Properties and methods including DML }
Which invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce Organization?
- A. A user on an external system that has an API call into Salesforce that invokes a method in this class
- B. A Visualforce page with an Apex controller that invokes a method in this class
- C. A developer using the Developer Console that invokes a method in this class from the execute anonymous window
- D. An Apex Trigger that invokes a helper method in this class
Answer: C
NEW QUESTION 85
......
Salesforce PDI Actual Questions and Braindumps: https://www.itcertmagic.com/Salesforce/real-PDI-exam-prep-dumps.html
PDI dumps & Salesforce PDI sure practice dumps: https://drive.google.com/open?id=1Tvu8hgApo_Dgn3P43d1pKXHaiJ3ZBuY5