Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 3 Question 40 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 40
Topic #: 3
[All AD0-E716 Questions]

An Adobe Commerce developer is tasked with adding custom data to orders fetched from the API. While keeping best practices in mind, how would the developer achieve this?

Show Suggested Answer Hide Answer
Suggested Answer: C

The type of environment that will be provisioned when launching the CLI for Commerce command magento-cloud environment:branch <environment-name> is an integration environment with the code and database from the parent environment. Integration environments are temporary environments that are used for testing and development purposes on the Adobe Commerce Cloud platform. They can be created from any branch of code and have their own dedicated database and services. When creating an integration environment using the CLI for Commerce command, the code and database from the parent environment are copied to the new integration environment, creating an exact replica of the parent environment. Verified Reference: [Magento 2.4 DevDocs]


Contribute your Thoughts:

Chauncey
1 days ago
I was considering Option B, but you're right, Option A is probably the more robust solution. Extending the API interface is a better practice than modifying the repository.
upvoted 0 times
...
Karan
12 days ago
I personally prefer option B because it involves creating an extension attribute on the order interface and using an after plugin on the order repository interface. This way, the custom data can be easily accessed when fetching orders from the API.
upvoted 0 times
...
Tammara
15 days ago
I agree with Franklyn. Option A follows best practices and ensures that the custom data is added in a clean and efficient way.
upvoted 0 times
...
Lindsey
16 days ago
Option A seems the best approach to me. Extending the OrderInterface is the recommended way to add custom data, and using an after plugin on getExtensionAttributes() is a clean way to inject it.
upvoted 0 times
...
Franklyn
22 days ago
I think option A is the best approach because it involves creating an extension attribute on the order interface and using an after plugin to add custom data.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77