Adobe ad0-e725 practice test

Adobe Commerce Developer Expert

Last exam update: Nov 18 ,2025
Page 1 out of 4. Viewing questions 1-15 out of 50

Question 1

An Adobe Commerce Developer is tasked with configuring a custom module to allow for different
behaviors of a core class without altering the original class code.
How should the Developer achieve this flexibility by leveraging Magento’s dependency injection
system?

  • A. Use virtual types in the di.xml file.
  • B. Use a transient object in the di.xml file.
  • C. Use constructor arguments in the di.xml file.
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 2

A Developer is working on an Adobe Commerce store, and the security team has flagged certain
inline scripts in the store as vulnerable to potential attacks. The Developer decides to implement
Content Security Policies (CSP) to secure the store’s environment.
What will the Developer achieve by taking this action?

  • A. Ensure that all user input is sanitized before being processed by the application.
  • B. Prevent users from accessing certain areas of the website based on their IP address.
  • C. Restrict which resources (scripts, styles, images) are allowed to load on the website.
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 3

An Adobe Commerce Developer creates a before plugin for the save() method from the
Magento\Framework\App\Cache\Proxy class to manipulate with cache identifiers and data before it
is saved to the cache storage. An example of the code is shown below:
namespace Magento\Framework\App\Cache;
use Magento\Framework\App\Cache\CacheInterface;
use Magento\Framework\ObjectManager\NoninterceptableInterface;
class Proxy implements
CacheInterface,
NoninterceptableInterface
{
...
public function save($data, $identifier, $tags = [], $lifeTime = null)
{
return $this->getCache()->save($data, $identifier, $tags, $lifeTime);
}
...
}
Why is the plugin not working as expected?

  • A. The plugin cannot be created for this class.
  • B. An after plugin defined for the same function affects the results.
  • C. An around plugin defined for the same function prevents the execution.
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 4

A Developer needs to subscribe to the customer_register_success event.
How should the observer be declared in the module?

  • A. Declare in etc/events.xml: <event name="customer_register_success"> <observer name="vendor_module_customer_register_observer" instance="Vendor\Module\Observer\CustomerRegisterSuccess" /> </event>
  • B. Declare in etc/events.xml: <observer name="customer_register_success"> <event name="vendor_module_customer_register_observer" instance="Vendor\Module\Observer\CustomerRegisterSuccess" /> </observer>
  • C. Declare in etc/observer.xml: <observer name="vendor_module_customer_register_observer"> <event name="customer_register_success" instance="Vendor\Module\Observer\CustomerRegisterSuccess" /> </observer>
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 5

A Developer creates daily cron jobs to automate a client’s business processes, including automated
stock imports via CSV files once per day. After a few days, it is noted that the cron jobs do not run
daily. The Developer discovers the cron jobs are sometimes assigned a ‘missed’ status and do not
execute, and other cron jobs become stuck during the execution time of the custom cron jobs.
Which option should the Developer use to ensure the cron jobs consistently run each day?

  • A. Implement a custom group for the cron jobs in the crontab.xml.
  • B. Set the cron jobs to run multiple times per day instead of once daily.
  • C. In the execute() function, implement a lock checker to make sure the cron runs alone.
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 6

A new critical security vulnerability is found on Adobe Commerce Cloud. The successful exploitation
may lead to arbitrary code execution, so the Developer must apply a security patch file given by
Adobe as soon as possible to ensure system security.
How should the Developer apply the security patch on Adobe Commerce hosted on cloud
infrastructure according to best practices?

  • A. Apply a security patch using composer.json
  • B. Copy a security patch to m2-hotfixes directory
  • C. Upgrade Adobe Commerce to the latest security patch release
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 7

An Adobe Commerce Developer is approached to disable several cron jobs from a customization
completed by a third-party agency. The cron jobs will eventually be enabled again once a code
review of the cron jobs is complete.
Using best principles, how should the Developer action this request?

  • A. Add the schedule="* * * * *" to the <job> node in the crontab.xml file.
  • B. Edit the schedule with a date which will never happen in the crontab.xml file.
  • C. Add the disabled="true" to the <job> node in the crontab.xml file.
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 8

An Adobe Commerce Developer is tasked with adding a custom tax calculation to the checkout
process. In addition to core tax calculations, a legacy code extending core tax calculation classes is
also found. The Developer wants to utilize Magento’s dependency injection system effectively to
meet requirements, ensuring the solution works without modifying the existing core and legacy
classes.
What should the Developer implement to achieve this?

  • A. Constructor arguments
  • B. Virtual types
  • C. Preferences
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 9

A Developer discovers that inline scripts are no longer working. This issue occurred after upgrading
to the latest version of Adobe Commerce. When checking the console, the errors indicate that the
scripts are not allowed to execute. The following is an example script:
<div id="action-div" onclick="someComponent('title')">Action</div>
How should the Developer adapt the script to run properly according to security practices?

  • A. <?php echo $escaper->renderSecureTag('<div id="action-div" onclick="someComponent(\'title\')">Action</div>'); ?>
  • B. <?php echo $block->renderAllowedElement('<div id="action-div" onclick="someComponent(\'title\')">Action</div>'); ?>
  • C. <?php echo $secureRenderer->renderEventListenerAsTag('onclick', 'someComponent(\'title\')', '#action-div'); ?>
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 10

A Developer working on a Magento 2 store needs to modify the Content Security Policy (CSP) to
allow loading of images from a trusted external domain while maintaining strict policies for other
resources. To accomplish this, the csp_whitelist.xml file must be updated.
Which code snippet should the Developer use to update the CSP configuration?
A.
XML
<policies>
<policy id="default-src">
<values>
<value id="trusted_image" type="host">website.com</value>
</values>
</policy>
</policies>
B.
XML
<policies>
<policy id="img-src">
<values>
<value id="trusted_image" type="host">website.com</value>
</values>
</policy>
</policies>
C.
XML
<csp>
<policies>
<policy id="media-src">
<values>
<value id="trusted_image" type="host">website.com</value>
</values>
</policy>
</policies>
</csp>

Mark Question:
Answer:

B

User Votes:
Discussions
vote your answer:
0 / 1000

Question 11

A client requests changes to their Pro Staging and Production environments. They supply a Developer
with different domains for new websites to be created with the goal of expanding operations to
multiple countries, doubling the current number of SKUs, and adding more customer groups.
Which two issues should the Developer anticipate based on the requested changes? (Choose two.)

  • A. Recreate hierarchy navigation for every new website.
  • B. Catalog data expands as the number of websites and stores are increased.
  • C. Additional stores can lead to a longer indexing process and slower response times for noncached catalog pages.
  • D. Multiple websites may require duplicating custom functionality for each store, which increases code redundancy.
Mark Question:
Answer:

B, C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 12

A Developer is tasked with creating a new index. The custom indexer is not automatically updating
the product data.
How should the Developer solve this issue?

  • A. Use an event observer to monitor data changes.
  • B. Use the mview to allow tracking database changes.
  • C. Implement custom database triggers.
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 13

While implementing additional functionality, a Developer needs to modify a class with protected and
private methods requiring custom logic. The Developer finds that no other Magento customization,
such as plugins, will work.
What should the Developer do in this scenario?

  • A. Use a preference and extend the original class.
  • B. Use an observer to customize data processed by the class.
  • C. Use a patch to implement the necessary customizations.
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 14

In an Adobe Commerce store, there is a product attribute called external_service_id. A Developer
must ensure the attribute is only available for specific users via the API.
How should the Developer achieve the required permissions?

  • A. Configure the access control list (ACL) resource for the external_service_id attribute via etc/extension_attributes.xml.
  • B. Setup a custom permission control at the attribute level because it is not supported out of the box.
  • C. Implement an afterGet plugin and exclude the attribute for non-authorized users.
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 15

A recent client-reported bug is fixed by the Adobe Commerce community. The Adobe engineering
team has not yet released the patch or committed the bug fix to GitHub. A Developer acquires the
custom patch and releases it to their Adobe Commerce environments.
What are the recommended steps the Developer should follow to implement the custom patch for
the bug fix?

  • A. Install only official patches supplied by them to maintain upgradability.
  • B. Update the quality-patches module and list the required patch in the magento-ce-patch.yaml file.
  • C. Install the cweagans/composer-patches module and edit the composer.json file to apply the custom patch.
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000
To page 2