Summer Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

AD0-E703 Questions and Answers

Note! Following AD0-E703 Exam is Retired now. Please select the alternative replacement for your Exam Certification.

AD0-E703 Questions and Answers

Question # 6

You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.

How do you implement this, keeping simplicity in mind?

A.

Create a custom block which will dynamically choose the appropriate template

B.

Specify custom layout update XML in the admin panel for every product

C.

Write a Data Patch which will set the appropriate layout update XML for every product record

D.

Enable the dynamic product page UI component and configure it to use a different layout per price range

Full Access
Question # 7

In a custom module you implement the interface \Magento\Framework\App\Config\DataInterface.

What version constraint for magento/framework do you add to your module’s composer.json file?

A.

major

B.

minor

C.

patch

D.

stable

Full Access
Question # 8

You have to install a new module on the production environment. All the module is adding a new product attribute. You enabled maintenance mode, copied the module code, run bin/magento setup:upgrade and disabled maintenance mode.

What two risks does this process pose? (Choose two.)

A.

It will clean all caches which will cause a performance degradation

B.

The new attribute will be invisible on the storefront until the cache is cleaned manually

C.

It will void all active sessions

D.

It will clean static assets from the pub/static folder

Full Access
Question # 9

A client has asked you to include category url keys in product URLs.

How is this done?

A.

Create an observer for controller_action_postdispatch_catalog_product_view

B.

This is not possible because products can belong to multiple categories

C.

Set the configuration value of catalog/seo/product_use_categories to Yes

D.

Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite

Full Access
Question # 10

Which two ways does Magento persist category relationships in the database? (Choose two.)

A.

Using slash-separated values in the path field

B.

in the table catalog_category_index

C.

in the parent_id field

D.

Using comma-separated values in the parent-ids field

Full Access
Question # 11

What happens when a category’s is_anchor attribute is set to 1?

A.

Products without a specified category will be associated with this category

B.

The customer will see all products from all children of the category

C.

This is the default category for a website

D.

The category will always be visible in the menu

Full Access
Question # 12

How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 13

You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema.

How do you do that?

A.

Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade

B.

Create a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrade

C.

Run a command: bin/magento setup:db-schema:upgrade <table>

D.

Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade

Full Access
Question # 14

You need to control access to a custom controller action. How do you tell Magento about this new control option?

A.

Create etc/acl.xml and add <resource id="MyCompany_MyModule::customAction" ... />

B.

In the controller, implement the _isAllowed method.

C.

Create etc/adminhtml/acl.xml and add

D.

Use the CLI to add the new resource option.

Full Access
Question # 15

Assume that $collection is a new instance of a class that extends

Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.

How do you select a list of records from the database where the record ids are in the $ids list?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 16

Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID}

How is this one?

A.

An event observer adds RewriteRules to .htaccess on product save

B.

Magento\Catalog\Controller\Product\View::loadByUrlKey loads product pages using the url_key attribute value

C.

Using a URL Rewrite stored in the database connecting the request path with the target path

D.

A plugin on \Magento\UrlRewrite\Controller\Router::match loads products by the url_key attribute

Full Access
Question # 17

A module you are developing requires the addition of new routes that should be accessible in the store front.

Where do you define your module’s frontName?

A.

etc/frontend/routes.xml

B.

etc/frontend/config.xml

C.

etc/config.xml

D.

etc/routes.xml

Full Access
Question # 18

Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class responsible for the frontend path /mymodule/custom.

What file contains the controller class for the frontend path /mymodule/custom?

A.

Controller/Custom/Index.php

B.

Controller/Custom.php

C.

Controller/MyModule/Custom/Index.php

D.

Controller/Frontend/MyModule/Custom.php

Full Access
Question # 19

How do you add a new link into the My Account sidebar?

A.

By creating a new UI component

B.

By creating a child of the My Account UI component

C.

By adding the new section into the customer_account table in the database

D.

By using a layout update

Full Access
Question # 20

You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2.

Keeping in mind upgradability and the need to customize, which one do you choose?

A.

Create a new Magento instance using composer create-project

B.

Clone the magento/magento2 GitHub repository

C.

Run php bin/magento setup:migrate <new-version> command

D.

Create a new Magento instance by using the bin/magento install command

Full Access