[Nov-2021] Magento-2-Certified-Associate-Developer Pre-Exam Practice Tests | Exam Questions and Answers for Magento Certified Developer Study Guide
Magento 2 Certified Associate Developer Exam Certification Sample Questions
Topics of Magento 2 Associate Developer Exam
Candidates should apprehend the examination topics before they begin of preparation. Because it’ll extremely facilitate them in touch the core. Our Magento 2 Associate Developer dumps will include the following topics:
1. Architectures of Magento and Techniques Customization (33%)
- Customization of different techniques used by Magento
- Understanding of different architectures of Magento
- Understanding of different techniques used by Magento
2. Processing of Request Flow (7%)
- Understanding of Action Controller
- Understanding of Front Controller
- Initial Routing of HTTP application
- Request hits index
3. Customization of Magento UI (15%)
- Representation of distinct UI elements
- Understanding of tables, buttons and dialogs
- Understanding of Fontend libraries used by Magento
- Understanding of different thems of Fontend used by Magento
4. Management of Database in Magento (18%)
- Understanding of different database configuration files used by Magento
- Understanding of EAV models of Database used by Magento
- Understanding of Magento cloud database
5. Development of Adminhtml (11%)
- Demonstration of Admin Form
- UI components of Adminhtml
- Demonstration of Admin Menu
- Demonstration of Admin Grid
6. Customization of Magento Business Logic (16%)
- Understanding of Layered design of applications
- Understanding of Magento data objects
- Functionalities of Magento Buiness Logic
- Understanding of Magento data models
NEW QUESTION 29
While reviewing a layout file named sales_order_view.xml you notice the element
<update handle="customer_account"/>
What is the purpose of this element?
- A. Replaces the customer_account handle with sales_order_view
- B. Updates the current page handle to customer_account
- C. Nothing, this element has been deprecated
- D. Adds the customer_account handle to the page's handles list
Answer: B
NEW QUESTION 30
Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?
- A. Extension Attribute
- B. Store Manager
- C. Dependency Injection
- D. Entity Attribute Value
Answer: D
NEW QUESTION 31
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/adminhtml/events.xml
- B. etc/webapi/rest_events.xml
- C. etc/webapi_rest/events.xml
- D. etc/events.xml
Answer: D
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/256268/how-to-trigger-observer-by-rest-api
NEW QUESTION 32
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 A
- C. Option C
- D. Option B
Answer: D
NEW QUESTION 33
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/). You create a new custom template to show the information.
How do you obtain an order repository so you can fetch an order?
- A. In your template, add the following:$orderRepository = new OrderRepository();
- B. In your block, add a method with the following:return
ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - C. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
- D. In your template, add the
following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
Answer: C
NEW QUESTION 34
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 D
- B. Option B
- C. Option A
- D. Option C
Answer: C
NEW QUESTION 35
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. Only containers can be removed by name or alias
- C. A container's children are rendered automatically
- D. They extend different abstract classes
Answer: C
NEW QUESTION 36
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/). You create a new custom template to show the information.
How do you obtain an order repository so you can fetch an order?
- A. In your template, add the following:
$orderRepository = ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - B. In your template, add the following:
$orderRepository = new OrderRepository(); - C. In your block, add a method with the following:
return ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - D. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
Answer: C
NEW QUESTION 37
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. FPC will cache the block content for all cacheable pages
- B. The block will be loaded on the store front using AJAX
- C. All store front pages are no longer cacheable
- D. FPC will be bypassed for this block and all other page content will be cached
Answer: C
NEW QUESTION 38
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. Elements are renamed by default when using the move instruction
- C. Before and after attributes can only be used with referenceContainer and referenceBlock
- D. They are the same, both provide access to the same functionality
Answer: C
Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/xml-instructions.html
NEW QUESTION 39
You need to find all orders in the processing state. You have written the code:
How do you resolve the exception?
- A. Use dependency injection to load an instance of the SearchCriteria class
- B. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
- C. Clear generated code to get a new version of SearchCriteriaBuilder
- D. Change the getList parameter to: $searchCriteraBuilder->addFilter('state','processing')->create()
Answer: D
NEW QUESTION 40
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, one store view
- C. Create one website, two payment scopes
- D. Create two websites, two store views
Answer: C
NEW QUESTION 41
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 sort order of the plugin is too high and supersedes the priority of the intercepted method
- C. The plugin implementation overlooked using the AbstractPlugin parent class
- D. The plugin implementation returned something other than its callable argument
Answer: A
Explanation:
Explanation
Explanation/Reference: https://github.com/magento/magento2/issues/11699
NEW QUESTION 42
A merchant is interested in setting different prices for the same products in different store scopes.
What do you reply to this inquiry?
- A. The prices can only be scoped per website or globally
- B. The price scope can be set to store but this will lead to performance degradation of category pages
- C. The prices can be scoped per store
- D. The prices do not support scopes
Answer: A
NEW QUESTION 43
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/routes.xml
- B. etc/config.xml
- C. etc/frontend/config.xml
- D. etc/frontend/routes.xml
Answer: D
NEW QUESTION 44
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. FPC will cache the block content for all cacheable pages
- B. The block will be loaded on the store front using AJAX
- C. All store front pages are no longer cacheable
- D. FPC will be bypassed for this block and all other page content will be cached
Answer: C
NEW QUESTION 45
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/routes.xml
- B. etc/config.xml
- C. etc/frontend/config.xml
- D. etc/frontend/routes.xml
Answer: D
Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/routing.html
NEW QUESTION 46
What is the relationship between products and categories in Magento?
- A. Products may be assigned to zero or more categories
- B. Product to category relation is dynamically defined by Catalog Product Rules
- C. Each product belongs to zero or one category
- D. Each product always belongs to one category
Answer: A
NEW QUESTION 47
A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.
Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?
- A. <backend_model>Magento\Config\Model\Config\Backend\Yesno</backend_model>
- B. <frontend_model>Magento\Config\Model\Config\Frontend\Yesno</frontend_model>
- C. <option_model>Magento\Config\Model\Config\Option\Yesno</option_model>
- D. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
Answer: D
Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout-add-custom-carrier.html
NEW QUESTION 48
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->addAttributeToFilter('origin', "California");
- B. $collection->addFieldToFilter('origin', "California");
- C. $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California");
- D. $collection->addAttributeToSelect('origin', "California");
Answer: A,D
NEW QUESTION 49
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 A
- C. Option C
- D. Option B
Answer: D
NEW QUESTION 50
Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class responsible for the frontend path /mymodule/custom.
What file contains the controller class for the frontend path /mymodule/custom?
- A. Controller/Custom/Index.php
- B. Controller/Custom.php
- C. Controller/Frontend/MyModule/Custom.php
- D. Controller/MyModule/Custom/Index.php
Answer: A
NEW QUESTION 51
How many shipping addresses may be selected for an order during the checkout process?
- A. Only one shipping address per order is possible
- B. One shipping address per product type is possible
- C. One shipping addresses per unit of quantity is possible
- D. One shipping address per line item is possible
Answer: A
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/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js
- D. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js
Answer: C
Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html
NEW QUESTION 53
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: B
NEW QUESTION 54
......
Magento Exam Practice Test To Gain Brilliante Result: https://www.pass4sures.top/Magento-Certified-Developer/Magento-2-Certified-Associate-Developer-testking-braindumps.html