Adobe Commerce Developer Professional AD0-E717 Exam Practice Test

Page: 1 / 14
Total 77 questions
Question 1

Which file is used to add a custom router class to the list of routers?



Answer : A

To add a custom router class to the list of routers in Magento, the routes.xml file is used. This file should be located in the etc directory of the module, under the appropriate area (either frontend or adminhtml). Within the routes.xml file, you define a router with an ID, a route with an ID and frontName, and specify the module that the route corresponds to. This setup allows Magento to recognize and utilize the custom router when processing URLs, directing requests to the appropriate controllers based on the custom routing logic defined.


Question 2

How should a grid or form be included in an admin page layout using the Ul Component?



Answer : B

To include a grid or form in an admin page layout using the UI Component, the correct approach is to use the <uiComponent name='example_listing'/> within a <referenceContainer name='content'> block of the layout XML file. This method directly references the UI component's configuration file (e.g., example_listing.xml) which defines the structure and functionality of the UI component, such as grids or forms. This configuration file is located under the view/adminhtml/ui_component directory of the corresponding module.


Question 3

Which Magento project directory is the recommended webroot for the web server?



Answer : A

The Pub/ directory is the recommended webroot for the web server in Magento. This is because it contains all of the static content that is used by the Magento store, such as images, CSS, and JavaScript files.

The recommended webroot for the web server in a Magento project is the pub/ directory. This directory is used to access Magento static files and is the safer option for webroot as it minimizes security risks by not exposing the entire application structure to the web.

The pub/ directory in Magento is designed to be the root directory for web servers. This design choice is intended to enhance security and efficiency by serving static files directly from this location, thereby reducing the need for PHP processing for these files. By setting the webroot to pub/, it ensures that only the necessary files are publicly accessible, protecting the application's core code and structure from external access. This setup is a recommended best practice in Magento development for maintaining a secure and well-organized file system structure.


Question 4

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 : C

To display a custom attribute on the category edit page in the Magento admin panel, a developer should use the UI component approach. This involves creating a category_form.xml file within the view/adminhtml/ui_component directory of the module. This XML file defines the form fields (including any custom attributes) that should appear on the category edit page. The UI component system in Magento provides a flexible way to manage form elements and their interactions on the admin side, ensuring a consistent user interface and experience.


Question 5

Which method type can be intercepted by plugins?



Answer : C

In Magento, plugins (Interceptors) can only intercept public methods. This is because the plugin system relies on Magento's object manager to dynamically create proxy classes that can intercept method calls. Since private and final methods are not accessible from outside the class they are defined in, and static methods are not called on an object instance, these method types cannot be intercepted. This mechanism allows for the extension and customization of Magento's core behavior in a transparent and non-intrusive manner.


Question 6

What are the only writeable folders in the application root on a remote Adobe Commerce Cloud project?

A)

B)

C)



Answer : B

For an Adobe Commerce Cloud project, the only writeable folders in the application root on a remote environment are essential for the application to run correctly and store temporary and dynamic data. Among the options given, Option B lists directories that are typically writable: m2-hotfixes, var, pub/static, and app/etc. The m2-hotfixes directory is specifically for Magento Commerce Cloud and is used for applying hotfixes that are executed during the build phase. The var directory contains various logs, sessions, and reports. The pub/static directory holds the compiled static view files, and app/etc contains configuration files that can be modified by the application at runtime.


Question 7

Which type of product has the ability to build customizable products from a variety of options?



Answer : C

A bundle product is a product that is made up of a collection of other products. This type of product is ideal for selling products that are often purchased together, such as a printer and ink cartridges.

A bundle product in Adobe Commerce has the ability to build customizable products from a variety of options. Bundle products are ideal for creating custom kits or packages where customers can choose from options for each component. For example, building a custom computer setup from selected components like monitors, keyboards, CPUs, etc. Grouped products are collections of standalone products that can be purchased individually, and virtual products are intangible items.


Page:    1 / 14   
Total 77 questions