ExamGecko
Home Home / Adobe / AD0-E720

Adobe AD0-E720 Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











The merchant needs to create a new website, and is need modify a template the third party vendor's, because the customer is different. The file is found in a module here: app/code/Vendor/Module

Keep it simple in your mind!

A.
Create another layout for the new website and configure new file.phtml. app/code/Vendor/Module/view/frontend/templates/file.phtml
A.
Create another layout for the new website and configure new file.phtml. app/code/Vendor/Module/view/frontend/templates/file.phtml
Answers
B.
Create a new module for extends layout.xml and include new file.phtml. app/code/Vendor/Module_Two/view/frontend/templates/file.phtml
B.
Create a new module for extends layout.xml and include new file.phtml. app/code/Vendor/Module_Two/view/frontend/templates/file.phtml
Answers
C.
Create a new theme, define a new website and customize in app/design. app/design/frontend/Custom/Theme/Vendor_Module/templates/file.phtml
C.
Create a new theme, define a new website and customize in app/design. app/design/frontend/Custom/Theme/Vendor_Module/templates/file.phtml
Answers
Suggested answer: C

Explanation:

The best way to customize a template file from a third-party module is to create a new theme that inherits from the parent theme and override the template file in the app/design/frontend/Custom/Theme/Vendor_Module/templates directory. This way, the customization is isolated from the original module and can be applied to a specific website or store view. Creating another layout file or a new module would not be as simple or flexible as creating a new theme.

Reference:Frontend development guide, [Create a theme], [Theme inheritance]

An Adobe Commerce developer wants to override the following Layout XML file in the theme ExampleCorp/orange.

app/design/frontend/ExampleCorp/blank/Vendor_Module/layout/catalog_product_view.xml

What path would the developer use inside the layout directory of the theme to override the file?

A.
/override/ExampleCorp/blank/catalog_product_view.xml
A.
/override/ExampleCorp/blank/catalog_product_view.xml
Answers
B.
/override/theme/ExampleCorp/blank/catalog_product_view.xml
B.
/override/theme/ExampleCorp/blank/catalog_product_view.xml
Answers
C.
/catalog_product_view.xml
C.
/catalog_product_view.xml
Answers
Suggested answer: C

Explanation:

To override a layout XML file from a parent theme, the developer just needs to place the modified file in the same path relative to the layout directory of the child theme. In this case, the file would be app/design/frontend/ExampleCorp/orange/Vendor_Module/layout/catalog_product_view.xml. The override directory is not used for overriding layout files, but for overriding templates and web assets.

Reference: [Layout instructions], [Override templates and layout files]

An Adobe Commerce developer needs to create translations for the Orange/custom theme. Which directory would the developer place the translations?

A.
Orange/custom/etc
A.
Orange/custom/etc
Answers
B.
Orange/custom/translations
B.
Orange/custom/translations
Answers
C.
Orange/custom/il8n
C.
Orange/custom/il8n
Answers
Suggested answer: C

Explanation:

To create translations for a theme, the developer needs to place the translation files in the il8n directory of the theme. The translation files should have the format <language code>_<country code>.csv, such as en_US.csv or fr_FR.csv. The etc and translations directories are not used for storing translation files.

Reference: [Translations overview], [Translate theme strings]

An Adobe Commerce developer wants to create a new theme Vendor_Orange which extends from MagentoMum

a. Which file is responsible for specifying the parent theme?

A.
view.xml
A.
view.xml
Answers
B.
registration.php
B.
registration.php
Answers
C.
theme.xml
C.
theme.xml
Answers
Suggested answer: C

Explanation:

The theme.xml file is responsible for specifying the parent theme of a custom theme. The file should contain the element with the value of the parent theme's directory, such as MagentoMuma. The view.xml file is used to configure the theme's images, fonts, and layout. The registration.php file is used to register the theme in the system.

Reference: [Create a theme], [theme.xml]

In which folder can a custom theme favicon be added?

A.
<your_theme_dir>/web/
A.
<your_theme_dir>/web/
Answers
B.
<your_theme_dir>/Magento_Theme/web/
B.
<your_theme_dir>/Magento_Theme/web/
Answers
C.
<your_theme_dir>/assets/images
C.
<your_theme_dir>/assets/images
Answers
Suggested answer: B

Explanation:

The favicon can be added to the <your_theme_dir>/Magento_Theme/web/ directory of a custom theme. The favicon should have the name favicon.ico and replace the default one from the Magento_Theme module. The <your_theme_dir>/web/ directory is used for storing web assets that are not specific to any module. The <your_theme_dir>/assets/images directory does not exist by default and is not used for storing favicons.

Reference: [Add a favicon], [Theme structure]

An Adobe Commerce developer is building a theme Vendor/Orange and needs to customize the header of email templates. Where in the theme does the developer need to place the new template for this customization?

A.
/Magento_Email/templates/override/html/header.html
A.
/Magento_Email/templates/override/html/header.html
Answers
B.
/Magento_Email/email/header.html
B.
/Magento_Email/email/header.html
Answers
C.
/Magento_Theme/html/header.html
C.
/Magento_Theme/html/header.html
Answers
Suggested answer: B

Explanation:

To customize the header of email templates, the developer needs to place the new template in the /Magento_Email/email/header.html path of the theme. This will override the default header template from the Magento_Email module. The /Magento_Email/templates/override/html/header.html path is not valid and will not work. The /Magento_Theme/html/header.html path is used for customizing the header of web pages, not emails.

Reference: [Customize email templates], [Email templates overview]

Which two steps are required to delete a manually installed theme? (Choose two.)

A.
Remove the theme using the theme:uninstall CLI command
A.
Remove the theme using the theme:uninstall CLI command
Answers
B.
Remove the directory app/design/frontend/<VendorNAME/<ThemeName>
B.
Remove the directory app/design/frontend/<VendorNAME/<ThemeName>
Answers
C.
Disable the theme from the backend admin configuration
C.
Disable the theme from the backend admin configuration
Answers
D.
Remove the theme record from the theme database table
D.
Remove the theme record from the theme database table
Answers
Suggested answer: B, D

Explanation:

To delete a manually installed theme, the developer needs to remove the theme directory from the app/design/frontend directory and also delete the corresponding record from the theme table in the database. The theme:uninstall CLI command is only used for deleting themes that are installed as Composer packages. Disabling the theme from the backend admin configuration does not delete the theme files or records, but only makes it unavailable for use.

Reference: [Delete a theme], [theme:uninstall]

An Adobe Commerce developer needs to modify the width and height of all product images inside the theme Vendor/theme. What file inside the theme is responsible for these changes?

A.
Vendor/theme/etc/images.xml
A.
Vendor/theme/etc/images.xml
Answers
B.
Vendor/theme/etc/view.xml
B.
Vendor/theme/etc/view.xml
Answers
C.
Vendor/theme/etc/theme.xml
C.
Vendor/theme/etc/theme.xml
Answers
Suggested answer: B

Explanation:

To modify the width and height of all product images inside a theme, the developer needs to edit the view.xml file inside the etc directory of the theme. The view.xml file contains the configuration for the theme's images, fonts, and layout. The images.xml file does not exist by default and is not used for configuring images. The theme.xml file is used for specifying the parent theme and other metadata of the theme.

Reference: [view.xml], [theme.xml]

An Adobe Commerce developer has been asked to move a block called country from the container sidebar to the container content, the block has to be the last child on the content container.

Which layout instruction would be used to move the block?

A.
<move element = 'country' destination='content' after='-'/>
A.
<move element = 'country' destination='content' after='-'/>
Answers
B.
<move element='country-element' destination='content-element'/>
B.
<move element='country-element' destination='content-element'/>
Answers
C.
<move element='country' destination='content' after=''last-child'/>
C.
<move element='country' destination='content' after=''last-child'/>
Answers
Suggested answer: A

Explanation:

To move a block from one container to another, the developer needs to use the <move> layout instruction with the element attribute specifying the name of the block and the destination attribute specifying the name of the container. The after attribute can be used to position the block relative to other blocks in the same container. The value ''-'' means that the block will be placed after all other blocks, i.e., as the last child. The value ''last-child'' is not valid for the after attribute and will not work. The element and destination attributes should use the names of the blocks and containers, not their aliases or classes.

Reference: [Layout instructions], [Move an element]

An Adobe Commerce Developer is adding a new page layout to the theme directory within a custom theme. Which file needs to be created to register the new page layout?

A.
app/design/frontend/<VendorName>/<ThemeName>/layouts. xml
A.
app/design/frontend/<VendorName>/<ThemeName>/layouts. xml
Answers
B.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xnil
B.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xnil
Answers
C.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout/layouts.xml
C.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout/layouts.xml
Answers
Suggested answer: C

Explanation:

To register a new page layout in a custom theme, the developer needs to create a layouts.xml file in the app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout directory. The layouts.xml file should contain the <layout> element with the id, label, and file attributes. The id attribute is used to reference the layout in other layout files, the label attribute is used to display the layout name in the admin panel, and the file attribute is used to specify the path to the layout file relative to the web directory of the theme. The app/design/frontend/<VendorName>/<ThemeName>/layouts.xml and app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xml files are not valid and will not work.

Reference: [Create a new page layout], [layouts.xml]

Total 50 questions
Go to page: of 5