AD0-E702試験問題を今すぐ試そう!最新の[2022年最新] 正解回答付き [Q31-Q54]

Share

AD0-E702試験問題を今すぐ試そう!最新の[2022年最新] 正解回答付き

練習できるAD0-E702には認定ガイド問題と解答とトレーニングを提供しています

質問 31
Where do you change the frontName for the admin router?

  • A. app/etc/local.xml
  • B. app/etc/config.xml
  • C. app/etc/env.php
  • D. composer.json

正解: C

 

質問 32
You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language.
Keeping simplicity in mind, how do you add this attribute?

  • A. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages
  • B. Use the admin panel to create a new extension attribute
  • C. Add a new column to the catalog_product_entity table using declarative schema
  • D. Use a Data Patch to create a new EAV attribute

正解: B

 

質問 33
How can you render a text on a page using only layout xml?

  • A. Option D
  • B. Option C
  • C. Option B
  • D. Option A

正解: B

 

質問 34
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\Template" name="shop.info.details"/>
  • B. <block class="\Magento\Framework\View\Element\Text\ListText" name="shop.info.details"/>
  • C. <container name="shop.info.details"/>
  • D. <block class="\Magento\Framework\View\Element\AbstractBlock" name="shop.info.details"/>

正解: B,C

 

質問 35
You are adding an entry to the backend menu. To do so you open a core etc/adminhtml/menu.xml file as a reference. In the file you see the node:

What is the result of specifying resource="Magento_Catalog::catalog"?

  • A. The resource is used to locate the correct translation for the attributes listed in title="..."
  • B. The menu item will only be visible to users who are assigned to a role with access to the matching ACL resource
  • C. The last selected menu item for a user is stored in the DB so the previously visited page can be restored on the next login
  • D. The menu item will only be visible if the class method specified by the resource returns a true value

正解: B

 

質問 36
You have configured an event observer to watch the checkout_submit_all_after event using this XML:

What is the required class definition for the event observer?

  • A. Option D
  • B. Option B
  • C. Option C
  • D. Option A

正解: B

 

質問 37
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. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml
  • B. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file
  • 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

正解: A,D

 

質問 38
Which two tasks are supported by Magento CLI? (Choose two.)

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

正解: A,B

 

質問 39
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. If a preference for the core block is set, the template will no longer apply
  • B. If the custom module is removed, the custom template will no longer apply
  • C. This setup will throw an IllegalStateException
  • D. If another module is installed which also customizes the same core template, the templates will be rendered sequentially

正解: B

 

質問 40
A client has asked you to include category url keys in product URLs.
How is this done?

  • A. Set the configuration value of catalog/seo/product_use_categories to Yes
  • B. Create an observer for controller_action_postdispatch_catalog_product_view
  • C. This is not possible because products can belong to multiple categories
  • D. Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite

正解: A

 

質問 41
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_whitelist.json file in your module, add the column and run bin/magento setup:upgrade
  • B. Create a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrade
  • C. Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade
  • D. Run a command: bin/magento setup:db-schema:upgrade <table> <column definition>

正解: C

 

質問 42
You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.
How do you implement this, keeping simplicity in mind?

  • A. Specify custom layout update XML in the admin panel for every product
  • B. Enable the dynamic product page UI component and configure it to use a different layout per price range
  • C. Create a custom block which will dynamically choose the appropriate template
  • D. Write a Data Patch which will set the appropriate layout update XML for every product record

正解: C

解説:
Explanation
https://www.rohanhapani.com/magento-2-change-product-view-page-layout-based-on-price/

 

質問 43
A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.
Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?

  • A. <option_model>Magento\Config\Model\Config\Option\Yesno</option_model>
  • B. <frontend_model>Magento\Config\Model\Config\Frontend\Yesno</frontend_model>
  • C. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  • D. <backend_model>Magento\Config\Model\Config\Backend\Yesno</backend_model>

正解: C

 

質問 44
A module declares the route:

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

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

正解: B

 

質問 45
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 a billing address
  • B. The quote object will not have any address
  • C. The quote object will not have shipping address
  • D. The quote object will have a downloadable URL instead of an address

正解: C

 

質問 46
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. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
  • D. Change the getList parameter to: $searchCriteraBuilder->addFilter('state','processing')->create()

正解: D

 

質問 47
What are two functions of a resource model? (Choose two.)

  • A. It loads lists of entity models
  • B. It maps an entity to one or more database rows
  • C. It is made available in the Magento API for the purpose of data manipulation
  • D. It executes create, retrieve, update and delete actions for an entity

正解: B,D

解説:
Explanation
https://devdocs.magento.com/guides/v2.4/architecture/archi_perspectives/persist_layer.html

 

質問 48
There are two different configurable products which both share one variation. The shared variation is represented by the same simple product.
A customer added both configurables to the cart with the same selected variation?
How will they be displayed?

  • A. As one line item which lists both configurable products with quantity 1 each
  • B. As one line item of the second product with quantity 2
  • C. As two separate line items with quantity 1 each
  • D. As one line item of the first product with quantity 2

正解: C

 

質問 49
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 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
  • B. Magento throws an exception because you cannot instantiate an interface
  • C. If no $storeManager is provided, Magento's code generator creates a shell concrete class based on
    \Magento\Store\Model\StoreManagerInterface
  • D. Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.

正解: A

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

 

質問 50
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. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml
  • B. Make sure bin/magento cron:run is added to the system crontab
  • C. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml
  • D. Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml

正解: A,B

 

質問 51
You have created a custom module which must perform an action immediately after an order is placed, but only on the store front of the merchant site. You have selected the checkout_submit_all_after as the target event which the module will observe.
In which file will the event observer be declared?

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

正解: D

 

質問 52
What happens when a category's is_anchor attribute is set to 1?

  • A. The customer will see all products from all children of the category
  • B. The category will always be visible in the menu
  • C. Products without a specified category will be associated with this category
  • D. This is the default category for a website

正解: A

 

質問 53
How do you obtain customer information in a JavaScript module?

  • A. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem('customer')
  • B. By sending an AJAX request to the url: /customer/account/info/?json=1
  • C. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/customer-data
  • D. Magento does not expose customer information in JavaScript for security reasons

正解: C

 

質問 54
......

試験準備には欠かさない!トップクラスのAdobe AD0-E702試験アプリ学習ガイド練習問題最新版:https://www.goshiken.com/Adobe/AD0-E702-mondaishu.html