AD0-E703問題集を掴み取れ![最新2022]Adobe試験合格させます
AD0-E703試験問題集PDF正確率保証と更新された問題
質問 81
You are updating a module to add extra functionality to the Magento application, Where would Magento look for modules?
- A. app/vendor/vendor-name/module-name
- B. vendor/vendor-name/module-name
- C. lib/vendor-name/module-name
- D. app/code/VendorName/ModuleName
正解: B,D
質問 82
You are reviewing a Magento module and see a directory named Service.
What can you determine from this directory's name?
- A. It is where the API response cache is stored
- B. It is where API-related configuration resides
- C. It is where the module's service contracts are stored
- D. You need to review the files in this folder to understand its purpose
正解: D
質問 83
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
質問 84
Which two tasks are supported by Magento CLI? (Choose two.)
- A. Administrator account creation
- B. Codebase deployment from developer machine to staging server
- C. Customer password reset
- D. Clearing cache
正解: A,D
質問 85
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/). You create a new custom template to show the information.
How do you obtain an order repository so you can fetch an order?
- A. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
- B. In your template, add the following:$orderRepository = new OrderRepository();
- C. In your template, add the
following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - D. In your block, add a method with the following:return
ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
正解: A
質問 86
A merchant tasked you to add an input field for notes to the Customer Account Information backend page.
Which three actions do you specify in a module's Data Patch to add a customer notes attribute? (Choose three.)
- A. $customerSetup->getConnection()->addColumn('customer_entity', 'notes', $columnSpecs);
- B. $cache->clean(['eav', 'db_ddl']);
- C. $customerSetup->addAttributeToSet('customer', $attributeSetIdCustomer, $groupId, 'notes');
- D. $customerSetup->addAttribute('customer', 'notes', $options);
- E. $notesAttribute->setData('used_in_forms', ['adminhtml_customer']);
正解: B,D,E
質問 87
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. Declare the $_eventPrefix property in your vendor model and set it to vendor
- B. Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor
- C. Ensure that the primary key in the corresponding table is named vendor_id
- D. You must implement all appropriate methods and fire the events manually
正解: A
質問 88
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
質問 89
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
質問 90
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 B
- B. Option D
- C. Option C
- D. Option A
正解: A
質問 91
What order operation is available in the My Account section in the storefront?
- A. Edit order
- B. Refund
- C. Reorder
- D. Invoice
正解: C
質問 92
During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:
What is the consequence of the attribute showInStore being set to 0?
- A. The input field will not be visible if a store view scope is selected in the system configuration
- B. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of 'store'.
- C. The input field will only be visible if a website's default store scope is selected in the system configuration
- D. The input field will be disabled if a store view scope is selected in the system configuration
正解: A
質問 93
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
質問 94
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
質問 95
How do you instruct Magento to enable a new module?
- A. Add MyCompany_MyModule to the setup_module table.
- B. Magento automatically enables all new modules.
- C. Go to Admin > System > Module Management.
- D. bin/magento module:enable MyCompany_MyModule
正解: D
質問 96
You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.
How do you implement this, keeping simplicity in mind?
- A. Write a Data Patch which will set the appropriate layout update XML for every product record
- B. Specify custom layout update XML in the admin panel for every product
- C. Enable the dynamic product page UI component and configure it to use a different layout per price range
- D. Create a custom block which will dynamically choose the appropriate template
正解: D
解説:
Explanation
https://www.rohanhapani.com/magento-2-change-product-view-page-layout-based-on-price/
質問 97
You have created a new block and will be adding this block on every page. The block contains user-specific information and cannot be cached. The block is added to the default.xml with:
What does this accomplish?
- A. The block will be loaded on the store front using AJAX
- B. FPC will be bypassed for this block and all other page content will be cached
- C. All store front pages are no longer cacheable
- D. FPC will cache the block content for all cacheable pages
正解: C
解説:
Explanation
https://magento.stackexchange.com/questions/103256/how-to-disable-the-cache-for-the-block-in-magento-2
質問 98
The constructor function for \Magento\Catalog\Model\Category contains this excerpt:
With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?
- A. Magento looks to the di.xml files in the entire system for a preference node for
\Magento\Store\Model\StoreManagerInterface. This class is constructed and injected - B. If no $storeManager is provided, Magento's code generator creates a shell concrete class based on
\Magento\Store\Model\StoreManagerInterface - C. Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.
- D. Magento throws an exception because you cannot instantiate an interface
正解: A
解説:
Explanation
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html
質問 99
A custom module must make changes to the schema following each setup:upgrade run. This must be done after all other module's schema updates have been applied.
How is this accomplished?
- A. Update the module's setup_priority in etc/modules.xml
- B. Create a Recurring class which implements InstallSchemaInterface
- C. Write a plugin intercepting \Magento\Setup\Model\Installer::handleDBSchemaData
- D. Create an UpgradeSchemaAfter class which implements InstallSchemaInterface
正解: B
質問 100
Which two ways does Magento persist category relationships in the database? (Choose two.)
- A. in the table catalog_category_index
- B. in the parent_id field
- C. Using slash-separated values in the path field
- D. Using comma-separated values in the parent-ids field
正解: A,B
質問 101
A merchant tasks you to keep sales managers out of the system configuration backend pages.
How do you do that using the admin interface?
- A. You create a role with limited permissions and assign all sales manager users to the new role
- B. This is not possible in a native Magento instance and requires customization
- C. You create a role with access to the system configuration pages and assign it to all users except the sales managers
- D. You remove access to the restricted pages from each user's ACL settings
正解: A
質問 102
Your module adds a new controller class which will return a JSON response.
What will be the return type of the execute method?
- A. An instance of \Magento\Framework\Controller\Result\Json
- B. No return needed, an object that can be converted to JSON must be set as the Response body
- C. You should implement a new API endpoint instead of returning JSON from a controller
- D. The string value of \Zend_Json::encode()
正解: A
質問 103
......
最新をゲットせよ!AD0-E703認定練習テスト問題 試験問題集:https://www.goshiken.com/Adobe/AD0-E703-mondaishu.html