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?
Answer(s): A
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.
How should a grid or form be included in an admin page layout using the Ul Component?
Answer(s): C
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>
Which action, if any, should be taken to forbid Adobe Commerce Admin from performing specific actions?
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.
Which file should a developer use to set the default value when creating configuration fields for admin?
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>
How can a developer prioritize a plugin's execution, if possible?
Answer(s): B
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.
Post your Comments and Discuss Adobe AD0-E717 exam prep with other Community members: