Free Platform-Developer-I Exam Braindumps

Pass your Platform Developer I exam with these free Questions and Answers

Page 5 of 34
QUESTION 16

Refer to the following Apex code:
Platform-Developer-I dumps exhibit
What is the value of x when it is written to the debug log?

  1. A. 1
  2. B. 2
  3. C. 3

Correct Answer: C

QUESTION 17

Which three operations affect the number of times a trigger can fire? Choose 3 answers

  1. A. Process Flows
  2. B. Workflow Rules
  3. C. Criteria-based Sharing calculations
  4. D. Email messages
  5. E. Roll-Up Summary fields

Correct Answer: ABE

QUESTION 18

A developer Is Integrating with a legacy on-premise SQL database.
What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?

  1. A. Lookup field
  2. B. External ID field
  3. C. Formula field
  4. D. External Object

Correct Answer: B

QUESTION 19

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List getOpportunityProducts(Set opportunityIds){ List oppLineItems = new List(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } }
The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

  1. A. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
  2. B. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.
  3. C. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
  4. D. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.

Correct Answer: D

QUESTION 20

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/
} } Which is the correct implementation?

  1. A. Public class CreditcardPayment extends Payment {public override void makePayment(Decimal amount) { /*implementation*/ }}
  2. B. Public class CreditCardPayment implements Payment {public virtual void makePayment(Decimal amount) { /*implementation*/ }}
  3. C. Public class CreditCardPayment extends Payment {public virtual void makePayment(Decimal amount) { /*implementation*/ }}
  4. D. Public class CreditCardPayment implements Payment {public override void makePayment(Decimal amount) { /*Implementation*/ }}

Correct Answer: A

Page 5 of 34

Post your Comments and Discuss Salesforce Platform-Developer-I exam with other Community members: