GoShikenからの試験合格準備の必需品AD0-E711試験トレーニング問題 [Q32-Q52]

Share

GoShikenからの試験合格準備の必需品AD0-E711試験トレーニング問題

有効なパス率はAdobe CommerceのAD0-E711試験問題

質問 # 32
A developer found a bug inside a private method of a third party module class. How can the developer override the method?

  • A. Create a custom class with the corrected logic, and define the class as a preference for original one in the di.xml
  • B. Create a custom class with corrected logic, and define the class as preference in the preferences.xml.
  • C. Create a plugin, implement correct logic in the 'after' method, and then define the plugin in the di.xml.

正解:A


質問 # 33
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. <backend_model>\Magento\Config\Model\Config\Backend\File</backend_model>
  • B. <upload_model>\Magento\Config\Model\Config\Upload\File</upload_model>
  • C. <frontend_model>\Magento\Config\Model\Config\Frontend\File</frontend_model>
  • D. <source_model>\Magento\Config\Model\Config\Source\File</source_model>

正解:A


質問 # 34
A developer delected lhat a piece of functionality implemented in a third-party module's plugin can be omitted. So, the developer decides to deactivate the plugin. How can a developer take this action?

  • A. <plugin name="pluginName' disabled="true7>
  • B. The plugin can be deactivated in di.xml in a custom module using the code:
    <remove name-'pluginName" />
  • C. The only way to deactivate a plugin is to remove it from di.xml file in the module where it was defined.
    The plugin can be deactivated In di.xml In a custom module using:

正解:A

解説:
To deactivate a plugin, the developer can add the 'disabled' attribute in the di.xml file of a custom module using the following code: <plugin name="pluginName" disabled="true">. This will disable the specified plugin without the need to remove it from the di.xml file where it was defined. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html#disabling-plugins


質問 # 35
A merchant sells products in Euro currency. The merchant wants to show prices in other currencies. What is the scope of the default display currency?

  • A. Store view
  • B. Global
  • C. Website

正解:A


質問 # 36
How do you persist an entity to the database?

  • A. Calling the persist() method on the entity's repository
  • B. Calling the update() method on the entity's collection
  • C. Calling the store() method on the entity's model
  • D. Calling the save() method on the entity's repository

正解:D


質問 # 37
A new custom module is built for the existing Adobe Commerce store. A merchant has requested a few frontend updates. For this, a developer has to implement a custom style. What Is the location of the less file that will be included by default?

  • A. view/{area}/web/css/source/_module.less
  • B. view/(area}/web/css/source/main.less
  • C. view/{area}/web/css/style.less

正解:A


質問 # 38
You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.
How do you do that?

  • A. Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor
  • B. You must implement all appropriate methods and fire the events manually
  • C. Ensure that the primary key in the corresponding table is named vendor_id
  • D. Declare the $_eventPrefix property in your vendor model and set it to vendor

正解:D


質問 # 39
Which method type can be intercepted by plugins?

  • A. public
  • B. final
  • C. static

正解:A


質問 # 40
A seller would like to offer an electronic version of an album by selling each song individually. Which layout can be used to customize a product page layout for this item?

  • A. catalog_product_vlew_calegory
  • B. catalog_product_view_type_configu rable
  • C. catalog_pfoduct_view_type_downloadable

正解:C

解説:
The layout to customize a product page for selling each song individually (electronic version of an album) is "catalog_product_view_type_downloadable". This layout is specifically designed for downloadable products in Magento. Reference: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/product-layouts.html


質問 # 41
Which method type can be intercepted by plugins?

  • A. public
  • B. final
  • C. static

正解:A

解説:
Only public methods can be intercepted by plugins in Magento. Static and final methods cannot be intercepted. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html#before-after-and-around-methods


質問 # 42
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. Helper
  • B. Resource model
  • C. Repository
  • D. Model

正解:B


質問 # 43
What is one purpose of a customer data JS library?

  • A. It stores the customer's credit card info for usage in the checkout.
  • B. It stores the customers username and password for easier frontend login.
  • C. It stores private customer data In local storage.

正解:C


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


質問 # 45
What is one purpose of a customer data JS library?

  • A. It stores the customer's credit card info for usage in the checkout.
  • B. It stores the customers username and password for easier frontend login.
  • C. It stores private customer data In local storage.

正解:C

解説:
The purpose of a customer data JS library is to store private customer data in local storage. It helps manage customer-related data on the client-side and provides a convenient way to access and manipulate this data. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/cache/page-caching/private-content.html


質問 # 46
Which price type should be used if the developer wants to provide a discount for a product based on quantity, for example, being able to buy two for X amount each?

  • A. Group Price
  • B. Special Price
  • C. Tier Price

正解:C

解説:
Tier Price should be used if the developer wants to provide a discount for a product based on quantity. Tier pricing allows merchants to offer discounts when customers purchase a specified quantity of a product.


質問 # 47
What order operation is available in the My Account section in the storefront?

  • A. Refund
  • B. Edit order
  • C. Invoice
  • D. Reorder

正解:D


質問 # 48
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 informs Magento that the theme is present and available for use
  • B. It configures Grunt to compile assets for the theme
  • C. It specifies the applicable CSS files for the theme
  • D. It stores theme and image configuration values

正解:D


質問 # 49
How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?

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

正解:B


質問 # 50
A developer is making customizations in the checkout, and access to the quote's shipping address is needed.
Which file provides the shipping address of the current quote?

  • A. Mag ento_Checkout/Js/model/quote
  • B. Magonto_Checkout/Js/model/quote shipping-address
  • C. Magento_Quote/js/model/model

正解:B


質問 # 51
A developer wants to implement integration of a new payment method that should be available for order creation from the admin panel. Which flag should be used?

  • A. can_use_checkout
  • B. can_use_internal
  • C. can_use_admin

正解:B


質問 # 52
......

全問AD0-E711問題集とAdobe Commerce Developer Professionalトレーニングコース:https://www.goshiken.com/Adobe/AD0-E711-mondaishu.html