Adobe AD0-E717 Adobe Commerce Developer Professional Exam Practice Test

Page: 1 / 14
Total 77 questions
Question 1

How can a developer override a core class method in Adobe Commerce?



Answer : A

To override a core class method in Adobe Commerce, the XML node is used in the di.xml file of a custom module. This node specifies that, for a given interface or class, Magento should use a different class (specified in the 'type' attribute) whenever the original class is requested. This allows developers to extend or modify the functionality of core Magento components by substituting their own implementations in a way that is respectful of Magento's extension mechanisms.


Question 2

In which two directories are third-party modules located by default? (Choose two.)



Answer : A, D

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.

Third-party modules in Magento 2 are typically located in two directories by default: the vendor/ directory and the app/code/ directory. The vendor/ directory is used for modules that are installed via Composer, Magento's dependency manager, which includes both Magento's core modules and third-party modules. The app/code/ directory is used for custom modules developed specifically for the project or for third-party modules that are manually installed without Composer. These conventions provide a structured approach to managing Magento modules, whether they are part of Magento's core functionality, contributed by the community, or developed for specific projects.


Question 3

A developer is working on a task that includes a custom controller creation. A controller should forward the request to a different action.

How can the developer complete this task?



Answer : C

To forward the request to a different action, the developer can use the following code in the controller:

return $resultForward->forward('action');

where $resultForward is an instance of \Magento\Framework\Controller\Result\ForwardInterface and 'action' is the name of the action where the request should be forwarded.

There is no controllerjorward.xml configuration file or forwardToAction method in Adobe Commerce.

Verified Reference: [Adobe Commerce Developer Guide - Forward action result]

In Magento, to forward a request from one controller action to another, a developer can utilize the forward method available in the controller action class. This is achieved by returning a result from the action method that instructs Magento to forward the request to another action. The forward object is obtained by calling the $this->resultForwardFactory->create() method within the controller action. Then, the target action is specified by calling the forward method on this object with the action name as the argument, such as $resultForward->forward('targetAction'). This approach is consistent with Magento's emphasis on using result objects to control the flow of request processing within its MVC architecture.


Question 4

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 5

How can a custom CMS Page be set as a store home page?



Answer : C

To set a custom CMS Page as a store home page, the developer or merchant should follow these steps:

In the Admin panel, go to Content > Pages and create or edit a CMS Page that will be used as a home page.

In the Admin panel, go to Stores > Configuration > General > Web > Default Pages.

In the CMS Home Page field, select the CMS Page that was created or edited in step 1.

Save the configuration.

There is no ''Home Page'' column in the CMS Page admin grid or ''Default Home Page'' value in the CMS Page admin form.

Verified Reference: [Adobe Commerce User Guide - Set up your home page]

In Adobe Commerce, to set a custom CMS page as the store's homepage, you need to go to the store configuration. Specifically, navigate to Content > Design > Configuration, select the relevant store view, and then under the 'Default Pages' tab, set the 'CMS Home Page' option to your custom CMS page. Options A and B do not exist in the Adobe Commerce admin panel for setting a home page.


Question 6

What is the default store ID for the admin panel?



Answer : A

In Magento, the default store ID for the admin panel is 0. This is used as a fallback mechanism where, if the current store view's ID is not 0, Magento automatically adds 0 as a fallback. This ensures that the admin panel has a unique identifier, differentiating it from the frontend store views, which typically start with IDs higher than 0. This setup is crucial for Magento's multi-store architecture, allowing for distinct configurations and behaviors between the admin and frontend contexts.


Question 7

Which is a correct CMS content element in Adobe Commerce?



Answer : A

A widget is a CMS content element that can be used to display dynamic content on a page. Widgets can be used to display things like product reviews, social media feeds, or even custom content.

In Adobe Commerce, widgets are a correct CMS content element. Widgets allow merchants to add dynamic data or content blocks to CMS pages, static blocks, and various other locations throughout the store's layout without needing to directly edit the site's code. Options B (Sheet) and C (Image) are not recognized CMS content elements in the context of Adobe Commerce's terminology, making option A the correct answer.


Page:    1 / 14   
Total 77 questions