無料ダウンロードAdobe AD0-E702リアル試験問題ゲットせよ
最新のAdobe AD0-E702リアル試験問題集PDF
質問 45
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\Model\ProductBuilder
- B. \Magento\Catalog\Api\Data\ProductInterfaceFactory
- C. \Magento\Catalog\Model\Product
- D. \Magento\Catalog\Api\Data\ProductInterface
正解: B
質問 46
You have added a new attribute origin of the type varchar to the product entity.
Which two calls will filter a product collection with origin set to "California"? (Choose two.)
- A. $collection->addAttributeToFilter('origin', "California");
- B. $collection->addAttributeToSelect('origin', "California");
- C. $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California");
- D. $collection->addFieldToFilter('origin', "California");
正解: A,D
質問 47
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\Collection::fetchItemById($id)
- C. \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)
- D. \Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)
正解: A,C
質問 48
A module declares the route:
What is the layout handle of the storefront path /custom/feature/?
- A. custom_feature_index
- B. custom_feature
- C. mymodule_feature
- D. mymodule_feature_index
正解: D
質問 49
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\AbstractBlock" name="shop.info.details"/>
- B. <container name="shop.info.details"/>
- C. <block class="\Magento\Framework\View\Element\Text\ListText" name="shop.info.details"/>
- D. <block class="\Magento\Framework\View\Element\Template" name="shop.info.details"/>
正解: B,C
質問 50
You have created a new section in system configuration under the Catalog tab:
How do you restrict an access to the section using Magento ACL?
- A. Option A
- B. Option C
- C. Option B
- D. Option D
正解: C
質問 51
What is a valid use case for an around plugin?
- A. The arguments of the after plugins must be modified
- B. The arguments of the before plugins must be modified
- C. The execution of the pluginized method must be suppressed
- D. The execution of the before and after plugins must be suppressed
正解: D
質問 52
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_schema.xml file in your module, add the column and run bin/magento setup:upgrade
- C. Create a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrade
- D. Run a command: bin/magento setup:db-schema:upgrade <table> <column definition>
正解: B
質問 53
You need to find all orders in the processing state. You have written the code:
How do you resolve the exception?
- A. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
- B. Use dependency injection to load an instance of the SearchCriteria class
- C. Change the getList parameter to: $searchCriteraBuilder->addFilter('state','processing')->create()
- D. Clear generated code to get a new version of SearchCriteriaBuilder
正解: C
質問 54
Which entity in Magento supports scoped attributes?
- A. Customer
- B. Category
- C. CMS Page
- D. Customer Address
正解: B
質問 55
Which two ways does Magento persist category relationships in the database? (Choose two.)
- A. Using comma-separated values in the parent-ids field
- B. Using slash-separated values in the path field
- C. in the parent_id field
- D. in the table catalog_category_index
正解: C,D
質問 56
You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.
Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?
- A. cache:flush
- B. cache:refresh config_webservice
- C. cache:clean config_webservice
- D. cache:purge
正解: C
質問 57
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 parent="Magento_Backend::marketing_seo"
- B. Specify sortOrder="100"
- C. Specify parent="Magento_Sitemap::catalog_sitemap"
- D. Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml
正解: A,B
質問 58
The module MyCompany_MyModule provides custom admin interface pages.
Access to these pages should only be granted to specific users.
You add the required configuration to the module's acl.xml file, but the setting does not seem to work as expected.
How do you visually check if Magento evaluates your ACL resource as expected?
- A. Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles
- B. Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/resources
- C. Inspect the output of the CLI command bin/magento admin:role:resources - all
- D. In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources
正解: D
質問 59
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. Resource model
- B. Repository
- C. Helper
- D. Model
正解: A
質問 60
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. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.xml file
- B. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file
- C. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml
- D. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file
正解: B,C
質問 61
How do you add a new link into the My Account sidebar?
- A. By adding the new section into the customer_account table in the database
- B. By creating a child of the My Account UI component
- C. By creating a new UI component
- D. By using a layout update
正解: D
質問 62
......
PDF問題(2022年最新)実際のAdobe AD0-E702試験問題:https://jp.fast2test.com/AD0-E702-premium-file.html