Which type of exception will this trigger cause?
A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed: Which type of exception will this trigger cause?A . A null reference exceptionB . A compile time exceptionC . A DML...
Which two environments meet the requirements for testing?
A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for...
Which two methods should the developer use to avoid this error?
A developer encounters APEX heap limit errors in a trigger. Which two methods should the developer use to avoid this error? (Choose two.)A . Use the transient keyword when declaring variables.B . Query and store fields from the related object in a collection when updating related objects.C . Remove or...
Which set of roll-up types are available when creating a roll-up summary field?
Which set of roll-up types are available when creating a roll-up summary field?A . COUNT, SUM, MIN, MAXB . AVERAGE, SUM, MIN, MAXC . SUM, MIN, MAXD . AVRAGE, COUNT, SUM, MIN, MAXView AnswerAnswer: A
Which step should the developer take to resolve the issue and properly test the exception?
A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. Which step should the developer take to resolve the issue and properly test the exception?A . Use try/catch within the unit test...
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: List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)A . CPU limit exception due to the complexity of...
How should a developer prevent a recursive trigger?
How should a developer prevent a recursive trigger?A . Use a “one trigger per object” pattern.B . Use a static Boolean variable.C . Use a trigger handler.D . Use a private Boolean variable.View AnswerAnswer: D
What is an accurate statement about variable scope? (Choose 3)
What is an accurate statement about variable scope? (Choose 3)A . Parallel blocks can use the same variable name.B . A variable can be defined at any point in a block.C . Sub-blocks cannot reuse a parent block's variable name.D . Sub-blocks can reuse a parent block's variable name if...
How are the selected values represented in Apex?
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?A . As a List<String> with each value as an element in the listB . As a String with each value separated by a commaC . As a String with...
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name?
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)A . Make an outbound...