Adobe Commerce Developer Expert - AD0-E709 Exam Practice Test
What is a valid use case for an around plugin?
Correct Answer: C
Assume that $collection is a new instance of a class that extends Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.
How do you select a list of records from the database where the record ids are in the $ids list?

How do you select a list of records from the database where the record ids are in the $ids list?

Correct Answer: B
You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.
How do you do that?
How do you do that?
Correct Answer: D
What order operation is available in the My Account section in the storefront?
Correct Answer: A
Which method of a Magento resource model will remove a record from the database?
Correct Answer: A
In the module located at app/code/MyCompany/MyModule there is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/ and the luma theme with the en_US locate is used.
What is the public URL for this file?
What is the public URL for this file?
Correct Answer: A
You have created a new block and will be adding this block on every page. The block contains user-specific information and cannot be cached.
The block is added to the default.xml with:

What does this accomplish?
The block is added to the default.xml with:

What does this accomplish?
Correct Answer: D
When using the traditional Magento frontend, an Adobe Commerce developer is tasked to create a before plugin every time that the totals information loads on the cart page summary.
Considering performance, where would the di .xml be added?
Considering performance, where would the di .xml be added?
Correct Answer: A
What scopes are available for customer attributes?
Correct Answer: A
A message queue currently has queue/consumer-wait-for-messages set to true, which allows the consumer process to run until a message is inserted into the queue. A piece of functionality is driven by data stored in the model.\Magento\Variable\\Model\variable and this value is only loaded once during the consumer run. If the variable is updated we want the consumer to restart so that the new value is loaded into memory without having to reload the variable on each message consumed.
The Adobe Commerce developer has created an after plugin on the \Magento\variable\variable::save() function.
How would the developer use the plugin to trigger the consumer restart?
The Adobe Commerce developer has created an after plugin on the \Magento\variable\variable::save() function.
How would the developer use the plugin to trigger the consumer restart?
Correct Answer: A