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

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

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

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

A merchant is interested in setting different prices for the same products in different store scopes.

What do you reply to this inquiry?

A.

The prices can only be scoped per website or globally

B.

The prices can be scoped per store

C.

The price scope can be set to store but this will lead to performance degradation of category pages

D.

The prices do not support scopes

You added a plugin declaration to MyCompany/MyModule/etc/di.xml:

What will be the effect of this declaration?

A.

An exception because plugins must not be applied to the interfaces

B.

An exception because of the syntax error in the declaration

C.

The plugin will be ignored because ActionInterface will never be instantiated directly

D.

The plugin will be applied to all implementors of the ActionInterface

You have created a module controller that responds to the following URL: /mycompany/product/load/id/123.

Which two methods will load the product model by ID as specified in the URL? (Choose two.)

A.

\Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)

B.

\Magento\Catalog\Model\ResourceModel\Product\Collection::load()->fetchById($id)

C.

\Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)

D.

\Magento\Catalog\Api\ProductRepositoryInterface::getById($id)

\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

In layout files you can change al element’s order on a page. This can be done using one of the following:

    instruction

    before and after element attributes?

How are two methods different?

A.

They are the same, both provide access to the same functionality

B.

Elements are renamed by default when using the move instruction

C.

The move instruction allows altering an element’s parent node

D.

Before and after attributes can only be used with referenceContainer and referenceBlock

You are reviewing a Magento module and see a directory named Service.

What can you determine from this directory’s name?

A.

It is where the API response cache is stored

B.

It is where API-related configuration resides

C.

It is where the module’s service contracts are stored

D.

You need to review the files in this folder to understand its purpose

You are implementing a custom module MyModule, which provides an implementation of \Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.

The LoggerInterface has the default preference declared in app/etc/di.xml.

Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?

A.

Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml

B.

Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml

C.

Overwrite the existing preference for the LoggerInterface in app/etc/di.xml

D.

Declare a new preference for the LoggerInterface in app/code/MyCompany/MyModule/etc/global/di.xml