| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | 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 |
| 2. | A CMS block is updated. Which cache tag is used? |
(a). cms_block (b). cms_block_<id> (c). block_cache_<id> (d). cms_cache |
0 |
| 3. | 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 |
1 |
| 4. | A merchant complains that:
What should you check FIRST? |
(a). MySQL performance (b). Elasticsearch cluster health & indexing (c). Frontend theme (d). Admin configuration |
1 |
| 5. | 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 |
| 6. | 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 |
1 |
| 7. | Which command recompiles dependency injection code? |
(a). setup:install (b). setup:upgrade (c). setup:di:compile (d). setup:static-content:deploy |
1 |
| 8. | Quote data stored in: |
(a). sales_order (b). quote table (c). catalog_product (d). customer_entity |
1 |
| 9. | 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 |
| 10. | Which plugin can completely control method execution? |
(a). before (b). after (c). around (d). observer |
1 |
| 11. | Which cache type is responsible for storing entire HTML pages? |
(a). config (b). block_html (c). full_page (d). layout |
1 |
| 12. | Which configuration file should NOT be committed to the repository? |
(a). config.php (b). env.php (c). composer.json (d). module.xml |
1 |
| 13. | 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 |
| 14. | What mechanism triggers background jobs in Adobe Commerce? |
(a). Scheduler (b). Cron (c). Queue Worker (d). Worker Pool |
1 |
| 15. | 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 |
1 |
| 16. | 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 |
| 17. | Which tool is used for search? |
(a). MySQL (b). Redis (c). Elasticsearch (d). RabbitMQ |
1 |
| 18. | Flat catalog is: |
(a). Mandatory (b). Deprecated (c). Recommended (d). Required for speed |
1 |
| 19. | Which CLI tool manages Adobe Commerce Cloud? |
(a). magento-cloud (b). adobe-cli (c). commerce-cli (d). cloud-cli |
0 |
| 20. | What database model does Magento use for catalog? |
(a). Relational (b). Document (c). EAV (d). Graph |
1 |
| 21. | What happens if a block does NOT implement IdentityInterface? |
(a). It cannot be cached (b). It will always be cached forever (c). Magento cannot selectively invalidate its cache (d). It breaks Full Page Cache |
1 |
| 22. | A product has:
|
(a). ₹1000 (b). ₹800 (c). ₹750 (d). ₹900 |
1 |
| 23. | Which message broker is commonly used with Adobe Commerce Cloud? |
(a). Kafka (b). RabbitMQ (c). ActiveMQ (d). ZeroMQ |
1 |
| 24. | What type of plugin executes before method? |
(a). around (b). before (c). after (d). override |
1 |
| 25. | What invalidates product cache? |
(a). Product save (b). Cron (c). Admin login (d). API call |
1 |
| 26. | Which file registers a module with the Magento framework? |
(a). module.xml (b). registration.php (c). composer.json (d). config.php |
1 |
| 27. | 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 |
| 28. | Quote becomes order when: |
(a). Add to cart (b). Checkout complete (c). Login (d). Payment method selected |
1 |
| 29. | Which cache system is recommended for full page caching? |
(a). Redis (b). Varnish (c). Memcached (d). Elasticsearch |
1 |
| 30. | 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 |
| 31. | Which cache stores layout XML? |
(a). Layout cache (b). Config cache (c). Block cache (d). Full page cache |
0 |
| 32. | Which method type in a plugin allows you to modify both the arguments before execution and the return value after execution? |
(a). before method (b). after method (c). around method (d). All of the above |
1 |
| 33. | 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 |
| 34. | Which API type is preferred for headless storefronts? |
(a). SOAP (b). REST (c). GraphQL (d). RPC |
1 |
| 35. | Which interface must be implemented to make a block cache-aware using cache tags? |
(a). CacheInterface (b). TagInterface (c). IdentityInterface (d). CacheableInterface |
0 |
| 36. | A developer needs to modify method behavior without overriding the class. What should be used? |
(a). Preference (b). Plugin (c). Observer (d). Helper |
1 |
| 37. | 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 |
1 |
| 38. | Best indexing mode for large catalogs? |
(a). Update on Save (b). Update by Schedule (c). Manual (d). Disabled |
1 |
| 39. | What is Tier Price used for? |
(a). Seasonal discounts (b). Bulk purchase discounts (c). Coupon-based pricing (d). Fixed product pricing |
0 |
| 40. | What is the purpose of config.php? |
(a). Store module configuration (b). Store database credentials (c). Store API tokens (d). Store cache config |
1 |
| 41. | Tier price depends on: |
(a). Product category (b). Quantity purchased (c). Website configuration (d). Shipping method |
0 |
| 42. | Which file defines application configuration in Adobe Commerce Cloud? |
(a). services.yaml (b). .magento.env.yaml (c). .magento.app.yaml (d). env.php |
0 |
| 43. | Where are events defined? |
(a). events.xml (b). di.xml (c). module.xml (d). routes.xml |
1 |
| 44. | A homepage is cached using Full Page Cache. It contains customer-specific data (e.g., loyalty points). What is the correct approach? |
(a). Disable Full Page Cache (b). Use AJAX to load dynamic data (c). Use global registry (d). Store data in config |
1 |
| 45. | Which plugin type can modify arguments? |
(a). before (b). after (c). around (d). observer |
1 |
| 46. | Which plugin type wraps the original method? |
(a). before (b). around (c). after (d). observer |
1 |
| 47. | Which indexer mode is recommended for production? |
(a). Manual (b). Schedule (c). Realtime (d). Disabled |
1 |
| 48. | Which service file defines database and cache services? |
(a). services.yaml (b). routes.yaml (c). env.php (d). config.php |
0 |
| 49. | Which content is NOT cached by Varnish? |
(a). CMS pages (b). Product pages (c). Customer-specific data (cart, account) (d). Category pages |
1 |
| 50. | Which component handles checkout UI? |
(a). Knockout.js (b). Vue.js (c). Angular (d). React |
0 |
| Total Marks:40/50 | Percentage:80% | ||