New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E716 Exam - 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:

0/2000 characters
Lorriane
2 months ago
I thought it was C at first, but now I’m not so sure.
upvoted 0 times
...
Kasandra
2 months ago
Definitely B! Missing that plugin can cause issues.
upvoted 0 times
...
Van
3 months ago
I agree with B, but it could also be a caching issue.
upvoted 0 times
...
Dawne
3 months ago
Wait, are we sure it’s not just a typo in the attribute file?
upvoted 0 times
...
Aja
3 months ago
Sounds like a classic oversight with the extension attributes.
upvoted 0 times
...
Allene
3 months 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.
upvoted 0 times
...
Rodrigo
4 months 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.
upvoted 0 times
...
Corinne
4 months ago
I think I've seen a practice question where a plugin was required for the CartRepositoryInterface. Maybe that's what they forgot?
upvoted 0 times
...
Tennie
4 months 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.
upvoted 0 times
...
Yen
4 months 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.
upvoted 0 times
...
Yun
4 months 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.
upvoted 0 times
...
Wava
5 months 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.
upvoted 0 times
...
Bette
5 months 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.
upvoted 0 times
...
Tricia
7 months ago
I think it might be option C, implementing an observer could solve the issue.
upvoted 0 times
...
Mireya
7 months ago
Because providing a plugin on CartRepositoryInterface could be the missing piece.
upvoted 0 times
...
Sina
7 months ago
Why do you think it's option B?
upvoted 0 times
...
Berry
7 months 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
7 months 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
Amie
6 months ago
Yeah, that's a common mistake. C is definitely the answer.
upvoted 0 times
...
...
Mireya
7 months ago
I disagree, I believe it's option B.
upvoted 0 times
...
Leslee
7 months 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
7 months 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
Antonio
7 months ago
User 2: Yeah, that's a common mistake developers make.
upvoted 0 times
...
Daniel
7 months ago
User 1: I agree, the collection='true' attribute was probably missing.
upvoted 0 times
...
...
Sina
7 months ago
I think the reason could be option A.
upvoted 0 times
...

Save Cancel