A developer defined a new table in db_schema.xml while creating a new module.
What should be done to allow the removal of columns from the database when deleting them from db_schema.xml?
Answer : B
To allow the removal of columns from the database when deleting them from db_schema.xml, the developer should define the removable columns in the db_schema_whitelist.Json file. This file serves as a whitelist for columns that can be safely removed during schema updates.
Which tag should be used in module.xml to ensure dependency modules are loaded in the proper order?
Answer : A
In Magento's module.xml file, the <sequence></sequence> tag should be used to ensure that dependency modules are loaded in the proper order. This tag defines the load order of modules, making sure that dependent modules are loaded before the current module.
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?
Answer : C
The length of the generated coupons will be 17. The coupon prefix 'NEWYEAR' has 7 characters, and the coupon length is set to 12, so the total length will be 7 (prefix) + 12 (coupon length) = 17.
What is the purpose of a URL Rewrite?
Answer : B
URL rewrite is a technique used to make URLs more user-friendly and easier to understand for both customers and search engines. This helps improve the website's search engine optimization (SEO) and overall user experience. Reference: https://www.searchenginejournal.com/seo-friendly-url-structure-2/202790/
Which action, if any, should be taken to forbid Adobe Commerce Admin from performing specific actions?
Answer : B
This is done by using the Storefront API to create the custom role, and then assigning that role to the admin user. Please refer to the Adobe Commerce Developer Professional Study Manual from adobe.com for more information on creating custom roles and assigning them to users.
A developer is making customizations in the checkout, and access to the quote's shipping address is needed. Which file provides the shipping address of the current quote?
Answer : B
The file Magento_Checkout/Js/model/quote provides the shipping address of the current quote. It contains the necessary methods to retrieve and manipulate the quote's shipping address data.
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?
Answer : C
The display currency scope is Store view. In Magento, you can set the default display currency for each store view, allowing merchants to show prices in different currencies for different store views.