Salesforce Certified Platform Developer - Plat-Dev-201 Exam Practice Test
Which three code lines are required to create a Lightning component on a Visualforce page?
Choose 3 answers
Choose 3 answers
Correct Answer: B,C,E
Vote an answer
What are three characteristics of change set deployments? Choose 3 answers
Correct Answer: B,D,E
Vote an answer
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds
"Decommissioned" as ipicklist value for the Statu3__c custom field within the Container__c object.
Which two approaches could a developer use to enforce only Container records with a status of
"Decommissioned" can be deleted? Choose 2 answers
"Decommissioned" as ipicklist value for the Statu3__c custom field within the Container__c object.
Which two approaches could a developer use to enforce only Container records with a status of
"Decommissioned" can be deleted? Choose 2 answers
Correct Answer: A,D
Vote an answer
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<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); 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?
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?
Correct Answer: A
Vote an answer
Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers
Correct Answer: B,D,E
Vote an answer
What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers
Correct Answer: A,C,E
Vote an answer
Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c.
The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related.
What is the most efficient way to ensure that the Total job_o field kept up to data?
The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related.
What is the most efficient way to ensure that the Total job_o field kept up to data?
Correct Answer: A
Vote an answer
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers
Correct Answer: A,C
Vote an answer
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?
Correct Answer: C
Vote an answer
A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?
How should this be accomplished?
Correct Answer: C
Vote an answer
A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.
Which security consideration should the developer be aware of?
Which security consideration should the developer be aware of?
Correct Answer: D
Vote an answer
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?
Correct Answer: B
Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
What does the Lightning Component framework provide to developers?
Correct Answer: A
Vote an answer