| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Which interface must be implemented to make a block cache-aware using cache tags? |
(a). CacheInterface (b). TagInterface (c). IdentityInterface (d). CacheableInterface |
0 |
| 2. | Which file defines application configuration in Adobe Commerce Cloud? |
(a). services.yaml (b). .magento.env.yaml (c). .magento.app.yaml (d). env.php |
0 |
| 3. | Which of the following is NOT a valid plugin method type in Magento 2? |
(a). before method (b). around method (c). after method (d). replace method |
0 |
| 4. | Which of the following correctly describes a ViewModel in Magento 2? |
(a). A helper class for templates defined via layout.xml (b). A block class replacement for controllers (c). A data provider for UI components only (d). A frontend model for product attributes |
1 |
| 5. | 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 |
| 6. | What mechanism triggers background jobs in Adobe Commerce? |
(a). Scheduler (b). Cron (c). Queue Worker (d). Worker Pool |
1 |
| 7. | 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 |
| 8. | 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 |
| 9. | 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 |
0 |
| 10. | 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 |
| 11. | What happens if two plugins with the same sortOrder are declared for a method? |
(a). Magento throws an error (b). Only the first plugin runs (c). Execution order becomes unpredictable (d). Magento merges them automatically |
0 |
| 12. | 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 |
| 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. | 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 |
| 15. | Where is checkout UI logic defined? |
(a). XML only (b). Knockout.js (c). PHP (d). CSS |
0 |
| 16. | GraphQL schema files are located in? |
(a). etc/graphql (b). etc/schema (c). etc/schema.graphqls (d). etc/api |
0 |
| 17. | Which plugin can completely control method execution? |
(a). before (b). after (c). around (d). observer |
0 |
| 18. | Quote becomes order when: |
(a). Add to cart (b). Checkout complete (c). Login (d). Payment method selected |
0 |
| 19. | What is the purpose of db_schema.xml? |
(a). Define UI components (b). Define database tables (c). Configure API routes (d). Configure cache |
1 |
| 20. | Add custom checkout field → best approach? |
(a). Modify core (b). Extension attributes (c). DB column directly (d). Template change |
1 |
| 21. | Which Magento component handles routing? |
(a). Router (b). Controller (c). FrontController (d). Dispatcher |
0 |
| 22. | 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 |
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. | 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 |
| 25. | Which file defines dependency injection configuration? |
(a). module.xml (b). di.xml (c). routes.xml (d). events.xml |
1 |
| 26. | Which tool is used for search? |
(a). MySQL (b). Redis (c). Elasticsearch (d). RabbitMQ |
1 |
| 27. | Which cache system is recommended for full page caching? |
(a). Redis (b). Varnish (c). Memcached (d). Elasticsearch |
1 |
| 28. | What is used to define service contracts? |
(a). Interfaces (b). Controllers (c). Blocks (d). Helpers |
0 |
| 29. | What is the purpose of di.xml? |
(a). Define routes (b). Configure dependency injection (c). Define layout (d). Configure database |
1 |
| 30. | 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 |
| 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 |
1 |
| 32. | 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 |
0 |
| 33. | ObjectManager should be used: |
(a). Everywhere (b). Only in templates (c). Avoided (except core cases) (d). Only in controllers |
0 |
| 34. | 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 |
| 35. | Which command recompiles dependency injection code? |
(a). setup:install (b). setup:upgrade (c). setup:di:compile (d). setup:static-content:deploy |
1 |
| 36. | 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 |
0 |
| 37. | Flat catalog is: |
(a). Mandatory (b). Deprecated (c). Recommended (d). Required for speed |
1 |
| 38. | 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 |
0 |
| 39. | In Magento 2, which file defines module dependencies and version? |
(a). registration.php (b). di.xml (c). module.xml (d). config.xml |
0 |
| 40. | In Magento 2, plugins (interceptors) are defined in: |
(a). module.xml (b). di.xml (c). config.xml (d). webapi.xml |
0 |
| 41. | Where are plugins defined in a Magento 2 module? |
(a). routes.xml (b). module.xml (c). di.xml (d). webapi.xml |
0 |
| 42. | Which cache stores layout XML? |
(a). Layout cache (b). Config cache (c). Block cache (d). Full page cache |
0 |
| 43. | Which cache type is responsible for storing entire HTML pages? |
(a). config (b). block_html (c). full_page (d). layout |
1 |
| 44. | Which protocol is used for GraphQL queries? |
(a). HTTP (b). FTP (c). TCP (d). UDP |
0 |
| 45. | 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 |
| 46. | 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 |
| 47. | Which table stores product entity data? |
(a). catalog_product_entity (b). product_entity (c). catalog_product_data (d). product_table |
0 |
| 48. | Which scenario requires cache invalidation? |
(a). Static CSS loaded (b). Product price updated (c). JS file loaded (d). Layout XML parsed |
1 |
| 49. | A product has:
|
(a). ₹1000 (b). ₹800 (c). ₹750 (d). ₹900 |
0 |
| 50. | Quote data stored in: |
(a). sales_order (b). quote table (c). catalog_product (d). customer_entity |
1 |
| Total Marks:22/50 | Percentage:44% | ||