New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam B2B Commerce Administrator Topic 4 Question 67 Discussion

Actual exam question for Salesforce's B2B Commerce Administrator exam
Question #: 67
Topic #: 4
[All B2B Commerce Administrator Questions]

A developer is working on a storefront that needs to use a sophisticated pricing engine hosted as a service outside the org. Assuming security and trusts have been established, which two actions must the developer take?

Show Suggested Answer Hide Answer
Suggested Answer: A, C

To use a sophisticated pricing engine hosted as a service outside the org, the developer must take the following actions:

Make a call to the service. The developer must use an Apex class or a Lightning web component to make a callout to the external service using the appropriate protocol, method, headers, parameters, and body. The developer must also handle the response from the service and parse the data as needed. The developer must ensure that the external service is added to the Remote Site Settings in Salesforce to allow the callout.

Implement the sfdc_checkout.PriceCalculations interface. The developer must implement this interface in an Apex class to override the default pricing logic of B2B Commerce and use the custom pricing logic from the external service. The developer must implement the methods of this interface, such as calculateCartPrice, calculateLineItemPrice, calculateShippingPrice, and so on. The developer must also register the custom pricing class in CC Admin under Storefront > Pricing > Pricing Engine.Reference:

Callouts from Lightning Web Components

Create a Custom Pricing Engine


Contribute your Thoughts:

Delpha
6 months ago
Candidate 6: Monitoring and logging are essential for identifying and resolving any potential issues that may occur during the integration process.
upvoted 0 times
...
Matthew
7 months ago
Candidate 5: I think the developer should also consider implementing monitoring and logging mechanisms to track the interactions between the storefront and the pricing engine service for troubleshooting purposes.
upvoted 0 times
...
Noelia
7 months ago
Establishing trust and security are key. I bet the developers at the pricing engine service have a great sense of humor - they must be real 'pricing' comedians!
upvoted 0 times
...
Dallas
7 months ago
Definitely need to handle the authentication and authorization pieces. Maybe we can just use a good old-fashioned secret handshake to access the pricing engine?
upvoted 0 times
...
Janna
7 months ago
Hmm, looks like we need to establish a secure connection and authenticate with the pricing engine service. I wonder if they accept carrier pigeons for authentication?
upvoted 0 times
Tina
6 months ago
Let's make sure to follow the necessary security protocols.
upvoted 0 times
...
Lazaro
6 months ago
Good idea, that would be more practical.
upvoted 0 times
...
Eveline
6 months ago
Maybe we can use API keys for authentication instead.
upvoted 0 times
...
Rueben
6 months ago
Haha, that would be interesting!
upvoted 0 times
...
Jacinta
6 months ago
I don't think they accept carrier pigeons for authentication.
upvoted 0 times
...
Nieves
7 months ago
I don't think they accept carrier pigeons for authentication.
upvoted 0 times
...
Jame
7 months ago
Yes, and we also need to authenticate with the pricing engine service.
upvoted 0 times
...
Son
7 months ago
We need to establish a secure connection and authenticate with the pricing engine service.
upvoted 0 times
...
Jaleesa
7 months ago
We need to establish a secure connection.
upvoted 0 times
...
...
Nell
7 months ago
Candidate 4: That's right, Candidate 3. Implementing secure communication protocols is important to protect sensitive data exchanged between the storefront and the pricing engine service.
upvoted 0 times
...
Gene
7 months ago
Candidate 3: In addition to error handling, the developer must also ensure that the storefront can communicate securely with the pricing engine service.
upvoted 0 times
...
Vallie
7 months ago
Candidate 2: I agree with Candidate 1. Error handling is crucial for ensuring the storefront functions smoothly.
upvoted 0 times
...
Bettye
7 months ago
Candidate 1: The developer should implement proper error handling to deal with any issues that may arise when connecting to the pricing engine service.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77