Which two methods should a developer use to create this case?
When an Account’s custom picklist field called Customer Sentiment is changed to a value of “Confused”, a new related Case should automatically be created. Which two methods should a developer use to create this case? (Choose two.)A . Process BuilderB . Apex TriggerC . Custom ButtonD . Workflow RuleView AnswerAnswer:...
What should the developer consider when working with triggers?
A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?A . Developers must dictate the order of trigger execution.B . Trigger execution order is based on creation date and time.C . Unit tests must specify the trigger...
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 statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)
Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)A . The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.B . Test data is inserted once for all test methods in a class.C . Records created in the @testSetup method...
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...
What are three characteristics of static methods? (Choose three.)
What are three characteristics of static methods? (Choose three.)A . Initialized only when a class is loadedB . A static variable outside of the scope of an Apex transactionC . Allowed only in outer classesD . Allowed only in inner classesE . Excluded from the view state for a Visualforce...
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 three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)A . Number maps to Decimal.B . Number maps to Integer.C . TextArea maps to List of type String.D . Date/Time maps to Dateline.E . Checkbox maps to Boolean.View AnswerAnswer: A,D,E
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 the Developer overcome this problem?
While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?A . Use Test.getStandardPricebookId() to get the standard PriceBook IC . Use @IsTest(SeeAllData=true) and delete the existing standard...