Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Adobe AD0-E702 Adobe Commerce Developer Professional Exam Practice Test

Demo: 15 questions
Total 103 questions

Adobe Commerce Developer Professional Questions and Answers

Question 1

You have been given the task of importing products from an external source. You decide to create a custom module to do this. The class handling the import creates a product for each record, sets the data on it and saves it to the database.

What do you inject into a constructor to represent each product you create?

Options:

A.

\Magento\Catalog\Model\Product

B.

\Magento\Catalog\Api\Data\ProductInterfaceFactory

C.

\Magento\Catalog\Api\Data\ProductInterface

D.

\Magento\Catalog\Model\ProductBuilder

Question 2

You are developing a new theme which inherits from the Magento_Luma theme.

How is this accomplished?

Options:

A.

Add Magento/luma to theme.xml

B.

Run the CLI command bin/magento dev:theme:inherit Magento_Luma

C.

Specify the parent theme in Magento admin > Design > Configuration

D.

Add Magento/luma to etc/view.xml

Question 3

You got a notification about error that occurred on a production environment. The merchant gave you the error identifier.

How do you find the error message based on the identifier?

Options:

A.

An error is written to the var/log/exception.log file including the identifier

B.

The error is sent to the pre-configured error email with the identifier in the subject

C.

A file with a name matching the identifier is written to the var/report folder

D.

An error message is written to the database table error_log with an error_id field matching the identifier

Question 4

Where do you change the frontName for the admin router?

Options:

A.

app/etc/config.xml

B.

app/etc/env.php

C.

app/etc/local.xml

D.

composer.json

Question 5

You added a plugin declaration to MyCompany/MyModule/etc/di.xml:

What will be the effect of this declaration?

Options:

A.

An exception because plugins must not be applied to the interfaces

B.

An exception because of the syntax error in the declaration

C.

The plugin will be ignored because ActionInterface will never be instantiated directly

D.

The plugin will be applied to all implementors of the ActionInterface

Question 6

What are two functions of a resource model? (Choose two.)

Options:

A.

It executes create, retrieve, update and delete actions for an entity

B.

It loads lists of entity models

C.

It is made available in the Magento API for the purpose of data manipulation

D.

It maps an entity to one or more database rows

Question 7

You are creating a new page layout for your custom module.

What is the primary difference between container and block elements?

Options:

A.

They extend different abstract classes

B.

A container’s children are rendered automatically

C.

Only containers can be removed by name or alias

D.

A block’s position within the layout can be altered

Question 8

A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.

How is this implemented?

Options:

A.

By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attribute

B.

By changing the System Configuration setting: Customer>Allow multiple billing addresses to Yes

C.

By altering the customer_entity table, adding the field billing_address2, and customizing both My Account and Checkout functionality to use that new field

D.

This is out-of-the box functionality

Question 9

In layout files you can change al element’s order on a page. This can be done using one of the following:

  • instruction
  • before and after element attributes?

How are two methods different?

Options:

A.

They are the same, both provide access to the same functionality

B.

Elements are renamed by default when using the move instruction

C.

The move instruction allows altering an element’s parent node

D.

Before and after attributes can only be used with referenceContainer and referenceBlock

Question 10

You are reviewing a Magento module and see a directory named Service.

What can you determine from this directory’s name?

Options:

A.

It is where the API response cache is stored

B.

It is where API-related configuration resides

C.

It is where the module’s service contracts are stored

D.

You need to review the files in this folder to understand its purpose

Question 11

While developing a module you need to modify an existing Data Patch.

How can you force Magento to execute an existing Data Patch file again?

Options:

A.

By removing the Data Patch, running the command: bin/magento setup:db-data:upgrade, then copying the file back and running the command again

B.

By deleting the record with the Data Patch class name from the table patch_list table

C.

By changing the version of the Data Patch in the getVersion method

D.

By modifying the data_version value in the setup_module table

Question 12

Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

Options:

A.

Language

B.

Area

C.

Store View

D.

Store

E.

Website

Question 13

Magento 2’s architecture uses code to bootstrap a custom module that resides in app/code.

What two files are required to make a module usable? (Choose two.)

Options:

A.

Helper/Data.php

B.

etc/config.xml

C.

etc/module.xml

D.

registration.php

Question 14

You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.

Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?

Options:

A.

cache:clean config_webservice

B.

cache:refresh config_webservice

C.

cache:flush

D.

cache:purge

Question 15

You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.

How do you implement this, keeping simplicity in mind?

Options:

A.

Create a custom block which will dynamically choose the appropriate template

B.

Specify custom layout update XML in the admin panel for every product

C.

Write a Data Patch which will set the appropriate layout update XML for every product record

D.

Enable the dynamic product page UI component and configure it to use a different layout per price range

Demo: 15 questions
Total 103 questions