Weekend Special 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 Expert Question and Answers

Question # 4

An Adobe Commerce developer is writing an integration test. They checked some Integration Tests for Magento core modules for reference and noticed that they use data fixtures initialized by adding annotations to test classes. For example:

The developer wants to add their own fixture to test a MyVendor_MyModule they created. Which steps will make this possible?

A.

1. Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_fiies/my_fixture.php.

2. Add the following annotation to the test method:

B.

1. Create a PHP file With the fixture data in [magento root dir]/dev/tests/integration/testsuite/MyVendor/MyModule/_files/my_fixture.php.

2. Add the following annotation to the test method:

C.

1. Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_f iies/my_f ixture.php.

2. Add the following annotation to the test method:

D.

Option A

E.

Option B

F.

Option C

Full Access
Question # 5

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

An Adobe Commerce developer is being tasked with creating a new cron job to run a method that has already been written. What are the minimally required steps to accomplish this?

A.

Create a crontab.xmi file and a new system configuration in system.xmi for the schedule.

B.

Create crontab.xmi and cron_groups.xmi files to assign the new job to a cron group.

C.

Create a crontab.xmi file and set a schedule for the new cron job.

Full Access
Question # 7

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

An Adobe Commerce developer is asked to create a new payment method for their project. This project has administrators who use the backend to manage customer information and occasionally place orders. When testing the new payment method on the frontend everything worked as expected, however, the payment method is missing in the admin.

What is a possible reason for this?

A.

In the module di.xml, there were no default 3DS verification types configured as a VirtualType.

B.

In the module config.xmi, the boolean value for can_capture was set to false.

C.

In the module config.xmi, the node can_use_internal was not set to true.

Full Access
Question # 9

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

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

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.

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

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

On an Adobe Commerce Cloud platform, what type of environment will be provisioned when launching the CLI for Commerce command magento-cloud environment:branch ?

A.

An empty integration environment without any code or database.

B.

An integration environment with fresh Adobe Commerce Cloud installation.

C.

An integration environment with the code and database from the parent environment.

Full Access
Question # 14

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

On an Adobe Commerce Cloud platform, at what level is the variable env: composer_auth located in the Project Web Interface?

A.

In the Environment-specific variables.

B.

In the Integration variables.

C.

In the Project variables.

Full Access
Question # 16

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

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

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

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