Adobe AD0-E702 Real Exam Questions and Answers FREE [Q49-Q69]

Share

Adobe AD0-E702 Real Exam Questions and Answers FREE

Exam Dumps AD0-E702 Practice Free Latest Adobe Practice Tests

NEW QUESTION 49
Which method of a Magento resource model will remove a record from the database?

  • A. delete
  • B. clean
  • C. erase
  • D. remove

Answer: A

 

NEW QUESTION 50
\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\Backend\Api\SearchCriteriaGenerator
  • B. \Magento\Sales\Model\Order\SearchCriteria
  • C. \Magento\Framework\Api\SearchCriteriaBuilder
  • D. \Magento\Framework\Api\SearchCriteriaFactory

Answer: C

 

NEW QUESTION 51
You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:

What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?

  • A. action="mycompany/mymodule/"
  • B. action="admin/mycompany/mymodule/"
  • C. It is not possible without extending the adminhtml route in routes.xml
  • D. action="adminhtml/mycompany/mymodule/"

Answer: A

 

NEW QUESTION 52
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 53
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 54
You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml Which two actions are required to ensure the new plugin will execute last? (Choose two.)

  • A. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file
  • B. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml
  • C. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.xml file
  • D. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file

Answer: B,D

 

NEW QUESTION 55
A module declares the route:

What is the layout handle of the storefront path /custom/feature/?

  • A. mymodule_feature_index
  • B. custom_feature_index
  • C. custom_feature
  • D. mymodule_feature

Answer: A

 

NEW QUESTION 56
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 informs Magento that the theme is present and available for use
  • C. It stores theme and image configuration values
  • D. It configures Grunt to compile assets for the theme

Answer: C

 

NEW QUESTION 57
While developing a module you need to modify an existing Data Patch.
How can you force Magento to execute an existing Data Patch file again?

  • A. By removing the Data Patch, running the command: bin/magento setup:db-data:upgrade, then copying the file back and running the command again
  • B. By deleting the record with the Data Patch class name from the table patch_list table
  • C. By changing the version of the Data Patch in the getVersion method
  • D. By modifying the data_version value in the setup_module table

Answer: B

 

NEW QUESTION 58
Magento 2's architecture uses code to bootstrap a custom module that resides in app/code.
What two files are required to make a module usable? (Choose two.)

  • A. Helper/Data.php
  • B. registration.php
  • C. etc/config.xml
  • D. etc/module.xml

Answer: B,D

 

NEW QUESTION 59
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, one store view
  • B. Create two websites, two store views
  • C. Create one website, two payment scopes
  • D. Create one website, two store views

Answer: C

 

NEW QUESTION 60
Assume that a customer's cart only includes one downloadable product.
What effect will it cause on the quote object?

  • A. The quote object will not have shipping address
  • B. The quote object will have a downloadable URL instead of an address
  • C. The quote object will not have a billing address
  • D. The quote object will not have any address

Answer: A

 

NEW QUESTION 61
The module MyCompany_MyModule will add a new page to the admin interface at the URL path admin/mycompany/entity_grid.
How do you name the file containing the action controller class so the admin router matches the path to the class?

  • A. Controller/Adminhtml/Entity/Grid/Index.php
  • B. Controller/Adminhtml/Entity/Grid.php
  • C. Controller/Adminhtml/Mycompany/Entity_Grid.php
  • D. Controller/Adminhtml/Mycompany/Entity/Grid.php

Answer: C

 

NEW QUESTION 62
You have created a new block and will be adding this block on every page. The block contains user-specific information and cannot be cached. The block is added to the default.xml with:

What does this accomplish?

  • A. FPC will be bypassed for this block and all other page content will be cached
  • B. All store front pages are no longer cacheable
  • C. FPC will cache the block content for all cacheable pages
  • D. The block will be loaded on the store front using AJAX

Answer: B

Explanation:
Explanation
https://magento.stackexchange.com/questions/103256/how-to-disable-the-cache-for-the-block-in-magento-2

 

NEW QUESTION 63
You have loaded an instance of Magento\Catalog\Model\Product in the $product variable. You know that the loaded product has the type configurable with four variations. These variations have the prices: $10, $12, $12,
$15.
What will be the result of the $product->getFinalPrice() call?

  • A. [10, 12, 15]
  • B. 0
  • C. [10, 12, 12, 15]
  • D. 1

Answer: D

 

NEW QUESTION 64
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 input field will only be visible if a website's default store scope is selected in the system configuration
  • 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 field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of 'store'.

Answer: B

 

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

  • A. Make sure bin/magento cron:run is added to the system crontab
  • B. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml
  • C. Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml
  • D. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml

Answer: A,B

 

NEW QUESTION 66
In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption.
How do you supply the default value for that configuration option?

  • A. In the system/section/group/field/value node in the etc/adminhtml/system.xml file
  • B. In the system/mycompany/group/mymodule/field/myoption node in the etc/system.xml file
  • C. In the menu/default/section/group/field node in the file etc/adminhtml/menu.xml
  • D. In the config/default/mycompany/mymodule/myoption node in the etc/config.xml file

Answer: D

Explanation:
Explanation
https://magento.stackexchange.com/questions/173286/magento2-how-to-create-admin-page-with-configuration-f

 

NEW QUESTION 67
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 68
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 69
......

Verified AD0-E702 Exam Dumps Q&As - Provide AD0-E702 with Correct Answers: https://www.actualtests4sure.com/AD0-E702-test-questions.html

AD0-E702 Exam Questions | Real AD0-E702 Practice Dumps: https://drive.google.com/open?id=14LxSImrjGnijI5SMLHVyDOqXYqoeQ_oD