
[Jan-2022] PDI Pre-Exam Practice Tests | Exam Questions and Answers for Salesforce PDI Study Guide
Platform Developer I (PDI) Certification Sample Questions
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.
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. BraindumpsVCE 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.
NEW QUESTION 85
A developer has the following class and trigger code public class insurancerates{ public static final decimal smokercharge = 0.01; } trigger contacttrigger on contact (before insert){ insurancerates rates = new insurancerates(); decimal basecost=xxx; } Which code segment should a developer insert at the xxx to set the basecost variable to the value of the class variable smokercharge?
- A. Insurancerates.smokercharge
- B. Rates.getsmokercharge()
- C. Contacttrigger.insurancerates.smokercharge
- D. Rates.smokercharge
Answer: A
NEW QUESTION 86
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
- A. String
- B. ENUM
- C. External ID
- D. sObject
Answer: A,B
NEW QUESTION 87
Which salesforce org has a complete duplicate copy of the production org including data and configuration?
- A. Production
- B. Developer Pro Sandbox
- C. Partial Copy Sandbox
- D. Full Sandbox
Answer: D
NEW QUESTION 88
How would a developer change the field type of a custom field on the Account object from string to an integer?
- A. Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.
- 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. Make the changes in the developer console, and then the change will automatically be reflected in the Apex code.
Answer: A
NEW QUESTION 89
A user selects a value from a multi-select picklist. How is this selected value represented in Apex?
- A. As a string ending with a comma
- B. As a list< String > with one element
- C. As a set< string > with one element
- D. As a string
Answer: D
NEW QUESTION 90
A developer executes the following query in Apex to retrieve a list of contacts for each account:
List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)
- A. SOQL query row limit exception due to the number of accounts.
- B. CPU limit exception due to the complexity of the query.
- C. SOQL query limit exception due to the number of contacts.
- D. SOQL query row limit exception due to the number of contacts.
Answer: A,C
NEW QUESTION 91
Which two characteristics are true for Aura component events?
- A. The event propagates to every owner In the containment hierarchy.
- B. Calling event, stopPropagation ( ) may or may not stop the event propagation based of the current propagation phase.
- C. If a container component needs to handle a component event, add a handleFacets='' attribute to Its handler.
- D. Only parent components that create subcomponents (either in their markup or programmatically) can handle events.
Answer: A,B
NEW QUESTION 92
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers
- A. String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
- B. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE
:qryNAme'; List queryResults = Database.query(qryString); - C. String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
- D. String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
Answer: C,D
NEW QUESTION 93
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? Choose three answers.
- A. Controller
- B. StandardController
- C. Action
- D. Extensions
Answer: B,C,D
NEW QUESTION 94
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 stock.
Which relationship implementation supports these requirements?
- A. Order has a Lookup field to Line Item and there can be many Line Items per Order.
- B. Line Item has a Lookup field to Order and there can be many Line Items per Order
- C. Order has a Master-Detail field to Line Item and there can be many Line Items per Order.
- D. Line Items has a Master-Detail field to Order and the Master can be re-parented.
Answer: D
NEW QUESTION 95
Which exception type cannot be caught?
- A. CalloutException
- B. NoAccessException
- C. Custom Exception
- D. LimitException
Answer: D
NEW QUESTION 96
What are two ways for a developer to execute tests in an org?
- A. Matadata API
- B. Bulk API
- C. Tooling API
- D. Developer console
Answer: C,D
NEW QUESTION 97
Which two examples above use the system. debug statements to correctly display the results from the SOQL aggregate queries? Choose 2 answers
- A. Example 2
- B. Example 1
- C. Example 4
- D. Example 3
Answer: A,D
NEW QUESTION 98
A developer wants to override a button using Visualforce on an object.
What is the requirement?
- A. The object record must be instantiated in a controller or extension.
- B. The controller or extension must have a PageReference method.
- C. The standardController attribute must be set to the object.
- D. The action attribute must be set to a controller method.
Answer: C
NEW QUESTION 99
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 on the majority of the CampaignMember records and the sum is displayed using that currency.
- B. 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.
- C. 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.
- D. 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.
Answer: C
NEW QUESTION 100
Assuming that 'name; is a String obtained by an <apex:inputText> tag on a Visualforce page. Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers
- A. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + String.escapeSingleQuotes(name) + '%\''; List<Account> results = Database.query(query);
- B. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name + '%\''; List<Account> results = Database.query(query);
- C. String query = '%' + name + '%'; List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
- D. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name.noQuotes() + '%\''; List<Account> results = Database.query(query);
Answer: A,C
NEW QUESTION 101
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 102
Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?
- A. Use a CEILING formula on each of the Latest availability date fields.
- B. Use a Max Roll-Up Summary field on the Latest availability date fields.
- C. Use a LATEST formula on each of the latest availability date fields.
- D. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.
Answer: B
NEW QUESTION 103
What is a capability of formula fields? (Choose 3)
- A. Generate a link using the HYPERLINK function to a specific record in a legacy system.
- B. Determine if a datetime field has passed using the NOW function.
- C. Return and display a field value from another object using the VLOOKUP function.
- D. Determine which of three different images to display using the IF function.
- E. Display the previous values for a field using the PRIORVALUE function.
Answer: A,B,D
NEW QUESTION 104
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. 0
- B. 1
- C. 2
- D. 3
Answer: C
NEW QUESTION 105
What is considered the primary purpose for creating Apex tests?
- A. To ensure every use case of the application is covered by a test
- B. To confirm every trigger in executed at least once
- C. To confirm all classes and triggers compile successfully
- D. To guarantee at least 50% of code is covered by unit tests before it is deployed
Answer: A
NEW QUESTION 106
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class?
- A. Run the tests using the 'Run All Tests' method.
- B. Remove the falling test methods from the test class.
- C. Increase the test class coverage on the helper class
- D. Create a test class and methods to cover the Apex trigger
Answer: D
NEW QUESTION 107
......
Salesforce Exam Practice Test To Gain Brilliante Result: https://www.braindumpsvce.com/PDI_exam-dumps-torrent.html
Tested Material Used To PDI: https://drive.google.com/open?id=1EUKjXQ-00_P7FfEyE3noMlMptiibChaT