Adobe AD0-E716 Adobe Commerce Developer with Cloud Add-on Exam Practice Test

Page: 1 / 14
Total 69 questions
Question 1

An Adobe Commerce developer is about to deploy a critical feature to their Adobe Commerce Cloud (Pro Plan) production. They want to create a snapshot in order to be able to rollback if there is an issue with the feature.

How would they create the snapshot?



Answer : A

The developer can create a snapshot before deploying a critical feature to their Adobe Commerce Cloud (Pro Plan) production by using the dedicated button on Project Web Interface. A snapshot is a backup of an entire environment, including code, data, media files, and configuration settings. A snapshot can be used to restore an environment to a previous state in case of any issues or errors during deployment or testing. The developer can create a snapshot by accessing the Project Web Interface, choosing an environment, and clicking Create Snapshot. Verified Reference: [Magento 2.4 DevDocs]


Question 2

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?



Answer : C

The developer has to add a formkey for the new export option because the formkey is required for security reasons. Without the formkey, the request will be rejected and redirected to the dashboard page. Verified Reference: [Magento 2.4 User Guide] [Magento 2.4 DevDocs]


Question 3

An integration named Marketing is created on the Adobe Commerce instance. The integration has access on Magento_Customer:: customer resources and the access token is xxxxxx.

How would the rest API be called to search the customers?



Question 4

An Adobe Commerce developer successfully added a new column to the customers grid. This column needs the data to be formatted before showing its content in the grid.

According to best practices, how would the developer add the custom logic to render the column?



Answer : A


Question 5

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?



Question 6

An Adobe Commerce developer is asked to change the tracking level on a custom module for free downloading of pdf and images.

The module contains following models:

Download class has a parameter for tracking_level.

How will the developer configure the tracking_level parameter, in di.xml.to have a value of 4 for Download class and all classes that extend Download?

A)

B)

C)



Answer : B

To configure the tracking_level parameter in di.xml to have a value of 4 for the Download class and all classes that extend Download, the developer would use the following code:

<config>

<global>

<models>

<Vendor\FreeDownload\Model\Download>

<setting name='tracking_level' value='4'/>

</Vendor\FreeDownload\Model\Download>

<Vendor\FreeDownload\Model\DownloadPdf>

<rewrite name='tracking_level' value='4'/>

</Vendor\FreeDownload\Model\DownloadPdf>

<Vendor\FreeDownload\Model\DownloadImage>

<rewrite name='tracking_level' value='4'/>

</Vendor\FreeDownload\Model\DownloadImage>

</models>

</global>

</config>

The setting element is used to set a configuration value for a specific model. The rewrite element is used to override the default configuration value for a specific model. In this case, the tracking_level parameter is set to 4 for all models that extend Download.


Question 7

An Adobe Commerce Developer wishes to add an action to a pre-existing route, but does not wish to interfere with the functionality of the actions from the original route.

What must the developer do to ensure that their action works without any side effects in the original module?



Answer : A

To add an action to a pre-existing route without interfering with the functionality of the original route, the developer must use the before or after parameters in the route declaration. This will load the developer's module in before or after the original module, respectively.

For example, the following code would add an action to the my_module/index route before the action from the original module:

<route id='my_module/index'>

<before>my_module_before</before>

</route>

The my_module_before action would be executed before the MyModule\Controller\Index action, which would allow the developer to perform any necessary setup before the original action is executed.


Page:    1 / 14   
Total 69 questions