Labour Day - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

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

Question # 6

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?

A.

Resource model

B.

Repository

C.

Model

D.

Helper

Full Access
Question # 7

A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.

You decided to implement an observer for customer_save_after_data_object event.

In which file do you declare the observer?

A.

etc/webapi_rest/events.xml

B.

etc/adminhtml/events.xml

C.

etc/webapi/rest_events.xml

D.

etc/events.xml

Full Access
Question # 8

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

\Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and sort information.

What class assists in creating an instance for SearchCriteriaInterface?

A.

\Magento\Framework\Api\SearchCriteriaFactory

B.

\Magento\Framework\Api\SearchCriteriaBuilder

C.

\Magento\Sales\Model\Order\SearchCriteria

D.

\Magento\Backend\Api\SearchCriteriaGenerator

Full Access
Question # 10

You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml.

What is the function of this file?

A.

It configures Grunt to compile assets for the theme

B.

It stores theme and image configuration values

C.

It specifies the applicable CSS files for the theme

D.

It informs Magento that the theme is present and available for use

Full Access
Question # 11

How can you access the select query of a collection?

A.

You can only access the select query after the collection has been loaded by calling the public method query()

B.

It is stored in a protected variable $query and can only be accessed from the inside of a collection class

C.

You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select

D.

The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query

Full Access
Question # 12

Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID}

How is this one?

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

Full Access
Question # 13

Where do you change the frontName for the admin router?

A.

app/etc/config.xml

B.

app/etc/env.php

C.

app/etc/local.xml

D.

composer.json

Full Access
Question # 14

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

A.

B.

C.

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

D.

Full Access
Question # 15

Which entity in Magento supports scoped attributes?

A.

Customer

B.

CMS Page

C.

Category

D.

Customer Address

Full Access