Best Quality Magento Magento-2-Certified-Associate-Developer Exam Questions ActualVCE Realistic Practice Exams [2021]
Critical Information To Magento 2 Certified Associate Developer Exam Pass the First Time
NEW QUESTION 60
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 61
What happens when a category's is_anchor attribute is set to 1?
- A. This is the default category for a website
- B. Products without a specified category will be associated with this category
- C. The category will always be visible in the menu
- D. The customer will see all products from all children of the category
Answer: A
NEW QUESTION 62
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 63
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 64
How do you obtain customer information in a JavaScript module?
- A. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/ customer-data
- B. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem ('customer')
- C. Magento does not expose customer information in JavaScript for security reasons
- D. By sending an AJAX request to the url: /customer/account/info/?json=1
Answer: A
Explanation:
Explanation/Reference: https://belvg.com/blog/customer-data-management-in-magento-2.html
NEW QUESTION 65
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: A
NEW QUESTION 66
A custom module must make changes to the schema following each setup:upgraderun. This must be done
after all other module's schema updates have been applied.
How is this accomplished?
- A. Update the module's setup_priorityin etc/modules.xml
- B. Write a plugin intercepting \Magento\Setup\Model\Installer::handleDBSchemaData
- C. Create a Recurringclass which implements InstallSchemaInterface
- D. Create an UpgradeSchemaAfterclass which implements InstallSchemaInterface
Answer: C
Explanation:
Explanation/Reference: https://www.pierrefay.com/magento2-training/install-upgrade-setup.html
NEW QUESTION 67
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 68
How does Magento store customer address attribute values?
- A. Customer address is an attribute of the customer, so it doesn't have its own attributes
- B. Customer address is an EAV entity, so all values are stored in the customer_address_entity table and
related values tables - C. Customer address is a flat entity, so all values are stored in the customer_address_entity table
- D. Customer address is not an entity, so its properties are customer attributes
Answer: B
NEW QUESTION 69
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 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. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/
customer-data - C. Magento does not expose customer information in JavaScript for security reasons
- D. By sending an AJAX request to the url: /customer/account/info/?json=1
Answer: B
Explanation:
Explanation/Reference: https://belvg.com/blog/customer-data-management-in-magento-2.html
NEW QUESTION 71
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: D
NEW QUESTION 72
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 73
A third-party module uses a layout update that changes the template path for a core block from product/
view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/
compare.phtmlof your custom module. The merchant has a customized version of this template in their
custom theme.
What is a consequence of this setup?
- A. If the custom module is removed, the custom template will no longer apply
- B. If another module is installed which also customizes the same core template, the templates will be rendered
sequentially - C. This setup will throw an IllegalStateException
- D. If a preference for the core block is set, the template will no longer apply
Answer: A
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/259547/how-to-a-third-party-module-uses-a-layout-
update-that-changes-the-template-path
NEW QUESTION 74
You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module's configuration.
Where should the dependency be declared?
- A. etc/config.xml
- B. etc/module.xml
- C. etc/di.xml
- D. composer.json
Answer: D
NEW QUESTION 75
A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.
You decided to implement an observer for customer_save_after_data_object event.
In which file do you declare the observer?
- A. etc/webapi_rest/events.xml
- B. etc/adminhtml/events.xml
- C. etc/events.xml
- D. etc/webapi/rest_events.xml
Answer: A
NEW QUESTION 76
You added a new constructor argument to an existing action controller class.
When you reload the page you get a PHP error that the wrong argument is passed to the class.
How do you fix this?
- A. Clean the <magento_root>/generated/ folder
- B. Clean the page cache
- C. Clean the config cache
- D. Deploy static content
Answer: A
Explanation:
Explanation
https://magento.stackexchange.com/questions/78826/creating-custom-module-in-magento2-show-fatal-error
NEW QUESTION 77
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 78
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
Explanation:
Explanation/Reference: https://amasty.com/knowledge-base/magento-2-admin-url.html
NEW QUESTION 79
......
Magento-2-Certified-Associate-Developer EXAM DUMPS WITH GUARANTEED SUCCESS: https://www.actualvce.com/Magento/Magento-2-Certified-Associate-Developer-valid-vce-dumps.html