Latest AD0-E702 Actual Free Exam Updated 105 Questions [Q49-Q72]

Share

Latest AD0-E702 Actual Free Exam Updated 105 Questions

Online Questions - Valid Practice AD0-E702 Exam Dumps Test Questions

NEW QUESTION 49
How do you add a new link into the My Account sidebar?

  • A. By using a layout update
  • B. By creating a child of the My Account UI component
  • C. By creating a new UI component
  • D. By adding the new section into the customer_account table in the database

Answer: A

 

NEW QUESTION 50
A merchant is interested in setting different prices for the same products in different store scopes.
What do you reply to this inquiry?

  • A. The price scope can be set to store but this will lead to performance degradation of category pages
  • B. The prices can be scoped per store
  • C. The prices do not support scopes
  • D. The prices can only be scoped per website or globally

Answer: D

 

NEW QUESTION 51
You are adding a new entry to the backend menu that appears after
Marketing > SEO & Search > Site Map
You see the existing site map menu item is declared by the node:

What two actions do you take to configure the new menu entry location? (Choose two.)

  • A. Specify parent="Magento_Backend::marketing_seo"
  • B. Specify sortOrder="100"
  • C. Specify parent="Magento_Sitemap::catalog_sitemap"
  • D. Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml

Answer: A,B

 

NEW QUESTION 52
You have created a module controller that responds to the following URL: /mycompany/product/load/id/123.
Which two methods will load the product model by ID as specified in the URL? (Choose two.)

  • A. \Magento\Catalog\Model\ResourceModel\Product\Collection::load()->fetchById($id)
  • B. \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)
  • C. \Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)
  • D. \Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)

Answer: A,B

 

NEW QUESTION 53
A module you are developing requires the addition of new routes that should be accessible in the store front.
Where do you define your module's frontName?

  • A. etc/routes.xml
  • B. etc/config.xml
  • C. etc/frontend/routes.xml
  • D. etc/frontend/config.xml

Answer: C

 

NEW QUESTION 54
You are working on a new entity called vendor. You implemented the model, resource model and collection.
You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.
How do you do that?

  • A. Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor
  • B. Declare the $_eventPrefix property in your vendor model and set it to vendor
  • C. You must implement all appropriate methods and fire the events manually
  • D. Ensure that the primary key in the corresponding table is named vendor_id

Answer: B

 

NEW QUESTION 55
The constructor function for \Magento\Catalog\Model\Category contains this excerpt:

With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?

  • A. Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.
  • B. Magento looks to the di.xml files in the entire system for a preference node for
    \Magento\Store\Model\StoreManagerInterface. This class is constructed and injected
  • C. Magento throws an exception because you cannot instantiate an interface
  • D. If no $storeManager is provided, Magento's code generator creates a shell concrete class based on
    \Magento\Store\Model\StoreManagerInterface

Answer: B

Explanation:
Explanation
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html

 

NEW QUESTION 56
You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.
What two elements automatically render their children? (Choose two.)

  • A. <block class="\Magento\Framework\View\Element\AbstractBlock" name="shop.info.details"/>
  • B. <block class="\Magento\Framework\View\Element\Text\ListText" name="shop.info.details"/>
  • C. <block class="\Magento\Framework\View\Element\Template" name="shop.info.details"/>
  • D. <container name="shop.info.details"/>

Answer: B,D

 

NEW QUESTION 57
Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?

  • A. Extension Attribute
  • B. Store Manager
  • C. Entity Attribute Value
  • D. Dependency Injection

Answer: C

 

NEW QUESTION 58
A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.
You decided to implement an observer for customer_save_after_data_object event.
In which file do you declare the observer?

  • A. etc/webapi/rest_events.xml
  • B. etc/events.xml
  • C. etc/adminhtml/events.xml
  • D. etc/webapi_rest/events.xml

Answer: D

 

NEW QUESTION 59
In layout files you can change al element's order on a page. This can be done using one of the following:
* <move> instruction
* before and after element attributes?
How are two methods different?

  • A. Elements are renamed by default when using the move instruction
  • B. Before and after attributes can only be used with referenceContainer and referenceBlock
  • C. They are the same, both provide access to the same functionality
  • D. The move instruction allows altering an element's parent node

Answer: D

 

NEW QUESTION 60
Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class responsible for the frontend path /mymodule/custom.
What file contains the controller class for the frontend path /mymodule/custom?

  • A. Controller/Custom/Index.php
  • B. Controller/MyModule/Custom/Index.php
  • C. Controller/Frontend/MyModule/Custom.php
  • D. Controller/Custom.php

Answer: A

 

NEW QUESTION 61
You need to find all orders in the processing state. You have written the code:

When you run the code, you get the following exception:

How do you resolve the exception?

  • A. Clear generated code to get a new version of SearchCriteriaBuilder
  • B. Change the getList parameter to: $searchCriteriaBuilder->addFilter('state', 'processing')->create()
  • C. Use dependency injection to load an instance of the SearchCriteria class
  • D. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface

Answer: B

 

NEW QUESTION 62
You are developing a new theme which inherits from the Magento_Luma theme.
How is this accomplished?

  • A. Run the CLI command bin/magento dev:theme:inherit Magento_Luma
  • B. Specify the parent theme in Magento admin > Design > Configuration
  • C. Add Magento/luma to etc/view.xml
  • D. Add Magento/luma to theme.xml

Answer: D

 

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

  • A. Administrator account creation
  • B. Codebase deployment from developer machine to staging server
  • C. Clearing cache
  • D. Customer password reset

Answer: A,C

 

NEW QUESTION 64
You are adding a child node to the product.info block using the XML:

How will this block be rendered?

  • A. By calling $block->getChildHtml('mynewblock') in the parent block's template
  • B. Automatically if the block class Custom implements the _toHtml method
  • C. The layout is invalid since block elements cannot be nested
  • D. Child block nodes are automatically rendered as HTML

Answer: A

 

NEW QUESTION 65
What is the connection between product attribute sets and categories?

  • A. Each category is linked to a single product attribute set, and only products from that category's set or any of its parent categories'
  • B. Categories have no connection to product attribute sets, and any product can be assigned to any category
  • C. Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category
  • D. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category

Answer: B

 

NEW QUESTION 66
You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema.
How do you do that?

  • A. Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade
  • B. Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade
  • C. Create a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrade
  • D. Run a command: bin/magento setup:db-schema:upgrade <table> <column definition>

Answer: A

 

NEW QUESTION 67
You need to find all orders in the processing state. You have written the code:

How do you resolve the exception?

  • A. Clear generated code to get a new version of SearchCriteriaBuilder
  • B. Use dependency injection to load an instance of the SearchCriteria class
  • C. Change the getList parameter to: $searchCriteraBuilder->addFilter('state','processing')->create()
  • D. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface

Answer: C

 

NEW QUESTION 68
What order operation is available in the My Account section in the storefront?

  • A. Edit order
  • B. Refund
  • C. Reorder
  • D. Invoice

Answer: C

 

NEW QUESTION 69
You are building a report using complex SQL aggregations to locate the required data.
In what type of class do you put these SQL statements?

  • A. Repository
  • B. Resource model
  • C. Helper
  • D. Model

Answer: B

 

NEW QUESTION 70
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.)

  • A. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
  • B. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml
  • C. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
  • D. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method

Answer: A,C

 

NEW QUESTION 71
You have added a new attribute origin of the type varchar to the product entity.
Which two calls will filter a product collection with origin set to "California"? (Choose two.)

  • A. $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California");
  • B. $collection->addFieldToFilter('origin', "California");
  • C. $collection->addAttributeToSelect('origin', "California");
  • D. $collection->addAttributeToFilter('origin', "California");

Answer: B,D

 

NEW QUESTION 72
......

AD0-E702 Exam PDF [2022] Tests Free Updated Today with Correct 105 Questions: https://measureup.preppdf.com/Adobe/AD0-E702-prepaway-exam-dumps.html