Which two exceptions may occur when it executes?
A developer executes the following query in Apex to retrieve a list of contacts for each account: Which two exceptions may occur when it executes? Choose two answers A. SOQL query limit exception due to the number of queries B. CPU limit exception due to the complexity of the query C. SOQL query row limit […]
How should a developer create a new custom exception class?
How should a developer create a new custom exception class? A. CustomException ex = new (CustomException) Exception (); B. public class CustomException extends Exception {} C. (Exception) CustomException ex = new Exception (); D. public class CustomException implements Exception {}
Which approach should be used to provide test data for a test class?
Which approach should be used to provide test data for a test class? A. Use a test data factory class to create test data. B. Query for existing records in the database. C. Access data in @TestVisible class variables. D. Execute anonymous code blocks that create data.
What is the requirement?
A developer wants to override a button using Visualforce on an object. What is the requirement? A. The action attribute must be set to a controller method. B. The standardController attribute must be set to the object. C. The object record must be instantiated in a controller or extension. D. The controller or extension must […]
For which three items can a trace flag be configured? Choose 3 answers.
For which three items can a trace flag be configured? Choose 3 answers. A. Apex Class B. Process Builder C. Apex Trigger D. Visualforce E. User
What is a benefit of using an after insert trigger over using a before insert trigger?
What is a benefit of using an after insert trigger over using a before insert trigger? A. An after insert trigger allows a developer to modify fields in the new record without a query. B. An after insert trigger allows a developer to insert other objects that reference the new record. C. An after insert […]
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast e
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject? A. Use a try-catch construct to cast the sObject into one of the three sObject types. B. Use the getSObjectName method on the […]
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
A developer needs to join data received from integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action will allow the developer to relate […]
Which two actions should a consultant recommend to meet these requirements?
Universal Containers uses a seven-step selling methodology. Each sales stage corresponds with a step in the methodology. The first stage is a preliminary qualification step, and opportunities in this stage should NOT contribute to the forecast. Which two actions should a consultant recommend to meet these requirements? Choose two answers. A. Instruct sales users to […]
Which two actions does the owner of the ABC Corporation account have the right to take?
Universal Containers has set the organization-wide default to public read-only for accounts, contacts, and opportunities. Activities are set to be controlled by the parent. The ABC Corporation account is owned by a sales user whose profile grants create, read, edit, and delete access to accounts, contacts, and opportunities. Which two actions does the owner of […]