Which two will restrict the records correctly?
A developer must create an Apex class, contactcontroller, that a Lightning component can use to search for Contact records. User of the Lightning component should only be able to search Contact records to which they have access. Which two will restrict the records correctly?A . public class ContactControllerB . public...
Which tool should be used to implement this requirement?
A developer has a requirement to create an Order When an Opportunity reaches a "Closed-Won" status. Which tool should be used to implement this requirement?A . Process BuilderB . Lightning ComponentC . LightningD . Apex triggerView AnswerAnswer: A
Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits?
A developer has to identify a method in en Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a SOQL statement to save the changes to the database. Which two techniques should the...
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two...
What does the Lightning Component framework provide to developers?
What does the Lightning Component framework provide to developers?A . Extended governor limits for applicationsB . Prebuilt component that can be reused.C . Templates to create custom components.D . Support for Classic and Lightning UIView AnswerAnswer: B
Which definition of the Apex method, to which the searchResults property is wired, should be used?
A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?A . @AuraEnabled(cacheable=true) public static List<Opportunity> search(String term) { /* implementation*/ }B . @AuraEnabled(cacheable=true) public List<Opportunity> search(String term) { /*implementation*/ }C...
What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?
What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?A . FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)B . FIND Universal Containers' IN CompanyName Fietds RETURNING lead{ld. name), accounted,...
Which automation tool meets these requirements?
A developer needs to implement the functionality for a service agent to gather multiple pieces of information from a customer in order to send a replacement credit card. Which automation tool meets these requirements?A . Flow BuilderView AnswerAnswer: A
which statement is true regarding execution order when triggers are associated to the same object and event?
which statement is true regarding execution order when triggers are associated to the same object and event?A . Trigger execution order cannot be guaranteed.B . executed In the order they are modified.C . Triggers are executed alphabetically by trigger name.D . Triggers are executed in the order they are created.View...
How many accounts will be inserted by the following block ofcode? for(Integer i = 0 ; i < 500; i++) { Account a = new Account(Name='New Account ' + i); insert a; }
How many accounts will be inserted by the following block ofcode? for(Integer i = 0 ; i < 500; i++) { Account a = new Account(Name='New Account ' + i); insert a; }A . 150B . 0C . 500D . 100View AnswerAnswer: B