Black Friday Special Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Magento > Magento Certified Developer > Magento-2-Certified-Associate-Developer

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

Question # 4

During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:

What is the consequence of the attribute showInStore being set to 0?

A.

The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of ‘store’.

B.

The input field will not be visible if a store view scope is selected in the system configuration

C.

The input field will only be visible if a website’s default store scope is selected in the system configuration

D.

The input field will be disabled if a store view scope is selected in the system configuration

Full Access
Question # 5

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

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

Full Access
Question # 6

You have been asked to display details from the customer’s latest order on the customer’s account dashboard (customer/account/). You create a new custom template to show the information.

How do you obtain an order repository so you can fetch an order?

A.

Create a view model and specify an OrderRepositoryInterface argument in the _construct method

B.

In your template, add the following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class);

C.

In your block, add a method with the following:return ObjectManager::getInstance()->get(OrderRepositoryInterface::class);

D.

In your template, add the following:$orderRepository = new OrderRepository();

Full Access
Question # 7

You are adding a child node to the product.info block using the XML:

How will this block be rendered?

A.

Child block nodes are automatically rendered as HTML

B.

By calling $block->getChildHtml(‘mynewblock’) in the parent block’s template

C.

The layout is invalid since block elements cannot be nested

D.

Automatically if the block class Custom implements the _toHtml method

Full Access
Question # 8

What is the difference between online and offline shipping methods?

A.

Online means that a shipment will have a tracking number, and offline means no tracking numbers are available

B.

Online means Magento will use a shipping carrier’s API to obtain rates, offline means Magento will calculate the rates internally

C.

Online means that an item’s shipping will be processed by the merchant, offline means that it will be processed by the customer

D.

Online means that it will be sent to the customer using a shipping carrier, offline means the customer will pick up the order in person

Full Access
Question # 9

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

How do you do that using the admin interface?

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

Full Access
Question # 10

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

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

Full Access
Question # 11

You are debugging a problem resulting from a recently deployed around plugin. The plugin is intercepting the doSomething method. The aroundDoSomething plugin method is called successfully, but the original doSomething method is no longer being executed as expected.

What is causing this?

A.

The sort order of the plugin is too high and supersedes the priority of the intercepted method

B.

The plugin implementation returned something other than its callable argument

C.

The plugin implementation is skipping the execution of its callable argument

D.

The plugin implementation overlooked using the AbstractPlugin parent class

Full Access
Question # 12

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 command

D.

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

Full Access
Question # 13

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 # 14

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?

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

Full Access
Question # 15

You are adding a new menu item to the admin backend which will link to a custom backend page.

The declaration of the route:

What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?

A.

action=”adminhtml/mycompany/mymodule/”

B.

action=”admin/mycompany/mymodule/”

C.

It is not possible without extending the adminhtml route in routes.xml

D.

action=”mycompany/mymodule/”

Full Access