Adobe AD0-E704試験問題(更新されたのは2023年)100%リアル問題解答 [Q21-Q42]

Share

Adobe AD0-E704試験問題(更新されたのは2023年)100%リアル問題解答

合格させるAdobe AD0-E704試験最速合格


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

トピック出題範囲
トピック 1
  • Demonstrate an ability to use the Magento command-line interface
  • Demonstrate an ability to use different types of setup scripts in Magento
トピック 2
  • Demonstrate understanding Adminhtml security with Magento
  • Demonstrate an ability to create complex forms and grids
トピック 3
  • Demonstrate understanding of the admin login process and admin actions processing
  • Determine advanced uses of the Magento configuration system
トピック 4
  • Demonstrate an ability to understand and customize Magento products
  • Demonstrate understanding of Magento events processing
トピック 5
  • Demonstrate understanding of advanced capabilities in Magento Commerce
  • Demonstrate understanding UiComponents architecture
トピック 6
  • Demonstrate an understanding of catalog indexers
  • Demonstrate understanding of target rules
トピック 7
  • Demonstrate an ability to perform complex operations with the Magento pricing framework
  • Using the Entity-Attribute-Value (EAV) Model
トピック 8
  • Demonstrate understanding of catalog staging and its impact on the system
  • Demonstrate an ability to use non-catalog EAV entities
トピック 9
  • Demonstrate understanding of frontend security with Magento
  • Demonstrate an ability to operate with attribute options
トピック 10
  • Demonstrate an understanding of the product search framework
  • Demonstrate understanding of customer segmentation
トピック 11
  • Demonstrate understanding of the staging workflow
  • Demonstrate advanced use of Magento layouts

 

質問 21
A merchant is asking you to organize a catalog of 9000 rings which come in six sizes, each with unique inventory. Additionally, the customers will have 1000 unique engravings to choose from for their ring. The engraving is made on the selected ring just before the order is shipped.
How do you organize such a catalog to achieve optimal store performance and ease of management?

  • A. 9000 simple products with 6 values for size custom option and 1000 values for an engraving custom option
  • B. 9000 configurable products which have 6 variants each with 1000 values for an engraving custom option
  • C. 9000 configurable products which have 6x1000 variants each
  • D. 9000x6 simple products with 1000 values for engraving custom option

正解: A

 

質問 22
Suppose there are 3 classes: Class A, B and C. Class C have dependecy of Class A You need to overrride/change an argument of class A, create an object of it and inject in Class B in such a way that it should not affect the class C. What should be the magento standard way to do this:

  • A. In module's etc/menu.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
  • B. In module's etc/di.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
  • C. In module's etc/system.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
  • D. In module's etc/config.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.

正解: B

 

質問 23
Magento uses the HTTPOnly flag when setting cookies for security reasons. There is also a system configuration setting available in the Cookie Settings to turn it on and off. What is the purpose of this flag?

  • A. To prevent Cross Site Tracing (XST) attacks
  • B. To prevent cookies from being accessible via JavaScript
  • C. To prevent cookies from being intercepted via a CSRF attack
  • D. To prevent cookies from being delivered over HTTPS

正解: B

 

質問 24
You are creating a module lo enable customers to attach an image file to the quote items while adding a product to the cart. To save development time, you want to build on top of functionality provided by the class \Magento\Catalog\Model\ImageUploader as much as possible.
The class constructor signature is:
What do you do to process the uploaded file?

  • A. Create a custom Class implementing \Magento\Catalog\Model\ImageUploaderInterface and add it to the $uploaders argument of the UploaderPoolinterface via di.xml
  • B. Create a custom implementation because the catalog imageUploader can not be used to for files associated with quote items
  • C. Configure a Virtual type based on \Magento\Catalog\Model\ImageUploader Specifying $baseTmpPath. $basePath and SallowedExtensions
  • D. Configure a plugin for the method \Magento\Catalog\Model\ImageUploader: moveFileFromTmp() in di. xml

正解: C

 

質問 25
A Magento site is experiencing an issue where a fatal out of memory error occurs during a custom bulk catalog import process. Here is the code:

  • A. Inject an instance Of Uagento\Catalog\model\ResourceModel\Product\IteratingCollectionFactory into your code instead
  • B. Call Magento\Framework\Data\Collection: setMemoryLimit to increase PHP's memory limit
  • C. UseMagento\Model\Entity\Collection\AbstractCollection: :setPage to iterate through the collection in chunks
  • D. Use a \Magento\Framework\Model\ResourceModel\iterator to walk through the collection row-by-row

正解: A,D

 

質問 26
Magento regenerates the admin URL secret key for each new session. What is the purpose of this key?

  • A. To prevent admin pages from being cached
  • B. To prevent admin panel Cross Site Request Forgery attacks
  • C. To prevent brute-force attacks
  • D. To validate ACL permissions for the current admin user

正解: D

 

質問 27
You have a task to modify the grand total on the checkout page with a negative price adjustment which depends on the shipping address postcode. What are two approaches to be used in this case?

  • A. Create an observer on the event sales_quote_collect_totals_after, get the quote object, check the postcode and set the modified grand total into it
  • B. Create a new total collector which adds a negative price adjustment based on the postcode
  • C. Create a JavaScript mixin for the Magento_Checkout/ js /view /summary/,subtotal, change total there and Magento will submit the modified total when placing an order
  • D. Create a new shopping cart price rule with a condition based on the shipping address postcode

正解: B,D

 

質問 28
You are creating a module that creates a Catalog Price Rule. You have written this code to specify the conditions:

After saving the catalog rule, the second and third condition do not seem to fall under the combine condition.
How do you fix the issue?

  • A. The array keys are incorrect they need to be 1--1 and 1--2
  • B. The () operator in the third condition is invalid, which prevents the conditions from being saved correctly
  • C. The type of the third condition needs to be Magento\CatalogRule\Model\Rule\Condition\Category since you are checking on category_ids
  • D. The value field in the first condition is changed to "2. 3"

正解: B

 

質問 29
A merchant is planning to create a single scheduled update for one million products. They are wondering about website performance. What two performance issues will the update cause?

  • A. When applying a scheduled update Magento will reindex all affected products
  • B. Magento will index all records in the cataiog_product_entity table regardless of the version so the index tables will be big
  • C. Magento runs a cron job every minute to generate and maintain preview data
  • D. The catalog_product_entity_* tables will contain all the staged values which slows down all queries related to them

正解: A,B

 

質問 30
You need to include the customer account menu on a custom storefront page, but only when the method MyCompany\\lyModule\ViewModel\MyView: :hasCustomerMenu() returns true. How do you accomplish this?

  • A. In the page action controller, if hasCustomer-Menu() returns true, before returning the page result call
    Spage->addHandleC custoner_account')
  • B. Create an after plugin for Magento\Framework\View\UyoutInterface::getOutput() and if hasCustomerMenuO returns true, Call $subject->addHandled customer_account')
  • C. In the page's layout XML file, add
    <update handle="customer_account" if="MyCompany\MyModule\ViewModel\MyView::hasCustomerMenu" >
  • D. In the page action controller, inject the Layoutinterface and if hasCustonerMenu() returns true, call
    $layout->addHandle('custooer_account')

正解: C

 

質問 31
A sample routes.xml looks like

What is the effect of the before attribute?

  • A. Actions in MyCompany_MyModule Will match before actions in \lagento_Checkout
  • B. Actions in Magento_Checkout Will match before actions in MyCompany_MyModule
  • C. MyCompany.MyModule will be loaded before Magento.Checkout
  • D. Magento.Checkout Will be loaded before MyCompanv_MyModule

正解: A

 

質問 32
Suppose you need to add an admin grid using uiComponent. if page URL ends with banners/index/index, then which basic uiComponent you would use and what should be the page layout file:

  • A. Grid component in the banner_index_index.xml
  • B. Listing component in the banner_index_index.xml
  • C. Form component in the banner_index_index.xml
  • D. We can not define uiComponent file in a page-layout file.

正解: B

 

質問 33
You are making a module MyCompany_MyModule and the merchant asks for an attribute that is only available to simple and configurable products. This needs to be defined in the catalog_eav_attribute table.
How can we create this behavior during the creation of this attribute?
A)

B)

C)

D)

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

正解: D

 

質問 34
You are troubleshooting an issue where a related product rule is not showing the product expected by a user. You run this command:
bin magento cache:clean target_rule
What impact does this have?

  • A. Cached select statements will be cleared from the Magento cache
  • B. Products to Display calculation will be cleared from the Magento cache
  • C. Cached select statements will be cleared from action_select column of the magento_targetrule table
  • D. HTML output of target rule blocks will be cleared from the Magento cache

正解: C

 

質問 35
You are working on a project with custom code located in an observer MyCompany\MyModule\Observer\Custom on the catalog_product_load_before event. How do you prevent your custom observer from being executed on a staging preview?

  • A. By moving your observer to the staged_catalog_product_load_before event
  • B. No action is required, the catalog_product_ioad_before event is excluded from the execution on staging preview
  • C. By adding your observer to the bannedobserver parameter of Magento\staging\Model\Event\Manager using di. xml
  • D. By specifying an attribute excude_from_staging_previwe*=''i'' in the declaration of the observer in the events.xml file

正解: D

 

質問 36
You are debugging a problem with a shopping cart price rule which gives free shipping for the whole cart if the subtotal is greater than $100. You are seeing that when a custom shipping method is selected, the shipping price is still present even though the subtotal is greater than $100.
How do you fix this problem?

  • A. Modify the carrier class to process the free_shipping flag of the quote items
  • B. Create an option allow_freeshiping in the system configuration of the shipping method and set its value to 1
  • C. Add the shipping method's code to the price rule action
  • D. Add the shipping method's code to the price rule condition

正解: B

 

質問 37
You are implementing a requirement to exclude all shipping rates less than $50 if there is a specific product in the shopping cart. How do you do this?

  • A. Create an observer for the event shipping_rates_collect_after-. In the observer you have access to the rates result object which contains all the rates. You can set a new list of rates to the result object.
  • B. Create an after plugin for the method \Hageino\checkoutUpi\shippinginfonaationManageDein::getShippingRates. The method returns a list of rates which you can filter in the plugin.
  • C. Create a shopping cart price rule with a condition of having the product in the cart and an action to exclude shipping rates less than $50.
  • D. Create an after plugin for the method \Magento\shiPping\Modei\shipPing: : collectives and access the rate result object using the getResuh o method of the Shipping class. You can update the list of rates in the result object.

正解: C

 

質問 38
A client running Elasticsearch would like products only matching ALL search terms to show on the frontend of the website. How do you do this?

  • A. Configure the Match Behavior setting to All in the Magento Admin panel
  • B. Create an esconfig.xml configuration file with a <match> node set to all
  • C. This requires custom code
  • D. Send a one-time POST request to the Elasticsearch /.settings endpoint

正解: D

 

質問 39
Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it. What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :

  • A. Create plugin or Override the class \Magento\Framework\View\Element\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
  • B. Turn-off Review module output globally by extending <Magento_install_dir>/vendor/magento/module-backend/etc/module.xml
  • C. Create plugin or Override the class \Magento\Backend\Block\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module's block instance is present.
  • D. Turn-off Review module output globally by extending <Magento_install_dir>/vendor/magento/module-backend/etc/config.xml

正解: D

 

質問 40
Consider below code in a UiComponent xml file: Magedeal\Employee\Ui\DataProvider\Employee\DataProvider employee_data_source entity_id id What is the application of

  • A. The class attribute defines DataProvider class which is the primary source of any data or metadata that the component needs or will use.
  • B. The class attribute defines UiComponent class which is the primary source of any data or metadata that the component needs or will use.
  • C. This references a PHP class that must implement \Magento\Framework\View\Element\UiComponent\DataProvider\DataProviderInterface. And it can also extend or implement the \Magento\Ui\DataProvider\ModifierPoolDataProvider
  • D. This references a PHP class that must implement \Magento\Framework\View\Element\UiComponent\DataProvider\UiComponentInterface. And it can also extend or implement the \Magento\Ui\DataProvider\ModifierPoolDataProvider

正解: A,C

 

質問 41
You defined a custom layout file 1column-2footers.xml under /view/frontend/layouts.xml. Now, what is the conventional path to creating the custom layout file 1column-2footers.xml?

  • A. <module_dir>/etc/frontend/layout
  • B. <module_dir>/view/frontend/layout
  • C. <module_dir>/etc/frontend/page_layout/
  • D. <module_dir>/view/frontend/page_layout

正解: D

 

質問 42
......

リアルAdobe AD0-E704試験問題 [更新されたのは2023年]:https://www.goshiken.com/Adobe/AD0-E704-mondaishu.html