Prepare for the Actual Adobe Magento Commerce AD0-E703 Exam Practice Materials Collection
Adobe Magento Commerce Certified Official Practice Test AD0-E703 - Aug-2022
NEW QUESTION 52
Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID} How is this one?
- A. Magento\Catalog\Controller\Product\View::loadByUrlKey loads product pages using the url_key attribute value
- B. A plugin on \Magento\UrlRewrite\Controller\Router::match loads products by the url_key attribute
- C. Using a URL Rewrite stored in the database connecting the request path with the target path
- D. An event observer adds RewriteRules to .htaccess on product save
Answer: C
NEW QUESTION 53
Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?
- A. Store Manager
- B. Extension Attribute
- C. Dependency Injection
- D. Entity Attribute Value
Answer: D
NEW QUESTION 54
Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)
- A. Store
- B. Area
- C. Language
- D. Website
- E. Store View
Answer: B,D,E
NEW QUESTION 55
During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:
What is the consequence of the attribute showInStore being set to 0?
- A. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of 'store'.
- B. The input field will not be visible if a store view scope is selected in the system configuration
- C. The input field will be disabled if a store view scope is selected in the system configuration
- D. The input field will only be visible if a website's default store scope is selected in the system configuration
Answer: B
NEW QUESTION 56
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
Answer: A,B
NEW QUESTION 57
How can you render a text on a page using only layout xml?
- A. Option C
- B. Option D
- C. Option A
- D. Option B
Answer: A
NEW QUESTION 58
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/frontend/config.xml
- B. etc/frontend/routes.xml
- C. etc/config.xml
- D. etc/routes.xml
Answer: B
NEW QUESTION 59
What order operation is available in the My Account section in the storefront?
- A. Reorder
- B. Refund
- C. Edit order
- D. Invoice
Answer: A
NEW QUESTION 60
While reviewing a layout file named sales_order_view.xml you notice the element
<update handle="customer_account"/>
What is the purpose of this element?
- A. Nothing, this element has been deprecated
- B. Adds the customer_account handle to the page's handles list
- C. Updates the current page handle to customer_account
- D. Replaces the customer_account handle with sales_order_view
Answer: B
Explanation:
Explanation
https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-in
NEW QUESTION 61
You are implementing a custom module MyModule, which provides an implementation of
\Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.
The LoggerInterface has the default preference declared in app/etc/di.xml.
Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?
- A. Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml
- B. Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml
- C. Overwrite the existing preference for the LoggerInterface in app/etc/di.xml
- D. Declare a new preference for the LoggerInterface in
app/code/MyCompany/MyModule/etc/global/di.xml
Answer: A
NEW QUESTION 62
A custom module needs to log all calls of \Magento\Customer\Api\AddressRepositoryInterface::save().
Which mechanism do you use?
- A. An extension attribute configured in the extension_attributes.xml
- B. An observer on the customer_address_repository_save event, which is automatically fired for every repository save
- C. A plugin declared for the save() method
- D. A proxy configured to intercept all calls to any public method and log them
Answer: C
NEW QUESTION 63
Which two ways does Magento persist category relationships in the database? (Choose two.)
- A. Using comma-separated values in the parent-ids field
- B. Using slash-separated values in the path field
- C. in the parent_id field
- D. in the table catalog_category_index
Answer: C,D
NEW QUESTION 64
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/Block/Index.php
- B. /Manufacturer/Controller/Index/Index.php
- C. /Manufacturer/view/frontend/layout/manufacturer_index_index.xml
- D. /Manufacturer/view/frontend/templates/content.phtml
Answer: D
NEW QUESTION 65
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 API interfaces that are defined for a module includes web APIs
- B. set of UI Library that are defined for a module includes ui content
- C. set of JS Library that are defined for a module includes js Library
- D. set of PHP interfaces that are defined for a module includes data interfaces
Answer: D
NEW QUESTION 66
You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.
How do you organize the project to support this requirement?
- A. Create one website, two store views
- B. Create one website, two payment scopes
- C. Create one website, one store view
- D. Create two websites, two store views
Answer: B
NEW QUESTION 67
\Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and sort information.
What class assists in creating an instance for SearchCriteriaInterface?
- A. \Magento\Sales\Model\Order\SearchCriteria
- B. \Magento\Framework\Api\SearchCriteriaBuilder
- C. \Magento\Framework\Api\SearchCriteriaFactory
- D. \Magento\Backend\Api\SearchCriteriaGenerator
Answer: B
NEW QUESTION 68
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. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
- B. Use dependency injection to load an instance of the SearchCriteria class
- C. Change the getList parameter to: $searchCriteriaBuilder->addFilter('state', 'processing')->create()
- D. Clear generated code to get a new version of SearchCriteriaBuilder
Answer: C
NEW QUESTION 69
Where do you change the frontName for the admin router?
- A. composer.json
- B. app/etc/config.xml
- C. app/etc/env.php
- D. app/etc/local.xml
Answer: C
NEW QUESTION 70
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/). You create a new custom template to show the information.
How do you obtain an order repository so you can fetch an order?
- A. In your template, add the following:$orderRepository = new OrderRepository();
- B. In your template, add the
following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - C. In your block, add a method with the following:return
ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - D. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
Answer: D
NEW QUESTION 71
A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme.
What is a consequence of this setup?
- A. This setup will throw an IllegalStateException
- B. If another module is installed which also customizes the same core template, the templates will be rendered sequentially
- C. If a preference for the core block is set, the template will no longer apply
- D. If the custom module is removed, the custom template will no longer apply
Answer: D
NEW QUESTION 72
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?
- A. \Magento\Catalog\Api\Data\ProductInterface
- B. \Magento\Catalog\Model\Product
- C. \Magento\Catalog\Model\ProductBuilder
- D. \Magento\Catalog\Api\Data\ProductInterfaceFactory
Answer: D
NEW QUESTION 73
How do you obtain customer information in a JavaScript module?
- A. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/customer-data
- B. Magento does not expose customer information in JavaScript for security reasons
- C. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem('customer')
- D. By sending an AJAX request to the url: /customer/account/info/?json=1
Answer: A
NEW QUESTION 74
What happens when a category's is_anchor attribute is set to 1?
- A. Products without a specified category will be associated with this category
- B. The category will always be visible in the menu
- C. The customer will see all products from all children of the category
- D. This is the default category for a website
Answer: C
NEW QUESTION 75
You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml.
What is the function of this file?
- A. It specifies the applicable CSS files for the theme
- B. It configures Grunt to compile assets for the theme
- C. It stores theme and image configuration values
- D. It informs Magento that the theme is present and available for use
Answer: C
NEW QUESTION 76
......
Ace Adobe AD0-E703 Certification with Actual Questions Aug 28, 2022 Updated: https://examtorrent.dumpsactual.com/AD0-E703-actualtests-dumps.html
