Free AD0-E703 Exam Braindumps (page: 17)

Page 16 of 34

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?

  1. <option_model>Magento\Config\Model\Config\Option\Yesno</option_model>
  2. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  3. <frontend_model>Magento\Config\Model\Config\Frontend\Yesno</frontend_model>
  4. <backend_model>Magento\Config\Model\Config\Backend\Yesno</backend_model>

Answer(s): B



Where do you change the frontName for the admin router?

  1. app/etc/config.xml
  2. app/etc/env.php
  3. app/etc/local.xml
  4. composer.json

Answer(s): B



You added a new constructor argument to an existing action controller class.
When you reload the page you get a PHP error that the wrong argument is passed to the class.
How do you fix this?

  1. Clean the page cache
  2. Deploy static content
  3. Clean the <magento_root>/generated/ folder
  4. Clean the config cache

Answer(s): C


Reference:

https://magento.stackexchange.com/questions/78826/creating-custom-module-in-magento2-show- fatal-error



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?

  1. Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles
  2. Inspect the output of the CLI command bin/magento admin:role:resources ­ all
  3. In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources
  4. Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/resources

Answer(s): C






Post your Comments and Discuss Adobe AD0-E703 exam with other Community members:

AD0-E703 Exam Discussions & Posts