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

Magento Magento-2-Certified-Associate-Developer - Magento 2 Certified Associate Developer Exam

You need to find all orders in the processing state. You have written the code:

How do you resolve the exception?

A.

Use dependency injection to load an instance of the SearchCriteria class

B.

Change the getList parameter to: $searchCriteraBuilder->addFilter(‘state’,’processing’)->create()

C.

Clear generated code to get a new version of SearchCriteriaBuilder

D.

Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface

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?

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

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

What is the purpose of this element?

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

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

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

What is the primary difference between container and block elements?

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

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

How do you do that?

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

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

Which entity in Magento supports scoped attributes?

A.

Customer

B.

CMS Page

C.

Category

D.

Customer Address

You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.

How do you organize the project to support this requirement?

A.

Create one website, two payment scopes

B.

Create one website, one store view

C.

Create one website, two store views

D.

Create two websites, two store views

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.)

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