| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Which API type is preferred for headless storefronts? |
(a). SOAP (b). REST (c). GraphQL (d). RPC |
1 |
| 2. | 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 |
| 3. | 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 |
| 4. | What is the main purpose of a Plugin in Magento 2? |
(a). To override core files directly (b). To intercept public method calls and modify input/output (c). To add new database tables (d). To manage static content deployment |
1 |
| 5. | 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 |
| 6. | Which service is commonly used for Magento caching? |
(a). Redis (b). MongoDB (c). Cassandra (d). SQLite |
1 |
| 7. | A merchant reports that after updating product prices via API, the storefront still shows old prices for several minutes.
What is the BEST solution? |
(a). Flush full page cache manually (b). Use cache tags to invalidate specific product cache (c). Disable Varnish caching (d). Increase cache lifetime |
1 |
| 8. | What invalidates product cache? |
(a). Product save (b). Cron (c). Admin login (d). API call |
0 |
| 9. | 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 |
| 10. | What is the purpose of indexers? |
(a). Improve database speed (b). Precompute data for faster queries (c). Backup database (d). Compress data |
1 |
| Total Marks:9/10 | Percentage:90% | ||