Salesforce Certified Platform Developer - Certified Platform Developer Exam
Page: 2 / 12
Total 60 questions
Question #6 (Topic: Exam A)
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 in stock
Which relationship implementation supports these requirements on its own?
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 in stock
Which relationship implementation supports these requirements on its own?
A. A Line Item has a re-parentable lookup field to Order.
B. Order has a re-parentable lookup field to Line Item.
C. Order has a re-parentable master-detail field to Line Item.
D. Line Item has a re-parentable master-detail field to Order.
Answer: D
Question #7 (Topic: Exam A)
Refer to the following Apex code:

What is the value of x when it is written to the debug log?

What is the value of x when it is written to the debug log?
A. 0
B. 1
C. 3
D. 2
Answer: D
Question #8 (Topic: Exam A)
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 injection? (Choose two.)
A. String query = ‘SELECT Id FROM Account WHERE Name LIKE \‘%’ + name ‘%\’’;
List<Account> results = Database.query(query); B. String query = ‘SELECT Id FROM Account WHERE Name LIKE \‘%’ + name.noQuotes() + ‘%\’’;
List<Account> results = Database.query(query); C. String query = ‘SELECT Id FROM Account WHERE Name LIKE \‘%’+
String.escapeSingleQuotes(name) + ‘%\’’;
List<Account> results = Database.query(query); D. String query = ‘%’ + name + ‘%’
List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
List<Account> results = Database.query(query); B. String query = ‘SELECT Id FROM Account WHERE Name LIKE \‘%’ + name.noQuotes() + ‘%\’’;
List<Account> results = Database.query(query); C. String query = ‘SELECT Id FROM Account WHERE Name LIKE \‘%’+
String.escapeSingleQuotes(name) + ‘%\’’;
List<Account> results = Database.query(query); D. String query = ‘%’ + name + ‘%’
List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
Answer: CD
Question #9 (Topic: Exam A)
A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.
What should the developer use to satisfy this requirement in the most efficient manner?
What should the developer use to satisfy this requirement in the most efficient manner?
A. Screen-based flow
B. Approval process
C. Apex trigger
D. Lightning Component
Answer: A
Question #10 (Topic: Exam A)
What are two characteristics related to formulas? (Choose two.)
A. Formulas can reference themselves.
B. Formulas are calculated at runtime and not stored in the database.
C. Formulas can reference values in related objects.
D. Fields that are used in a formula field can be deleted or edited without editing the formula.
Answer: BC