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 CCM-101 Exam - Topic 6 Question 56 Discussion

Posted by Tiffiny on Nov 13, 2024 at 04:29 PM

Given the customer basket described below:

A customer has an existing basket that consists of multiple items.

One of the items is identified as a gift tem by an attribute at the product line tem.

The developer needs to write custom code to fetch the customer basket and then modify the basket based

upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate

shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETRespone and ending with

validatebasket.

Dw.ocapi.shop.basket.modifyGETResponse

-- missing hook --

-- missing hook --

dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?

Suggested Answer: B

Get Premium CCM-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
SA
Santos 11 months ago
Just to clarify, beforePATCH is for updates, right?
DA
Daron 11 months ago
I agree with beforePATCH, but not convinced about beforeDELETE.
AV
Avery 12 months ago
Wait, are we sure about beforePOST? Seems off to me.
FR
Franklyn 12 months ago
I think it's definitely beforePATCH and beforeDELETE.
AN
Annmarie 1 year ago
The two missing hooks are probably beforePATCH and beforePOST.
QU
Quiana 1 year ago
I’m leaning towards B and D as well. They seem to align with the process of modifying the basket before validating it.
NI
Nicholle 1 year ago
I feel like I’ve seen a similar question before, but I can’t recall the exact hooks. I think it could be B and C, but I’m not confident.
TE
Teresita 1 year ago
I think the hooks might be related to how we handle shipments, so maybe options B and D? They seem to make sense for modifying the basket.
RO
Rodolfo 1 year ago
I remember we discussed the hooks in class, but I'm not entirely sure which ones fit best between modifyGETResponse and validateBasket.
TW
Twanna 1 year ago
I'm feeling pretty confident about this one. The question is straightforward, and I think I know the right hooks to use based on the information provided.
LE
Lenora 1 year ago
Okay, I think I've got a handle on this. The key is to identify the two missing hooks in the middle of the process. Based on the description, it seems like we need hooks for modifying the basket and creating the separate shipment.
ST
Stephen 1 year ago
Hmm, I'm a bit confused by the wording here. I'll need to make sure I understand exactly what the question is asking for before I try to answer it.
TE
Terrilyn 1 year ago
This looks like a tricky one. I'll need to carefully read through the requirements and think through the different hooks that might be needed.
RI
Rikki 2 years ago
Wait, did they say 'baskep.shopment'? I think someone's been sampling the gift items a little too much. Anyway, I'm going with B too, it seems like the most logical choice.
RE
Rene 1 year ago
↳ replying to Rikki
Definitely going with B, it makes the most sense out of all the options.
LA
Lajuana 1 year ago
↳ replying to Rikki
Yeah, B does seem like the most logical option. Let's go with that.
LI
Lizbeth 1 year ago
↳ replying to Rikki
I agree, 'baskep.shopment' doesn't sound right. B seems like the correct choice.
BL
Blondell 2 years ago
Okay, let's think this through. We need to create a separate shipment for the gift item, so the missing hooks must be related to shipment operations. I'm going with B, it makes the most sense.
AN
Annice 2 years ago
Dude, I'm totally stuck on this one. All these hooks sound like some kind of weird plumbing terms. I just hope I don't end up with a leaky basket!
AU
Audry 1 year ago
↳ replying to Annice
C: Remember, the hooks are just there to help you modify the basket correctly. You got this!
FR
Francesco 1 year ago
↳ replying to Annice
B: Yeah, take it step by step. You'll figure it out.
DE
Devon 2 years ago
↳ replying to Annice
A: Don't worry, I was confused too at first. Just focus on what each hook is supposed to do.
DE
Denise 2 years ago
Hmm, the question seems pretty straightforward. I think the answer is B) dw.ocapi.shop.basket.shipment.beforePATCH, since we need to modify the basket before it's updated.
BE
Benton 1 year ago
↳ replying to Denise
So the correct answer is B) dw.ocapi.shop.basket.shipment.beforePATCH.
LY
Lynelle 1 year ago
↳ replying to Denise
Yes, those hooks indicate before updating and before deleting.
KR
Kristin 1 year ago
↳ replying to Denise
I think the missing hooks are B) dw.ocapi.shop.basket.shipment.beforePATCH and C) dw.ocapi.shop.basket.shipment.beforeDELETE.
BE
Belen 1 year ago
↳ replying to Denise
I agree, we need to modify the basket before it's updated.
NI
Niesha 2 years ago
I'm not sure, but I think D could also be a possibility.
VI
Vincenza 2 years ago
I agree with Colette, those hooks make sense for modifying the basket.
CO
Colette 2 years ago
I think the missing hooks are B and C.
0/2000 characters

Save Cancel