Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Adobe AD0-E709 Dumps

Page: 1 / 2
Total 50 questions

Adobe Commerce Developer Expert Questions and Answers

Question 1

An Adobe Commerce developer adds a new extension attribute to add an array of values to the invoices that are fetched through the APIs.

After a while, their technical manager reviews their work and notices something wrong with the extension_attributes.xml file that the developer created in their module: extension_attributes for="Magento\Sales\Hotel\Order\InvoiceRepository"> attribute code"my_code" type=string]’’> What is the problem with this xml snippet?

Options:

A.

The extension attribute references the repository instead of the interface it implements

(Magento\Sales\Api\invoiceRepositoryinteface

B.

The type is wrong, string[] should be replaced with array.

C.

The extension attribute references the wrong interface it should have referenced the Magento\Sales\APi\Invoiceinterface.

Question 2

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.)

Options:

A.

Create an observer that listens to the adminhtml_config_system_save_after

B.

Add a new field in etc.adminhtml/system.xml in my_Module with the file type:

C.

Add a custom backend model which extends /Magento\Framework\App\Config\Value and call afterSave:

D.

Add a new field in etc/adminhtml\system.xml in My_Module with a new custom type:

Question 3

Which two techniques can be used to protecta storefront POST action againstCross Site Request Forgery (CSRF) attacks? (Choose two.)

Options:

A.

The form sending data to that action needs to include a fornjtey parameter with a valid form key and the action must instantiate \Manento\Framwork\Data\ForumKey\Formkey\Validator validate it.

B.

The action needs to implement \Mgento\Framework\App\CSrfAwareActioninterface and include the validateForCsrf method implementing the actual protection logic.

C.

The form sending data to that action needs to include a form_key parameter with a valid form key which will automatically be used in a built-in CSRF validation.

D.

The action needs to implement \Magento\Framework\App\ActionvHttpPosTActioninterface to trigger built-in CSRF validation.

Question 4

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\Filestem\adapter\local.

How would the developer achieve this using di. xml?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 5

A Data Patch in a module being investigated implements \Magento\Framework\Setup\Patch\Patchversionlnterface and contains a getversion method which returns the string '2.4.2'.

What is the implication of this when php bin/magento setup:upgrade is run?

Options:

A.

The patch will only apply if the version specified in the data_version column of the setbpjnodule table for our module is lower than '2.4.2'.

B.

The patch will only apply if the version specified in the data_version column of the setup_module table for our module is higher than '2.4.2'.

C.

The patch will only apply if the current version of the Magento Framework is '2.4.2', and likely contains code that is incompatible with later versions.

Question 6

An Adobe Commerce developer is tasked with adding custom data to orders fetched from the API While keeping best practices in mind, how would the developer achieve this?

Options:

A.

Create an extension attribute on Magento\Seles\Api\Data\OrderInterface and an after plugin on Magento\Sales\Model\Order: :getExtensionAttributes() to add the custom data.

B.

Create a before plugin on Magento\Sales\Model\ResourceMode\Order\Collection:: load and alter the query to fetch the additional data. Data will then be automatically added to the items fetched from the API.

C.

Create an extension attribute on Magento\Sales\ApI\Data\Orderinterface and an after plugin on Magento\sales\Api\orderRespositoryinterface on get() and getlist () to add the custom data.

Question 7

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 theCLI command php bin/magento app:config:dump is used.

How would the developer achieve this?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Page: 1 / 2
Total 50 questions