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 212 discussion

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

Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on a user-initiated action on the Opportunity detail page. Example values are as follows:
* Name
* Amount
* Account
Which two methods should the developer implement to fulfill the business requirement? (Choose two.)

  • A. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
  • B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
  • C. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
  • D. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
DonAldos
Highly Voted 1 year, 7 months ago
Selected Answer: CD
I think its C&D Option A is not recommended because Visualforce pages are not recommended in Lightning Experience. Instead, Lightning components should be used. Option B is also not recommended because it suggests using Process Builder to call an Apex immediate action, which may not be the most efficient or scalable approach.
upvoted 5 times
...
irina_735
Most Recent 1 year, 2 months ago
Selected Answer: AC
The requirement is: ... callout ..based on a user-initiated action on the Opportunity detail page. But option D "... after update trigger" - where is user-initiated action on the page?
upvoted 1 times
...
Abhireddy001
1 year, 7 months ago
C and D are the Right Options as other two are not the best practice
upvoted 3 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 ...