Adobe Certified Master Magento Commerce Architect - AD0-E704 Exam Practice Test
Suppose you are working with order collection where you need to get the Customer collection object in foreach loop to check wheather current order's customer accout is locked or not. For this you injected Magento\Customer\Model\Customer $customer in the constructor to use $customer collection object. But in loop when this object is used, you notice that it's returning the same customer even if you pass different customer id to filter the customer collection inside loop. What is the solution for this problem?
Correct Answer: B
The merchant asked you to implement an order review step on the checkout after the payment step. Which problem do you need to resolve?
Correct Answer: A
Suppose you need to add a custom css file in layout XML in such a way that it should load asynchronously to improve the page load performance. What is the correct attribute for this:
Correct Answer: C
You are working on a project where many catalog managers often change products in the admin panel.
The merchant is considering changing the indexers mode to "Update on Schedule" from "Update on Save" to achieve better performance. However, the merchant is concerned about data consistency and the probability of the scheduled updates being lost.
How does Magento store the IDs of updated products for reindex in "Update on Schedule" mode?
The merchant is considering changing the indexers mode to "Update on Schedule" from "Update on Save" to achieve better performance. However, the merchant is concerned about data consistency and the probability of the scheduled updates being lost.
How does Magento store the IDs of updated products for reindex in "Update on Schedule" mode?
Correct Answer: D
In homepage, you need to add inline css in the body tag. What should be the correct way of doing this using layout XML file cms_index_index.xml:
Correct Answer: C
A merchant wants to send email notifications to those customers after a week who placed the order but didn't pay. Suppose email content is almost similar to the default order email template content with some additional text, so you decided to use the same but in a new custom template. How you pass the order object to the email template so that it will render the all data of default template?
Correct Answer: B
You need to create a Magento CLI command to return information from the system. What two steps are necessary?
Correct Answer: C,D
A merchant has created a segment that applies to registered customers whose gender is female. You then migrate customers by copying data directly from one database to another. What two ways are used to assign migrated customers with a female gender to the segment?
Correct Answer: A,C
You have created a module MyCompany_MyModule that adds a custom category attribute. The attribute is not showing up on the Category Edit Page in the Admin. How do you correct this?
Correct Answer: D