Adobe ad0-e703 practice test

Adobe Certified Expert - Magento Commerce Developer Exam

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

Question 1

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

  • A. contains CLI commands
  • B. contains any PHP classes exposed to the API
  • C. contains cron job definitions.
  • D. contains section files
  • E. open directory /Console & check script what code contaib
Mark Question:
Answer:

A

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

What interface should a frontend controllers action implement?

  • A. \Magento\Framework\App\ActionInterface
  • B. \Magento\Frontend\Controller\ActionInterface
  • C. \Magento\Frontend\Controller\ControllerInterface
  • D. \Magento\Framework\App\ControllerInterface
Mark Question:
Answer:

A

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

Question 3

You are creating a new indexer which must run after the targetrule_product_rule index process.
When you run bin/magento indexer:reindex, your rule always runs first creating inaccurate dat
a. What is the resolution?

  • A. Use a dependencies node in your indexer configuration.
  • B. Specify the sortOrder in your indexer configuration.
  • C. Use a plugin on the IndexManager class to change load order.
  • D. Create a bash script to execute each indexer in the correct order.
Mark Question:
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 are building CLI that use the console to create a customer account with our custom command,
Adding a new command to CLI is based on passing on the argument from the XML level to the class.
Dependency
Injection
comes
in
handy
here.
you
create
the
file
app/code/Mycompany/Customer/etc/di.xml with the following content: <type name="------------------
---"> </type> What is the correct in below?

  • A. Magento\Framework\Console\CommandList
  • B. Magento\Framework\Console
  • C. Magento\Framework\CommandList
  • D. Magento\Framework\CommandList\Console
Mark Question:
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 are building a new module to add extra functionality to the Magento application. What files are
required?

  • A. registration.php
  • B. etc/module.xml
  • C. composer.json
  • D. Setup/InstallSchema.php
  • E. etc/config.xml
Mark Question:
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 6

There is a custom extension called MyCompany_MyModule. It has the following layout
customization declared in MyCompany/MyModule/view/frontend/layout/default.xml:
<referenceContainer name=content>
<block class=Magento\Framework\View\Element\Template
name=my.block
template=MyCompany_MyModule::my_template.phtml
cacheable=false/>
</referenceContainer>
What will be the result of the customization?

  • A. All store front pages will be non-cacheable
  • B. Only the default landing page will be non-cacheable
  • C. my.block on the default landing page only will be cached using ESI.
  • D. my.block on the all store front pages will be cached using ESI
Mark Question:
Answer:

A

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

Question 7

How do you instruct Magento to enable a new module?

  • A. bin/magento module:enable MyCompany_MyModule
  • B. Magento automatically enables all new modules.
  • C. Go to Admin > System > Module Management.
  • D. Add MyCompany_MyModule to the setup_module table.
Mark Question:
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 updating a module to add extra functionality to the Magento application, Where would
Magento look for modules?

  • A. app/code/VendorName/ModuleName
  • B. vendor/vendor-name/module-name
  • C. app/vendor/vendor-name/module-name
  • D. lib/vendor-name/module-name
Mark Question:
Answer:

A, B

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

Question 9

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?

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

A

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

Question 10

You see this code in etc/adminhtml/routes.xml:
<route id="mymodule" frontName="user-subscriptions">
<module name="MyCompany_MyModule" />
</route> You have placed a controller in Controller/Index/Subscribe.php.
If you want to create layout XML instructions for this controller, what would be the layout XML's
filename?

  • A. mymodule_index_subscribe.xml
  • B. mymodule_subscribe_[ACTION NAME].xml
  • C. user_subscriptions_index_subscribe.xml
  • D. user_subscriptions_subscribe_[ACTION NAME].xml
Mark Question:
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 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.
Mark Question:
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 12

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
Mark Question:
Answer:

A

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

Question 13

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
Mark Question:
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 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.
Mark Question:
Answer:

A

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

Question 15

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
Mark Question:
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
To page 2