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

PDF AD0-E716 Study Guide

Page: 2 / 5
Total 69 questions

Adobe Commerce Developer Expert Questions and Answers

Question 5

An Adobe Commerce developer is working on a custom gallery extension.

The module uses the Magento\catalog\Model\iinageUploader class for image uploading. The admin controller for custom image uploads is Vendor\CustomGallery\Controller\Adminhtml\Image\Upload.

The images need to be stored in different basePath and baseTmpPath than the default ones.

How can the default imageuploader class be extended and used without affecting the other modules that are already using it?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 6

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?

Options:

A.

There is nothing further the developer needs to do. The table will be removed when the module is disabled and bin/magento setup:upgrade is run.

B.

There is nothing further the developer needs to do. The table will be removed when the when bin/magento module:uninstall vendor_ModuleName is run.

C.

Add a schema patch that implements Magento\Framework\setup\Patch\PatchRevertabieinterface and drops the table in the revert function.

Question 7

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/magento my_module:order: process --order_id= is required.

Example: php bin/magento my_module:order:process --order_id=1245.

What is the correct way to configure the command?

A)

B)

C)

D)

Options:

A.

Option B

B.

Option C

C.

Option C

D.

Option D

Question 8

An Adobe Commerce developer has created a before plugin for the save() function within the

Magento\Framework\App\cache\Proxy class. The purpose of this plugin is to add a prefix on all cache identifiers that fulfill certain criteria.

Why is the plugin not executing as expected?

Options:

A.

Another around plugin defined for the same function does not call the callable.

B.

Cache identifiers are immutable and cannot be changed.

C.

The target ClaSS implements Magento\Framework\ObjectManager\NoninterceptableInterface.

Page: 2 / 5
Total 69 questions