Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netbudy65

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

Questions 4

What is a valid use case for an around plugin?

Options:

A.

The execution of the pluginized method must be suppressed

B.

The arguments of the before plugins must be modified

C.

The arguments of the after plugins must be modified

D.

The execution of the before and after plugins must be suppressed

Buy Now
Questions 5

What is the relationship between products and categories in Magento?

Options:

A.

Products may be assigned to zero or more categories

B.

Product to category relation is dynamically defined by Catalog Product Rules

C.

Each product belongs to zero or one category

D.

Each product always belongs to one category

Buy Now
Questions 6

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’);

Buy Now
Questions 7

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 8

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

Buy Now
Questions 9

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 10

What is the connection between product attribute sets and categories?

Options:

A.

Categories have no connection to product attribute sets, and any product can be assigned to any category

B.

Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category

C.

Each category is linked to a single product attribute set, and only products from that category’s set or any of its parent categories’

D.

Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category

Buy Now
Questions 11

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 12

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 13

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 14

You have created a custom module which must perform an action immediately after an order is placed, but only on the store front of the merchant site. You have selected the checkout_submit_all_after as the target event which the module will observe.

In which file will the event observer be declared?

Options:

A.

etc/frontend.xml

B.

etc/events.xml

C.

etc/config.xml

D.

etc/frontend/events.xml

Buy Now
Questions 15

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
Exam Name: Magento 2 Certified Associate Developer Exam
Last Update: May 17, 2024
Questions: 103

PDF + Testing Engine

$130

Testing Engine

$95

PDF (Q&A)

$80