A developer is implementing an Inventory class for checkout. All the error states have been handled and now the developer needs to take the next step to indicate that inventory is available for all of the items and amounts in the cart. What should the next step be?
Suggested Answer: D
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
To override pricing during the checkout process in Salesforce B2B Commerce, a developer must implement a class specifically designed for this purpose, such as sfdc_checkout.CartPriceCalculations. This class would provide the necessary framework for custom pricing logic to be applied during checkout, ensuring that any custom pricing requirements are met.
35 comments · newest first
GL
Glenn
11 months ago
Wait, why not just return TRUE? Seems simpler.
RA
Raymon
11 months ago
Definitely agree with B!
CL
Clemencia
11 months ago
Is there a reason for all these different status returns?
JE
Jenise
11 months ago
I’m surprised there’s so many options for this!
RO
Roxane
11 months ago
I think option B is the best choice.
ST
Stephen
12 months ago
I'm leaning towards A, but I wonder if returning TRUE is too simplistic for this scenario.
LA
Launa
12 months ago
I feel like D could be right since it mentions InventoryStatus, which seems relevant to the inventory check.
VA
Vallie
1 year ago
I remember practicing a similar question where we had to return a status code, but I can't recall the exact syntax for this one.
KY
Kyoko
1 year ago
I think the answer might be B, but I'm not entirely sure if that's the correct way to indicate success in this context.
SH
Sharen
1 year ago
I'm a bit confused by the different status options here. Are sfdc_checkout.InventoryStatus.Status.SUCCESS and sfdc_checkout.IntegrationStatus.Status.SUCCESS the same thing? I'll need to double-check the documentation to make sure I understand the difference.
SH
Sharika
1 year ago
Okay, let's see here. I think option B is the way to go - it's returning the specific InventoryStatus success value, which seems like the most appropriate response for this scenario.
LA
Launa
1 year ago
Hmm, I'm a little unsure about this one. The question mentions "the next step", so I'm not sure if any of these options are quite right. I might need to think through the overall context a bit more.
AU
Audrie
1 year ago
This seems pretty straightforward. I'd go with option D - that looks like the most direct way to indicate the inventory is available.
LI
Lizbeth
1 year ago
I hope the developer doesn't accidentally return 'sfde_checkout.InventoryStatus.SUCCESS' instead of 'sfdc_checkout.InventoryStatus.Status.SUCCESS'. That would be a real 'Inventory Statas' moment.
CH
Charlette
1 year ago
C) Return sfdc_checkout.IntegrationStatus.Status.SUCCESS
DA
Darell
1 year ago
B) Return sfde_checkout.InventoryStatus.SUCCESS
EL
Eleonore
1 year ago
A) Return TRUE
VE
Venita
1 year ago
Option D is the most logical choice here. It's like a no-brainer, really.
WH
Whitley
1 year ago
Option D is the way to go. It's clear and unambiguous about the inventory status.
DA
Daren
1 year ago
Yes, Option D is the most clear and unambiguous option for indicating inventory status.
CH
Christa
1 year ago
I agree, Option D is the most precise way to show the inventory status.
MA
Mariann
1 year ago
Option D is the best choice. It clearly indicates the inventory status.
ER
Erasmo
2 years ago
I'm not sure why anyone would choose option A. Returning a boolean value doesn't really convey the inventory status.
MI
Micah
1 year ago
D) Return sfdc_checkout.InventoryStatus.Status. SUCCESS
JA
Jaime
1 year ago
C) Return sfdc_checkout.IntegrationStatus. Status. SUCCESS
JA
Jani
1 year ago
B) Return sfde_checkout.InventoryStatus. SUCCESS
LO
Loreta
2 years ago
I'm leaning towards option D as well. It's more specific and descriptive than the other options.
LU
Luke
2 years ago
Option D seems to be the most appropriate choice since it directly indicates the inventory status as successful.
RE
Renea
1 year ago
D) Return sfdc_checkout.InventoryStatus.Status. SUCCESS
DA
Danica
1 year ago
C) Return sfdc_checkout.IntegrationStatus. Status. SUCCESS
NA
Nada
1 year ago
B) Return sfde_checkout.InventoryStatus. SUCCESS
IE
Iesha
2 years ago
A) Return TRUE
YA
Yaeko
2 years ago
But returning TRUE would be a simpler and more straightforward approach.
GE
Genevieve
2 years ago
I disagree, I believe we should return sfde_checkout.InventoryStatus.SUCCESS.
YA
Yaeko
2 years ago
I think the next step should be to return TRUE.