Adobe ad0-e703 practice test

Adobe Certified Expert - Magento Commerce Developer Exam

Last exam update: May 12 ,2024
Page 1 out of 9. Viewing questions 1-15 out of 135

Question 1

You need to add the Google Tag Manager (GTM) to every page. What three steps do you take to
accomplish this in MyCompany_MyModule?

  • A. Add into view/frontend/layout/default.xml.
  • B. Create view/frontend/layout/default.xml.
  • C. Create view/frontend/templates/script.phtml and add GTM code.
  • D. Run bin/magento create:module:template script.phtml
  • E. Copy vendor/module-catalog/view/template/script.phtml to view/template/script.phtml and add GTM script.
Answer:

A, B, C

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 2

You are customizing the display of product details page. On this page ur customer need to change the
url in which the product category name will be appear as
http://mystore.com/women/tops-
women/helena-hooded
-
fleece.html , Keeping ,maintainability in mind ,How to get product url with category?

  • A. Admin -> Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> "Use Categories Path for Product URLs" set to "Yes"
  • B. It is not possible to display Categories name on product url
  • C. $product->setCategoryId($categoryId)->getProductUrl(); D. You Can Build category URL path \vendor\magento\module-catalog-url- rewrite\Model\CategoryUrlPathGenerator.php
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 3

You have created a module to show manufacturer-list, but in your page need to show Pagination that
already ready in your block. Keeping maintainability in mind, where you call echo $block-
>getPagerHtml();?

  • A. /Manufacturer/view/frontend/templates/content.phtml
  • B. /Manufacturer/Block/Index.php
  • C. /Manufacturer/Controller/Index/Index.php
  • D. /Manufacturer/view/frontend/layout/manufacturer_index_index.xml
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 4

You need to control access to a custom controller action. How do you tell Magento about this new
control option?

  • A. Create etc/acl.xml and add <resource id="MyCompany_MyModule::customAction" ... />
  • B. In the controller, implement the _isAllowed method.
  • C. Create etc/adminhtml/acl.xml and add <acl id="MyCompany_MyModule::customAction" ... />
  • D. Use the CLI to add the new resource option.
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5

You have created a module to show manufacturer-list,Your customer need url as
www.storeurl/manufacturer
which file are mendatory to show correct url?

  • A. Controller: /Manufacturer/Controller/Index/Index.php
  • B. Block: /Manufacturer/Block/Index.php
  • C. Layout: Manufacturer/view/frontend/layout/manufacturer_index_index.xml
  • D. Templates:/Manufacturer/view/templates/content.phtml
  • E. Layout: Manufacturer/view/frontend/layout/index_index.xml
  • F. Layout: Manufacturer/view/frontend/layout/manufacturer.xml
Answer:

A, B, C

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
F
50%
Discussions
vote your answer:
A
B
C
D
E
F
0 / 1000

Question 6

You are making some major adjustments to a core Magento class (ClassA). These adjustments are
only necessary when utilized from a specific Magento class (ClassB). You have created MyClass that
contains the needed customizations.
Keeping upgradeability in mind, how do you configure di.xml to make the substitution happen?

  • A. Ensure that MyClass extends ModuleA and set the <argument/>, for ModuleB to point to your new class in di.xml.
  • B. Set a <preference/> for ModuleA to be replaced by MyClass
  • C. Create a rewrite node that injects MyClass into ClassB.
  • D. Create a virtual type that extends ModuleB, specifying an <argument/> for MyClass.
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 7

You need to add a new column to the sales_shipment and the sales_shipment_grid tables. Other
than utilizing the default addColumn methods, what way is automatic?

  • A. Utilize the SalesSetup class’ addAttribute method.
  • B. On the default EavSetup class, utilize the addColumn method.
  • C. On the ModuleDataSetupInterface, call $setup->getSales()->addColumn().
  • D. Ensure your UpgradeSchema class extends CoreSetup and call $this->addSalesColumns().
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 8

You are building a new module to add extra functionality to the Magento application.You want to
works with CustomerData the data stored on the client side. Where initialized sections Cart and
Directory-data are on the server side via the classes?

  • A. Magento\Checkout\CustomerData\Cart and Magento\Checkout\CustomerData\DirectoryData
  • B. Magento\Checkout\Api\Cart and Magento\Checkout\Api\DirectoryData
  • C. Magento\Checkout\Block\Cart and Magento\Checkout\Block\DirectoryData
  • D. Magento\Checkout\Plugin\Cart and Magento\Checkout\Plugin\DirectoryData
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 9

You are trying to determine why a product is not appearing in a category. What table does Magento
on the frontend to locate the relationship between a category and its products?

  • A. catalog_category_product
  • B. catalog_product_parent
  • C. catalog_category_product_index
  • D. catalog_category_product_relationship
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 10

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?

  • 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
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 11

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

Answer:

A

User Votes:
Discussions
vote your answer:
0 / 1000

Question 12

You are building an tool that imports products from an ERP. There are 20 columns of additional
information that are associated with each product. This extra information must also be associated
with an update time to know when to refresh the dat
a. Keeping maintainability in mind, how do you build this into Magento?

  • A. Utilize an extension attribute.
  • B. Override the Product model and add the fields.
  • C. Create a separate model and build code to associate the two record types.
  • D. Create 20 EAV attributes and check their updated_at column.
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 13

You are reviewing a module to some special functionality to the Magento 2 application, You see
directory /CustomerData, What task you think in this directory contain script for this modules?

  • A. Contains section files that works with the data stored on the client side.
  • B. Contains aggregated functionality.
  • C. Contains localization files.
  • D. Contains view files, including static view files, design templates, email templates, and layout files.
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 14

You are building CLI that use the console to create a customer account with our custom command as
like
php
bin/magento
customer:user:create
--customer-firstname="Mahin"
--customer-
lastname="Rahman" --customer-email="[email protected]" --customer-password="mahin@123"
--website="1"
using:
protected
function
configure()
{
$this->setName('customer:user:create')
-
>setDescription('Create new customer') ->setDefinition($this->getOptionsList()); } protected function
getOptionsList(){
return
[
------------------]; } Which below Option are not required in blank? (Choose 2)

  • A. new InputOption(Customer::KEY_SENDEMAIL, 0, InputOption::VALUE_OPTIONAL, '(1/0) Send email? (default 0)')
  • B. new InputOption(Customer::KEY_STORE, null, InputOption::VALUE_REQUIRED, '(Required) Store ID'),
  • C. new InputOption(Customer::KEY_PASSWORD, null, InputOption::VALUE_REQUIRED, '(Required) Customer password'),
  • D. new InputOption(Customer::KEY_EMAIL, null, InputOption::VALUE_REQUIRED, '(Required) Customer email'),
  • E. new InputOption(Customer::KEY_LASTNAME, null, InputOption::VALUE_REQUIRED, '(Required) Customer last name'),
  • F. new InputOption(Customer::KEY_FIRSTNAME, null, InputOption::VALUE_REQUIRED, '(Required) Customer first name'),
  • G. new InputOption(Customer::KEY_WEBSITE, null, InputOption::VALUE_REQUIRED, '(Required) Website ID'),
Answer:

A, B

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
F
50%
G
50%
Discussions
vote your answer:
A
B
C
D
E
F
G
0 / 1000

Question 15

You need to render a product attributes raw value as a variable in a script tag. This value will be used
to initialize an application on the frontend. How do you render this value?

  • A. <?= $block->escapeJs($value) ?>
  • B. <?= $block->escapeJsVar($value) ?>
  • C. <?= $block->renderJs($value) ?>
  • D. <?= $block->escapeHtml($value) ?>
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2