Adobe Commerce Developer Professional AD0-E717 Exam Practice Test

Page: 1 / 14
Total 77 questions
Question 1

A developer is creating a class \Vendor\Module\Model\MyModeL How should that class be defined as transient in di.xml?



Answer : C

To define a class as transient in Magento's di.xml, the correct approach is to set the shared attribute to 'false' for that class. This tells Magento's object manager not to use the singleton pattern for this class, meaning a new instance will be created each time the class is requested. This is particularly useful for classes that should not maintain state across different areas of the application or during a single request lifecycle.


Question 2

A product has been added to the Adobe Commerce Store, and it contains a value for the custom product attribute. A merchant reports that the attribute value is not displayed in the Additional Information tab on the product detail page.

Which action will correct this problem?



Answer : C

The 'Visible on Catalog Pages on Storefront' attribute property determines whether or not the attribute value is displayed in the Additional Information tab on the product detail page. If this property is set to 'no', the attribute value will not be displayed.

For a custom product attribute to be displayed in the Additional Information tab on the product detail page in Magento, it needs to be visible on the catalog pages on the storefront. This visibility is controlled by the attribute property 'Visible on Catalog Pages on Storefront'. When this property is set to 'yes', Magento includes the attribute in the Additional Information tab, making it visible to customers browsing the product. This setting ensures that only relevant and intended attributes are shown on the storefront, allowing for better product information management and customer experience.


Question 3

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 4

Which CLI command should be used to determine that static content signing is enabled?



Answer : B

After a thorough search of the provided documents, I couldn't find a direct reference to the specific CLI command for determining if static content signing is enabled in Magento. However, the typical command for checking configuration settings in Magento is bin/magento config:show , where is the configuration path for the setting you wish to view. Based on Magento's configuration path patterns and the options provided, the most logical choice would be B. bin/magento config:show dev/static/sign, although this cannot be confirmed without further context or documentation.


Question 5

Which command invalidates the index?



Answer : B

The command bin/magento indexer:reset <index_name> is used to invalidate a specific index in Magento. When an index is invalidated, it flags the index as 'Invalid' in the Index Management section of the Magento Admin, indicating that the data is out of sync and needs to be updated. This command does not perform the reindexing itself but prepares the specified index for reindexing by marking it as needing an update. This is an important step in ensuring that the Magento storefront reflects the most current data.


Question 6

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 7

Which has its own root category?



Answer : B

In Magento, each store has its own root category. The root category acts as the top-level category under which all other categories and products are organized for that particular store. This structure allows for different catalog structures across multiple stores within a Magento installation, enabling a tailored product offering and navigation experience for each store. The ability to assign a unique root category to each store is a fundamental aspect of Magento's multi-store functionality, providing the flexibility to cater to diverse market segments or branding requirements.


Page:    1 / 14   
Total 77 questions