Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: geek65

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

Questions 4

You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.

How do you implement this, keeping simplicity in mind?

Options:

A.

Create a custom block which will dynamically choose the appropriate template

B.

Specify custom layout update XML in the admin panel for every product

C.

Write a Data Patch which will set the appropriate layout update XML for every product record

D.

Enable the dynamic product page UI component and configure it to use a different layout per price range

Buy Now
Questions 5

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 6

A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added.

How do you specify the class that will process the uploaded file?

Options:

A.

\Magento\Config\Model\Config\Upload\File

B.

\Magento\Config\Model\Config\Frontend\File

C.

\Magento\Config\Model\Config\Backend\File

D.

\Magento\Config\Model\Config\Source\File

Buy Now
Questions 7

A client has asked you to include category url keys in product URLs.

How is this done?

Options:

A.

Create an observer for controller_action_postdispatch_catalog_product_view

B.

This is not possible because products can belong to multiple categories

C.

Set the configuration value of catalog/seo/product_use_categories to Yes

D.

Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite

Buy Now
Questions 8

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 9

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 10

How do you persist an entity to the database?

Options:

A.

Calling the store() method on the entity’s model

B.

Calling the update() method on the entity’s collection

C.

Calling the persist() method on the entity’s repository

D.

Calling the save() method on the entity’s repository

Buy Now
Questions 11

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

Buy Now
Questions 12

You have created a new section in system configuration under the Catalog tab:

How do you restrict an access to the section using Magento ACL?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 13

Where do you change the frontName for the admin router?

Options:

A.

app/etc/config.xml

B.

app/etc/env.php

C.

app/etc/local.xml

D.

composer.json

Buy Now
Questions 14

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

Magento-2-Certified-Associate-Developer PDF

$29.75  $84.99
Magento-2-Certified-Associate-Developer Engine

Magento-2-Certified-Associate-Developer Testing Engine

$35  $99.99
Magento-2-Certified-Associate-Developer PDF + Engine

Magento-2-Certified-Associate-Developer PDF + Testing Engine

$47.25  $134.99