Independence Day Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Master the Magento Magento-2-Certified-Associate-Developer Exam: Essential Study Tips and Strategies

Questions 11

You added a new constructor argument to an existing action controller class.

When you reload the page you get a PHP error that the wrong argument is passed to the class.

How do you fix this?

Options:

A.

Clean the page cache

B.

Deploy static content

C.

Clean the /generated/ folder

D.

Clean the config cache

Buy Now
Questions 12

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

Magento-2-Certified-Associate-Developer Question 12

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

Buy Now
Questions 13

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

Options:

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

Buy Now
Questions 14

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

Buy Now
Questions 15

You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module’s configuration.

Where should the dependency be declared?

Options:

A.

composer.json

B.

etc/module.xml

C.

etc/config.xml

D.

etc/di.xml

Buy Now
Questions 16

You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.

Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?

Options:

A.

cache:clean config_webservice

B.

cache:refresh config_webservice

C.

cache:flush

D.

cache:purge

Buy Now
Questions 17

A merchant gives you the module MyCompany_MyModule to install.

How do you identify which REST endpoints are supported by the module?

Options:

A.

REST endpoints are declared in etc/webapi_rest/di.xml

B.

Every public method of every interface in the Api folder automatically is exposed as a REST endpoint

C.

REST endpoints are declared in etc/rest.xml

D.

REST endpoints are declared in etc/webapi.xml

Buy Now
Questions 18

What scopes are available for customer attributes?

Options:

A.

Global only

B.

Website only

C.

Global and Website

D.

Global, Website and Store

Buy Now
Questions 19

You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml

Which two actions are required to ensure the new plugin will execute last? (Choose two.)

Options:

A.

Include a sortOrder=”20” on the new plugin in MyCompany_Magic’s etc/di.xml file

B.

Configure plugin sequencing for both plugins in MyCompany_Magic’s etc/plugin_sequence.xml file

C.

Set a sortOrder=”10” for MyCompany_Admission’s plugin in MyCompany_Magic’s etc/di.xml

D.

Add MyCompany_Admission as a dependency in MyCompany_Magic’s etc/module.xml file

Buy Now
Questions 20

The module MyCompany_MyModule will add a new page to the admin interface at the URL path admin/mycompany/entity_grid.

How do you name the file containing the action controller class so the admin router matches the path to the class?

Options:

A.

Controller/Adminhtml/Entity/Grid/Index.php

B.

Controller/Adminhtml/Mycompany/Entity/Grid.php

C.

Controller/Adminhtml/Entity/Grid.php

D.

Controller/Adminhtml/Mycompany/Entity_Grid.php

Buy Now
Exam Code: Magento-2-Certified-Associate-Developer
Exam Name: Magento 2 Certified Associate Developer Exam
Last Update: Jul 13, 2024
Questions: 103

PDF + Testing Engine

$159.99
$56

Testing Engine

$119.99
$42

PDF (Q&A)

$99.99
$35