What will happen?

You are tasked to work on a message queue module. When looking at the queue configuration you see the following: Keeping in mind maintainability, you change it to: What will happen?A . This code will cancel all the topic starting with customer B. This code will not work as message...

October 30, 2022 No Comments READ MORE +

How can we create this behavior during the creation of this attribute?

You are making a module MyCompany_MyModule and the merchant asks for an attribute that is only available to simple and configurable products. This needs to be defined in the catalog_eav_attribute table. How can we create this behavior during the creation of this attribute? A) B) C) D) A . Option...

October 29, 2022 No Comments READ MORE +

How do you do this?

You are implementing a requirement to exclude all shipping rates less than $50 if there is a specific product in the shopping cart. How do you do this?A . Create an after plugin for the method MagentoshiPpingModeishipPing: : collectives and access the rate result object using the getResuh o method...

October 29, 2022 No Comments READ MORE +

What modification does Magento_Staging make to existing SQL queries?

You are working on a project with a large database with many products, sales rules and CMS pages. The merchant is going to use Magento_Staging for scheduled updates, but they were told that use of Staging will modify all SQL queries and slow down website performance. What modification does Magento_Staging...

October 29, 2022 No Comments READ MORE +

What three methods does Magento use to prevent this kind of attack?

To prevent Cross Site Scripting (XSS) attacks, Magento templates use different methods to escape the output on the website before displaying it to the user. What three methods does Magento use to prevent this kind of attack?A . Sblock->escapeData() B. Sblock->escapeOutput() C. Sblock->escapeHtmlAttr() D. $block->escapeHtml() E. $block->escapeUrl()View AnswerAnswer: B,C,D

October 29, 2022 No Comments READ MORE +

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?

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,...

October 29, 2022 No Comments READ MORE +

What impact does this have?

You are troubleshooting an issue where a related product rule is not showing the product expected by a user. You run this command: bin magento cache:clean target_rule What impact does this have?A . Products to Display calculation will be cleared from the Magento cache B. HTML output of target rule...

October 28, 2022 No Comments READ MORE +

A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products.

A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products. So what should the approach to cache the block data as per pagination request:A . In block class toHtml() method, define cache_lifetime,...

October 28, 2022 No Comments READ MORE +

Suppose you want to develope a custom extension that should provide product_redirect_links to amazon.com, ebay.com and other sites. Suppose this must be added using extension_attribute feature to make that availbe for product repository and services, then what are the customizations needed to develope it: Choose 2

Suppose you want to develope a custom extension that should provide product_redirect_links to amazon.com, ebay.com and other sites. Suppose this must be added using extension_attribute feature to make that availbe for product repository and services, then what are the customizations needed to develope it: Choose 2A . In your custom...

October 28, 2022 No Comments READ MORE +

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.

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:A . async B. defer C. rel D. ie_conditionView AnswerAnswer: B

October 27, 2022 No Comments READ MORE +