Master 2021 Latest The Questions Adobe Magento Commerce and Pass AD0-E703 Real Exam!
Penetration testers simulate AD0-E703 exam PDF
NEW QUESTION 14
How can you access the select query of a collection?
- A. The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query
- B. You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select
- C. You can only access the select query after the collection has been loaded by calling the public method query()
- D. It is stored in a protected variable $query and can only be accessed from the inside of a collection class
Answer: B
NEW QUESTION 15
In a custom module you implement the interface \Magento\Framework\App\Config\DataInterface.
What version constraint for magento/framework do you add to your module's composer.json file?
- A. patch
- B. minor
- C. stable
- D. major
Answer: B
NEW QUESTION 16
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. Ensure that the primary key in the corresponding table is named vendor_id
- C. You must implement all appropriate methods and fire the events manually
- D. Declare the $_eventPrefix property in your vendor model and set it to vendor
Answer: D
NEW QUESTION 17
You are building a new module to add extra functionality to the Magento application.You want to works with CustomerData the data stored on the client side. Where initialized sections Cart and Directory-data are on the server side via the classes?
- A. Magento\Checkout\CustomerData\Cart and Magento\Checkout\CustomerData\DirectoryData
- B. Magento\Checkout\Api\Cart and Magento\Checkout\Api\DirectoryData
- C. Magento\Checkout\Block\Cart and Magento\Checkout\Block\DirectoryData
- D. Magento\Checkout\Plugin\Cart and Magento\Checkout\Plugin\DirectoryData
Answer: A
NEW QUESTION 18
You are creating a module that will be sold on the Magento Marketplace. You wish for this module to be easily extensible, and decide to add the capability for other developers to utilize extension attributes. What is the minimum update necessary to enable this capability?
- A. Ensure each model extends Magento\Framework\Model\AbstractExtensibleModel.
- B. Add the getExtensionAttributes() method and implement ExtensionAttributesInterface in each model.
- C. Configure your models in etc/extension_attributes.xml
- D. Create an ExtensionAttributeInterface for each model.
Answer: B
NEW QUESTION 19
You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:
What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?
- A. It is not possible without extending the adminhtml route in routes.xml
- B. action="adminhtml/mycompany/mymodule/"
- C. action="mycompany/mymodule/"
- D. action="admin/mycompany/mymodule/"
Answer: C
NEW QUESTION 20
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 be disabled 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 not be visible if a store view scope is selected in the system configuration
Answer: D
NEW QUESTION 21
What is the connection between product attribute sets and categories?
- A. Categories have no connection to product attribute sets, and any product can be assigned to any category
- B. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category
- C. Each category is linked to a single product attribute set, and only products from that category's set or any of its parent categories'
- D. Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category
Answer: A
NEW QUESTION 22
While integrating a merchant's product information management system with Magento, you create a module MyCompany_MerchantPim that adds a catalog product EAV attribute pim_entity_id programmatically. In which type of setup script do you create the EAV attribute?
- A. Setup/InstallSchema.php
- B. Setup/UpgradeSchema.php
- C. Setup/InstallEntity.php
- D. Setup/UpgradeData.php
Answer: D
NEW QUESTION 23
You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2.
Keeping in mind upgradability and the need to customize, which one do you choose?
- A. Create a new Magento instance using composer create-project
- B. Create a new Magento instance by using the bin/magento install command
- C. Run php bin/magento setup:migrate <path-to-m1-installation> <new-version> command
- D. Clone the magento/magento2 GitHub repository
Answer: A
NEW QUESTION 24
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 A
- D. Option C
Answer: B
NEW QUESTION 25
You are trying to determine why a product is not appearing in a category. What table does Magento on the frontend to locate the relationship between a category and its products?
- A. catalog_category_product_index
- B. catalog_product_parent
- C. catalog_category_product_relationship
- D. catalog_category_product
Answer: D
NEW QUESTION 26
You are building CLI that use the console to create a customer account with our custom command, Adding a new command to CLI is based on passing on the argument from the XML level to the class. Dependency Injection comes in handy here. you create the file app/code/Mycompany/Customer/etc/di.xml with the following content: <type name="---------------------"> </type> What is the correct in below?
- A. Magento\Framework\CommandList\Console
- B. Magento\Framework\Console\CommandList
- C. Magento\Framework\CommandList
- D. Magento\Framework\Console
Answer: B
NEW QUESTION 27
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. $notesAttribute->setData('used_in_forms', ['adminhtml_customer']);
- B. $cache->clean(['eav', 'db_ddl']);
- C. $customerSetup->getConnection()->addColumn('customer_entity', 'notes', $columnSpecs);
- D. $customerSetup->addAttribute('customer', 'notes', $options);
- E. $customerSetup->addAttributeToSet('customer', $attributeSetIdCustomer, $groupId, 'notes');
Answer: A,B,D
NEW QUESTION 28
How many shipping addresses may be selected for an order during the checkout process?
- A. One shipping address per line item is possible
- B. One shipping addresses per unit of quantity is possible
- C. Only one shipping address per order is possible
- D. One shipping address per product type is possible
Answer: C
NEW QUESTION 29
A module declares the route:
What is the layout handle of the storefront path /custom/feature/?
- A. mymodule_feature_index
- B. custom_feature_index
- C. mymodule_feature
- D. custom_feature
Answer: A
NEW QUESTION 30
You are debugging a problem resulting from a recently deployed around plugin. The plugin is intercepting the doSomething method. The aroundDoSomething plugin method is called successfully, but the original doSomething method is no longer being executed as expected.
What is causing this?
- A. The plugin implementation is skipping the execution of its callable argument
- B. The plugin implementation returned something other than its callable argument
- C. The sort order of the plugin is too high and supersedes the priority of the intercepted method
- D. The plugin implementation overlooked using the AbstractPlugin parent class
Answer: A
NEW QUESTION 31
A merchant sells shoes with multiple variations such as a color and size. A shoe is represented by a configurable product. There are seven different colors and four sizes.
What is the minimal amount of simple products that represent a combination of color and size needs to be created in order to make a shoe salable?
- A. Each color and size must have at least one representation, so a minimum of seven products is needed
- B. A simple product for every combination must be created
- C. One simple product that represents a combination of color and size is enough
- D. A product may be purchased even without any combination available. The color and size may be adjusted during order fulfillment
Answer: C
NEW QUESTION 32
You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.
How do you organize the project to support this requirement?
- A. Create one website, two store views
- B. Create one website, two payment scopes
- C. Create two websites, two store views
- D. Create one website, one store view
Answer: B
NEW QUESTION 33
You are implementing a custom module MyModule, which provides an implementation of
\Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.
The LoggerInterface has the default preference declared in app/etc/di.xml.
Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?
- A. Overwrite the existing preference for the LoggerInterface in app/etc/di.xml
- B. Declare a new preference for the LoggerInterface in
app/code/MyCompany/MyModule/etc/global/di.xml - C. Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml
- D. Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml
Answer: D
NEW QUESTION 34
Which entity in Magento supports scoped attributes?
- A. Category
- B. Customer Address
- C. CMS Page
- D. Customer
Answer: A
NEW QUESTION 35
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 D
- B. Option B
- C. Option A
- D. Option C
Answer: B
NEW QUESTION 36
......
Penetration testers simulate AD0-E703 exam: https://www.exam4free.com/AD0-E703-valid-dumps.html
