| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Which service is commonly used for Magento caching? |
(a). Redis (b). MongoDB (c). Cassandra (d). SQLite |
1 |
| 2. | What is the best way to modify the behavior of a public method in a core class without overriding it? |
(a). Preference (b). Plugin (c). Observer (d). Rewrite |
1 |
| 3. | Which plugin type can modify arguments? |
(a). before (b). after (c). around (d). observer |
1 |
| 4. | In Magento 2, which file is used to declare routes for a custom module? |
(a). routes.xml in etc/frontend or etc/adminhtml (b). webapi.xml in etc (c). di.xml in etc (d). module.xml in etc |
1 |
| 5. | Where are events defined? |
(a). events.xml (b). di.xml (c). module.xml (d). routes.xml |
1 |
| 6. | Which configuration file should NOT be committed to the repository? |
(a). config.php (b). env.php (c). composer.json (d). module.xml |
1 |
| 7. | Which cache system is recommended for full page caching? |
(a). Redis (b). Varnish (c). Memcached (d). Elasticsearch |
0 |
| 8. | In Magento 2, the preference tag in di.xml is used to: |
(a). Replace one class implementation with another globally (b). Set constructor arguments dynamically (c). Define a plugin for a class (d). Inject dependencies into controller actions |
1 |
| 9. | After upgrading Adobe Commerce, deployment fails because a custom patch cannot be applied. What should the developer do? |
(a). Restart the upgrade (b). Run ece-patches revert (c). Delete patch from .magento.app.yaml (d). Delete patch from m2-hotfixes directory |
1 |
| 10. | Where are plugins defined in a Magento 2 module? |
(a). routes.xml (b). module.xml (c). di.xml (d). webapi.xml |
1 |
| Total Marks:9/10 | Percentage:90% | ||