PDI Actual Questions Answers PDF 100% Cover Real Exam Questions [Q61-Q82]

Share

PDI Actual Questions Answers PDF 100% Cover Real Exam Questions

PDI Exam questions and answers 


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 much PDI Exam Cost

The price of the Salesforce PDI Exam is $200 USD.


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 is the maximum number of SOQL queries used by the following code? List<Account> aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

NEW QUESTION 62
What is a benefit of using a trigger framework?

  • A. Allows functional code to be tested b
  • B. Simplifies addition of context-specific logic
  • C. Reduces trigger execution time
  • D. Increases trigger governor limits

Answer: C

 

NEW QUESTION 63
A developer has two custom controller extensions where each has a save() method.
Which save() method will be called for the following Visualforce page?
<apex:page standardController ="Account", extensions="ExtensionA, ExtensionB">
<apex:commandButton action ="{!save}" value="Save"/>
</apex:page>

  • A. Standard controller save()
  • B. Runtime error will be generated
  • C. ExtensionB save()
  • D. ExtensionA save()

Answer: B

 

NEW QUESTION 64
Requirements state that a child record be to deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema Builder to support these requirements?

  • A. Child relationship
  • B. Lookup Relathionship from to parent to the child
  • C. Master-Detail relationship
  • D. Lookup Relathionship from to child to the parent

Answer: C

 

NEW QUESTION 65
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

  • A. Map <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • B. List<List <sObject>> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • C. List <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
  • D. List<List < sObject>> searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like
    '%ACME%');

Answer: B

 

NEW QUESTION 66
A developer needs to write a method that searches for a phone number that could be on multiple object types.
Which method should the developer use to accomplish this task?

  • A. SOQL query on each object
  • B. SOQL Query that includes ALL ROWS
  • C. SOSL Query that includes ALL ROWS
  • D. SOSL query on each object

Answer: C

 

NEW QUESTION 67
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?

  • A. Use the Flow properties page.
  • B. Use SOQL and the Tooling API
  • C. Use the code Coverage Setup page
  • D. Use the Apex testresult class

Answer: B

 

NEW QUESTION 68
A sales manager wants to make sure that whenever an opportunity stage is changed to 'Closed Won', a new case will be of created for the support team to collect necessary information from the customer. How should a developer accomplish this?

  • A. Set up a validation rule on the Opportunity Stage.
  • B. Create a Process Builder to create the new case.
  • C. Create a lookup field to the Case object on the opportunity object.
  • D. Create a workflow rule to create the new case.

Answer: B

 

NEW QUESTION 69
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override. What is the correct implementation of the ShippingCalculator class?

  • A. Public abstract class ShippingCalculator {
    public virtual void calculate() { /*implementation*/ }
    }
  • B. Public abstract class ShippingCalculator {
    public override calculate() { /*implementation*/ }
    }
  • C. Public abstract class ShippingCalculator {
    public abstract calculate() { /*implementation*/ }
    }
  • D. Public abstract class ShippingCalculator {
    public void calculate() { /*implementation*/ }
    }

Answer: A

Explanation:
Explanation
the extending class can override the existing virtual methods by using the override keyword in the method definition. Overriding a virtual method allows you to provide a different implementation for an existing methodhttps://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_extending.htm

 

NEW QUESTION 70
Which three web technologies can be integrated into a Visualforce page? (Choose three.)

  • A. HTML
  • B. PHP
  • C. JavaScript
  • D. CSS
  • E. Java

Answer: A,D,E

 

NEW QUESTION 71
Which feature allows a developer to create test records for use in test classes?

  • A. Httpcalloutmocks
  • B. Documents
  • C. Webservicetests
  • D. Static resources

Answer: C

 

NEW QUESTION 72
Which two statements are true about Getter and Setter methods as they relate to Visualforce?

  • A. There is no guarantee for the order in which Getter methods are called.
  • B. Setter methods always have to be declared global.
  • C. A corresponding Setter method is required for each Getter method.
  • D. Getter methods pass values from a controller to a page.

Answer: C,D

 

NEW QUESTION 73
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?

  • A. As a String with each value separated by a semicolon
  • B. As a String with each value separated by a comma
  • C. As a List with each value as an element in the list Previous
  • D. As a Set with each value as an element in the set

Answer: A

 

NEW QUESTION 74
A developer considers the following snippet of code:

Based on this code, what is the value of x?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: B

 

NEW QUESTION 75
Which governor limit applies to all the code in an apex transaction?

  • A. Number of classes called
  • B. Number of new records created
  • C. Elapsed CPU time
  • D. Elapsed SOQL query time

Answer: C

 

NEW QUESTION 76
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 2 answers

  • A. Make an outbound web services call to the SOAP API
  • B. Hardcore the ID as a constant in an apex class
  • C. Execute a SOQL query on the recordtype object
  • D. Use the getrecordtypeinfosbydevelopername() method in the describesobjectresult class

Answer: C,D

 

NEW QUESTION 77
What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example?

  • A. Querying Accounts. Custom Exception Done.
  • B. Querying Accounts. Query Exception. Done
  • C. Querying Accounts. Custom Exception.
  • D. QueryingAccounts. Query Exception.

Answer: B

 

NEW QUESTION 78
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 79
A developer needs to confirm that a Contact trigger works correctly without changing the organization's data.
what should the developer do to test the Contact trigger?

  • A. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.
  • B. Use the Test menu on the Developer Console to run all test classes for the Contact trigger
  • C. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
  • D. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement

Answer: B

 

NEW QUESTION 80
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

  • A. for (Account theAccount : AccountList) {...}
  • B. for(AccountList) {...}
  • C. for (List L : AccountList) {...}
  • D. for (Integer i=0; i < AccountList.Size(); i++) {...}

Answer: A,D

 

NEW QUESTION 81
A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?

  • A. Create a Workflow rule to relate the Task to the Contact's Account.
  • B. Nothing. The Task cannot be related to an Account and a Contact.
  • C. Create an Account formula field that displays the Task information.
  • D. Nothing. The task is automatically displayed on the Account page.

Answer: D

 

NEW QUESTION 82
......

Dumps4PDF PDI  Exam Practice Test Questions : https://www.dumps4pdf.com/PDI-valid-braindumps.html

Pass PDI Exam Info and Free Practice Test : https://drive.google.com/open?id=1j6ZMdUvZ99gGV9AYrlpH_RaPMkOwF2t6