Adobe ad0-e717 practice test

Exam Title: Adobe Commerce Developer Professional

Last update: Nov 27 ,2025
Question 1

Which command invalidates the index?

  • A. bin/magento indexerreindex <index_name>
  • B. bin/magento indexer:reset <index_name>
  • C. bin/magento Indexerinvalldate <lndex_name>
Answer:

B


Explanation:
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​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 2

Which index mode is valid?

  • A. Update on refresh
  • B. Update on invalidate
  • C. Update on save
Answer:

C


Explanation:
"Update on save" is a valid index mode in Magento, where the index is set to update automatically
whenever a change is saved. This mode ensures that the index remains up-to-date with the latest
data changes, such as product or category updates, immediately reflecting these changes on the
storefront. This real-time indexing is crucial for maintaining data accuracy and consistency across the
Magento site, especially in dynamic environments with frequent updates​​​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 3

Which command should be used to refresh the cache using the command line?

  • A. magentocacheclean<type>
  • B. magentocacherefresh<type>
  • C. magentocachedelete<type>
Answer:

A


Explanation:
To refresh the cache using the command line in Magento, the command bin/magento cache:clean
<type> is used. This command clears the cache for the specified type, such as configuration, layout,
or block HTML. Cleaning the cache is an essential maintenance task that helps to update the store's
frontend with the latest changes and ensure that customers see the most current content. This
command is particularly useful during development or after making changes to the store's
configuration or layout​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 4

Which has its own root category?

  • A. Websites
  • B. Stores
  • C. Store Views
Answer:

B


Explanation:
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​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 5

A merchant has noticed an error in the checkout. The accessed URL is /checkout.
Where can the developer find the responsible controller in the Magento.Checkout module?

  • A. Controller/lndex/lndex.php
  • B. Controller/lndex/Checkout.php
  • C. Controller/Checkout/lndex.php
Answer:

C


Explanation:
The
controller
responsible
for
handling
the
/checkout
URL
is
located
in
Controller/Checkout/Index.php in the Magento.Checkout module1
.
This controller extends from
\Magento\Checkout\Controller\Index\Index, which implements the execute() method that renders
the checkout page1
.
In the Magento_Checkout module, the responsible controller for the /checkout URL can be found in
Controller/Checkout/Index.php. This controller handles the index action for the checkout process,
initiating the checkout page when a customer navigates to /checkout. The organization of controllers
in Magento follows a convention where the URL path corresponds to the directory structure within
the module, making it easier to locate and understand the functionality associated with specific
routes​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 6

What is the default store ID for the admin panel?

  • A. 0
  • B. 1
  • C. -1
Answer:

A


Explanation:
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​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 7

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

  • A. <type name="\Vendor\Module\Model\MyModer transient="true7>
  • B. <type name="\Vendor\Module\Model\MyModer singleton='false7>
  • C. <type name='\Vendor\Module\Model\MyModer shared="false7>
Answer:

C


Explanation:
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​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 8

Under which section should the soft dependency for a module be listed in
app/code/<Vendor>/<Module>/composer.json file?

  • A. suggest*: { B. } optional": {
  • C. } soft": {
  • D. }
Answer:

A


Explanation:
Soft dependencies for a module should be listed under the "suggest" section in the composer.json
file of the module. This section is used to list packages that enhance or work well with the module
but are not strictly required for the module to function. By using the "suggest" section, developers
can inform others about optional packages that could improve functionality or integration with the
module, without making them mandatory dependencies​​.

vote your answer:
A
C
D
A 0 C 0 D 0
Comments
Question 9

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

  • A. <preference for='Magento\Catalog\Block\Product" type="Vendor\Module\Block\Producf /> B. <typename="Magento\Catalog\Block\Product"> q <rewrite class="Vendor\Module\Block\Producf /> </type>
  • C. <typename="Magento\Catalog\Block\Product*> <arguments> q <argument name="rewrtte" xsi:type="object">Vendor\Module\Block\Product</argument> </arguments> </type>
Answer:

A


Explanation:
To override a core class method in Adobe Commerce, the <preference> 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​​.

vote your answer:
A
C
A 0 C 0
Comments
Question 10

Which command can be used to display a full list of enabled and disabled Magento modules?

  • A. bin/magento module:all
  • B. bin/magento modulestatus
  • C. bin/magento module:show
Answer:

B


Explanation:
The command to display a full list of enabled and disabled Magento modules is bin/magento
module:status. This command provides a comprehensive overview of all modules within the
Magento instance, categorizing them into enabled and disabled modules. This information is crucial
for debugging and development purposes, as it allows developers to quickly understand which
components of Magento are active and which are not, facilitating troubleshooting and configuration
adjustments​​.

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Page 1 out of 7
Viewing questions 1-10 out of 77
Go To
page 2