View Quiz Result

Sno. Question Options Marks
1. Which command recompiles dependency injection code? (a). setup:install
(b). setup:upgrade
(c). setup:di:compile
(d). setup:static-content:deploy
1
2. Which file registers a module with the Magento framework? (a). module.xml
(b). registration.php
(c). composer.json
(d). config.php
1
3. If an event passes data using ['order' => $order], how do you access it inside the observer? (a). $order = $observer->getOrder();
(b). $order = $observer->getEvent()->getOrder();
(c). $order = $observer->order;
(d). $order = $this->getOrder();
0
4. Quote data stored in: (a). sales_order
(b). quote table
(c). catalog_product
(d). customer_entity
1
5. Which component handles checkout UI? (a). Knockout.js
(b). Vue.js
(c). Angular
(d). React
1
6. What is used to define service contracts? (a). Interfaces
(b). Controllers
(c). Blocks
(d). Helpers
1
7. A developer needs to modify method behavior without overriding the class. What should be used? (a). Preference
(b). Plugin
(c). Observer
(d). Helper
1
8. What is Tier Price used for? (a). Seasonal discounts
(b). Bulk purchase discounts
(c). Coupon-based pricing
(d). Fixed product pricing
1
9. Which cache type stores full page responses? (a). Config cache
(b). Page cache
(c). Layout cache
(d). Block cache
1
10. Which plugin type can modify arguments? (a). before
(b). after
(c). around
(d). observer
1
11. Which service is commonly used for Magento caching? (a). Redis
(b). MongoDB
(c). Cassandra
(d). SQLite
1
12. Which cache backend is commonly used in Magento Cloud? (a). Memcached
(b). Redis
(c). Cassandra
(d). MongoDB
1
13. Add custom checkout field → best approach? (a). Modify core
(b). Extension attributes
(c). DB column directly
(d). Template change
1
14. 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
15. 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
16. Which indexer mode is recommended for production? (a). Manual
(b). Schedule
(c). Realtime
(d). Disabled
1
17. 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
1
18. Which plugin can completely control method execution? (a). before
(b). after
(c). around
(d). observer
0
19. Which cache improves frontend speed most? (a). Config cache
(b). Block cache
(c). Full Page Cache
(d). Layout cache
1
20. Where is checkout UI logic defined? (a). XML only
(b). Knockout.js
(c). PHP
(d). CSS
1
21. 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
22. 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
23. In Magento 2, which file defines module dependencies and version? (a). registration.php
(b). di.xml
(c). module.xml
(d). config.xml
1
24. What is the purpose of di.xml? (a). Define routes
(b). Configure dependency injection
(c). Define layout
(d). Configure database
1
25. Which is preferred over class override? (a). Preference
(b). Plugin
(c). Rewrite
(d). Observer
0
26. 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
27. What mechanism triggers background jobs in Adobe Commerce? (a). Scheduler
(b). Cron
(c). Queue Worker
(d). Worker Pool
0
28. 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
29. Which service file defines database and cache services? (a). services.yaml
(b). routes.yaml
(c). env.php
(d). config.php
1
30. 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
31. Flat catalog is: (a). Mandatory
(b). Deprecated
(c). Recommended
(d). Required for speed
0
32. Which API type is preferred for headless storefronts? (a). SOAP
(b). REST
(c). GraphQL
(d). RPC
1
33. Which Magento component handles routing? (a). Router
(b). Controller
(c). FrontController
(d). Dispatcher
0
34. Which indexing mode is recommended for production? (a). Update on Save
(b). Update by Schedule
(c). Manual
(d). Auto
1
35. You need to add a custom field to checkout and save it to order.
Which approach is correct?
(a). Override checkout template only
(b). Use extension attributes + plugin on savePaymentInformation
(c). Modify database directly
(d). Use observer on controller
1
36. Which scenario requires cache invalidation? (a). Static CSS loaded
(b). Product price updated
(c). JS file loaded
(d). Layout XML parsed
1
37. 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
38. 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
39. 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
1
40. 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
1
41. A product has:
  • Price = ₹1000
  • Special Price = ₹800
  • Tier Price (Qty 5) = ₹750
Customer buys 5 items. What price is applied?
(a). ₹1000
(b). ₹800
(c). ₹750
(d). ₹900
1
42. Where is module version defined? (a). composer.json
(b). module.xml
(c). di.xml
(d). routes.xml
0
43. In Magento 2, plugins (interceptors) are defined in: (a). module.xml
(b). di.xml
(c). config.xml
(d). webapi.xml
1
44. Which plugin type wraps the original method? (a). before
(b). around
(c). after
(d). observer
0
45. Which file defines REST API routes? (a). routes.xml
(b). webapi.xml
(c). api.xml
(d). rest.xml
1
46. Which content is NOT cached by Varnish? (a). CMS pages
(b). Product pages
(c). Customer-specific data (cart, account)
(d). Category pages
1
47. Which plugin method runs before original method execution? (a). beforeMethod
(b). aroundMethod
(c). afterMethod
(d). overrideMethod
1
48. 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
1
49. 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
50. Where are plugins defined in a Magento 2 module? (a). routes.xml
(b). module.xml
(c). di.xml
(d). webapi.xml
1
Total Marks:41/50 Percentage:82%