Adobe AD0-E716 Exam Practice Questions (P. 4)
- Full Access (69 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #16
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?
What is one reason the extension attributes are missing?
- AThe developer neglected to add collection="true" to their attribute in etc/extension_attributes.xml file.
<attribute code="my_attributes" type="MyVendor\MyModule\Api\Data\MyAttributeInterface[]" collection="true" /> - BThe developer neglected to provide a plugin on Magento\Quote\Api\CartRepositoryInterface::get.
- CThe developer neglected to implement an observer on the collection_load_after event.
Correct Answer:
B
B
send
light_mode
delete
Question #17
A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a "file upload" field in admin configuration of Adobe Commerce.
What are the two requirements to display the "file upload" field and process the actual CSV import? (Choose two.)
What are the two requirements to display the "file upload" field and process the actual CSV import? (Choose two.)
- AAdd a custom backend model which extends \Magento\Framework\App\Config\Value and call afterSave:
- B
- CCreate an observer that listens to the adminhtml_config_system_save_after:
- DAdd a new field in etc/adminhtml1/system.xml in My_Module with the file type:
- EAdd a new field in etc/adminhtml1/system.xml in My_Module with a new custom type:
Correct Answer:
AE
AE
send
light_mode
delete
Question #18
An Adobe Commerce Developer has written an importer and exporter for a custom entity. The client is using this to modify the exported data and then re-importing the file to batch update the entities.
There is a text attribute, which contains information related to imagery in JSON form, media_gallery. This is not a field that the client wants to change, but the software they are using to edit the exported data seems to be modifying it and not allowing it to import correctly.
How would the developer prevent this?
There is a text attribute, which contains information related to imagery in JSON form, media_gallery. This is not a field that the client wants to change, but the software they are using to edit the exported data seems to be modifying it and not allowing it to import correctly.
How would the developer prevent this?
- ASpecify a serializer class for the attribute using the $_transformAttrs class property array for both the exporter and importer so it gets converted:
- BStrip the attribute from the imported file by adding it to the $_strippedAttrs class property array:
- CPrevent it from being exported by adding it to the $_disabledAttrs class property array:
Correct Answer:
A
A
send
light_mode
delete
Question #19
The developer is required to convert modules database scripts from old install/upgrade setup files to a data patches format and does not want to apply database changes that were already done by install/upgrade scripts.
The current module version is 1.5.4.
What would be the recommended solution to skip changes that were already applied via old format (install/upgrade scripts)?
The current module version is 1.5.4.
What would be the recommended solution to skip changes that were already applied via old format (install/upgrade scripts)?
- AImplement PatchVersionInterface and return 1.5.4 on the getVersion() method.
- BInside apply() method, check for module version and run the code if version is less than 1.5.4.
- CThis is not possible. A module cannot implement both data patch and install scripts.
Correct Answer:
A
A
send
light_mode
delete
Question #20
An Adobe Commerce developer is working on a Magento 2 instance which contains a B2C and a B2B website, each of which contains 3 different store views for English, Welsh, and French language users. The developer is tasked with adding a link between the B2C and B2B websites using a generic link template which is used throughout the sites, but wants these links to display in English regardless of the store view.
The developer creates a custom block for use with this template, before rendering sets the translate locale and begins environment emulation using the following code:

They find that the template text is still being translated into each stores language.
Why does this occur?
The developer creates a custom block for use with this template, before rendering sets the translate locale and begins environment emulation using the following code:

They find that the template text is still being translated into each stores language.
Why does this occur?
- AstartEnvironmentEmulation() sets and locks the locale by using the setLocale() optional second $lock parameter, i.e. setLocale($newLocaleCode, true), to override and lock the locale of the emulated store. If this is set and locked initially then the environment emulation will not be able to override this.
- BstartEnvironmentEmulation() resets the translation locale to the one of the emulated stores, which overrides the locale the developer has set when the order of setLocale and startEnvironmentEmulstion is used as displayed above.
- CsetLocale() does not change translation locale after it has been initially set, the $this>_translate->emulate($newLocaleCode) method exists to temporarily modify this by pushing the new locale to the top of the current emulatedLocales stack.
Correct Answer:
B
B
send
light_mode
delete
All Pages