EMT Practice Test

1. Question Content...


Question List

Question1: 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?

Question2: Which command can be used to display a full list of enabled and disabled Magento modules?

Question3: Under which section should the soft dependency for a module be listed in app/code/<Vendor>/<Module>/composer.json file?

Question4: 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?

Question5: Which type of product is typically used for items such as services, memberships, warranties, and subscriptions?

Question6: Which entity in Magento supports scoped attributes?

Question7: A developer delected lhat a piece of functionality implemented in a third-party module's plugin can be omitted. So, the developer decides to deactivate the plugin. How can a developer take this action?

Question8: A merchant tasks you to keep sales managers out of the system configuration backend pages.
How do you do that using the admin interface?

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

Question10: What is a valid use case for an around plugin?

Question11: You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.
What is the correct layout declaration for this?

Question12: How can a developer turn off all store view options and scope indicators for a single-store installation?

Question13: 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?

Question14: 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?

Question15: The value of a product attribute in the Adobe Commerce system needs to have a different formal before it is displayed. Which attribute model class is responsible for this?

Question16: What is the length of the generated coupons if the developer has enabled the Auto Generate Coupon feature and has set the coupon prefix = NEWYEAR, coupon quantity = 5, and coupon length = 12?

Question17: How do you persist an entity to the database?

Question18: You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml Which two actions are required to ensure the new plugin will execute last? (Choose two.)

Question19: Which layout file should be used for a product with a specific id?

Question20: 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?

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

Question22: A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added.
How do you specify the class that will process the uploaded file?

Question23: Which Adobe Commerce table stores all cron data?

Question24: 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?

Question25: Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

Question26: A developer needs to add additional validation that would be triggered before order placement and decides to use checkout_index_index.xml to declare a custom validation is component. Which checkout step in checkout_index_index.xml is used to complete this task?

Question27: A merchant sells products in Euro currency. The merchant wants to show prices in other currencies. What is the scope of the default display currency?

Question28: How do you obtain customer information in a JavaScript module?

Question29: How should a grid or form be included in an admin page layout using the Ul Component?

Question30: Which type of product has the ability to have individual inventory for each variation from a list of options?

Question31: Which tag should be used in module.xml to ensure dependency modules are loaded in the proper order?

Question32: 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.)

Question33: A developer needs to initialize the jQuery Ul widget for a specific HTML tag.
Which HTML attribute is used for this?

Question34: How should a developer associate a resource model inherited from the
\Magento\Framework\Model\ResourceModel\Db\AbslractDb class with a corresponding table in the database?

Question35: Which command should be used to deploy static content?

Question36: How are multiple EAV attributes belonging to the same entity grouped in the database?

Question37: You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema.
How do you do that?

Question38: 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?

Question39: 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?

Question40: What order operation is available in the My Account section in the storefront?

Question41: A merchant has noticed an error in the checkout. The accessed URL is /checkout. Where can the developer find the responsible controller in the Magento.Checkout module?

Question42: How do you pass an array ['one', 'two] as a parameter to you block using the layout XML arguments directive?

Question43: How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?

Question44: Magento 2's architecture uses code to bootstrap a custom module that resides in app/code.
What two files are required to make a module usable? (Choose two.)

Question45: Which feature should a developer enable if a B2B buyer wants to negotiate the product price from a shopping cart?

Question46: In which two directories are third-party modules located by default? (Choose two.)

Question47: 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?

Question48: A module declares the route:

What is the layout handle of the storefront path /custom/feature/?

Question49: The module MyCompany_MyModule provides custom admin interface pages.
Access to these pages should only be granted to specific users.
You add the required configuration to the module's acl.xml file, but the setting does not seem to work as expected.
How do you visually check if Magento evaluates your ACL resource as expected?

Question50: You are tasked to install an extension to the merchant's Magento instance.
The extension is developed by the company called MyCompany and its codebase is available from all four locations listed below.
Which two installations options do you choose from to prevent version conflicts during upgrade? (Choose two.)

Question51: Which attribute input type should a developer use for a boolean?

Question52: Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?

Question53: 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.)

Question54: What is the default store ID for the admin panel?

Question55: 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.)

Question56: How do you add a foreign key to an existing table created by another module?

Question57: Which price type should be used if the developer wants to provide a discount for a product based on quantity, for example, being able to buy two for X amount each?

Question58: Where do you change the frontName for the admin router?

Question59: A developer needs to configure a page to use the single-column layout. Which XML code performs this task?

Question60: You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:

What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?