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

Your module adds a new controller class which will return a JSON response.

What will be the return type of the execute method?

A.

You should implement a new API endpoint instead of returning JSON from a controller

B.

The string value of \Zend_Json::encode()

C.

An instance of \Magento\Framework\Controller\Result\Json

D.

No return needed, an object that can be converted to JSON must be set as the Response body

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?

A.

[10, 12, 15]

B.

10

C.

[10, 12, 12, 15]

D.

15

You are adding a new entry to the backend menu that appears after

Marketing > SEO & Search > Site Map

You see the existing site map menu item is declared by the node:

What two actions do you take to configure the new menu entry location? (Choose two.)

A.

Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml

B.

Specify parent=”Magento_Sitemap::catalog_sitemap”

C.

Specify parent=”Magento_Backend::marketing_seo”

D.

Specify sortOrder=”100”

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

When you run the code, you get the following exception:

How do you resolve the exception?

A.

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

B.

Use dependency injection to load an instance of the SearchCriteria class

C.

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

D.

Clear generated code to get a new version of SearchCriteriaBuilder

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

Which entity in Magento supports scoped attributes?

A.

Customer

B.

CMS Page

C.

Category

D.

Customer Address

What will be the result of calling the save() method on a collection instance?

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

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

You are tasked with ensuring customers who log into the site are authorized. By default, this consists of ensuring the customers email and password match the values in the database. On this project, you need to verify additional data in this process.

Keeping in mind upgradeability, how is this done?

A.

Create a before plugin for \Magento\Customer\Api\AccountManagementInterface’s authenticate method

B.

Create a mutation of a CustomerInterface object to intercept the username and password

C.

Create an event observer for the user_save_after observer

D.

Override \Magento\Customer\Controller\AccountController.php

You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.

Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?

A.

cache:clean config_webservice

B.

cache:refresh config_webservice

C.

cache:flush

D.

cache:purge