AD0-E721 Sample Questions & Answers
Processing layout XML carries the biggest share, just ahead of theme structure and page template customization tied together, then LESS-based styling and RequireJS JavaScript components in equal measure, with CLI deployment tools the smallest piece.
Launch the full AD0-E721 simulator →Showing 10 of 20 free samples.
- Question 1IntermediateSelect 2
Tools and Commands · Magento CLI Commands
A developer needs to execute a sequence of commands to deploy static content changes to a production environment that is already in production mode. Which of the following commands should be run? (Select TWO)
Show answer & explanation
Correct answers: A, B
This command is essential as it handles database schema/data updates and clears compiled code and caches, preparing the system for the new static content.
This command compiles and deploys all the static view files (like CSS, JS, images) for the specified themes and locales, making them available on the server.
- Question 2Advanced
Layout XML · Layout Customization
Case Study:
A luxury watch retailer is launching a new Adobe Commerce website. The design requires a highly custom product detail page that differs significantly from the Luma theme. The page must include a new 'Technical Specifications' tab, move the product reviews block into the main product info column, and replace the standard image gallery with a custom 360-degree view component.
Technical Requirements:
- A new theme named 'LuxuryWatches' should be created, inheriting from Magento Blank.
- The 'Technical Specifications' tab must be added next to the 'Details' and 'More Information' tabs. This content will come from a new PHTML template.
- The existing 'product.review.list' block must be moved from its default location into the 'product.info.main' container.
- The default photo gallery (
product.info.media.image) must be completely removed and replaced with a new block for the 360-degree viewer.
Which layout XML file and set of instructions in the 'LuxuryWatches' theme correctly implements all these requirements?
Show answer & explanation
Correct answer: B
This option correctly uses the
catalog_product_view.xmlfile for product page customizations. It properly adds a new tab by creating a new block within theproduct.info.detailsblock. It correctly uses theinstruction to relocate the reviews. Finally, it uses the standard and most reliable methodto completely remove the default gallery block, fulfilling all requirements. - Question 3Intermediate
Templates and Page Customization · PHTML Templates
A developer wants to override a PHTML template from a core module,
module-catalog/view/frontend/templates/product/list.phtml, in their custom theme. What is the correct path to place the overridden file?Show answer & explanation
Correct answer: C
To override a module's template file within a theme, you must replicate the module's directory structure inside your theme directory. The correct path is
/ _ /templates/.... For the core Catalog module, this becomesMagento_Catalog, followed by thetemplatesdirectory and the path to the original file. - Question 4Beginner
Theme Management · Theme Files and Structure
True or False: The
registration.phpfile is optional when creating a new theme in Adobe Commerce.Show answer & explanation
Correct answer: B
The
registration.phpfile is mandatory for any component (module, theme, or language pack) in Adobe Commerce. It tells the system how to locate and register the component, making it available for use. - Question 5Intermediate
JavaScript and RequireJS · RequireJS Configuration
In a
requirejs-config.jsfile, what is the purpose of themapconfiguration?Show answer & explanation
Correct answer: C
The
mapconfiguration in RequireJS is a powerful feature used to replace a module with a different one. It allows you to create a 'mix-in' or override. For example, you can specify that whenever module 'A' is requested, module 'B' should be loaded instead, either globally (*) or only when requested by a specific module. - Question 6Intermediate
Styles (CSS/LESS) · LESS Files Structure
A developer adds a new LESS file to their custom theme to style a new widget. After deploying the changes and clearing the cache, the styles are not appearing on the storefront. What is the most common reason for this issue?
Show answer & explanation
Correct answer: A
For the LESS pre-processor to compile a new file, it must be included in the compilation process. This is achieved by using an
@importstatement in one of the theme's main LESS files, such as_extend.lessfor additive styles or_sources.lessfor structural changes. Simply adding a new file to the directory is not sufficient. - Question 7Beginner
Layout XML · Layout Instructions
Which attribute is used in a layout XML
definition to specify the PHTML file that should be rendered?Show answer & explanation
Correct answer: D
The
templateattribute is used within anode in layout XML to define the path to the PHTML template file that the block should render. The path is specified in the formatVendor_Module::path/to/template.phtml. - Question 8Intermediate
Templates and Page Customization · PHTML Templates
A developer needs to render a block's output without its surrounding HTML tags inside a PHTML template. Which method should be called on the block object?
Show answer & explanation
Correct answer: D
The
$block->getChildHtml()method is used to render child blocks. By default, it includes the block's wrapper tags. Passingfalseas the second argument ($useWrapper) instructs the method to render only the inner content of the child blocks, omitting their container elements. - Question 9Beginner
Theme Management · Theme Files and Structure
What is the primary function of the
theme.xmlfile within an Adobe Commerce theme?Show answer & explanation
Correct answer: B
The
theme.xmlfile is the main configuration file for a theme. It is used to define essential metadata, including the theme's name (title), specify its parent theme to enable inheritance, and link to a preview image that is displayed in the Magento Admin. - Question 10Advanced
Layout XML · Layout Customization
A developer is tasked with removing the 'Compare Products' functionality from the entire storefront. Which of the following layout XML instructions is the most effective and upgrade-safe way to achieve this?
Show answer & explanation
Correct answer: B
Using the
instruction in a theme's layout XML (likedefault.xmlfor site-wide changes) is the correct, intended method for removing blocks from the layout. This approach is non-destructive to core files, making it completely upgrade-safe. It effectively removes all relevant compare blocks by targeting their unique names.
Ready for the real thing?
The full AD0-E721 simulator has every exam-style question, timed mode, and instant scoring.