Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 37 of 83
Free Preview · 83 of 275 · questions 1–83 of 275 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
D can be done from an after insert trigger + @future annotation. Ensures that account exists in Salesforce before doing the callout. A is not correct: @future methods can only be invoked from Apex classes, not declarative automation like Process Builder B is not correct: Incorrect, because Process Builder executes synchronously, and callouts are not allowed synchronously within a transaction. @InvocableMethod does not support callouts directly unless it is executed asynchronously, which is not the case here. C is not correct: A trigger calling an @InvocableMethod directly would still run synchronously and fail due to the callout restriction. @InvocableMethod does not support asynchronous execution unless explicitly handled with Queueable or Future methods
Ans is B
C and D can't update Address field in After context A use @future annotation =>It's made async function, so that we can't catch value of Address field by sycn way I'll will go for B answer, which the best choice I considered.