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

Adobe AD0-E703 Adobe Commerce Developer Expert Exam Practice Test

Demo: 20 questions
Total 135 questions

Adobe Commerce Developer Expert Questions and Answers

Question 1

You are creating a module that will be sold on the Magento Marketplace. You wish for this module to be easily extensible, and decide to add the capability for other developers to utilize extension attributes. What is the minimum update necessary to enable this capability?

Options:

A.

Add the getExtensionAttributes() method and implement ExtensionAttributesInterface in each model.

B.

Create an ExtensionAttributeInterface for each model.

C.

Ensure each model extends Magento\Framework\Model\AbstractExtensibleModel.

D.

Configure your models in etc/extension_attributes.xml

Question 2

Magento and third-party developers can find it difficult to track and report the dependencies that customized extensions have on other extensions. To address these issues, the Magento system introduces service contracts. What is a Service Contracts - Data interfaces?

Options:

A.

set of PHP interfaces that are defined for a module includes data interfaces

B.

set of API interfaces that are defined for a module includes web APIs

C.

set of UI Library that are defined for a module includes ui content

D.

set of JS Library that are defined for a module includes js Library

Question 3

A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added.

How do you specify the class that will process the uploaded file?

Options:

A.

\Magento\Config\Model\Config\Upload\File

B.

\Magento\Config\Model\Config\Frontend\File

C.

\Magento\Config\Model\Config\Backend\File

D.

\Magento\Config\Model\Config\Source\File

Question 4

You have created a new product type, sample, and need to customize how it renders on the shopping cart page. Keeping maintainability in mind, how do you add a new renderer?

Options:

A.

Create the layout file, checkout_cart_item_renderers.xml, reference the checkout.cart.item.renderers block and add a new block with an as="sample" attribute.

B.

Override the cart/form.phtml template and add logic for the sample product type.

C.

Create the layout file, checkout_cart_index.xml, and reference the checkout.cart.renderers block and add a block with the as="sample" attribute.

D.

Create the layout file, checkout_cart_index.xml, and update the cart page's uiComponent to appropriately render the sample product type.

Question 5

How do you pass an array [‘one’, ‘two] as a parameter to you block using the layout XML arguments directive?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 6

A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals.

Which two actions do you take to make sure the newsletter is sent? (Choose two.)

Options:

A.

Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml

B.

Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml

C.

Make sure bin/magento cron:run is added to the system crontab

D.

Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml

Question 7

You have created a custom module which must perform an action immediately after an order is placed, but only on the store front of the merchant site. You have selected the checkout_submit_all_after as the target event which the module will observe.

In which file will the event observer be declared?

Options:

A.

etc/frontend.xml

B.

etc/events.xml

C.

etc/config.xml

D.

etc/frontend/events.xml

Question 8

A merchant sells shoes with multiple variations such as a color and size. A shoe is represented by a configurable product. There are seven different colors and four sizes.

What is the minimal amount of simple products that represent a combination of color and size needs to be created in order to make a shoe salable?

Options:

A.

Each color and size must have at least one representation, so a minimum of seven products is needed

B.

One simple product that represents a combination of color and size is enough

C.

A product may be purchased even without any combination available. The color and size may be adjusted during order fulfillment

D.

A simple product for every combination must be created

Question 9

What happens when a category’s is_anchor attribute is set to 1?

Options:

A.

Products without a specified category will be associated with this category

B.

The customer will see all products from all children of the category

C.

This is the default category for a website

D.

The category will always be visible in the menu

Question 10

How can you access the select query of a collection?

Options:

A.

You can only access the select query after the collection has been loaded by calling the public method query()

B.

It is stored in a protected variable $query and can only be accessed from the inside of a collection class

C.

You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select

D.

The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query

Question 11

A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.

Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?

Options:

A.

Magento\Config\Model\Config\Option\Yesno

B.

Magento\Config\Model\Config\Source\Yesno

C.

Magento\Config\Model\Config\Frontend\Yesno

D.

Magento\Config\Model\Config\Backend\Yesno

Question 12

A merchant is interested in setting different prices for the same products in different store scopes.

What do you reply to this inquiry?

Options:

A.

The prices can only be scoped per website or globally

B.

The prices can be scoped per store

C.

The price scope can be set to store but this will lead to performance degradation of category pages

D.

The prices do not support scopes

Question 13

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 14

You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2.

Keeping in mind upgradability and the need to customize, which one do you choose?

Options:

A.

Create a new Magento instance using composer create-project

B.

Clone the magento/magento2 GitHub repository

C.

Run php bin/magento setup:migrate command

D.

Create a new Magento instance by using the bin/magento install command

Question 15

Which two tasks are supported by Magento CLI? (Choose two.)

Options:

A.

Customer password reset

B.

Clearing cache

C.

Codebase deployment from developer machine to staging server

D.

Administrator account creation

Question 16

The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.

You created a controller for this grid \MyCompany\MyModule\Controller\Adminhtml\CustomEntity\Index

Which two actions are required to make the new page accessible at the https://your.store.base.url/admin/my_module/custom_entity URL? (Choose two.)

Options:

A.

Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml

B.

Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml

C.

Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method

D.

Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml

Question 17

In the module located at app/code/MyCompany/MyModule there is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/ and the luma theme with the en_US locate is used.

What is the public URL for this file?

Options:

A.

https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js

B.

https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js

C.

https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js

D.

https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js

Question 18

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 19

What is the difference between online and offline shipping methods?

Options:

A.

Online means that a shipment will have a tracking number, and offline means no tracking numbers are available

B.

Online means Magento will use a shipping carrier’s API to obtain rates, offline means Magento will calculate the rates internally

C.

Online means that an item’s shipping will be processed by the merchant, offline means that it will be processed by the customer

D.

Online means that it will be sent to the customer using a shipping carrier, offline means the customer will pick up the order in person

Question 20

You are working on a jewelry store that sells rings. Each ring allows an adjustment in size. The customer specifies finger size in inches and the merchant physically adjusts the stocked ring to the required size.

How is this represented in Magento?

Options:

A.

Using custom options, with rings as simple products

B.

Using categories, with each ring size as a separate product

C.

Using configurable products, with ring size as an attributive value

D.

Using custom options, with rings as bundle products

Demo: 20 questions
Total 135 questions