Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Dev-201 Exam - Topic 2 Question 9 Discussion

(Full question statement)Universal Containers recently transitioned fromClassic to Lightning Experience. One of its business processes requirescertain values from the Opportunity objectto be sent via anHTTP REST calloutto itsexternal order management systemwhen the user presses a custom button on the Opportunity detail page.Example fields:NameAmountAccountWhich two methods should the developer implement to fulfill the business requirement?Choose 2 answers.
A) Create a customVisualforce quick actionthat performs the HTTP REST callout and use it on the Opportunity detail page. and C) Create aLightning component quick actionthat performs the HTTP REST callout and use it on the Opportunity detail page.
B) Create anafter update triggeron the Opportunity object that calls a helper method using @future(callout=true) to perform the HTTP REST callout.
D) Create aRemote Actionon the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.

Salesforce Plat-Dev-201 Exam - Topic 2 Question 9 Discussion

Actual exam question for Salesforce's Plat-Dev-201 exam
Question #: 9
Topic #: 2
[All Plat-Dev-201 Questions]

(Full question statement)

Universal Containers recently transitioned fromClassic to Lightning Experience. One of its business processes requirescertain values from the Opportunity objectto be sent via anHTTP REST calloutto itsexternal order management systemwhen the user presses a custom button on the Opportunity detail page.

Example fields:

Name

Amount

Account

Which two methods should the developer implement to fulfill the business requirement?

Choose 2 answers.

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Comprehensive and Detailed Explanation From Exact Extract:

A (Correct):AVisualforce quick actioncan include Apex logic for a callout, and Visualforce is still valid in Lightning Experience.

C (Correct):ALightning Web Component (or Aura component)exposed as aquick actioncan perform callouts via Apex when the user clicks a button. This supports a more modern UI experience.

Incorrect options:

B:@future(callout=true) works but cannot be triggeredsynchronously by a button press. It's for background/automated processes.

D:Remote Actionis legacy functionality used with Visualforce/Aura and doesn't suit modern Lightning and button-driven synchronous actions.


This is part ofUser Interface (25%)andProcess Automation and Logic (30%), involvingintegration techniques and callouts.

Contribute your Thoughts:

0/2000 characters
Fausto
26 days ago
I feel like we practiced a similar question where we had to choose between quick actions and triggers. I think option A could be a valid approach, but I’m leaning towards option C for the Lightning context.
upvoted 0 times
...
Billy
1 month ago
I'm not entirely sure, but I think using an after update trigger could be risky because it might lead to governor limits being hit. Option B seems like it could work, but I’m not confident.
upvoted 0 times
...
Slyvia
1 month ago
I remember we discussed the differences between Visualforce and Lightning components in class. I think option C might be the best choice since it aligns with Lightning Experience.
upvoted 0 times
...

Save Cancel