You are implementing a new custom promotion action that changes the delivery mode of an
order. What steps are required to make sure that the effects of this action are reverted as soon as
the condition that triggered it is NO longer fulfilled? Note: There are 2 correct answers to this
question.
Suggested Answer: A, C
Get Premium P_C4H34_2411 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
PE
Penney
10 months ago
Definitely need to store the original delivery mode somehow. B and C seem like the best options.
GO
Goldie
10 months ago
A and C are the way to go. Gotta make sure that delivery mode can be reverted properly.
KA
Karl
10 months ago
I vaguely recall that using an inverse action could be a solution, but I think we also need to ensure we can revert the changes properly.
IS
Isaac
10 months ago
I feel like we should definitely store the original delivery mode somehow, but I'm torn between the session attribute and the custom action item.
GE
Geraldine
10 months ago
I remember a similar question where we had to store the original state of something. Maybe defining a new session attribute is the right approach?
AV
Avery
11 months ago
I think we need to implement the undo method in the custom rule action strategy, but I'm not sure about the second step.
EM
Emiko
11 months ago
I'm pretty confident that B and C are the correct answers here. Storing the original delivery mode in both the session and the custom action will make it easy to revert the changes when needed.
WH
Whitney
11 months ago
Hmm, I'd say B and D are the way to go. Storing the original delivery mode and then using an inverse action to revert the changes seems like the cleanest solution. Implementing an undo method could get messy.
WH
Whitney
11 months ago
A is definitely needed for reverting actions.
PE
Pearly
11 months ago
Wait, can you really just store the original delivery mode?
BR
Broderick
12 months ago
I'm a bit confused on this one. Do we need to implement an undo method, or can we just use the inverse action in the promotion? I'm not sure if that's the most efficient approach.
LA
Laurena
12 months ago
I think I'd go with B and C. Storing the original delivery mode in a session attribute and in the custom action itself seems like the best way to revert the changes when the condition is no longer met.