[Q57-Q81] Certification Training for AD0-E703 Exam Dumps Test Engine [2021]

Share

Certification Training for AD0-E703 Exam Dumps Test Engine [2021]

Oct 19, 2021 Step by Step Guide to Prepare for AD0-E703 Exam

NEW QUESTION 57
A module you are developing requires the addition of new routes that should be accessible in the store front.
Where do you define your module's frontName?

  • A. etc/config.xml
  • B. etc/frontend/config.xml
  • C. etc/routes.xml
  • D. etc/frontend/routes.xml

Answer: D

 

NEW QUESTION 58
The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.
You created a controller for this grid \MyCompany\MyModule\Controller\Adminhtml\CustomEntity\Index Which two actions are required to make the new page accessible at the
https://your.store.base.url/admin/my_module/custom_entity URL? (Choose two.)

  • A. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
  • B. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method
  • C. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
  • D. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml

Answer: A,C

 

NEW QUESTION 59
You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language.
Keeping simplicity in mind, how do you add this attribute?

  • A. Add a new column to the catalog_product_entity table using declarative schema
  • B. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages
  • C. Use the admin panel to create a new extension attribute
  • D. Use a Data Patch to create a new EAV attribute

Answer: C

 

NEW QUESTION 60
You have created a module to show manufacturer-list, but in your page need to show Pagination that already ready in your block. Keeping maintainability in mind, where you call echo $block->getPagerHtml();?

  • A. /Manufacturer/Controller/Index/Index.php
  • B. /Manufacturer/view/frontend/templates/content.phtml
  • C. /Manufacturer/Block/Index.php
  • D. /Manufacturer/view/frontend/layout/manufacturer_index_index.xml

Answer: B

 

NEW QUESTION 61
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:purge
  • B. cache:flush
  • C. cache:refresh config_webservice
  • D. cache:clean config_webservice

Answer: D

 

NEW QUESTION 62
You are developing a new theme which inherits from the Magento_Luma theme.
How is this accomplished?

  • A. Add Magento/luma to etc/view.xml
  • B. Add Magento/luma to theme.xml
  • C. Run the CLI command bin/magento dev:theme:inherit Magento_Luma
  • D. Specify the parent theme in Magento admin > Design > Configuration

Answer: B

 

NEW QUESTION 63
You
are customizing the display of product details page. On this page ur customer need to change the url in which the product category name will be appear as http://mystore.com/women/tops-women/helena-hooded- fleece.html , Keeping ,maintainability in mind ,How to get product url with category?

  • A. $product->setCategoryId($categoryId)->getProductUrl();
  • B. It is not possible to display Categories name on product url
  • C. Admin -> Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> "Use Categories Path for Product URLs" set to "Yes"
  • D. You Can Build category URL path
    \vendor\magento\module-catalog-url-rewrite\Model\CategoryUrlPathGenerator.php

Answer: C

 

NEW QUESTION 64
You have created a module with a custom ACL resource and want to restrict access to resources of your module.
Which three items are restricted based on ACL role permissions? (Choose three.)

  • A. Storefront login
  • B. Adminhtml controllers
  • C. CLI Commands
  • D. Webapi resources
  • E. System configuration sections

Answer: B,D,E

 

NEW QUESTION 65
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->addAttributeToSelect('origin', "California");
  • B. $collection->addAttributeToFilter('origin', "California");
  • C. $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California");
  • D. $collection->addFieldToFilter('origin', "California");

Answer: B,D

 

NEW QUESTION 66
You have created a new product type, sample, and need to customize how it renders on the shopping cart page.
Keeping maintainability in mind, how do you add a new renderer?

  • A. Create the layout file, checkout_cart_index.xml, and reference the checkout.cart.renderers block and add a block with the as="sample" attribute.
  • B. Create the layout file, checkout_cart_index.xml, and update the cart page's uiComponent to appropriately render the sample product type.
  • C. Override the cart/form.phtml template and add logic for the sample product type.
  • D. Create the layout file, checkout_cart_item_renderers.xml, reference the checkout.cart.item.renderers block and add a new block with an as="sample" attribute.

Answer: D

 

NEW QUESTION 67
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 68
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. The string value of \Zend_Json::encode()
  • C. No return needed, an object that can be converted to JSON must be set as the Response body
  • D. You should implement a new API endpoint instead of returning JSON from a controller

Answer: A

 

NEW QUESTION 69
Assume that a customer's cart only includes one downloadable product.
What effect will it cause on the quote object?

  • A. The quote object will not have any address
  • B. The quote object will not have a billing address
  • C. The quote object will not have shipping address
  • D. The quote object will have a downloadable URL instead of an address

Answer: C

 

NEW QUESTION 70
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 71
While developing a module you need to modify an existing Data Patch.
How can you force Magento to execute an existing Data Patch file again?

  • A. By removing the Data Patch, running the command: bin/magento setup:db-data:upgrade, then copying the file back and running the command again
  • B. By changing the version of the Data Patch in the getVersion method
  • C. By modifying the data_version value in the setup_module table
  • D. By deleting the record with the Data Patch class name from the table patch_list table

Answer: D

 

NEW QUESTION 72
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. Create a rewrite node that injects MyClass into ClassB.
  • B. Set a <preference/> for ModuleA to be replaced by MyClass
  • C. Ensure that MyClass extends ModuleA and set the <argument/>, for ModuleB to point to your new class in di.xml.
  • D. Create a virtual type that extends ModuleB, specifying an <argument/> for MyClass.

Answer: C

 

NEW QUESTION 73
A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?

  • A. REST endpoints are declared in etc/rest.xml
  • B. REST endpoints are declared in etc/webapi.xml
  • C. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
  • D. REST endpoints are declared in etc/webapi_rest/di.xml

Answer: B

 

NEW QUESTION 74
You are updating a module to add extra functionality to the Magento application, Where would Magento look for modules?

  • A. vendor/vendor-name/module-name
  • B. app/code/VendorName/ModuleName
  • C. app/vendor/vendor-name/module-name
  • D. lib/vendor-name/module-name

Answer: A,B

 

NEW QUESTION 75
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 76
You need to render a product attribute's raw value as a variable in a script tag. This value will be used to initialize an application on the frontend. How do you render this value?

  • A. <?= $block->renderJs($value) ?>
  • B. <?= $block->escapeHtml($value) ?>
  • C. <?= $block->escapeJsVar($value) ?>
  • D. <?= $block->escapeJs($value) ?>

Answer: D

 

NEW QUESTION 77
In a code review of a merchant's site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is called.
What risk does this pose, and how can it be mitigated?

  • A. There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.
  • B. Magento only supports one observer per event. These observers will need to be combined into a single point of customization.
  • C. Event observers are fired in alphabetical order of the observer name. There is no risk here.
  • D. Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins

Answer: D

 

NEW QUESTION 78
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 79
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 80
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 81
......

Ultimate Guide to Prepare AD0-E703 Certification Exam for Adobe Magento Commerce: https://www.prep4pass.com/AD0-E703_exam-braindumps.html