Free Adobe AD0-E720 Exam Actual Questions

The questions for AD0-E720 were last updated On Nov 17, 2024

Question No. 1

In which folder can a custom theme favicon be added?

Show Answer Hide Answer
Correct Answer: B

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]


Question No. 2

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?

Show Answer Hide Answer
Correct Answer: C

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]


Question No. 3

An Adobe Commerce developer is trying to remove a block using the

Show Answer Hide Answer
Correct Answer: A

To remove a block using layout XML, the developer should use the <referenceBlock> tag with the name attribute specifying the name of the block and the remove attribute set to true. For example:

<referenceBlock name=''test.block'' remove=''true''/>

This will remove the block from the layout and prevent it from rendering. The <remove> tag is not valid and will cause an error. The name attribute should not include the module name, as it is not part of the block name. The delete attribute is not valid and will not work. Reference: [Layout instructions], [Remove an element]


Question No. 4

An Adobe Commerce developer is using a view model within an existing block:

What are two ways to access the view model class in the template? (Choose two.)

Show Answer Hide Answer
Correct Answer: A, D

To access a view model within an existing block, the developer can use either of the following ways:

$block->getData('view_model'): This method will return the view model object that is assigned to the argument name ''view_model'' in the layout XML file. For example:

<referenceBlock name=''blog_posts_list''> ExampleObjectModel/ExampleObjectModel </referenceBlock>

In the template file, the developer can access the view model object by using:

$block->getData('view_model')

$block->getData('viewModel'): This method will return the view model object that is assigned to the argument name ''viewModel'' in the layout XML file. For example:

<referenceBlock name=''blog_posts_list''> ExampleObjectModel/ExampleObjectModel </referenceBlock>

In the template file, the developer can access the view model object by using:

$block->getData('viewModel')

The following methods are not valid and will not work:

$block->viewModel(): This method does not exist and will cause an error.

$block->getViewHodel(): This method is misspelled and will cause an error.


Question No. 5

By creating a Custom_Module, an Adobe Commerce Developer has implemented a new Page Builder viewport for tablet devices but the viewport's tablet selector button is missing.

The button .svg has been properly added to the path: CustomJ^odule/web/css/images/switcher/switcher-tablet .svg. How the developer would implement the viewport button icon?

A)

By setting the node icon in the theme's etc/view.xml file for the respective viewport configuration data.

B)

By setting the node button-image in the theme's etc/view.xml file for the respective viewport configuration data.

C) By adding the node image in the theme's etc/viewport.xml file for the respective viewport configuration data.

D)

By adding the node image in the theme's etc/viewport.xml file for the respective viewport configuration data.

Show Answer Hide Answer