| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Which is NOT a valid type of Dependency Injection in Magento 2? |
(a). Constructor Injection (b). Method Injection (c). Property Injection (d). Interface Injection |
0 |
| 2. | Which JavaScript module is responsible for handling private content in Magento? |
(a). mage/storage (b). Magento_Customer/js/customer-data (c). mage/cache (d). Magento_Checkout/js/model/cart |
0 |
| 3. | Which message broker is commonly used with Adobe Commerce Cloud? |
(a). Kafka (b). RabbitMQ (c). ActiveMQ (d). ZeroMQ |
1 |
| 4. | Which file defines the deployment hooks for build, deploy, and post-deploy phases? |
(a). composer.json (b). magento.env.yaml (c). .magento.app.yaml (d). env.php |
0 |
| 5. | Which plugin type can modify arguments? |
(a). before (b). after (c). around (d). observer |
0 |
| 6. | Where are events defined? |
(a). events.xml (b). di.xml (c). module.xml (d). routes.xml |
1 |
| 7. | Where are plugins defined in a Magento 2 module? |
(a). routes.xml (b). module.xml (c). di.xml (d). webapi.xml |
1 |
| 8. | Which folder contains database schema definitions? |
(a). etc/db_schema.xml (b). etc/di.xml (c). etc/module.xml (d). etc/schema.xml |
1 |
| 9. | A store with 500k+ products experiences slow reindexing.
What should you recommend? |
(a). Switch all indexers to "Update on Save" (b). Use "Update by Schedule" with cron (c). Disable indexing (d). Use flat catalog |
0 |
| 10. | Which file is mainly used to configure Dependency Injection in a custom module? |
(a). config.xml (b). routes.xml (c). di.xml (d). module.xml |
1 |
| 11. | Which configuration should be stored in the code repository for an Adobe Commerce Cloud project? |
(a). Base URLs (b). Payment gateway credentials (c). Module enable/disable configuration (d). Store email addresses |
1 |
| 12. | In Magento 2, Dependency Injection primarily helps in: |
(a). Reducing database queries (b). Removing layout dependencies (c). Replacing class dependencies at runtime without modifying code (d). Improving frontend performance |
1 |
| 13. | During deployment, site downtime occurs. Best solution? |
(a). Deploy directly to production (b). Use blue-green deployment strategy (c). Disable maintenance mode (d). Restart server |
1 |
| 14. | A product has:
|
(a). ₹1000 (b). ₹800 (c). ₹750 (d). ₹900 |
1 |
| 15. | Which plugin method runs before original method execution? |
(a). beforeMethod (b). aroundMethod (c). afterMethod (d). overrideMethod |
1 |
| 16. | What is used to define service contracts? |
(a). Interfaces (b). Controllers (c). Blocks (d). Helpers |
1 |
| 17. | If two classes require the same dependency, Magento 2: |
(a). Creates two separate objects every time (b). Always uses Object Manager directly (c). Reuses the same instance if the dependency is marked as shared (d). Throws an error unless defined in system.xml |
1 |
| 18. | A product is updated in the admin panel. Which cache tag is used to invalidate related cache? |
(a). product_cache (b). catalog_product (c). catalog_product_<product_id> (d). cache_product_<id> |
1 |
| 19. | Which cache type stores full page responses? |
(a). Config cache (b). Page cache (c). Layout cache (d). Block cache |
1 |
| 20. | What is the purpose of config.php? |
(a). Store module configuration (b). Store database credentials (c). Store API tokens (d). Store cache config |
1 |
| 21. | A developer stores API keys in config files. Best approach? |
(a). Store in code (b). Use env.php or secure configuration (c). Save in database (d). Hardcode in module |
1 |
| 22. | Which cache backend is commonly used in Magento Cloud? |
(a). Memcached (b). Redis (c). Cassandra (d). MongoDB |
1 |
| 23. | Add custom checkout field → best approach? |
(a). Modify core (b). Extension attributes (c). DB column directly (d). Template change |
1 |
| 24. | If multiple observers are defined for the same event, what determines their execution order? |
(a). Alphabetical order of observer names (b). Module load order (sequence.xml) (c). File system order (d). Random execution |
1 |
| 25. | Which file defines application configuration in Adobe Commerce Cloud? |
(a). services.yaml (b). .magento.env.yaml (c). .magento.app.yaml (d). env.php |
1 |
| 26. | Which service file defines database and cache services? |
(a). services.yaml (b). routes.yaml (c). env.php (d). config.php |
1 |
| 27. | Which component handles checkout UI? |
(a). Knockout.js (b). Vue.js (c). Angular (d). React |
1 |
| 28. | Which cache stores layout XML? |
(a). Layout cache (b). Config cache (c). Block cache (d). Full page cache |
1 |
| 29. | Which file defines dependency injection configuration? |
(a). module.xml (b). di.xml (c). routes.xml (d). events.xml |
1 |
| 30. | A developer creates a custom block that displays customer-specific loyalty points on the homepage. The homepage is cached using Full Page Cache (Varnish).
What is the correct approach? |
(a). Disable FPC for the homepage (b). Use AJAX to load loyalty points after page load (c). Set block cache lifetime to 0 (d). Use private content (customer-data JS) |
1 |
| 31. | Which plugin type wraps the original method? |
(a). before (b). around (c). after (d). observer |
1 |
| 32. | What is the purpose of indexers? |
(a). Improve database speed (b). Precompute data for faster queries (c). Backup database (d). Compress data |
1 |
| 33. | In Magento 2, where should you define an observer if you want it to trigger only during frontend requests? |
(a). etc/events.xml (b). etc/adminhtml/events.xml (c). etc/frontend/events.xml (d). etc/global/events.xml |
1 |
| 34. | Which protocol is used for GraphQL queries? |
(a). HTTP (b). FTP (c). TCP (d). UDP |
1 |
| 35. | 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 |
| 36. | A constructor has too many dependencies. Best practice? |
(a). Add more dependencies (b). Use service class / refactor logic (c). Use ObjectManager directly (d). Remove DI |
1 |
| 37. | GraphQL schema files are located in? |
(a). etc/graphql (b). etc/schema (c). etc/schema.graphqls (d). etc/api |
1 |
| 38. | Which command recompiles dependency injection code? |
(a). setup:install (b). setup:upgrade (c). setup:di:compile (d). setup:static-content:deploy |
1 |
| 39. | ObjectManager should be used: |
(a). Everywhere (b). Only in templates (c). Avoided (except core cases) (d). Only in controllers |
1 |
| 40. | Which cache type is responsible for storing entire HTML pages? |
(a). config (b). block_html (c). full_page (d). layout |
1 |
| 41. | Which service is used as CDN in Adobe Commerce Cloud? |
(a). Cloudflare (b). Akamai (c). Fastly (d). AWS CloudFront |
1 |
| 42. | In Magento 2, if multiple plugins are defined on the same class, the execution order is controlled by: |
(a). pluginOrder tag (b). sortOrder attribute (c). sequence.xml (d). Alphabetical order of module names |
1 |
| 43. | Which plugin type can stop method execution? |
(a). before (b). after (c). around (d). none |
1 |
| 44. | Which scenario requires cache invalidation? |
(a). Static CSS loaded (b). Product price updated (c). JS file loaded (d). Layout XML parsed |
1 |
| 45. | Which file registers a module with the Magento framework? |
(a). module.xml (b). registration.php (c). composer.json (d). config.php |
1 |
| 46. | Which file defines REST API routes? |
(a). routes.xml (b). webapi.xml (c). api.xml (d). rest.xml |
1 |
| 47. | In Magento 2, what is the purpose of the generated folder? |
(a). Stores compiled classes and dependency injection generated files (b). Stores static content like CSS and JS (c). Stores cache and logs (d). Stores backup copies of modules |
1 |
| 48. | Which indexer mode is recommended for production? |
(a). Manual (b). Schedule (c). Realtime (d). Disabled |
1 |
| 49. | A product is assigned to multiple sources but not salable.
What could be the issue? |
(a). Product is disabled (b). No stock assigned to website (c). Source items have quantity but not assigned to stock (d). Cache issue |
1 |
| 50. | Where is module version defined? |
(a). composer.json (b). module.xml (c). di.xml (d). routes.xml |
1 |
| Total Marks:45/50 | Percentage:90% | ||