Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Excellent Magento-2-Associate-Developer Updated 2021 Dumps With 100% Exam Passing Guarantee [Q42-Q60]

Share

Excellent Magento-2-Associate-Developer Updated 2021 Dumps With 100% Exam Passing Guarantee

Best way to practice test for Magento Magento-2-Associate-Developer

NEW QUESTION 42
In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption.
How do you supply the default value for that configuration option?

  • A. In the system/mycompany/group/mymodule/field/myoption node in the etc/system.xml file
  • B. In the system/section/group/field/value node in the etc/adminhtml/system.xml file
  • C. In the config/default/mycompany/mymodule/myoption node in the etc/config.xml file
  • D. In the menu/default/section/group/field node in the file etc/adminhtml/menu.xml

Answer: C

Explanation:
Explanation
https://magento.stackexchange.com/questions/173286/magento2-how-to-create-admin-page-with-configuration-f

 

NEW QUESTION 43
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::executeand register it in etc/
    crontab/.xml
  • B. Implement \MyCompany\MyModule\Cron\NewsLetterSender::executeand register it in etc/
    crontab/di.xml
  • C. Make sure bin/magento cron:runis added to the system crontab
  • D. Register the plugin for \Magento\Customer\Model\Customer::authenticatein etc/
    crontab.xml

Answer: A,C

 

NEW QUESTION 44
You are creating a new page layout for your custom module.
What is the primary difference between container and block elements?

  • A. A block's position within the layout can be altered
  • B. They extend different abstract classes
  • C. Only containers can be removed by name or alias
  • D. A container's children are rendered automatically

Answer: D

 

NEW QUESTION 45
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 the module's service contracts are stored
  • C. It is where API-related configuration resides
  • D. You need to review the files in this folder to understand its purpose

Answer: D

 

NEW QUESTION 46
What scopes are available for customer attributes?

  • A. Global only
  • B. Website only
  • C. Global and Website
  • D. Global, Website and Store

Answer: A

Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/258212/which-entity-allows-scoped-attributes

 

NEW QUESTION 47
Which method of a Magento resource model will remove a record from the database?

  • A. clean
  • B. delete
  • C. remove
  • D. erase

Answer: B

Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/123840/how-to-use-resource-model-delete?rq=1

 

NEW QUESTION 48
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 49
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

 

NEW QUESTION 50
How can you render a text on a page using only layout xml?

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

Answer: C

 

NEW QUESTION 51
Which method of a Magento resource model will remove a record from the database?

  • A. clean
  • B. delete
  • C. remove
  • D. erase

Answer: B

 

NEW QUESTION 52
In the module located at app/code/MyCompany/MyModulethere is a JS module in the file view/
frontend/web/register.js. The Magento base URL is https://magento.host/and the luma theme
with the en_USlocate is used.
What is the public URL for this file?

  • A. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js
  • B. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js
  • C. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js
  • D. https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js

Answer: D

Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html

 

NEW QUESTION 53
Which two tasks are supported by Magento CLI? (Choose two.)

  • A. Customer password reset
  • B. Clearing cache
  • C. Administrator account creation
  • D. Codebase deployment from developer machine to staging server

Answer: B,C

 

NEW QUESTION 54
You have configured an event observer to watch the checkout_submit_all_after event using this XML:

What is the required class definition for the event observer?

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

Answer: B

 

NEW QUESTION 55
There are two different configurable products which both share one variation. The shared variation is represented by the same simple product.
A customer added both configurables to the cart with the same selected variation?
How will they be displayed?

  • A. As two separate line items with quantity 1 each
  • B. As one line item of the second product with quantity 2
  • C. As one line item which lists both configurable products with quantity 1 each
  • D. As one line item of the first product with quantity 2

Answer: C

Explanation:
Explanation/Reference: https://firebearstudio.com/blog/the-complete-guide-to-magento-2-configurable-products.html

 

NEW QUESTION 56
You are working on a jewelry store that sells rings. Each ring allows an adjustment in size. The customer
specifies finger size in inches and the merchant physically adjusts the stocked ring to the required size.
How is this represented in Magento?

  • A. Using custom options, with rings as simple products
  • B. Using categories, with each ring size as a separate product
  • C. Using configurable products, with ring size as an attributive value
  • D. Using custom options, with rings as bundle products

Answer: C

 

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

Answer: A

 

NEW QUESTION 58
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. Create an UpgradeSchemaAfter class which implements InstallSchemaInterface
  • B. Write a plugin intercepting \Magento\Setup\Model\Installer::handleDBSchemaData
  • C. Create a Recurring class which implements InstallSchemaInterface
  • D. Update the module's setup_priority in etc/modules.xml

Answer: C

 

NEW QUESTION 59
You are tasked with ensuring customers who log into the site are authorized. By default, this consists of ensuring the customers email and password match the values in the database. On this project, you need to verify additional data in this process.
Keeping in mind upgradeability, how is this done?

  • A. Create an event observer for the user_save_after observer
  • B. Create a before plugin for \Magento\Customer\Api\AccountManagementInterface's authenticate method
  • C. Create a mutation of a CustomerInterface object to intercept the username and password
  • D. Override \Magento\Customer\Controller\AccountController.php

Answer: B

 

NEW QUESTION 60
......

Magento 2 Certified Associate Developer Exam Certification Sample Questions and Practice Exam: https://www.actual4test.com/Magento-2-Associate-Developer_examcollection.html