Magento-2-Certified-Associate-Developer Magento 2 Certified Associate Developer

Loading demo links...

Showing 7–9 of 10 questions

Question 7

Where do you change the frontName for the admin router?

Select an option, then click Submit answer.

  • app/etc/config.xml

  • app/etc/env.php

  • app/etc/local.xml

  • composer.json

Question 8

You got a notification about error that occurred on a production environment. The merchant gave you the error identifier.

How do you find the error message based on the identifier?

Select an option, then click Submit answer.

  • An error is written to the var/log/exception.log file including the identifier

  • The error is sent to the pre-configured error email with the identifier in the subject

  • A file with a name matching the identifier is written to the var/report folder

  • An error message is written to the database table error_log with an error_id field matching the identifier



Question 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?

Select an option, then click Submit answer.

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

  • Inspect the output of the CLI command bin/magento admin:role:resources – all

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

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