AD0-E709 Adobe Commerce Developer Expert Questions and Answers
An Adobe Commerce developer has just finished creating a new custom entity, a block that extends \Mangento\Framework\View|Element\abstractBlock that lists all of the existing entities and a controller with the appropriate handle to display the block.
The developer now wants to implement cache on the block so that when one of the custom entities is saved, the cache of the block is automatically invalidated.
According to best practices- what are the two steps to accomplish this? (Choose two.)
The developer is required to convert a modules database scripts from old install/upgrade setup files to a data patches format and does not want to apply database changes that were already done by install/upgrade scripts.
The current module version is 1.5A
What would be the recommended solution to skip changes that were already applied via old format (install/upgrade scripts)?
An Adobe Commerce developer is creating a module (Vendor_ModuleName) to be sold on the Marketplace. The new module creates a database table using declarative schema and now the developer needs to make sure the table is removed when the module is disabled.
What must the developer do to accomplish this?
A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a "file upload" field in admin configuration of Adobe Commerce.
What are the two requirements to display the "file upload' field and process the actual CSV import? (Choose two.)
There is an integration developed using a cron service that runs twice a day. sending the Order ID to the integrated ERP system if there are orders that are able to create an invoice. The order is already loaded with the following code:
$order =$this- > orderRepository- > get($orderid);
In order to verify if the store has invoices to be created, what implementation would the Adobe Commerce developer use?
A)

B)

C)

An Adobe Commerce developer has a requirement to add some settings which are unique to a specific system and it will be dumped to app/etc/env.php when the CLI command php bin/magento app:config:dump is used.
How would the developer achieve this?
A)

B)

C)

An Adobe Commerce developer creates a new website using a data patch. Each website will have unique pricing by website. The developer does not have visibility into the production and staging environments so they do not know what the configuration currently is.
How would they ensure the configuration is deployed and consistent across all environments?
An Adobe Commerce developer is asked to implement a 15% surcharge for all users from a Wholesale' customer group. Keeping best practices in mind, what is a correct way to accomplish this?
An Adobe Commerce developer has created a process that exports a given order to some external accounting system. Launching this process using the Magento CLI with the command php bin/tagento "/.module:order:process --oruer_id- < order_id > is required.
Example: php bin/magento ny_module:order:proeess --order_id=1245.
What is the correct way to configure the command?
A)

B)

C)

When building a custom page we need to get a collection of data. To determine how many items are in this collection, the Adobe Commerce developer uses $collection- > count() . This sometimes is slow and causes some delay.
What is the reason?
An Adobe Commerce Developer has created a new custom block extending \Magento\Framework\view\Element\AbstractBlock and has set the cache_lifetime data property for the block so that the output gets cached.
The block is inserted into the sidebar, and displays differing content depending on which currency is being used. The developer finds that the block is displaying the same content for all currencies, depending on which currency is viewed first after the cache has been flushed.
How would the developer resolve this?
An Adobe Commerce developer has been tasked to create a new rest API endpoint to get a list of items for a CustomEntity . When testing the endpoint, it throws an exception.
This is the code the developer has written for MyVendor\Module\Api\CustomEntityRepositoryInterface:

And this is the implement method within MyVendor\MyModulemodel\CustomEntityRepository:

What is wrong with the code?








