Adobe
AD0-E724 · Question #34
AD0-E724 Question #34: Real Exam Question with Answer & Explanation
Sign in or unlock AD0-E724 to reveal the answer and full explanation for question #34. The question stem and answer options stay visible for context.
Question
A developer needs to programmatically add a new, complex data object to the customer entity. This data should not be a simple EAV attribute and must not alter the core 'customer_entity' table. The data needs to be retrieved whenever a customer object is loaded via its repository. What is the recommended, upgrade-safe approach to achieve this?
Options
- ADirectly join the custom data table in all collection classes that load customer data.
- BAdd a new column to the 'customer_entity' table using a schema patch.
- CDefine an extension attribute in 'extension_attributes.xml' and use a plugin on the Customer
- DCreate a preference for the 'CustomerRepositoryInterface' and override the 'getById' method.
Unlock AD0-E724 to see the answer
You've previewed enough free AD0-E724 questions. Unlock AD0-E724 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.