Home Article Adobe Certified Professional—Adobe Commerce Developer Exam Question Set Adobe Certified Professional—Adobe Commerce Developer Exam Question Set Vishal Prajapati April 16, 2022 0 comments Share: Facebook Twitter Google+ Pinterest Whatsapp Adobe Certified Professional—Adobe Commerce Developer Exam Question SetWhich method of a Magento resource model will remove a record from the database?You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.The constructor function for \Magento\Catalog\Model\Category contains this excerpt: With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.You are reviewing a Magento module and see a directory named Service. What can you determine from this directory’s name?You have created a module with a custom ACL resource and want to restrict access to resources of your module.You are adding a new menu item to the admin backend which will link to a custom backend page. The declaration of the routeHow do you add a foreign key to an existing table created by another module?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?In a code review of a merchant’s site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is calledIn the module located at app/code/MyCompany/MyModule there 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_US locate is used.You are adding a child node to the product.info block using the XML: How will this block be rendered?A custom module needs to log all calls of \Magento\Customer\Api\AddressRepositoryInterface::save(). Which mechanism do you use?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?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.A merchant sells shoes with multiple variations such as a color and size. A shoe is represented by a configurable product. There are seven different colors and four sizes.What is the relationship between products and categories in Magento?What is a valid use case for an around plugin?You have to install a new module on the production environment. All the module is adding a new product attribute. You enabled maintenance mode, copied the module code, run bin/magento setup:upgrade and disabled maintenance mode.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 connection between product attribute sets and categories?You are developing a new theme which inherits from the Magento_Luma theme. How is this accomplished?You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language.You have created a module controller that responds to the following URL:/mycompany/product/load/ id/123.Which two methods will load the product model by ID as specified in the URL? (Choose two.)You are tasked with ensuring customers who log into the site are authorized. By default, this consists of ensuring the customers email and password match the values in the database. On this project, you need to verify additional data in this process.A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.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.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.phtml of your custom module. The merchant has a customized version of this template in their custom theme.Magento allows you to specify custom values per store for product attributes created in the admin panel. Which architectural pattern makes it possible?Assume that a customer’s cart only includes one downloadable product. What effect will it cause on the quote object?You are building a report using complex SQL aggregations to locate the required data. In what type of class do you put these SQL statements?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:You are working on a jewelry store that sells rings. Each ring allows an adjustment in size. The customer specifies finger size in inches and the merchant physically adjusts the stocked ring to the required size.How do you add a new link into the My Account sidebar?You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml. What is the function of this file?A custom module must make changes to the schema following each setup:upgrade run. This must be done after all other module’s schema updates have been applied.What scopes are available for customer attributes?How do you persist an entity to the database?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.You are adding a new entry to the backend menu that appears after Marketing > SEO & Search >Site Map You see the existing site map menu item is declared by the node:What two actions do you take to configure the new menu entry location? (Choose two.)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.You are adding an entry to the backend menu. To do so you open a coreetc/adminhtml/menu.xml file as a reference. In the file you see the node:What is the result of specifying resource=”Magento_Catalog::catalog”?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.You are adding an entry to the backend menu. To do so you open a coreetc/adminhtml/menu.xml file as a reference. In the file you see the node:What is the result of specifying resource=”Magento_Catalog::catalog”?You are debugging a problem resulting from a recently deployed around plugin. The plugin isintercepting 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?You are adding an entry to the backend menu. To do so you open a coreetc/adminhtml/menu.xml file as a reference. In the file you see the node:What is the result of specifying resource=”Magento_Catalog::catalog”?You are debugging a problem resulting from a recently deployed around plugin. The plugin isintercepting 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?You are adding an entry to the backend menu. To do so you open a coreetc/adminhtml/menu.xml file as a reference. In the file you see the node:What is the result of specifying resource=”Magento_Catalog::catalog”?A merchant requires the ability to configure contact information for their brick and mortar storesas 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?Which entity in Magento supports scoped attributes?
No comments