SAP Certified Product Support Specialist - SAP Commerce Cloud Questions and Answers
E_C4HYCP_12 Questions and Answers
Question # 6
What must you do when you provide a workaround for a code glitch in an existing service, for example, ProductService?Note: There are 3 correct answers to this question.
A.
Modify the existing bean definition with the new service.
B.
Add a new bean definition with a new ID for the new service.
C.
Implement a new custom service by extending the existing service.
D.
Override the alias of the original bean definition.
E.
Replace all injections with a new ID for the new service.
The steps that you must do when you provide a workaround for a code glitch in an existing service, such as ProductService, are adding a new bean definition with a new ID for the new service, implementing a new custom service by extending the existing service, and overriding the alias of the original bean definition. These steps can help you create a custom service that overrides the default behavior of an existing service without modifying its source code. You do not modify the existing bean definition with the new service, nor do you replace all injections with a new ID for the new service, as these steps may cause errors or inconsistencies.