BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E716 Exam - Topic 6 Question 48 Discussion

Posted by Silvana on Jul 10, 2025 at 02:52 PM

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?

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.


Get Premium AD0-E716 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
LO
Lorriane 11 months ago
I thought it was C at first, but now I’m not so sure.
KA
Kasandra 11 months ago
Definitely B! Missing that plugin can cause issues.
VA
Van 12 months ago
I agree with B, but it could also be a caching issue.
DA
Dawne 12 months ago
Wait, are we sure it’s not just a typo in the attribute file?
AJ
Aja 1 year ago
Sounds like a classic oversight with the extension attributes.
AL
Allene 1 year ago
I’m leaning towards option B because it seems like a common oversight in similar scenarios, but I could be mixing it up with another topic we covered.
RO
Rodrigo 1 year ago
I feel like the observer on collection_load_after could be relevant here, but I can't recall the exact details on how it affects the quote attributes.
CO
Corinne 1 year ago
I think I've seen a practice question where a plugin was required for the CartRepositoryInterface. Maybe that's what they forgot?
TE
Tennie 1 year ago
I remember something about needing to set collection='true' in the extension attributes file, but I'm not entirely sure if that's the only reason for missing attributes.
YE
Yen 1 year ago
Interesting, I didn't know about the collection_load_after event. That could be a good place to implement an observer to ensure the extension attributes are properly loaded. I'll make a note to research that option as well when tackling this type of issue.
YU
Yun 1 year ago
Ah, I see. The developer likely forgot to add a plugin to the CartRepositoryInterface::get method to properly load the extension attributes. That's a common gotcha when working with extension attributes. I'll make sure to double-check that in my code.
WA
Wava 1 year ago
Hmm, I'm a bit confused on this one. Is there something specific about getting a single quote versus getting multiple quotes that could be causing the issue? I'll need to review the documentation on extension attributes and how they're handled in the quote API.
BE
Bette 1 year ago
This seems like a straightforward question about extension attributes in Adobe Commerce. I think the key is to carefully review the configuration in the etc/extension_attributes.xmi file and ensure the attribute is properly defined with the collection='true' setting.
TR
Tricia 1 year ago
I think it might be option C, implementing an observer could solve the issue.
MI
Mireya 1 year ago
Because providing a plugin on CartRepositoryInterface could be the missing piece.
SI
Sina 1 year ago
Why do you think it's option B?
BE
Berry 1 year 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.
LE
Lenna 1 year 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!
AM
Amie 1 year ago
↳ replying to Lenna
Yeah, that's a common mistake. C is definitely the answer.
MI
Mireya 1 year ago
I disagree, I believe it's option B.
LE
Leslee 1 year 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.
SE
Serina 1 year 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.
AN
Antonio 1 year ago
↳ replying to Serina
User 2: Yeah, that's a common mistake developers make.
DA
Daniel 1 year ago
↳ replying to Serina
User 1: I agree, the collection='true' attribute was probably missing.
SI
Sina 1 year ago
I think the reason could be option A.
0/2000 characters

Save Cancel