Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Adobe > Adobe Commerce > AD0-E716

AD0-E716 Adobe Commerce Developer with Cloud Add-on Question and Answers

Question # 4

An Adobe Commerce developer is asked to implement a 15% surcharge for all users from a 'Wholesale' customer group. Keeping best practices in mind, what is a correct to accomplish this?

A.

Declare a new total collector class to calculate the modified total if the current user is in the group, register it in the module's etc/sales .xml file, modify the checkout_cart_index.xml and checkout_index_index.xml layouts to include a new child in the totals block.

B.

Create a Cart Price Rule that applies only to the 'Wholesale' group. Specify no conditions for the rule, and in the Actions section, specify for the rule to apply a "Percent of product price discount", with the 'Discount Amount" field set to -15.

C.

Create an Observer to the cataiog_product_get_final_price event. Check if the current customer is in the 'Wholesale' group, and if so, retrieve the

product from the $observer->getEventC) data and Call $product->setData('final_price', $product->getData( 'final_price') * 1.15).

Full Access
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)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 6

There is the task to create a custom product attribute that controls the display of a message below the product title on the cart page, in order to identify products that might be delivered late.

The new EAV attribute is_delayed has been created as a boolean and is working correctly in the admin panel and product page.

What would be the next implementation to allow the is_delayed EAV attribute to be used in the .phtml cart page such as $block->getProduct()->getIsDelayed()?

A)

Create a new file etc/catalog_attributes.xmi:

B)

Create a new file etc/extension attributes.xmi:

C)

Create a new file etc/eav attributes.xmi:

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 7

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\Filesystem\Adapter\Local.

How would the developer achieve this using di. xml?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 8

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?

A.

Use the dedicated button on Project Web Interface.

B.

Use the Cloud CLI for Commerce dedicated command.

C.

Create a ticket to Adobe Commerce Cloud support.

Full Access
Question # 9

A developer wants to deploy a new release to the Adobe Commerce Cloud Staging environment, but first they need the latest code from Production.

What would the developer do to update the Staging environment?

A.

1. Log in to the Project Web Interface.

2. Choose the Staging environment, and click Sync

B.

1. Log in to the Project Web Interface.

2. Choose the Staging environment, and click Merge

C.

1. Checkout to Production environment

2. Use the magento-cloud synchronize Commerce CLI Command

Full Access
Question # 10

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

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 11

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?

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.

Full Access
Question # 12

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?

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 therevert method to remove the®product attribute.

Full Access
Question # 13

An Adobe Commerce developer is creating a new module to extend the functionality of the cart. The module is installed in app/code/CompanyName/ModuleName/.

How would an Adobe Commerce developer extend the existing CartltemPrices GraphQL schema to include a custom base_price field?

A.

Create and Configure a for Hagento\QuoteGraphQl\Model\Resolver\CartItemPrices that adds the base_price field in the resolve() function.

B.

Add the following to the module's etc/schema.graphqis file:

C)

Add the following to the module's etc/graphqi/di.xmi file:

C.

Option A

D.

Option B

E.

Option C

Full Access
Question # 14

When checking the cron logs, an Adobe Commerce developer sees that the following job occurs daily: main.INFO: Cron Dob inventory_cleanup_reservations is successfully finished. However, the inventory_reservation table in the database is not emptied. Why are there records remaining in the inventory_reservation table?

A.

Only reservations matching canceled orders are removed by the cron job.

B.

Only reservations no longer needed are removed by the cron job.

C.

The "Auto Cleanup" feature from Multi Source Inventory was disabled in configuration.

Full Access
Question # 15

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:

Vendor\FreeDownload\Model\Download

Vendor\FreeDownload\Model\DownloadPdf extends Vendor\FreeDownload\Model\Download

Vendor\FreeDownload\Model\DownloadImage extends Vendor\FreeDownload\Model\Download

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)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 16

An Adobe Commerce developer is working on a module to manage custom brand entities and wants to replicate the following SQL query using SearchCriteria:

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 17

The di. xml file of a module attaches two plugins for the class Action.

The PluginA has the methods: beforeDispatch, aroundDispatch, afterDispatch. The PluginB has the methods: beforeDispatch, afterDispatch.

The around plugin code is:

What would be the plugin execution order?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 18

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?

A.

In the route declaration, use the before or after parameters to load their module in before or after the original module.

B.

Inject the new action into the standard router constructor's $actiomist parameter.

C.

Addthe action into to the controllers/front_name/ in My.Module, Magento will automatically detect and use it.

Full Access
Question # 19

An Adobe Commerce developer has been tasked with applying a pricing adjustment to products on the website. The adjustments come from a database table. In this case, catalog price rules do not work. They created a plugin for getPrice on the price model, but the layered navigation is still displaying the old price.

How can this be resolved?

A.

Create an implementation for \Magento\Catalog\Hodel\Product\PriceModifierlnterf ace.

B.

Create an after plugin On \Magento\Catalog\Api\Data\BasePriceInterface:: getPrice.

C.

Create a plugin for\Magento\Catalog\Model\Indexer\Product\Price::executeRow.

Full Access
Question # 20

An Adobe Commerce developer wants to create a product EAV attribute programmatically which should appear as WYSIWYG in the admin panel. They have made sure that wysiwyg_enabled has been set to true, however, the attribute is not appearing as WYSIWYG in the admin panel.

What would be a possible reason?

A.

The is_html_allowed_on_front Option iS Set tO false.

B.

The input type is not set to text.

C.

The input type is not set to textarea.

Full Access