Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 379 discussion

Actual exam question from Salesforce's CRT-450
Question #: 379
Topic #: 1
[All CRT-450 Questions]

A business implemented a gamification plan to encourage its customers to watch some educational videos.

Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user.

A developer implemented these requirements in the after update trigger by making a call to an external web service. However, a System.CalloutException is occurring.

What should the developer do to fix this error?

  • A. Surround the external call with a try-catch block to handle the exception.
  • B. Move the callout to a class that implements Queueable and Database.AllowsCallouts Interfaces.
  • C. Replace the after update trigger with a before insert trigger.
  • D. Write a REST service to integrate with the external web service.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ca7d262
2 months ago
Selected Answer: B
Needs to be out of the context of the trigger and run asynchronously.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...