完全版は2023年最新のAD0-E702試験問題集テストガイドはトレーニング専門問題 [Q22-Q43]

Share

完全版は2023年最新のAD0-E702試験問題集テストガイドはトレーニング専門問題

試験準備と合格するための最高なカバー率問題集を提供しています これで試験準備せよAD0-E702

質問 # 22
What is the relationship between products and categories in Magento?

  • A. Each product always belongs to one category
  • B. Product to category relation is dynamically defined by Catalog Product Rules
  • C. Each product belongs to zero or one category
  • D. Products may be assigned to zero or more categories

正解:D


質問 # 23
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/config.xml
  • C. etc/frontend/routes.xml
  • D. etc/routes.xml

正解:C


質問 # 24
What will be the result of calling the save() method on a collection instance?

  • A. It will loop over all items and call save () on each one
  • B. It will save all items with one INSERT ... ON DUPLICATE KEY UPDATE query
  • C. It will save the select query execution result into the cache
  • D. It will save the select query to the cache

正解:A


質問 # 25
Assume that $collection is a new instance of a class that extends
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.
How do you select a list of records from the database where the record ids are in the $ids list?

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

正解:B


質問 # 26
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 adding the new section into the customer_account table in the database
  • D. By creating a new UI component

正解:A


質問 # 27
What is the connection between product attribute sets and categories?

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

正解:D


質問 # 28
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

正解:C


質問 # 29
What is a valid use case for an around plugin?

  • A. The arguments of the after plugins must be modified
  • B. The execution of the before and after plugins must be suppressed
  • C. The arguments of the before plugins must be modified
  • D. The execution of the pluginized method must be suppressed

正解:B


質問 # 30
Which entity in Magento supports scoped attributes?

  • A. Customer
  • B. CMS Page
  • C. Customer Address
  • D. Category

正解:D


質問 # 31
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. Before and after attributes can only be used with referenceContainer and referenceBlock
  • B. The move instruction allows altering an element's parent node
  • C. They are the same, both provide access to the same functionality
  • D. Elements are renamed by default when using the move instruction

正解:B


質問 # 32
A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added.
How do you specify the class that will process the uploaded file?

  • A. <frontend_model>\Magento\Config\Model\Config\Frontend\File</frontend_model>
  • B. <source_model>\Magento\Config\Model\Config\Source\File</source_model>
  • C. <upload_model>\Magento\Config\Model\Config\Upload\File</upload_model>
  • D. <backend_model>\Magento\Config\Model\Config\Backend\File</backend_model>

正解:D


質問 # 33
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 A
  • B. Option D
  • C. Option B
  • D. Option C

正解:C


質問 # 34
You added a plugin declaration to MyCompany/MyModule/etc/di.xml:

What will be the effect of this declaration?

  • A. The plugin will be applied to all implementors of the ActionInterface
  • B. An exception because plugins must not be applied to the interfaces
  • C. The plugin will be ignored because ActionInterface will never be instantiated directly
  • D. An exception because of the syntax error in the declaration

正解:A

解説:
Explanation
https://stackoverflow.com/questions/62734221/magento2-writing-plugins-for-interface


質問 # 35
You are tasked to install an extension to the merchant's Magento instance.
The extension is developed by the company called MyCompany and its codebase is available from all four locations listed below.
Which two installations options do you choose from to prevent version conflicts during upgrade? (Choose two.)

  • A. Use Magento web setup wizard to pull the code from Magento's composer repository
  • B. Use composer CLI to pull the code from MyCompany's repository
  • C. Clone the code from GitHub and put it into the vendor directory
  • D. Download the extension code from the developer's website, and put it into app/code

正解:B、D


質問 # 36
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/mycompany/group/mymodule/field/myoption node in the etc/system.xml file
  • B. In the menu/default/section/group/field node in the file etc/adminhtml/menu.xml
  • C. In the system/section/group/field/value node in the etc/adminhtml/system.xml file
  • D. In the config/default/mycompany/mymodule/myoption node in the etc/config.xml file

正解:D

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


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

正解:B、C


質問 # 38
In the module located at app/code/MyCompany/MyModule there is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/ and the luma theme with the en_US locate is used.
What is the public URL for this file?

  • A. https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js
  • B. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js
  • C. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js
  • D. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js

正解:A


質問 # 39
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, 12, 15]
  • B. [10, 12, 15]
  • C. 0
  • D. 1

正解:C


質問 # 40
Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

  • A. Store
  • B. Language
  • C. Area
  • D. Store View
  • E. Website

正解:C、D、E


質問 # 41
You are tasked with ensuring customers who log into the site are authorized. By default, this consists of ensuring the customers email and password match the values in the database. On this project, you need to verify additional data in this process.
Keeping in mind upgradeability, how is this done?

  • A. Create a mutation of a CustomerInterface object to intercept the username and password
  • B. Create an event observer for the user_save_after observer
  • C. Override \Magento\Customer\Controller\AccountController.php
  • D. Create a before plugin for \Magento\Customer\Api\AccountManagementInterface's authenticate method

正解:D


質問 # 42
You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.
What is the correct layout declaration for this?

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

正解:B


質問 # 43
......

検証された材料は決まってこれAD0-E702:https://www.goshiken.com/Adobe/AD0-E702-mondaishu.html