Adobe Certified Master Magento Commerce Architect (AD0-E704) Free Practice Test
Question 1
You are working on a project where a custom option of type text for a certain product has been created. The merchant wants to customize the add to cart functionality for this product, such that products with different text for the custom option will be represented as separate shopping cart line items.
How does Magento split shopping cart line items for a product based on custom options?
How does Magento split shopping cart line items for a product based on custom options?
Correct Answer: C
Question 2
You are debugging a problem with a shopping cart price rule which gives free shipping for the whole cart if the subtotal is greater than $100. You are seeing that when a custom shipping method is selected, the shipping price is still present even though the subtotal is greater than $100.
How do you fix this problem?
How do you fix this problem?
Correct Answer: D
Question 3
Suppose you are working on a specific uicomponet form where front-end customers can update their name and phone number only when the admin user sets the editable_field_flag to 1 for his submitted data from the backend. According to this flag, when loading the data in the form for front-end users, how would you check and customize to enable/disable the name and phone number fields?
Correct Answer: C
Question 4
Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it. What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :
Correct Answer: D
Question 5
OrangeCompany decided to build a REST API based module in the application so that he can share the details of best-selling products to his franchisee. To make it's flexible and customizable in the future, he advised his developers to enable the support of extension_attribute in the API interface so that any new attributes can be added when required. What is the way to enable the entity/interface to support extension attributes in the module?
Correct Answer: B
Question 6
You are working on a module MyCompany_MyModule which adds a select attribute with a few options using the \Magento\Eav\Setup\EavSetup: :addAttribute() method in data in data install script.
There is no uninstall script. While debugging, you have uninstalled the module with the command:
bin magento module:uninstall MyCompany_MyModule
Then you reinstalled the module. What will be the effect on the attribute?
There is no uninstall script. While debugging, you have uninstalled the module with the command:
bin magento module:uninstall MyCompany_MyModule
Then you reinstalled the module. What will be the effect on the attribute?
Correct Answer: D
Question 7
You defined a custom layout file 1column-2footers.xml under /view/frontend/layouts.xml. Now, what is the conventional path to creating the custom layout file 1column-2footers.xml?
Correct Answer: A
Question 8
For an existing core class, you created 3 plugins PluginA, PluginB and PluginC with sort orders 10, 20 and 30 respectively. but when implementing pluginB you used around method and did not used callable in it.What should be the plugins executaion order as per above scenerio:
Correct Answer: C
Question 9
You are debugging an issue where the staged product custom attribute value is not displayed properly. The attribute backend type is varchar. How does Magento store scheduled values for varchar attributes?
Correct Answer: C