Salesforce Certified Platform Developer - Certified Platform Developer Exam

Question #1 (Topic: Exam A)
A custom object Trainer_c has a lookup field to another object Gym_c.
Which SOQL query will get the record for the Viridian Gym and all it’s trainers?
A. SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name = ‘Viridian City Gym’ B. SELECT Id, (SELECT Id FROM Trainers_c) FROM Gym_c WHERE Name = ‘Viridian City Gym’ C. SELECT ID FROM Trainer_c WHERE Gym_r.Name = ‘Viridian City Gym’ D. SELECT Id, (SELECT Id FROM Trainers_r) FROM Gym_c WHERE Name = ‘Viridian City Gym’
Answer: D
Question #2 (Topic: Exam A)
Given the following Apex statement:
Account myAccount = [SELECT Id, Name FROM Account];
What occurs when more than one Account is retuned by the SOQL query?
A. The query fails and an error is written to the debug log. B. An unhandled exception is thrown and the code terminates. C. The variable, myAccount, is automatically cast to the List data type. D. The first Account returned is assigned to myAccount.
Answer: B
Question #3 (Topic: Exam A)
The OrderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet:
public class without sharing OrderHelper(
//code implementation
}
A developer needs to create a constant named DELIVERY_MULTIPLIER with a value of 4.15. The value of the constant should not change at any time in the code.
How should the developer declare the DELIVERY_MULTIPLIER constant to meet the business objectives?
A. A decimal DELIVERY_MULTIPLIER = 4.15; B. static final decimal DELIVERY_MULTIPLIER = 4.15; C. constant decimal DELIVERY_MULTIPLIER = 4.15; D. static decimal DELIVERY_MULTIPLIER = 4.15;
Answer: B
Question #4 (Topic: Exam A)
Which two characteristics are true for Lightning Web Component custom events? (Choose two.)
A. A Data may be passed in the payload of a custom event using a property called detail. B. By default a custom event only propagates to its immediate container. C. By default a custom event only propagates to its immediate container and to its immediate child component. D. Data may be passed in the payload of a custom event using @wire decorated properties.
Answer: AB
Question #5 (Topic: Exam A)
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
A. @RemoteAction (cacheable=true) B. @AuraEnabled C. @AuraEnabled (cacheable=true) D. @RemoteAction
Answer: C
Download Exam
Page: 1 / 12
Total 60 questions