Vcehome > Magento > Magento Certification > MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER > MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER Online Practice Questions and Answers

MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER Online Practice Questions and Answers

Questions 4

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

Browse 103 Q&As
Questions 5

You are adding a child node to the product.info block using the XML:

How will this block be rendered?

A. Child block nodes are automatically rendered as HTML

B. By calling $block->getChildHtml(`mynewblock') in the parent block's template

C. The layout is invalid since block elements cannot be nested

D. Automatically if the block class Custom implements the _toHtml method

Browse 103 Q&As
Questions 6

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

Browse 103 Q&As
Questions 7

You are adding a new menu item to the admin backend which will link to a custom backend page. The declaration of the route:

What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?

A. action="adminhtml/mycompany/mymodule/"

B. action="admin/mycompany/mymodule/"

C. It is not possible without extending the adminhtml route in routes.xml

D. action="mycompany/mymodule/"

Browse 103 Q&As
Questions 8

How do you obtain customer information in a JavaScript module?

A. Magento does not expose customer information in JavaScript for security reasons

B. By sending an AJAX request to the url: /customer/account/info/?json=1

C. By using customerData.get(`customer') call, where customerData is an instance of Magento_Customer/ js/customer-data

D. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem(`customer')

Browse 103 Q&As
Questions 9

The module MyCompany_MyModule provides custom admin interface pages.

Access to these pages should only be granted to specific users.

You add the required configuration to the module's acl.xml file, but the setting does not seem to work as expected.

How do you visually check if Magento evaluates your ACL resource as expected?

A. Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles

B. Inspect the output of the CLI command bin/magento admin:role:resources ?all

C. In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources

D. Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/ resources

Browse 103 Q&As
Questions 10

You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.

What is the correct layout declaration for this?

A. B. C.

D.

Browse 103 Q&As
Questions 11

How do you persist an entity to the database?

A. Calling the store() method on the entity's model

B. Calling the update() method on the entity's collection

C. Calling the persist() method on the entity's repository

D. Calling the save() method on the entity's repository

Browse 103 Q&As
Questions 12

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

Browse 103 Q&As
Questions 13

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

Browse 103 Q&As
Exam Name: Magento 2 Certified Associate Developer
Last Update: May 08, 2024
Questions: 103 Q&As

PDF

$49.99

VCE

$59.99

PDF + VCE

$67.99