Question: 1
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time an account record is created or updated. The following trigger is defined on the account: trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update) { for (Account accountInstance: Trigger.New) { if (Trigger . isBefore) { accountInstance . Exec_Count_c +=l; System. debug (accountInstance . Exec_Count_c); } } } What is printed from the System.debug statement? Output from System.debug in every iteration is separated with a delimiter.
A 1,2,3,3
B 1,2,3,4
C 2,2,4,4
D 2,2,3,3
Answer : C
Show Answer
Hide Answer
Question: 2
A developer must create a custom pagination solution for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.How can the developer meet these requirements? Choose 2 answers.
Question: 3
Which is a valid Apex REST Annotation? Choose 2 answers
Question: 4
A company requires an external system to be notified whenever an account is updated. What LimitException could the following code trigger? trigger AccountTrigger on Account (after update) { for (Account updatedAccount : Trigger.new) { AccountTriggerHelper.notinyxternalSystem(updatedAccount.id); } } public class AccountTriggerHelper { future(callout=true) public static void notinyxternalSystemlId accountId) { Account acc = [Select id, name from.Account where accountId = :accountId]; //Instantiate a new http object Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('http://example.org/restService'); req.setMethod('POST'); req.setBody(JSON.serialize(acc)); HttpResponse res = h.send(req); } }
Question: 5
What is a consideration when using bind variables with dynamic SOQL? Choose 2 answers