AD0-E703事前に試験練習テストで使おう(最新137問題) [Q37-Q58]

Share

AD0-E703事前に試験練習テストで使おう(最新137問題)

有効なAD0-E703試験解答PDF一年無料更新


Adobe AD0-E703 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • Magentoのディレクトリ構造を説明する
  • 依存性注入の使用方法を示す
トピック 2
  • 属性を管理する能力を示す
  • EAVモデルの概念を使用する能力を示す
トピック 3
  • Magento
  • 使用モードとアプリケーションの初期化でURLを処理する能力を実証する
トピック 4
  • 宣言型スキーマを使用する能力を実証する
  • データ関連のクラスを使用する能力を実証する
トピック 5
  • MagentoでJavaScriptを利用する
  • レイアウトとXMLスキーマを使用する能力を示す
トピック 6
  • キャッシュを管理する機能を示す
  • イベントオブザーバーとスケジュールされたジョブを構成する
トピック 7
  • テーマとテンプレート構造を利用する能力を示す
  • ブロックの使用方法を決定する
トピック 8
  • ブロックテンプレートの構造を決定する
  • レイアウトの初期化プロセスを決定する

 

質問 37
You are adding a child node to the product.info block using the XML:

How will this block be rendered?

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

正解: C

 

質問 38
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 sortOrder="100"
  • B. Specify parent="Magento_Sitemap::catalog_sitemap"
  • C. Specify parent="Magento_Backend::marketing_seo"
  • D. Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml

正解: A,C

 

質問 39
You are making some major adjustments to a core Magento class (ClassA). These adjustments are only necessary when utilized from a specific Magento class (ClassB). You have created MyClass that contains the needed customizations.
Keeping upgradeability in mind, how do you configure di.xml to make the substitution happen?

  • A. Ensure that MyClass extends ModuleA and set the <argument/>, for ModuleB to point to your new class in di.xml.
  • B. Create a rewrite node that injects MyClass into ClassB.
  • C. Create a virtual type that extends ModuleB, specifying an <argument/> for MyClass.
  • D. Set a <preference/> for ModuleA to be replaced by MyClass

正解: A

 

質問 40
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\Model\ResourceModel\Product::load($productModel, $id)
  • C. \Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)
  • D. \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)

正解: A,D

 

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

正解: D

 

質問 42
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 prices can only be scoped per website or globally
  • B. The prices do not support scopes
  • C. The price scope can be set to store but this will lead to performance degradation of category pages
  • D. The prices can be scoped per store

正解: A

 

質問 43
You are creating a new indexer which must run after the targetrule_product_rule index process. When you run bin/magento indexer:reindex, your rule always runs first creating inaccurate data. What is the resolution?

  • A. Specify the sortOrder in your indexer configuration.
  • B. Use a plugin on the IndexManager class to change load order.
  • C. Create a bash script to execute each indexer in the correct order.
  • D. Use a dependencies node in your indexer configuration.

正解: D

 

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

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

正解: D

 

質問 45
A merchant asks you to create a module that is able to process URLs with a custom structure that can contain any combination of a product type code, a partial name, and a 4-digit year in any order. The request path will look like this: /product/:type-code/:name-part/:year Which layer in the Magento request processing flow is suited for this kind of customization?

  • A. Action controller
  • B. Router
  • C. Front controller
  • D. HTTP Response

正解: B

 

質問 46
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

 

質問 47
You have created a new product type, sample, and need to customize how it renders on the shopping cart page.
Keeping maintainability in mind, how do you add a new renderer?

  • A. Create the layout file, checkout_cart_index.xml, and update the cart page's uiComponent to appropriately render the sample product type.
  • B. Create the layout file, checkout_cart_item_renderers.xml, reference the checkout.cart.item.renderers block and add a new block with an as="sample" attribute.
  • C. Override the cart/form.phtml template and add logic for the sample product type.
  • D. Create the layout file, checkout_cart_index.xml, and reference the checkout.cart.renderers block and add a block with the as="sample" attribute.

正解: B

 

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

正解: D

 

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

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

正解: D

 

質問 50
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 two separate line items with quantity 1 each
  • C. As one line item of the second product with quantity 2
  • D. As one line item of the first product with quantity 2

正解: B

 

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

What will be the effect of this declaration?

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

正解: C

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

 

質問 52
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. Updates the current page handle to customer_account
  • C. Adds the customer_account handle to the page's handles list
  • D. Replaces the customer_account handle with sales_order_view

正解: C

解説:
Explanation
https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-in

 

質問 53
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. Model
  • C. Helper
  • D. Resource model

正解: D

 

質問 54
You are facing a bug, which is supposedly caused by the customization of
\Magento\Catalog\Api\ProductRepositoryInterface::save().
To resolve the issue, you decide to find all logic which customizes this method. Which two places do you search for customization declarations? (Choose 2)

  • A. */di.xml
  • B. */plugins.xml
  • C. */config.xml
  • D. */events.xml

正解: A,D

 

質問 55
What scopes are available for customer attributes?

  • A. Global and Website
  • B. Global, Website and Store
  • C. Website only
  • D. Global only

正解: D

 

質問 56
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\Api\Data\ProductInterfaceFactory
  • C. \Magento\Catalog\Model\ProductBuilder
  • D. \Magento\Catalog\Model\Product

正解: B

 

質問 57
You need to control access to a custom controller action. How do you tell Magento about this new control option?

  • A. Create etc/acl.xml and add <resource id="MyCompany_MyModule::customAction" ... />
  • B. Create etc/adminhtml/acl.xml and add <acl id="MyCompany_MyModule::customAction" ... />
  • C. Use the CLI to add the new resource option.
  • D. In the controller, implement the _isAllowed method.

正解: A

 

質問 58
......

Adobe Certified Expert - Magento Commerce Developer無料更新認定サンプル問題:https://www.goshiken.com/Adobe/AD0-E703-mondaishu.html