[Q58-Q74] Use Real AD0-E703 - 100% Cover Real Exam Questions [Jul-2021]

Share

Use Real AD0-E703 - 100% Cover Real Exam Questions [Jul-2021] 

Dumps Brief Outline Of The AD0-E703 Exam - PassLeader

NEW QUESTION 58
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 59
In layout files you can change al element's order on a page. This can be done using one of the following:
* <move> instruction
* before and after element attributes?
How are two methods different?

  • A. The move instruction allows altering an element's parent node
  • B. They are the same, both provide access to the same functionality
  • C. Elements are renamed by default when using the move instruction
  • D. Before and after attributes can only be used with referenceContainer and referenceBlock

Answer: A

 

NEW QUESTION 60
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 61
A custom module needs to log all calls of \Magento\Customer\Api\AddressRepositoryInterface::save().
Which mechanism do you use?

  • A. An observer on the customer_address_repository_save event, which is automatically fired for every repository save
  • B. A proxy configured to intercept all calls to any public method and log them
  • C. An extension attribute configured in the extension_attributes.xml
  • D. A plugin declared for the save() method

Answer: D

 

NEW QUESTION 62
A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.
How is this implemented?

  • A. This is out-of-the box functionality
  • B. By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attribute
  • C. By altering the customer_entity table, adding the field billing_address2, and customizing both My Account and Checkout functionality to use that new field
  • D. By changing the System Configuration setting: Customer>Allow multiple billing addresses to Yes

Answer: A

 

NEW QUESTION 63
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\Api\Data\ProductInterface
  • B. \Magento\Catalog\Model\Product
  • C. \Magento\Catalog\Model\ProductBuilder
  • D. \Magento\Catalog\Api\Data\ProductInterfaceFactory

Answer: D

 

NEW QUESTION 64
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 65
What is the difference between online and offline shipping methods?

  • A. Online means that it will be sent to the customer using a shipping carrier, offline means the customer will pick up the order in person
  • B. Online means Magento will use a shipping carrier's API to obtain rates, offline means Magento will calculate the rates internally
  • C. Online means that a shipment will have a tracking number, and offline means no tracking numbers are available
  • D. Online means that an item's shipping will be processed by the merchant, offline means that it will be processed by the customer

Answer: B

 

NEW QUESTION 66
Where do you change the frontName for the admin router?

  • A. app/etc/local.xml
  • B. app/etc/env.php
  • C. app/etc/config.xml
  • D. composer.json

Answer: B

 

NEW QUESTION 67
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. All store front pages are no longer cacheable
  • B. FPC will cache the block content for all cacheable pages
  • C. FPC will be bypassed for this block and all other page content will be cached
  • D. The block will be loaded on the store front using AJAX

Answer: A

Explanation:
Explanation
https://magento.stackexchange.com/questions/103256/how-to-disable-the-cache-for-the-block-in-magento-2

 

NEW QUESTION 68
Assume that $collection is a new instance of a class that extends
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.
How do you select a list of records from the database where the record ids are in the $ids list?

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

Answer: A

 

NEW QUESTION 69
You added a plugin declaration to MyCompany/MyModule/etc/di.xml:

What will be the effect of this declaration?

  • A. An exception because of the syntax error in the declaration
  • B. An exception because plugins must not be applied to the interfaces
  • 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

Answer: C

Explanation:
Explanation
https://stackoverflow.com/questions/62734221/magento2-writing-plugins-for-interface

 

NEW QUESTION 70
How do you obtain customer information in a JavaScript module?

  • A. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem('customer')
  • B. Magento does not expose customer information in JavaScript for security reasons
  • C. By sending an AJAX request to the url: /customer/account/info/?json=1
  • D. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/customer-data

Answer: D

 

NEW QUESTION 71
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 72
You are building CLI that use the console to create a customer account with our custom command as like php bin/magento customer:user:create --customer-firstname="Mahin" --customer-lastname="Rahman"
--customer-email="[email protected]" --customer-password="mahin@123" --website="1" using: protected function configure() { $this->setName('customer:user:create') ->setDescription('Create new customer') ->setDefinition($this->getOptionsList()); } protected function getOptionsList(){ return [
------------------]; } Which below Option are not required in blank? (Choose 2)

  • A. new InputOption(Customer::KEY_EMAIL, null, InputOption::VALUE_REQUIRED, '(Required) Customer email'),
  • B. new InputOption(Customer::KEY_FIRSTNAME, null, InputOption::VALUE_REQUIRED, '(Required) Customer first name'),
  • C. new InputOption(Customer::KEY_SENDEMAIL, 0, InputOption::VALUE_OPTIONAL, '(1/0) Send email? (default 0)')
  • D. new InputOption(Customer::KEY_STORE, null, InputOption::VALUE_REQUIRED, '(Required) Store ID'),
  • E. new InputOption(Customer::KEY_WEBSITE, null, InputOption::VALUE_REQUIRED, '(Required) Website ID'),
  • F. new InputOption(Customer::KEY_PASSWORD, null, InputOption::VALUE_REQUIRED, '(Required) Customer password'),
  • G. new InputOption(Customer::KEY_LASTNAME, null, InputOption::VALUE_REQUIRED, '(Required) Customer last name'),

Answer: C,D

 

NEW QUESTION 73
You see this code in etc/adminhtml/routes.xml:
<route id="mymodule" frontName="user-subscriptions">
<module name="MyCompany_MyModule" />
</route> You have placed a controller in Controller/Index/Subscribe.php.
If you want to create layout XML instructions for this controller, what would be the layout XML's filename?

  • A. user_subscriptions_index_subscribe.xml
  • B. mymodule_index_subscribe.xml
  • C. user_subscriptions_subscribe_[ACTION NAME].xml
  • D. mymodule_subscribe_[ACTION NAME].xml

Answer: B

 

NEW QUESTION 74
......

Certification Training for AD0-E703 Exam Dumps Test Engine: https://www.passleader.top/Adobe/AD0-E703-exam-braindumps.html