| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Service contracts are defined in which folder? |
(a). Api/ (b). Model/ (c). Helper/ (d). Controller/ |
1 |
| 2. | A CTO wants to disable one of Magento’s core cron jobs. What is the recommended way for a developer to accomplish this? |
(a). Use cron_job_run event and stop execution (b). Rewrite cron schedule with a date that will never happen (c). Rewrite cron job and add disable="true" to job node (d). Disable cron job from Magento Admin |
1 |
| 3. | Which plugin type can stop method execution? |
(a). before (b). after (c). around (d). none |
1 |
| 4. | Which component handles checkout UI? |
(a). Knockout.js (b). Vue.js (c). Angular (d). React |
1 |
| 5. | 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 |
| 6. | A developer needs to modify method behavior without overriding the class. What should be used? |
(a). Preference (b). Plugin (c). Observer (d). Helper |
1 |
| 7. | GraphQL schema files are located in? |
(a). etc/graphql (b). etc/schema (c). etc/schema.graphqls (d). etc/api |
1 |
| 8. | Which service is used as CDN in Adobe Commerce Cloud? |
(a). Cloudflare (b). Akamai (c). Fastly (d). AWS CloudFront |
0 |
| 9. | Where are events defined? |
(a). events.xml (b). di.xml (c). module.xml (d). routes.xml |
1 |
| 10. | What happens if _eventPrefix is not defined in a custom model? |
(a). Magento throws an exception (b). No events are triggered (c). Default prefix model is used (d). Only delete events work |
1 |
| 11. | What is the correct way to dispatch a custom event in Magento 2? |
(a). $this->dispatchEvent('custom_event'); (b). $this->_eventManager->dispatch('custom_event', ['data' => $value]); (c). Event::trigger('custom_event'); (d). Mage::dispatch('custom_event'); |
1 |
| 12. | What is the purpose of indexers? |
(a). Improve database speed (b). Precompute data for faster queries (c). Backup database (d). Compress data |
0 |
| 13. | 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 |
| 14. | 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 |
| 15. | Add custom checkout field → best approach? |
(a). Modify core (b). Extension attributes (c). DB column directly (d). Template change |
0 |
| 16. | Which file is used to configure environment variables in Adobe Commerce Cloud? |
(a). env.php (b). .magento.env.yaml (c). config.php (d). services.yaml |
1 |
| 17. | What type of plugin executes before method? |
(a). around (b). before (c). after (d). override |
1 |
| 18. | In Magento 2, plugins (interceptors) are defined in: |
(a). module.xml (b). di.xml (c). config.xml (d). webapi.xml |
1 |
| 19. | Where are plugins defined in a Magento 2 module? |
(a). routes.xml (b). module.xml (c). di.xml (d). webapi.xml |
1 |
| 20. | Which event fires when a product is saved? |
(a). product_save_after (b). catalog_product_save_after (c). product_after_save (d). catalog_after_save |
1 |
| 21. | Which cache type stores full page responses? |
(a). Config cache (b). Page cache (c). Layout cache (d). Block cache |
0 |
| 22. | Which Magento feature protects against CSRF? |
(a). Form Key (b). Session ID (c). Token (d). Salt |
0 |
| 23. | Which of the following is true about around plugins? |
(a). They must call $proceed() to execute the original method (b). They cannot access method arguments (c). They always run after before and after plugins (d). They do not support return value modification |
0 |
| 24. | 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 |
0 |
| 25. | What command is used to deploy static content in production mode? |
(a). bin/magento cache:flush (b). bin/magento setup:static-content:deploy (c). bin/magento deploy:static (d). bin/magento setup:upgrade |
0 |
| 26. | Which plugin type can modify arguments? |
(a). before (b). after (c). around (d). observer |
1 |
| 27. | Which is preferred over class override? |
(a). Preference (b). Plugin (c). Rewrite (d). Observer |
0 |
| 28. | Which Magento component handles routing? |
(a). Router (b). Controller (c). FrontController (d). Dispatcher |
0 |
| 29. | Special price is applied: |
(a). Based on quantity (b). Based on customer group (c). Globally to all customers (with date range) (d). Only in admin panel |
1 |
| 30. | Which message broker is commonly used with Adobe Commerce Cloud? |
(a). Kafka (b). RabbitMQ (c). ActiveMQ (d). ZeroMQ |
1 |
| 31. | A PWA storefront using GraphQL is slow. What is BEST optimization? |
(a). Increase server RAM (b). Use persisted queries + caching (c). Disable GraphQL (d). Use REST instead |
0 |
| 32. | Flat catalog is: |
(a). Mandatory (b). Deprecated (c). Recommended (d). Required for speed |
0 |
| 33. | Where is checkout UI logic defined? |
(a). XML only (b). Knockout.js (c). PHP (d). CSS |
1 |
| 34. | What is the purpose of db_schema.xml? |
(a). Define UI components (b). Define database tables (c). Configure API routes (d). Configure cache |
1 |
| 35. | Which plugin can completely control method execution? |
(a). before (b). after (c). around (d). observer |
1 |
| 36. | Which file registers a module with the Magento framework? |
(a). module.xml (b). registration.php (c). composer.json (d). config.php |
1 |
| 37. | 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 |
0 |
| 38. | What mechanism triggers background jobs in Adobe Commerce? |
(a). Scheduler (b). Cron (c). Queue Worker (d). Worker Pool |
1 |
| 39. | Which cache backend is commonly used in Magento Cloud? |
(a). Memcached (b). Redis (c). Cassandra (d). MongoDB |
1 |
| 40. | Which tool is used for search? |
(a). MySQL (b). Redis (c). Elasticsearch (d). RabbitMQ |
0 |
| 41. | 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) |
0 |
| 42. | Which cache stores layout XML? |
(a). Layout cache (b). Config cache (c). Block cache (d). Full page cache |
0 |
| 43. | What is MView? |
(a). Materialized View system (b). Magento View (c). Module View (d). Model View |
0 |
| 44. | What is the purpose of di.xml? |
(a). Define routes (b). Configure dependency injection (c). Define layout (d). Configure database |
0 |
| 45. | Which service file defines database and cache services? |
(a). services.yaml (b). routes.yaml (c). env.php (d). config.php |
0 |
| 46. | What is the purpose of virtualType in Magento 2 DI configuration? |
(a). To define a class that doesn’t exist physically but uses another class as its base (b). To make a class abstract (c). To create a singleton object automatically (d). To define plugins for abstract classes |
0 |
| 47. | Which cache system is recommended for full page caching? |
(a). Redis (b). Varnish (c). Memcached (d). Elasticsearch |
1 |
| 48. | 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 |
| 49. | What is used to define service contracts? |
(a). Interfaces (b). Controllers (c). Blocks (d). Helpers |
0 |
| Total Marks:26/50 | Percentage:52% | ||