Special Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70special

Adobe AD0-E716 Adobe Commerce Developer Expert Exam Practice Test

Page: 1 / 7
Total 69 questions

Adobe Commerce Developer Expert Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$37.5  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$33  $109.99
Question 1

An Adobe Commerce developer has created a before plugin for the save() function within the

Magento\Framework\App\cache\Proxy class. The purpose of this plugin is to add a prefix on all cache identifiers that fulfill certain criteria.

Why is the plugin not executing as expected?

Options:

A.

Another around plugin defined for the same function does not call the callable.

B.

Cache identifiers are immutable and cannot be changed.

C.

The target ClaSS implements Magento\Framework\ObjectManager\NoninterceptableInterface.

Question 2

An Adobe Commerce developer has added an iframe and included a JavaScript library from an external domain to the website. After that, they found the following error in the console:

Refused to frame [URL] because it violates the Content Security Policy directive.

In order to fix this error, what would be the correct policy ids to add to the csp_whitelist.xml file?

Options:

A.

frame-src and script-src

B.

default-src and object-src

C.

frame-ancestors and connect-src

Question 3

An international merchant is complaining that changes are taking too long to be reflected on the frontend after a full product import.

Thinking it may be database issues, the Adobe Commerce developer collects the following entity counts:

• Categories: 900

• Products: 300k

• Customers: 700k

• Customer groups : 106

• Orders: 1600k

• Invoices: 500k

• Creditmemos: 50k

• Websites : 15

• Stores : 45

What is a probable cause for this?

Options:

A.

The combination of the number of products, categories and stores is too big. This leads to a huge amount of values being stored in the flat catalog indexes which are too large to be processed at a normal speed.

B.

The combination of the number of orders, customers, invoices and creditmemos is too big. This leads to a huge amount of values being stored in the customer grid index which is too large to be processed at a normal speed.

C.

The combination of the number of products, customer groups and websites is too big. This leads to a huge amount of values being stored in the price index which is too large to be processed at a normal speed.

Question 4

A merchant of an Adobe Commerce Cloud project wants to setup one of their websites using a subdomain. The merchant is considering the domain to be set as secondstore.example.com.

In addition to editing the magento-vars.php file, and apply a domain check and set $_SERVER["MAGE_RUN_CODE"] and $_SERVER["MAGE_RUN_TYPE"].

What file is required to perform this action?

Options:

A.

Configure secondstore.example.com subdomain route in NGINX virtual-host configuration file.

B.

Configure secondstore.example.com subdomain route in .magento/services.yaml.

C.

Configure secondstore.example.com subdomain route in .magento/routes.yaml.

Question 5

How would a developer turn on outgoing emails on an Adobe Commerce Cloud Staging environment?

Options:

A.

From the command line

ece-tools enable_smtp true

B.

From the command line

magento-cloud environment:info -p -e enable_smtp true

C.

Access the Project Web Interface and select the Staging environment.

Select Configure environment.

Toggle Outgoing emails On

Question 6

An Adobe Commerce Developer is tasked with creating a custom form which submits its data to a frontend controller They have decided to create an action and have implemented the \Magento\Framework\App\Action\HttpPostActioninterface class, but are not seeing the data being persisted in the database, and an error message is being shown on the frontend after submission.

After debugging and ensuring that the data persistence logic is correct, what may be cause and solution to this?

Options:

A.

Magento does not allow POST requests to a frontend controller, therefore, the submission functionality will need to be rewritten as an API endpoint.

B.

The developer forgot to implement a validatePostDataQ method in their action. They should implement this method: all non-validated POST data

gets stripped out of the request and an error is thrown.

C.

Form key validation runs on all non-AJAX POST requests, the developer needs to add the for_key to their requests.

Question 7

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?

Options:

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.

Question 8

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?

Options:

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.

Question 9

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?

Options:

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.

Question 10

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?

Options:

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

Question 11

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?

Options:

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.

Question 12

An Adobe Commerce developer is working on a Magento 2 instance which contains a B2C and a B2B website, each of which contains 3 different store views for English, Welsh, and French language users. The developer is tasked with adding a link between the B2C and B2B websites using a generic link template which is used throughout the sites, but wants these links to display in English regardless of the store view.

The developer creates a custom block for use with this template, before rendering sets the translate locale and begins environment emulation using the following code:

They find that the template text is still being translated into each stores language. Why does this occur?

Options:

A.

startEnvironmffntEmulation() SetS and locks the locale by Using the setLocale() Optional Second $lock parameter, i.e. setLocale($newLocaleCode,

true), to override and lock the locale of the emulated store. If this is set and locked initially then the environment emulation will not be able to override this.

B.

startEnvironmentEmuiation() resets the translation locale to the one of the emulated stores, which overrides the locale the developer has set when the order of setLocate and startEnvironmentEmulation is used as displayed above.

C.

setLocate() does not change translation locale after it has been initially set, the $this->_translate->emulate($newLocaiecode) method exists to temporarily modify this by pushing the new locale to the top of the current emuiatedLocales stack.

Question 13

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?

Options:

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

Question 14

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

Options:

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.

Question 15

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?

Options:

A.

The option's uri attribute is not valid.

B.

The layout cache needs to be refreshed.

C.

The developer has to add a formkey for the new export option.

Question 16

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)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 17

An Adobe Commerce developer is tasked to add a file field to a custom form in the administration panel, the field must accept only .PDF files with size less or equal than 2 MB. So far the developer has added the following code within the form component xml file, inside the fieldset node:

How would the developer implement the validations?

A)

Add the Validations Within the HyVendor\MyModule\Controller\Adminhtml\CustomEntity\UploadPdf Controller

B)

Add a virtual type forMyvendor\MyModuie\Modei\customPdfupioader specifying the aiiowedExtensions and the maxFiiesize for the constructor, within the module's di.xmi:

C)

Add the following code inside the node:

Options:

A.

Option A

B.

Option B

C.

Option C

Question 18

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?

Options:

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

Question 19

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?

Options:

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.

Question 20

An Adobe Commerce Cloud project is using Enhanced Integration Environments with two install a new payment module.

The developer is using Cloud CLI for Commerce tool.

What would a developer do to test this new feature under the integration environment?

Options:

A.

1. Duplicate one of the integration environment branches.

2. Create a new active branch from integration and install the module.

3. Push the changes.

B.

1. Create a new branch from integration and install the module.

2. Push the changes.

3. Branch active status check is not necessary.

C.

1. Deactivate one of the active integration environment branches.

2. Create a new active branch from integration and install the module.

3. Push the changes.

Page: 1 / 7
Total 69 questions