New Year Sale 2026! 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

Actual exam question for Salesforce's CCM-101 exam
Question #: 56
Topic #: 6
[All CCM-101 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Santos
3 months ago
Just to clarify, beforePATCH is for updates, right?
upvoted 0 times
...
Daron
3 months ago
I agree with beforePATCH, but not convinced about beforeDELETE.
upvoted 0 times
...
Avery
3 months ago
Wait, are we sure about beforePOST? Seems off to me.
upvoted 0 times
...
Franklyn
4 months ago
I think it's definitely beforePATCH and beforeDELETE.
upvoted 0 times
...
Annmarie
4 months ago
The two missing hooks are probably beforePATCH and beforePOST.
upvoted 0 times
...
Quiana
4 months ago
I’m leaning towards B and D as well. They seem to align with the process of modifying the basket before validating it.
upvoted 0 times
...
Nicholle
4 months 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.
upvoted 0 times
...
Teresita
4 months 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.
upvoted 0 times
...
Rodolfo
5 months ago
I remember we discussed the hooks in class, but I'm not entirely sure which ones fit best between modifyGETResponse and validateBasket.
upvoted 0 times
...
Twanna
5 months 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.
upvoted 0 times
...
Lenora
5 months 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.
upvoted 0 times
...
Stephen
5 months 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.
upvoted 0 times
...
Terrilyn
5 months 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.
upvoted 0 times
...
Rikki
10 months 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.
upvoted 0 times
Rene
8 months ago
Definitely going with B, it makes the most sense out of all the options.
upvoted 0 times
...
Lajuana
8 months ago
Yeah, B does seem like the most logical option. Let's go with that.
upvoted 0 times
...
Lizbeth
9 months ago
I agree, 'baskep.shopment' doesn't sound right. B seems like the correct choice.
upvoted 0 times
...
...
Blondell
10 months 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.
upvoted 0 times
...
Annice
10 months 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!
upvoted 0 times
Audry
9 months ago
C: Remember, the hooks are just there to help you modify the basket correctly. You got this!
upvoted 0 times
...
Francesco
10 months ago
B: Yeah, take it step by step. You'll figure it out.
upvoted 0 times
...
Devon
10 months ago
A: Don't worry, I was confused too at first. Just focus on what each hook is supposed to do.
upvoted 0 times
...
...
Denise
10 months 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.
upvoted 0 times
Benton
9 months ago
So the correct answer is B) dw.ocapi.shop.basket.shipment.beforePATCH.
upvoted 0 times
...
Lynelle
9 months ago
Yes, those hooks indicate before updating and before deleting.
upvoted 0 times
...
Kristin
9 months ago
I think the missing hooks are B) dw.ocapi.shop.basket.shipment.beforePATCH and C) dw.ocapi.shop.basket.shipment.beforeDELETE.
upvoted 0 times
...
Belen
9 months ago
I agree, we need to modify the basket before it's updated.
upvoted 0 times
...
...
Niesha
10 months ago
I'm not sure, but I think D could also be a possibility.
upvoted 0 times
...
Vincenza
11 months ago
I agree with Colette, those hooks make sense for modifying the basket.
upvoted 0 times
...
Colette
11 months ago
I think the missing hooks are B and C.
upvoted 0 times
...

Save Cancel