Top Salesforce PDI Courses Online - Updated [Oct-2021]
PDI Practice Dumps - Verified By Exam4Free Updated 207 Questions
What is the duration of the PDI Exam
- Number of Questions: 60
- Length of Examination: 110 minutes
- Format: Multiple choices, multiple answers
- Passing Score: 65%
Certification Path
There is no prerequisite for this exam.
NEW QUESTION 85
An org has an existing Visual Flow that creates an Opportunity with an Update records element. A developer must update the Visual Flow also created a Contact and store the created Contact's ID on the Opportunity.
- A. Add a new Quick Action (of type create) element.
- B. Add a new Get Records element.
- C. Add a new Create records element.
- D. Add a new Update records element
Answer: C
NEW QUESTION 86
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. Ant Migration Tool
- B. SFDX CLI
- C. Developer Console
- D. Change Sets
Answer: A,B
NEW QUESTION 87
Which option would a developer use to display the Accounts created in the current week and the number of related Contacts using a debug statement in Apex?
- A. For(Account acc:[SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = CURRENT_WEEK]) { List cons = acc.Account.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'); }
- B. For(Account acc: [SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = CURRENT_WEEK]){ List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'); }
- C. For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'; }
- D. For(Account acc: [SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = THIS_WEEK]){ List cons = acc.Account.Contacts; System.debug(acc.Name + ' has ' + cons.size() +
'Contacts' }
Answer: C
NEW QUESTION 88
Which statement should a developer avoid using inside procedural loops? (Choose 2)
- A. If(o.accountId == a.id)
- B. Update contactList;
- C. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );
- D. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];
Answer: B,D
NEW QUESTION 89
What are two ways that a controller and extension can be specified on a Visualforce page?
Choose 2 answers
- A. a@pex:page=Account extends="myControllerExtension"
- B. apex:page controllers="Account, myControllerExtension"
- C. apex:page controller="Account" extensions="myControllerExtension""
- D. Qo apex:page standardController="Account" extensions="myControllerExtension"
Answer: C,D
NEW QUESTION 90
An org has different Apex Classes that provide Account -related functionality.After a new validation rule is added to the object, many of the test methods fail.What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?Choose 2 answers:
- A. Create a method that performs a callout for a valid Account record, and call this method from within test methods.
- B. Create a method that queries for valid Account records, and call this method from within test methods.
- C. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.
- D. Create a method that creates valid Account records, and call this method from within test methods.
Answer: C,D
NEW QUESTION 91
How many levels of child records can be returned in a single SOQL query from one parent object?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION 92
A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing.
Which two environments meet the requirements for testing? (Choose two.)
- A. Developer Pro Sandbox
- B. Developer Sandbox
- C. Partial Sandbox
- D. Full Sandbox
- E. Developer Edition
Answer: C,D
NEW QUESTION 93
Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?
- A. <apex:page lightningStyleSheets="true">
- B. <apex:commandButton styleClass="slds-vf-button_brand" value="Refresh the Page">
- C. <apex:page>
- D. apex:actionStatus
Answer: A
NEW QUESTION 94
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. Before Trigger execution.
- B. Before Committing to database.
- C. After Committing to database.
- D. After Trigger execution.
Answer: C
NEW QUESTION 95
A Licensed_Professional__c custom object exist in the system with two Master-Detail fields for the following objects: Certification__c and Contact. Users with the "Certification Representative" role can access the Certification records they own and view the related Licensed Professionals records, however users with the
"Salesforce representative" role report they cannot view any Licensed professional records even though they own the associated Contact record. What are two likely causes of users in the "Sales Representative" role not being able to access the Licensed Professional records? Choose 2 answers
- A. The organization has a private sharing model for Certification__c, and Certification__c is the primary relationship in the Licensed_Professional__c object.
- B. The organization recently modified the Sales representative role to restrict Read/Write access to Licensed_Professional__c
- C. The organization's sharing rules for Licensed_Professional__c have not finished their recalculation process.
- D. The organization has a private sharing model for Certification__c, and Contact is the primary relationship in the Licensed_Professional__c object
Answer: A,B
NEW QUESTION 96
What are two considerations for custom Apex Exception classes? Choose 2 answers.
- A. Custom Exception class names must end with the word 'Exception'.
- B. Custom Exceptions cannot be extended by other Exception classes.
- C. Custom Exception classes must extend the base Exception class.
- D. Constructor for custom Exceptions can only accept string values as arguments.
Answer: A,C
NEW QUESTION 97
As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows.
Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)
- A. Use WHERE clauses on the SOQL query to reduce the number of records retrieved.
- B. Use the FOR UPDATE option on the SOQL query to lock down the records retrieved.
- C. Use visual keyword when declaring the retrieve variable.
- D. Use a SOQL FOR loop, to chunk the result set in batches of 200 records.
Answer: C,D
NEW QUESTION 98
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.
What should the developer use to override the Contact's Edit button and provide this functionality?
- A. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience
- B. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience
- C. A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience
- D. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience
Answer: B
NEW QUESTION 99
What is the result of the following code?
- A. The record will be created and a message will be in the debug log.
- B. The record will be created and no error will be reported.
- C. The record will not be created and no error will be reported.
- D. The record will not be created and a exception will be thrown.
Answer: C
NEW QUESTION 100
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 validation rule.
- B. Create a required comments field.
- C. Create a required Visualforce component.
- D. Create a formula field.
Answer: A
NEW QUESTION 101
Which two statements are true about Apex code executed in Anonymous Blocks? Choose 2 answers
- A. The code runs in system mode having access to all objects and fields.
- B. The code runs with the permissions of the user specified in the runAs() statement
- C. Successful DML operations are automatically committed
- D. The code runs with the permissions of the logged user.
- E. All DML operations are automatically rolled back
Answer: C,D
NEW QUESTION 102
What should be used to create scratch orgs?
- A. Sandbox refresh
- B. Salesforce CLI
- C. Developer Console
- D. Workbench
Answer: B
NEW QUESTION 103
To which primitive data type in Apex is a currency field atomically assigned?
- A. Double
- B. Integer
- C. Currency
- D. Decimal
Answer: D
NEW QUESTION 104
A custom object Trainer_c has a lookup field to another custom object Gym___c.
Which SOQL query will get the record for the Viridian City gym and it's trainers?
- A. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'
- B. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'
- C. SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'
- D. SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'
Answer: B
NEW QUESTION 105
which statement is true regarding execution order when triggers are associated to the same object and event?
- A. Triggers are executed alphabetically by trigger name.
- B. Trigger execution order cannot be guaranteed.
- C. executed In the order they are modified.
- D. Triggers are executed in the order they are created.
Answer: B
NEW QUESTION 106
What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, which then results in hitting a governor limit?
- A. All changes are saved in the first Apex class.
- B. All changes before a savepoint are saved.
- C. Any changes up to the error are rolled back.
- D. Any changes up to the error are saved.
Answer: C
NEW QUESTION 107
......
Who should take the PDI Exam
Salesforce Certified Platform Developer I certification is an internationally-recognized validation that identifies persons who earn it as possessing skilled as a Salesforce Certified Platform Developer I. If a candidate wants significant improvement in career growth needs enhanced knowledge, skills, and talents. The Salesforce PDI Exam provides proof of this advanced knowledge and skill. If a candidate has knowledge of associated technologies and skills that are required to pass the Salesforce PDI Exam then he should take this exam.
New (2021) Salesforce PDI Exam Dumps: https://www.exam4free.com/PDI-valid-dumps.html
Updated PDI Exam Dumps - PDF Questions and Testing Engine: https://drive.google.com/open?id=1POykxu9w4yMMy2mKNXegToz0IVl1FQYU
