Pass the Magento Magento Certified Developer Magento-2-Certified-Associate-Developer Questions and answers with CertsForce

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

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

What is the purpose of this element?

Options:

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


Expert Solution
Questions # 12:

How can you render a text on a page using only layout xml?

Question # 12

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 13:

Which method of a Magento resource model will remove a record from the database?

Options:

A.

remove


B.

erase


C.

clean


D.

delete


Expert Solution
Questions # 14:

The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.

You created a controller for this grid \MyCompany\MyModule\Controller\Adminhtml\CustomEntity\Index

Which two actions are required to make the new page accessible at the https://your.store.base.url/admin/my_module/custom_entity URL? (Choose two.)

Options:

A.

Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml


B.

Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml


C.

Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method


D.

Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml


Expert Solution
Questions # 15:

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?

Options:

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


Expert Solution
Questions # 16:

What happens when a category’s is_anchor attribute is set to 1?

Options:

A.

Products without a specified category will be associated with this category


B.

The customer will see all products from all children of the category


C.

This is the default category for a website


D.

The category will always be visible in the menu


Expert Solution
Questions # 17:

Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

Options:

A.

Language


B.

Area


C.

Store View


D.

Store


E.

Website


Expert Solution
Questions # 18:

How do you pass an array [‘one’, ‘two] as a parameter to you block using the layout XML arguments directive?

Question # 18

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 19:

You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.

How do you do that?

Options:

A.

Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor


B.

Declare the $_eventPrefix property in your vendor model and set it to vendor


C.

You must implement all appropriate methods and fire the events manually


D.

Ensure that the primary key in the corresponding table is named vendor_id


Expert Solution
Questions # 20:

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?

Options:

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


Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions