Adobe AD0-E716 Exam
Adobe Commerce Developer with Cloud Add-on (Page 8 )

Updated On: 9-Feb-2026

An Adobe Commerce developer is creating a new console command to perform a complex task with a lot of potential terminal output. If an error occurs, they want to provide a message that has higher visibility than some of the other content that may be appearing, so they want to ensure it is highlighted in red (as seen in the screenshot):



How can they customize the appearance of this message?

  1. Call the setDecorationType(Stype) method On the Symfony\Console\Output\OutputInterface Object before Calling writeln().
  2. Wrap the output content in tags like <error>, <info>, or <comment>.
  3. Throw a new commandException with the desired message passed as an argument.

Answer(s): A

Explanation:

The developer can customize the appearance of the error message by calling the setDecorationType() method on the Symfony\Console\Output\OutputInterface object before calling writeln(). The setDecorationType() method takes a single argument, which is the type of decoration that the developer wants to use. In this case, the developer wants to use the STYPE_ERROR decoration, which will highlight the message in red.
Here is an example of how to customize the appearance of the error message:

$output = new Symfony\Console\Output\ConsoleOutput();
$output->setDecorationType(Symfony\Console\Output\OutputInterface::STYPE_ERROR); $output->writeln('This is an error message.');

The output of this code will be an error message that is highlighted in red.



An Adobe Commerce developer is being tasked with creating a new cron job to run a method that has already been written.
What are the minimally required steps to accomplish this?

  1. Create a crontab.xmi file and a new system configuration in system.xmi for the schedule.
  2. Create crontab.xmi and cron_groups.xmi files to assign the new job to a cron group.
  3. Create a crontab.xmi file and set a schedule for the new cron job.

Answer(s): C

Explanation:

According to the Configure and run cron guide for Magento 2 developers, the crontab.xmi file is used to declare and configure cron jobs for a module. The file should specify the name, instance, method and schedule of the cron job. Therefore, creating a crontab.xmi file and setting a schedule for the new cron job are the minimally required steps to accomplish this task. Verified


Reference:

https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html



Which hashing algorithm will Adobe Commerce choose to hash customer passwords?

  1. If the Sodium extension is installed, SHA256 will be chosen, otherwise MD5 will be used as the Magento default hashing algorithm.
  2. If the Sodium extension is installed, Argon 2ID13 will be chosen, otherwise SHA256 will be used as the Magento default hashing algorithm.
  3. It does not matter if the Sodium extension is installed or not, the Magento hashing default algorithm will be SHA256.

Answer(s): B

Explanation:

If the Sodium extension is installed, Argon 2ID13 will be chosen as the Magento default hashing algorithm. Otherwise, SHA256 will be used.
The Sodium extension is a PHP extension that provides cryptographic functions. Argon 2ID13 is a password hashing algorithm that is considered to be more secure than SHA256. If the Sodium extension is installed, Magento will use Argon 2ID13 as the default hashing algorithm for customer passwords. If the Sodium extension is not installed, Magento will use SHA256 as the default hashing algorithm.



An Adobe Commerce developer is developing a custom module. As part of their implementation they have decided that all instances of their Custom\Module\Model\Example class should receive a new instance of Magento\Filesystem\Adapter\Local.
How would the developer achieve this using di. xml?




Answer(s): B

Explanation:

The developer can achieve this by adding the following configuration to their di.xml file:
XML
<config>
<component name="Custom\Module\Model\Example"
factory="Custom\Module\Model\ExampleFactory">
<arguments>
<argument name="filesystemAdapter" type="Magento\Filesystem\Adapter\Local" /> </arguments>
</component>
</config>
This configuration will ensure that all instances of the Custom\Module\Model\Example class will receive a new instance of the Magento\Filesystem\Adapter\Local class.



An Adobe Commerce developer has been tasked with applying a pricing adjustment to products on the website. The adjustments come from a database table. In this case, catalog price rules do not work. They created a plugin for getPrice on the price model, but the layered navigation is still displaying the old price.
How can this be resolved?

  1. Create an implementation for \Magento\Catalog\Hodel\Product\PriceModifierlnterf ace.
  2. Create an after plugin On \Magento\Catalog\Api\Data\BasePriceInterface:: getPrice.
  3. Create a plugin for\Magento\Catalog\Model\Indexer\Product\Price::executeRow.

Answer(s): C

Explanation:

The developer can resolve this issue by creating a plugin for the Magento\Catalog\Model\Indexer\Product\Price::executeRow() method. This method is responsible for updating the product price index.
The plugin can be used to add the pricing adjustment from the database to the product price index. Once the product price index is updated, the layered navigation will display the correct price. Here is an example of a plugin for the executeRow() method:
PHP
class MyPlugin
{
public function executeRow(
\Magento\Catalog\Model\Indexer\Product\Price $subject, \Magento\Catalog\Model\Product $product,
array $data
) {

$adjustment = $this->getAdjustment($product);

$product->setPrice($product->getPrice() + $adjustment); }

private function getAdjustment(Product $product)
{
$adjustment = $product->getData('adjustment');

if (!is_numeric($adjustment)) {
return 0;
}

return $adjustment;
}
}
This plugin will add the adjustment data from the product to the product price index. Once the product price index is updated, the layered navigation will display the correct price.






Post your Comments and Discuss Adobe AD0-E716 exam prep with other Community members:

Join the AD0-E716 Discussion