Adobe AD0-E717 Practice Test - Questions Answers
List of questions
Question 1
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
How should a developer display a custom attribute on the category edit page in the admin panel when a new module Vendor.Category is created?
Explanation:
To display a custom attribute on the category edit page in the admin panel, a developer should create a view/adminhtml/layout/catalog_category_edit.xml file in the module and define a block that would display the field for the attribute.
Question 2
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
How should a grid or form be included in an admin page layout using the Ul Component?
Explanation:
To include a grid or form in an admin page layout using the UI Component, a developer should use the following code:
<referenceContainer name='content'>
<uiComponent name='Vendor_Module::ul_component/example_listing.xml' />
</referenceContainer>
Question 3
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Which action, if any, should be taken to forbid Adobe Commerce Admin from performing specific actions?
Explanation:
To forbid Adobe Commerce Admin from performing specific actions, a developer should create a new user role with custom-defined resources, and assign it to the admin user. This can be done by going to System > Permissions > Roles and creating a new role. In the Resources section, the developer can select the specific resources that they want to restrict the admin user from accessing.
Question 4
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Which file should a developer use to set the default value when creating configuration fields for admin?
Explanation:
To set the default value when creating configuration fields for admin, a developer should use the etc/adminhtml/system.xml file. This file contains the configuration for the admin panel, and the developer can add a new configuration field with a default value by using the following code:
<config>
<default>
<my_custom_config_field>10</my_custom_config_field>
</default>
</config>
Question 5
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
How can a developer prioritize a plugin's execution, if possible?
Explanation:
To prioritize a plugin's execution, a developer can use the sortOrder property and specify a higher value than the target plugin. For example, if the developer wants to prioritize a plugin named MyPlugin over a plugin named OtherPlugin, they would add the following code to the etc/config.php file:
'modules' => [
'Vendor_MyPlugin' => [
'sortOrder' => 100,
],
'Vendor_OtherPlugin' => [
'sortOrder' => 50,
],
],
This would ensure that MyPlugin is always executed before OtherPlugin.
Question 6
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
In which two directories are third-party modules located by default? (Choose two.)
Explanation:
By default, third-party modules are located in vendor/ or app/code/ directories. The vendor/ directory contains modules that are installed using Composer, while the app/code/ directory contains modules that are manually copied or cloned from a repository.
Question 7
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
What does a URL Rewrite do?
Explanation:
A URL rewrite changes the way a URL appears in the browser. For example, a URL rewrite could be used to change the URL for a product from /product/1234 to /product/my-product.
Question 8
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Which file is used to add a custom router class to the list of routers?
Explanation:
The routes.xml file is used to define the list of routers for Adobe Commerce. A custom router class can be added to the list of routers by adding a new entry to the routes.xml file.
Question 9
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A developer found a bug inside a private method of a third party module class. How can the developer override the method?
Explanation:
To override a private method in a third party module class, a developer can create a plugin. The plugin should implement the after method, and the correct logic should be placed in the after method. The plugin should then be defined in the di.xml file.
Question 10
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Which property allows multiple cron jobs to share the same configuration?
Explanation:
The group property allows multiple cron jobs to share the same configuration. The group property defines the name of the cron group that the cron job belongs to. A cron group can have common settings such as schedule, status, and error email recipients.
Configure a custom cron job and cron group (tutorial) | Adobe Commerce
Question