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 6 Question 48 Discussion

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

An Adobe Commerce developer was asked to provide additional information on a quote. When getting several quotes, the extension attributes are returned, however, when getting a single quote it fails to be returned.

What is one reason the extension attributes are missing?

Show Suggested Answer Hide Answer
Suggested Answer: A

The extension attributes are missing because the collection='true' attribute is not set in the etc/extension_attributes.xmi file. This attribute tells Magento that the extension attributes should be returned when the quote is retrieved.

To fix this issue, the developer needs to add the collection='true' attribute to the my_attributes extension attribute.

Once the collection='true' attribute is set, the extension attributes will be returned when the quote is retrieved.


Contribute your Thoughts:

Mireya
12 hours ago
Because providing a plugin on CartRepositoryInterface could be the missing piece.
upvoted 0 times
...
Sina
3 days ago
Why do you think it's option B?
upvoted 0 times
...
Berry
3 days ago
I'm going with A. Forgetting the collection=\'true\' attribute is a common issue, and it's an easy fix once you know about it. These certification exams can be tricky, but this one seems pretty straightforward.
upvoted 0 times
...
Lenna
4 days ago
Haha, the developer must have been having a bad day when they wrote this code. C is the answer - they forgot to implement an observer for the collection_load_after event. Classic blunder!
upvoted 0 times
...
Mireya
7 days ago
I disagree, I believe it's option B.
upvoted 0 times
...
Leslee
15 days ago
B sounds like the correct answer to me. The developer needs to provide a plugin for the CartRepositoryInterface::get method to ensure the extension attributes are included.
upvoted 0 times
...
Serina
19 days ago
I think the answer is A. The developer probably forgot to add the collection=\'true\' attribute in the extension_attributes.xmi file. That's a rookie mistake, but it's an easy one to make.
upvoted 0 times
...
Sina
19 days ago
I think the reason could be option A.
upvoted 0 times
...

Save Cancel