Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Magento-2-Certified-Associate-Developer Magento 2 Certified Associate Developer Exam Questions and Answers

Questions 4

The module MyCompany_MyModule provides custom admin interface pages.

Access to these pages should only be granted to specific users.

You add the required configuration to the module’s acl.xml file, but the setting does not seem to work as expected.

How do you visually check if Magento evaluates your ACL resource as expected?

Options:

A.

Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles

B.

Inspect the output of the CLI command bin/magento admin:role:resources – all

C.

In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources

D.

Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/resources

Buy Now
Questions 5

A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.

Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?

Options:

A.

< option_model > Magento\Config\Model\Config\Option\Yesno < /option_model >

B.

< source_model > Magento\Config\Model\Config\Source\Yesno < /source_model >

C.

< frontend_model > Magento\Config\Model\Config\Frontend\Yesno < /frontend_model >

D.

< backend_model > Magento\Config\Model\Config\Backend\Yesno < /backend_model >

Buy Now
Questions 6

A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals.

Which two actions do you take to make sure the newsletter is sent? (Choose two.)

Options:

A.

Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml

B.

Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml

C.

Make sure bin/magento cron:run is added to the system crontab

D.

Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml

Buy Now
Questions 7

How many shipping addresses may be selected for an order during the checkout process?

Options:

A.

One shipping address per line item is possible

B.

Only one shipping address per order is possible

C.

One shipping addresses per unit of quantity is possible

D.

One shipping address per product type is possible

Buy Now
Questions 8

A module declares the route:

Magento-2-Certified-Associate-Developer Question 8

What is the layout handle of the storefront path /custom/feature/?

Options:

A.

mymodule_feature

B.

custom_feature

C.

mymodule_feature_index

D.

custom_feature_index

Buy Now
Questions 9

Magento 2’s architecture uses code to bootstrap a custom module that resides in app/code.

What two files are required to make a module usable? (Choose two.)

Options:

A.

Helper/Data.php

B.

etc/config.xml

C.

etc/module.xml

D.

registration.php

Buy Now
Questions 10

You are creating a new page layout for your custom module.

What is the primary difference between container and block elements?

Options:

A.

They extend different abstract classes

B.

A container’s children are rendered automatically

C.

Only containers can be removed by name or alias

D.

A block’s position within the layout can be altered

Buy Now
Questions 11

You have loaded an instance of Magento\Catalog\Model\Product in the $product variable. You know that the loaded product has the type configurable with four variations. These variations have the prices: $10, $12, $12, $15.

What will be the result of the $product- > getFinalPrice() call?

Options:

A.

[10, 12, 15]

B.

10

C.

[10, 12, 12, 15]

D.

15

Buy Now
Questions 12

What are two functions of a resource model? (Choose two.)

Options:

A.

It executes create, retrieve, update and delete actions for an entity

B.

It loads lists of entity models

C.

It is made available in the Magento API for the purpose of data manipulation

D.

It maps an entity to one or more database rows

Buy Now
Questions 13

What will be the result of calling the save() method on a collection instance?

Options:

A.

It will save all items with one INSERT … ON DUPLICATE KEY UPDATE query

B.

It will loop over all items and call save () on each one

C.

It will save the select query execution result into the cache

D.

It will save the select query to the cache

Buy Now
Questions 14

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

How is this one?

Options:

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

Buy Now
Questions 15

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

Options:

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

Buy Now
Questions 16

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

Buy Now
Questions 17

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?

Options:

A.

Controller/Custom/Index.php

B.

Controller/Custom.php

C.

Controller/MyModule/Custom/Index.php

D.

Controller/Frontend/MyModule/Custom.php

Buy Now
Questions 18

A merchant tasks you to keep sales managers out of the system configuration backend pages.

How do you do that using the admin interface?

Options:

A.

You remove access to the restricted pages from each user’s ACL settings

B.

You create a role with limited permissions and assign all sales manager users to the new role

C.

This is not possible in a native Magento instance and requires customization

D.

You create a role with access to the system configuration pages and assign it to all users except the sales managers

Buy Now
Questions 19

You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml.

What is the function of this file?

Options:

A.

It configures Grunt to compile assets for the theme

B.

It stores theme and image configuration values

C.

It specifies the applicable CSS files for the theme

D.

It informs Magento that the theme is present and available for use

Buy Now
Questions 20

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

Buy Now
Questions 21

Which method of a Magento resource model will remove a record from the database?

Options:

A.

remove

B.

erase

C.

clean

D.

delete

Buy Now
Questions 22

You have added a new attribute origin of the type varchar to the product entity.

Which two calls will filter a product collection with origin set to “California”? (Choose two.)

Options:

A.

$collection- > addFieldToFilter(‘origin’, “California”);

B.

$collection- > addAttributeToSelect(‘origin’, “California”);

C.

$collection- > joinAttribute(‘origin’, ‘catalog_product/origin’, ‘origin’, ‘California”);

D.

$collection- > addAttributeToFilter(‘origin’, “California”);

Buy Now
Questions 23

You are tasked to install an extension to the merchant’s Magento instance.

The extension is developed by the company called MyCompany and its codebase is available from all four locations listed below.

Which two installations options do you choose from to prevent version conflicts during upgrade? (Choose two.)

Options:

A.

Clone the code from GitHub and put it into the vendor directory

B.

Download the extension code from the developer’s website, and put it into app/code

C.

Use Magento web setup wizard to pull the code from Magento’s composer repository

D.

Use composer CLI to pull the code from MyCompany’s repository

Buy Now
Questions 24

While reviewing a layout file named sales_order_view.xml you notice the element

< update handle=”customer_account”/ >

What is the purpose of this element?

Options:

A.

Replaces the customer_account handle with sales_order_view

B.

Nothing, this element has been deprecated

C.

Adds the customer_account handle to the page’s handles list

D.

Updates the current page handle to customer_account

Buy Now
Questions 25

How do you add a foreign key to an existing table created by another module?

Options:

A.

Create etc/db_schema.xml file with the table node and constraint child node

B.

Run the command bin/magento setup:db-schema:upgrade < table > < constraint declaration >

C.

This can only be done with raw SQL in a Schema Patch file

D.

Create the etc/db_constraints.xml file and specify foreign key there in the constraint node

Buy Now
Questions 26

You have created a module controller that responds to the following URL: /mycompany/product/load/id/123.

Which two methods will load the product model by ID as specified in the URL? (Choose two.)

Options:

A.

\Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)

B.

\Magento\Catalog\Model\ResourceModel\Product\Collection::load()- > fetchById($id)

C.

\Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)

D.

\Magento\Catalog\Api\ProductRepositoryInterface::getById($id)

Buy Now
Questions 27

Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

Options:

A.

Language

B.

Area

C.

Store View

D.

Store

E.

Website

Buy Now
Questions 28

How can you render a text on a page using only layout xml?

Magento-2-Certified-Associate-Developer Question 28

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 29

A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.

How is this implemented?

Options:

A.

By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attribute

B.

By changing the System Configuration setting: Customer > Allow multiple billing addresses to Yes

C.

By altering the customer_entity table, adding the field billing_address2, and customizing both My Account and Checkout functionality to use that new field

D.

This is out-of-the box functionality

Buy Now
Questions 30

You have configured an event observer to watch the checkout_submit_all_after event using this XML:

Magento-2-Certified-Associate-Developer Question 30

What is the required class definition for the event observer?

Magento-2-Certified-Associate-Developer Question 30

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Exam Name: Magento 2 Certified Associate Developer Exam
Last Update: Apr 30, 2026
Questions: 103

PDF + Testing Engine

$63.52  $181.49

Testing Engine

$50.57  $144.49
buy now Magento-2-Certified-Associate-Developer testing engine

PDF (Q&A)

$43.57  $124.49
buy now Magento-2-Certified-Associate-Developer pdf