PDI Training & Certification Get Latest Salesforce PDI Updated on Dec 22, 2023
Certification Training for PDI Exam Dumps Test Engine
NEW QUESTION # 10
A developer created a Lightning web component called statusComponent to be inserted into the Account record page.
Which two things should the developer do to make the component available?
- A. Add <isExposed> true</isExposed> to the statusComponent.js-meta ml file.
- B. Add<target> Lightning_RecordPage </target> to the statusComponent.js file.
- C. Add <target> lighting _RecordPage </target> to the statusComponent.js-meta ml file.
- D. Add < masterLabel>Account</master Label> to the statusComponent.js-meta ml file.
Answer: A,C
NEW QUESTION # 11
What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.
Which approach should the developer use to be sure that the Apex class is working according tospecification?
- A. Run the code in an Execute Anonymous block n the Deceloper Consider.
- B. Include a savepoint and Database,rollback.
- C. Include a try/catch block to the Apex class.
- D. Create a test class to execute the business logic and run the test in the Developer Console.
Answer: D
NEW QUESTION # 12
A developer of Universal Containers is tasked with implementing a new Salesforce application that must be able to by their company's Salesforce administrator.
Which three should be considered for building out the business logic layer of the application? Choose 3 answers
- A. Scheduled Jobs
- B. validation Rules
- C. Process Builder
- D. Workflows
- E. Invocable Actions
Answer: B,C,D
NEW QUESTION # 13
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers
- A. The Apex governor limits might be higher due to the asynchronous nature of the transaction.
- B. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction,
- C. The Apex governor limits are relaxed while calling the constructor of the Apex class.
- D. The apex governor limits are reset for each iteration of the execute() method.
Answer: C,D
NEW QUESTION # 14
What declarative method helps ensure quality data? Choose 3 answers
- A. Validation rules
- B. Page layouts
- C. Exception handling
- D. Lookup filters
- E. Workflow alerts
Answer: A,B,D
NEW QUESTION # 15
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?
- A. Account0.Phone=333-8781, Account1.Phone=333-8780
- B. Account0.Phone=333-8780, Account1.Phone=333-8781
- C. Account0.Phone=888-1515, Account1.Phone=999-2525
- D. Account0.Phone=888-1515, Account1.Phone=999-1515
Answer: B
NEW QUESTION # 16
A developer wants to override a button using Visualforce on an object.
What is the requirement?
- A. The standardController attribute must be set to the object.
- B. The object record must be instantiated in a controller or extension.
- C. The action attribute must be set to a controller method.
- D. The controller or extension must have a PageReference method.
Answer: A
NEW QUESTION # 17
Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products?
Choose 2 answers
- A. Workflow Rule
- B. Flow Builder
- C. Process Builder
- D. Approval Process
Answer: B,C
NEW QUESTION # 18
When loading data into an operation, what can a developer do to match records to update existing records?
(Choose 2)
- A. Match an external Id Text field to a column in the imported file.
- B. Match an auto-generated Number field to a column in the imported file.
- C. Match the Name field to a column in the imported file.
- D. Match the Id field to a column in the imported file.
Answer: A,D
NEW QUESTION # 19
AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object.
The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations.
What should a developer add to fulfill this requirement?
- A. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c
- B. Order_shipment_Group_c object and master-detail field on order_shipment_Group_c
- C. Order_shipment_Group_c object and master-detail field on order_c
- D. Order_shipment_Group_c object and master-detail field on order_Line_c
Answer: A
NEW QUESTION # 20
What is a benefit of using a trigger framework?
- A. Increases trigger governor limits
- B. Simplifies addition of context-specific logic
- C. Reduces trigger execution time
- D. Allows functional code to be tested b
Answer: C
NEW QUESTION # 21
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. Change the function signature to be private static.
- B. Decorate the server-side method with (static=false).
- C. A Decorate the server-side method with (static=true).
- D. Add static to the server-side method signature.
Answer: C
NEW QUESTION # 22
Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry:
When the code execution, which two events occur as a result of the Apex transaction?
When the code executes, which two events occur as a result of the Apex transaction?
Choose 2 answers
- A. The Apex transaction fails with the following message. "SObject row was retrieved via SOQL without querying the requested field Account.Is.Tech__c''.
- B. If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DHL governor limit.
- C. If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit
- D. The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.
Answer: A,D
NEW QUESTION # 23
Which two are best practices when it comes to component and application event handling? (Choose two.)
- A. Reuse the event logic in a component bundle, by putting the logic in the helper.
- B. Handle low-level events in the event handler and re-fire them as higher-level events.
- C. Try to use application events as opposed to component events.
- D. Use component events to communicate actions that should be handled at the application level.
Answer: A,B
NEW QUESTION # 24
The account object has a custom percent field, rating, defined with a length of 2 with 0 decimal places. An account record has the value of 50% in its rating field and is processed in the apex code below after being retrieved from the database with SOQL public void processaccount(){ decimal acctscore = acc.rating__c *
100; } what is the value of acctscore after this code executes?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
NEW QUESTION # 25
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 expression on the parameter to remove special characters.
- B. Use the escapeSingleQuote method to sanitize the parameter before its use. (Missed)
- C. Use the @Readonly annotation and the with sharing keyword on the class.
- D. Use variable binding and replace the dynamic query with a static SOQL. (Missed)
Answer: A,C
NEW QUESTION # 26
Which salesforce org has a complete duplicate copy of the production org including data and configuration?
- A. Full Sandbox
- B. Production
- C. Partial Copy Sandbox
- D. Developer Pro Sandbox
Answer: A
NEW QUESTION # 27
The following Apex method is part of the ContactService class that is called from a trigger: public static void setBusinessUnitToEMEA(Contact thisContact){ thisContact.Business_Unit__c = "EMEA" ; update thisContact; } How should the developer modify the code to ensure best practice are met?
- A. Public static void setBusinessUnitToEMEA(Contact thisContact){
List<Contact> contacts = new List<Contact>();
contacts.add(thisContact.Business_Unit__c ='EMEA');
update contacts;
} - B. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
for(ContactthisContact : contacts) {
thisContact.Business_Unit__c = 'EMEA' ;
}
update contacts;
} - C. Public void setBusinessUnitToEMEA(List<Contact> contatcs){
contacts[0].Business_Unit__c = 'EMEA' ;
update contacts[0];
} - D. Publicstatic void setBusinessUnitToEMEA(List<Contact> contacts){
for(Contact thisContact : contacts){
thisContact.Business_Unit__c = 'EMEA' ;
update contacts[0];
}
}
Answer: A
NEW QUESTION # 28
Which two are phases in the Salesforce Application Event propagation framework? Choose
2 answers
- A. Bubble
- B. Default
Answer: A,B
NEW QUESTION # 29
Which action may cause triggers to fire?
- A. Cascading delete operations
- B. Renaming or replacing a picklist entry
- C. Changing a user's default division when the transfer division option is checked
- D. Updates to Feed Items
Answer: D
NEW QUESTION # 30
What are three ways for a developer to execute tests in an org? Choose 3.
- A. Salesforce DX
- B. Bulk API
- C. Setup Menu
- D. Metadata API.
- E. Tooling API
Answer: A,C,E
Explanation:
Explanation
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_testing.htm
https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apextestsuite
NEW QUESTION # 31
Considering the following code snippet:
When the code executes a DML exception is thrown.
How should the developer modify the code to ensure exceptions are handled gracefully?
- A. Implement Change Data Capture
- B. Implement a try/catch block for the DML.
- C. Remove null items from the list if Accounts.
- D. Implement the upsert DML statement.
Answer: B
NEW QUESTION # 32
......
Salesforce PDI exam is an important certification for developers who want to work on the Salesforce platform. It is a prerequisite for many other certifications, such as Platform App Builder, Platform Developer II and Technical Architect. PDI exam consists of 60 multiple-choice questions, which must be completed within two hours. Candidates must score at least 65% to pass the exam.
Salesforce is a leading customer relationship management (CRM) platform that helps businesses manage their customer data and interactions. The Salesforce PDI (Platform Developer I) Certification Exam is designed to test a developer's knowledge and skills in building custom applications using the Salesforce platform. PDI exam is intended for developers who have experience building applications on the Salesforce platform and are looking to validate their skills and knowledge.
Step by Step Guide to Prepare for PDI Exam: https://www.practicevce.com/Salesforce/PDI-practice-exam-dumps.html
Salesforce PDI PDI Real Exam Questions and Answers FREE Updated: https://drive.google.com/open?id=18EzDqk3EPFqemoR8uofD0TxaxwMWrtb_