Question 1
Topic: Managing Clean Core
Skill tested: Select extension patterns that preserve upgradeability while meeting commerce requirements.
A retailer plans to add a supplier-specific validation step during cart checkout. The current Commerce implementation contains several direct modifications to SAP-delivered classes, and upgrades have become costly. The new rule must be independently deployable and must not require changes to the Commerce platform code. Which approach best supports the requirement while improving the clean-core posture?
An isolated extension using a supported integration or extension point provides the required behavior without modifying SAP-delivered code. This reduces upgrade conflicts and makes the custom capability easier to test and deploy independently. Maintaining patches to platform classes and copying the checkout implementation both create tight coupling to internal implementation details. A database trigger bypasses application-level behavior and is not an appropriate way to implement checkout business logic.