nerdexam
IBM

C2050-725 · Question #15

To support the "buy one get one free" functionality, when a consumer adds an item to the shopping cart, another applicable item should be added automatically. The customer has an external service…

The correct answer is C. Implement a ResourceHandler which invokes a custom entity bean. See the full explanation below for the reasoning.

Question

To support the "buy one get one free" functionality, when a consumer adds an item to the shopping cart, another applicable item should be added automatically. The customer has an external service that they intend to use to determine the applicable item. How can this feature be implemented and made available via REST Service in IBM WebSphere Commerce V7 FEP 7, with minimum customization?

Options

  • AExtend OrderltemAddCmd/OrderCalculateCmd to call the external service.
  • B"Buy one get one free" is a supported type of promotion, it can be created and managed using
  • CImplement a ResourceHandler which invokes a custom entity bean.
  • DExtend the out of the box OrderHandler, which invokes processOrChangeOrder() in OrderHelper:

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    84% (21)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full C2050-725 Practice