New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Helping Hand Questions for AD0-E716

Page: 5 / 5
Total 69 questions

Adobe Commerce Developer Expert Questions and Answers

Question 17

An Adobe Commerce developer has installed a module from a third-party vendor. This module fires a custom event named third_party_event_after and also defines an observer named third_party_event_after_observer that listens to that event. The developer wants to listen to this custom event in their own module but wants to execute their observer's logic after the third_party_event_after_observer observer has finished executing.

What would the developer do to ensure their observer runs after the observer defined by the third-party module?

Options:

A.

Ensure the third-party module is listed in the node of the developer's module.xmi file.

B.

Set the sort order of the new observer to be less than that of the third-party vendor's observer.

C.

This is not possible as observers listening to the same event may be invoked in any order.

Question 18

An Adobe Commerce developer has created a module that adds a product attribute to all product types via a Data Patch-According to best practices, how would the developer ensure this product attribute is removed in the event that the module is uninstalled at a later date?

Options:

A.

Add an Uninstall.php file extending \l1agento\Framework\Setup\UninstallInterface tO the module's Setup directory and implement the uninstall

method.

B.

Add instructions to the module's README.md file instructing merchants and developers that they must manually remove this attribute if they want to uninstall the module.

C.

Make the Data Patch implement \Magento\Framework\setup\Patch\PatchRevertabieinterface and implement the revert method to remove the® product attribute.

Question 19

An Adobe Commerce developer is tasked with adding an new export option for the order grid, they have added the following code for the export button within sales_order_grid.xml:

Upon testing, they are getting redirected, what would be a cause for this error?

Options:

A.

The option's uri attribute is not valid.

B.

The layout cache needs to be refreshed.

C.

The developer has to add a formkey for the new export option.

Question 20

An Adobe Commerce developer added a new API method to search and retrieve a list of Posts for a custom Blog functionality. This is the content of the module's etc/webapi.xml file:

The new code has been deployed to production and the merchant is using https: //merchant. domain. com/swagger to review the new endpoint, but it is not visible in swagger.

What would be a reason for this?

Options:

A.

The webapi.xml file should be moved into the etc/webapi_rest/webapi.xml file.

B.

Since the new endpoint is not anonymous, the merchant needs to enter a valid integration token in swagger in order to see the new method.

C.

The greturn annotation is missing in the MyVendor\Blog\Api\PostRepositoryInterf ace class.

Page: 5 / 5
Total 69 questions