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 Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 2 Question 73 Discussion

Posted by Kendra on Jan 24, 2025 at 06:45 PM

What are two ways a developer should ensure that a store verifies changes by using an external service?

Suggested Answer: A

When including additional JavaScript files in a Lightning Web Component, it is required that these files are ECMAScript 6 (ES6) modules and have unique names within the component's folder. This ensures proper module resolution and avoids namespace conflicts. Salesforce LWC documentation provides guidelines on organizing component resources, including JavaScript modules, to ensure they are correctly recognized and utilized within the LWC framework.


Get Premium Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
36 comments · newest first
TA
Tamekia 11 months ago
Not sure about D, triggers can be tricky for this kind of task.
KI
Kiera 11 months ago
Totally agree with B, it's more robust!
JE
Jeannine 12 months ago
Wait, can you really use a trigger for that? Seems off.
ME
Melvin 12 months ago
I think A is simpler and gets the job done.
VI
Vilma 1 year ago
Option B is definitely the way to go for integration.
BU
Buddy 1 year ago
I’m leaning towards option A, but I’m a bit confused about the differences between flows and Apex classes in this context.
PE
Pete 1 year ago
I remember practicing a question similar to this, and I think creating a flow could be a valid way to handle external service calls.
AL
Alyce 1 year ago
I'm not entirely sure, but I feel like using a trigger might not be the best approach for this scenario.
AL
Alease 1 year ago
I think option B sounds familiar since we discussed implementing interfaces in our last study session.
SA
Samuel 1 year ago
I'm not sure if a trigger is the best approach here. I think it's better to use an Apex class or a flow to interact with the external service and update the Cart Delivery Group Methods.
EV
Eveline 1 year ago
I'm pretty confident that option B is the way to go. Creating an Apex class to implement the sfdc_checkout.CartShippingCharges interface and registering it as the calculation integration in the store administration seems like the most robust solution.
ED
Edna 1 year ago
I'm a bit confused here. Do we need to create an Apex class, or can we use a flow? I'm not sure which approach is better.
MI
Ming 1 year ago
Okay, I think I've got this. The key is to use an external service to verify the changes, so I'm leaning towards options B or C.
BU
Buddy 1 year ago
Hmm, this looks like a tricky one. I'll need to carefully read through the options and think about the best approach.
HO
Howard 1 year ago
I'm going to have to go with the classics - B and C. Creating an Apex class and registering it as the integration is the way to do it. And updating the Cart Delivery Group Methods is just icing on the cake.
AL
Alethea 1 year ago
↳ replying to Howard
Creating a trigger might work too, but B and C are more reliable.
AN
Annice 1 year ago
↳ replying to Howard
Agreed, those are the classic ways to ensure changes are verified.
GA
Gary 1 year ago
↳ replying to Howard
Updating the Cart Delivery Group Methods is definitely important.
GI
Gilberto 1 year ago
↳ replying to Howard
I think B and C are the way to go. Creating an Apex class is key.
ME
Mel 1 year ago
Ah, the age-old question of how to ensure a store verifies changes using an external service. Option B is the way to go, my friends. Implementing that interface is the key to success!
AR
Arthur 1 year ago
Option A sounds like it could work, but it's not the best approach. Manually creating a flow to retrieve shipping charges seems a bit cumbersome. I agree with the other candidates - B and C are the way to go.
AI
Aimee 1 year ago
↳ replying to Arthur
Yeah, I see what you mean. Option A might be more manual work than necessary. B and C definitely seem like the better options.
PO
Pok 1 year ago
↳ replying to Arthur
I agree, option C also seems like a good solution. Updating the Cart Delivery Group Method directly through an Apex class makes sense.
GE
Gennie 1 year ago
↳ replying to Arthur
I think option B is the best choice. Creating an Apex class to retrieve shipping charges from an external service seems like a more efficient approach.
LO
Lorean 2 years ago
Haha, Option D is just straight-up wrong! A trigger to update the Cart Delivery Group Methods? That's just asking for trouble. I'll go with B and C.
MI
Mitsue 2 years ago
I'm leaning towards Option B. Registering the Apex class as the calculation integration in the store administration makes the most sense to me.
LA
Lamonica 1 year ago
↳ replying to Mitsue
Definitely, Option B provides a clear and structured way to verify changes using an external service.
OL
Olive 1 year ago
↳ replying to Mitsue
Definitely, it ensures that the store is able to retrieve shipping charges accurately.
NO
Novella 1 year ago
↳ replying to Mitsue
I agree, using an Apex class to retrieve shipping charges and registering it as the calculation integration seems like a solid method.
TA
Tarra 1 year ago
↳ replying to Mitsue
Option B sounds like the best approach. It ensures the external service is properly integrated into the store administration.
AN
Annice 1 year ago
↳ replying to Mitsue
I agree, that way the external service can be properly integrated for verifying changes.
VI
Vincenza 1 year ago
↳ replying to Mitsue
Option B sounds like the best choice. It's important to register the Apex class in the store administration.
VE
Vesta 2 years ago
Options B and C seem like the correct answers. Creating a class that implements the sfdc_checkout.CartShippingCharges interface is the way to go, and updating the Cart Delivery Group Methods is also a good approach.
TE
Terrilyn 2 years ago
I'm not sure, but option A also sounds like it could work by updating the Cart Delivery Group Methods.
JE
Jenelle 2 years ago
I agree with Lemuel, option B seems like the best choice for ensuring verification with an external service.
LE
Lemuel 2 years ago
I think option B is the correct one because it mentions implementing an interface.
0/2000 characters

Save Cancel