You have loaded an instance of Magento\Catalog\Model\Product in the $product variable. You know that the loaded product has the type configurable with four variations. These variations have the prices: $10, $12, $12, $15.
What will be the result of the $product->getFinalPrice() call?
A. [10, 12, 15]
B. 10
C. [10, 12, 12, 15]
D. 15
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\Model\Product
B. \Magento\Catalog\Api\Data\ProductInterfaceFactory
C. \Magento\Catalog\Api\Data\ProductInterface
D. \Magento\Catalog\Model\ProductBuilder
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 deleting the record with the Data Patch class name from the table patch_list table
C. By changing the version of the Data Patch in the getVersion method
D. By modifying the data_version value in the setup_module table
What order operation is available in the My Account section in the storefront?
A. Edit order
B. Refund
C. Reorder
D. Invoice
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. The block will be loaded on the store front using AJAX
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. All store front pages are no longer cacheable
How do you obtain customer information in a JavaScript module?
A. Magento does not expose customer information in JavaScript for security reasons
B. By sending an AJAX request to the url: /customer/account/info/?json=1
C. By using customerData.get(`customer') call, where customerData is an instance of Magento_Customer/ js/customer-data
D. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem(`customer')
A merchant tasks you to keep sales managers out of the system configuration backend pages.
How do you do that using the admin interface?
A. You remove access to the restricted pages from each user's ACL settings
B. You create a role with limited permissions and assign all sales manager users to the new role
C. This is not possible in a native Magento instance and requires customization
D. You create a role with access to the system configuration pages and assign it to all users except the sales managers
You are creating a new page layout for your custom module.
What is the primary difference between container and block elements?
A. They extend different abstract classes
B. A container's children are rendered automatically
C. Only containers can be removed by name or alias
D. A block's position within the layout can be altered
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. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
B. In your template, add the following: $orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
C. In your block, add a method with the following: return ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
D. In your template, add the following: $orderRepository = new OrderRepository();
You got a notification about error that occurred on a production environment. The merchant gave you the error identifier.
How do you find the error message based on the identifier?
A. An error is written to the var/log/exception.log file including the identifier
B. The error is sent to the pre-configured error email with the identifier in the subject
C. A file with a name matching the identifier is written to the var/report folder
D. An error message is written to the database table error_log with an error_id field matching the identifier
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Magento exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER exam preparations and Magento certification application, do not hesitate to visit our Vcedump.com to find your solutions here.