Winter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ex2p65

Exact2Pass Menu

Question # 4

You are developing a new theme which inherits from the Magento_Luma theme.

How is this accomplished?

A.

Add Magento/luma to theme.xml

B.

Run the CLI command bin/magento dev:theme:inherit Magento_Luma

C.

Specify the parent theme in Magento admin > Design > Configuration

D.

Add Magento/luma to etc/view.xml

Full Access
Question # 5

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

A merchant gives you the module MyCompany_MyModule to install.

How do you identify which REST endpoints are supported by the module?

A.

REST endpoints are declared in etc/webapi_rest/di.xml

B.

Every public method of every interface in the Api folder automatically is exposed as a REST endpoint

C.

REST endpoints are declared in etc/rest.xml

D.

REST endpoints are declared in etc/webapi.xml

Full Access
Question # 7

A merchant tasked you to add an input field for notes to the Customer Account Information backend page.

Which three actions do you specify in a module’s Data Patch to add a customer notes attribute? (Choose three.)

A.

$cache->clean([‘eav’, ‘db_ddl’]);

B.

$customerSetup->addAttribute(‘customer’, ‘notes’, $options);

C.

$customerSetup->getConnection()->addColumn(‘customer_entity’, ‘notes’, $columnSpecs);

D.

$notesAttribute->setData(‘used_in_forms’, [‘adminhtml_customer’]);

E.

$customerSetup->addAttributeToSet(‘customer’, $attributeSetIdCustomer, $groupId, ‘notes’);

Full Access
Question # 8

A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.

Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?

A.

Magento\Config\Model\Config\Option\Yesno

B.

Magento\Config\Model\Config\Source\Yesno

C.

Magento\Config\Model\Config\Frontend\Yesno

D.

Magento\Config\Model\Config\Backend\Yesno

Full Access
Question # 9

The constructor function for \Magento\Catalog\Model\Category contains this excerpt:

With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?

A.

If no $storeManager is provided, Magento’s code generator creates a shell concrete class based on \Magento\Store\Model\StoreManagerInterface

B.

Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.

C.

Magento looks to the di.xml files in the entire system for a preference node for \Magento\Store\Model\StoreManagerInterface. This class is constructed and injected

D.

Magento throws an exception because you cannot instantiate an interface

Full Access
Question # 10

A custom module needs to log all calls of \Magento\Customer\Api\AddressRepositoryInterface::save().

Which mechanism do you use?

A.

An observer on the customer_address_repository_save event, which is automatically fired for every repository save

B.

A proxy configured to intercept all calls to any public method and log them

C.

An extension attribute configured in the extension_attributes.xml

D.

A plugin declared for the save() method

Full Access
Question # 11

You have to install a new module on the production environment. All the module is adding a new product attribute. You enabled maintenance mode, copied the module code, run bin/magento setup:upgrade and disabled maintenance mode.

What two risks does this process pose? (Choose two.)

A.

It will clean all caches which will cause a performance degradation

B.

The new attribute will be invisible on the storefront until the cache is cleaned manually

C.

It will void all active sessions

D.

It will clean static assets from the pub/static folder

Full Access
Question # 12

How many shipping addresses may be selected for an order during the checkout process?

A.

One shipping address per line item is possible

B.

Only one shipping address per order is possible

C.

One shipping addresses per unit of quantity is possible

D.

One shipping address per product type is possible

Full Access
Question # 13

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

Full Access
Question # 14

Magento 2’s architecture uses code to bootstrap a custom module that resides in app/code.

What two files are required to make a module usable? (Choose two.)

A.

Helper/Data.php

B.

etc/config.xml

C.

etc/module.xml

D.

registration.php

Full Access
Question # 15

How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access