Pass the Magento Magento Certified Developer Magento-2-Certified-Associate-Developer Questions and answers with CertsForce

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme.

What is a consequence of this setup?

Options:

A.

If the custom module is removed, the custom template will no longer apply


B.

This setup will throw an IllegalStateException


C.

If a preference for the core block is set, the template will no longer apply


D.

If another module is installed which also customizes the same core template, the templates will be rendered sequentially


Expert Solution
Questions # 22:

Which two tasks are supported by Magento CLI? (Choose two.)

Options:

A.

Customer password reset


B.

Clearing cache


C.

Codebase deployment from developer machine to staging server


D.

Administrator account creation


Expert Solution
Questions # 23:

In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption.

How do you supply the default value for that configuration option?

Options:

A.

In the config/default/mycompany/mymodule/myoption node in the etc/config.xml file


B.

In the system/mycompany/group/mymodule/field/myoption node in the etc/system.xml file


C.

In the menu/default/section/group/field node in the file etc/adminhtml/menu.xml


D.

In the system/section/group/field/value node in the etc/adminhtml/system.xml file


Expert Solution
Questions # 24:

Magento allows you to specify custom values per store for product attributes created in the admin panel.

Which architectural pattern makes it possible?

Options:

A.

Store Manager


B.

Extension Attribute


C.

Entity Attribute Value


D.

Dependency Injection


Expert Solution
Questions # 25:

You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language.

Keeping simplicity in mind, how do you add this attribute?

Options:

A.

Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages


B.

Use a Data Patch to create a new EAV attribute


C.

Add a new column to the catalog_product_entity table using declarative schema


D.

Use the admin panel to create a new extension attribute


Expert Solution
Questions # 26:

You are working on a jewelry store that sells rings. Each ring allows an adjustment in size. The customer specifies finger size in inches and the merchant physically adjusts the stocked ring to the required size.

How is this represented in Magento?

Options:

A.

Using custom options, with rings as simple products


B.

Using categories, with each ring size as a separate product


C.

Using configurable products, with ring size as an attributive value


D.

Using custom options, with rings as bundle products


Expert Solution
Questions # 27:

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

Options:

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


Expert Solution
Questions # 28:

You added a plugin declaration to MyCompany/MyModule/etc/di.xml:

Question # 28

What will be the effect of this declaration?

Options:

A.

An exception because plugins must not be applied to the interfaces


B.

An exception because of the syntax error in the declaration


C.

The plugin will be ignored because ActionInterface will never be instantiated directly


D.

The plugin will be applied to all implementors of the ActionInterface


Expert Solution
Questions # 29:

Assume that a customer’s cart only includes one downloadable product.

What effect will it cause on the quote object?

Options:

A.

The quote object will have a downloadable URL instead of an address


B.

The quote object will not have shipping address


C.

The quote object will not have any address


D.

The quote object will not have a billing address


Expert Solution
Questions # 30:

You have created a module with a custom ACL resource and want to restrict access to resources of your module.

Which three items are restricted based on ACL role permissions? (Choose three.)

Options:

A.

CLI Commands


B.

Webapi resources


C.

Storefront login


D.

System configuration sections


E.

Adminhtml controllers


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions