Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: myex65

Home > Adobe > Adobe Commerce > AD0-E716

AD0-E716 Adobe Commerce Developer Expert Question and Answers

Question # 4

For security reasons, merchant requested to a developer to change default admin url to a unique url for every branch/environment of their Adobe Commerce Cloud project.

Which CLI command would the developer use update the admin url?

A.

ece-tools variable:update ADMIN_URL

B.

magento-cloud variable:set ADMIN_URL

C.

bin/magento adminuri:set

Full Access
Question # 5

The developer is required to convert a modules database scripts from old install/upgrade setup files to a data patches format and does not want to apply database changes that were already done by install/upgrade scripts.

The current module version is 1.5.4.

What would be the recommended solution to skip changes that were already applied via old format (install/upgrade scripts)?

A.

Implement Patchversioninterface and return 1.5.4 on the getversion() method.

B.

Inside apply() method, check for module version and run the code if version is less than 1.5.4.

C.

This is not possible. A module cannot implement both data patch and install scripts.

Full Access
Question # 6

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 # 7

An Adobe Commerce developer has been asked to modify the PageBuilder slider content type to allow a new custom content type (other than slide) to be assigned as a child. The developer has already created the new content type called improved_slide in their module. They now need to create a new view/adminhtml/pagebuilder/content_type/slider. xml file in their module to allow the new content type to be a child of slider content types.

What is the correct xml to accomplish this?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 8

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?

A.

Create an extension attribute on Nagento\sales\Api\E)ata\orderinterface and an after plugin on

Magento\Sales\Model\Order: :getExtensionAttributes() to add the custom data.

B.

Create an extension attribute On Magento\Sales\Api\Data\OrderInterface and an after plugin On Magento\Sales\Api\OrderRepositoryInterface On geto and getListo to add the custom data.

C.

Create a before plugin on Magento\sales\model\ResourceModel\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.

Full Access
Question # 9

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 # 10

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 # 11

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 # 12

An Adobe Commerce developer was asked to provide additional information on a quote. When getting several quotes, the extension attributes are returned, however, when getting a single quote it fails to be returned.

What is one reason the extension attributes are missing?

A.

The developer neglected to add coiiection="trueM to their attribute in etc/extension_attributes.xmi file. O

ottribute code="my_attributesM type="MyVendor\MyModule\Api\Data\^AttributeInterface[]M collection="true" />

B.

The developer neglected to provide a plugin On Hagento\Quote\Api\CartRepositoryInterface: :get.

C.

The developer neglected to implement an observer on the coiiection_ioad_after event.

Full Access
Question # 13

An Adobe Commerce developer creates a new website using a data patch. Each website will have unique pricing by website. The developer does not have visibility into the production and staging environments so they do not know what the configuration currently is.

How would they ensure the configuration is deployed and consistent across all environments?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 14

Which hashing algorithm will Adobe Commerce choose to hash customer passwords?

A.

If the Sodium extension is installed, SHA256 will be chosen, otherwise MD5 will be used as the Magento default hashing algorithm.

B.

If the Sodium extension is installed, Argon 2ID13 will be chosen, otherwise SHA256 will be used as the Magento default hashing algorithm.

C.

It does not matter if the Sodium extension is installed or not, the Magento hashing default algorithm will be SHA256.

Full Access
Question # 15

A new customer registered on the Integration environment of an Adobe Commerce Cloud project but did not receive a welcome email What would be blocking the email from being sent?

A.

SendGrid has not been configured for this environment.

B.

On all Integration environments, email is always disabled.

C.

The Outgoing Emails setting is disabled into Environment Settings in the Project Web Interface.

Full Access
Question # 16

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?

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.

Full Access
Question # 17

A developer is working on an Adobe Commerce Cloud project and wants to get connection data for the environment's deployed services. The developer has all of the necessary permissions to do this.

Which two options would the developer take to get the connection credentials? (Choose Two.)

A.

Run the magento-cloud relationships CLI Command.

B.

Get the data from the Project Web Interface dedicated section.

C.

Execute ece-tools env:config:show services Command.

D.

Connect to server via SSH and read $_ENV['services'] variable.

Full Access
Question # 18

What are two ways to access the PHP error logs on Adobe Commerce Cloud? (Choose Two.)

A.

Use the dedicated command from Cloud CLI for Commerce.

B.

Navigate to the dedicated entry in the Project Web Interface.

C.

Connect to the the servers via SSH and localize the log files.

D.

Use the Adobe Admin Log application.

Full Access
Question # 19

An Adobe Commerce developer has created a new shipping carrier Everything has been implemented and the collectRates() and getAllowedMethodsQ functions can be seen below:

Given the above code, what would be the displayed cost of the shipping method and final amount charged to the customer?

A.

The shipping method would display SO but customers would pay a $10 handling fee for their order.

B.

The shipping method would display $0 and customers would pay $0 for using the new shipping method.

C.

The shipping method would display $10 and customers would pay $10 for using the new shipping method.

Full Access
Question # 20

There is an integration developed using a cron service that runs twice a day, sending the Order ID to the integrated ERP system if there are orders that are able to create an invoice. The order is already loaded with the following code:

$order = $this->orderRepository->get($orderId);

In order to verify if the store has invoices to be created, what implementation would the Adobe Commerce developer use?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access