Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free Magento Magento-2-Certified-Associate-Developer Practice Exam with Questions & Answers | Set: 3

Questions 21

A merchant tasked you to add an input field for notes to the Customer Account Information backend page.

Which three actions do you specify in a module’s Data Patch to add a customer notes attribute? (Choose three.)

Options:
A.

$cache->clean([‘eav’, ‘db_ddl’]);

B.

$customerSetup->addAttribute(‘customer’, ‘notes’, $options);

C.

$customerSetup->getConnection()->addColumn(‘customer_entity’, ‘notes’, $columnSpecs);

D.

$notesAttribute->setData(‘used_in_forms’, [‘adminhtml_customer’]);

E.

$customerSetup->addAttributeToSet(‘customer’, $attributeSetIdCustomer, $groupId, ‘notes’);

Questions 22

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

Questions 23

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

Questions 24

How do you obtain customer information in a JavaScript module?

Options:
A.

Magento does not expose customer information in JavaScript for security reasons

B.

By sending an AJAX request to the url: /customer/account/info/?json=1

C.

By using customerData.get(‘customer’) call, where customerData is an instance of Magento_Customer/js/customer-data

D.

Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem(‘customer’)

Questions 25

You want to remove a column introduced by a third-party extension via declarative schema.

How do you do that?

Options:
A.

Create the etc/db_schema.xml file and specify disable=”true” on the column

B.

Modify the original etc/db_schema.xml file and remove the column from there

C.

Create a SchemaPatch file and remove the column programmatically

D.

Copy the etc/db_schema.xml file into your module and remove the column from your copy

Questions 26

You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.

What two elements automatically render their children? (Choose two.)

Options:
A.

B.

C.

</container name=”shop.info.details”/>

D.

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

Questions 28

Your module adds a new controller class which will return a JSON response.

What will be the return type of the execute method?

Options:
A.

You should implement a new API endpoint instead of returning JSON from a controller

B.

The string value of \Zend_Json::encode()

C.

An instance of \Magento\Framework\Controller\Result\Json

D.

No return needed, an object that can be converted to JSON must be set as the Response body

Questions 29

You are building a report using complex SQL aggregations to locate the required data.

In what type of class do you put these SQL statements?

Options:
A.

Resource model

B.

Repository

C.

Model

D.

Helper

Questions 30

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

Certification Provider: Magento
Exam Name: Magento 2 Certified Associate Developer Exam
Last Update: Jul 19, 2025
Questions: 103