| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | What is the purpose of indexers? |
(a). Improve database speed (b). Precompute data for faster queries (c). Backup database (d). Compress data |
1 |
| 2. | Which cache type is responsible for storing entire HTML pages? |
(a). config (b). block_html (c). full_page (d). layout |
1 |
| 3. | What is the purpose of config.php? |
(a). Store module configuration (b). Store database credentials (c). Store API tokens (d). Store cache config |
1 |
| 4. | A CMS block is updated. Which cache tag is used? |
(a). cms_block (b). cms_block_<id> (c). block_cache_<id> (d). cms_cache |
1 |
| 5. | 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 |
| 6. | 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 |
| 7. | Which cache backend is commonly used in Magento Cloud? |
(a). Memcached (b). Redis (c). Cassandra (d). MongoDB |
1 |
| 8. | 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 |
| 9. | Which cache system is recommended for full page caching? |
(a). Redis (b). Varnish (c). Memcached (d). Elasticsearch |
1 |
| 10. | GraphQL schema files are located in? |
(a). etc/graphql (b). etc/schema (c). etc/schema.graphqls (d). etc/api |
1 |
| 11. | Which indexing mode is recommended for production? |
(a). Update on Save (b). Update by Schedule (c). Manual (d). Auto |
1 |
| 12. | Which protocol is used for GraphQL queries? |
(a). HTTP (b). FTP (c). TCP (d). UDP |
0 |
| 13. | 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 |
| 14. | What is Tier Price used for? |
(a). Seasonal discounts (b). Bulk purchase discounts (c). Coupon-based pricing (d). Fixed product pricing |
1 |
| 15. | Which scenario requires cache invalidation? |
(a). Static CSS loaded (b). Product price updated (c). JS file loaded (d). Layout XML parsed |
0 |
| 16. | Which configuration file should NOT be committed to the repository? |
(a). config.php (b). env.php (c). composer.json (d). module.xml |
1 |
| 17. | Where is checkout UI logic defined? |
(a). XML only (b). Knockout.js (c). PHP (d). CSS |
0 |
| 18. | In Magento 2, which file defines module dependencies and version? |
(a). registration.php (b). di.xml (c). module.xml (d). config.xml |
1 |
| 19. | Which interface must be implemented to make a block cache-aware using cache tags? |
(a). CacheInterface (b). TagInterface (c). IdentityInterface (d). CacheableInterface |
1 |
| 20. | Which plugin type can modify arguments? |
(a). before (b). after (c). around (d). observer |
1 |
| 21. | Where are events defined? |
(a). events.xml (b). di.xml (c). module.xml (d). routes.xml |
1 |
| 22. | 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 |
| 23. | Which plugin method runs before original method execution? |
(a). beforeMethod (b). aroundMethod (c). afterMethod (d). overrideMethod |
1 |
| 24. | A product has:
|
(a). ₹1000 (b). ₹800 (c). ₹750 (d). ₹900 |
1 |
| 25. | A merchant complains that:
What should you check FIRST? |
(a). MySQL performance (b). Elasticsearch cluster health & indexing (c). Frontend theme (d). Admin configuration |
1 |
| 26. | 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 |
| 27. | 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 |
| 28. | 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 |
| 29. | What invalidates product cache? |
(a). Product save (b). Cron (c). Admin login (d). API call |
1 |
| 30. | Which API type is preferred for headless storefronts? |
(a). SOAP (b). REST (c). GraphQL (d). RPC |
0 |
| 31. | Which command recompiles dependency injection code? |
(a). setup:install (b). setup:upgrade (c). setup:di:compile (d). setup:static-content:deploy |
1 |
| 32. | Tier price depends on: |
(a). Product category (b). Quantity purchased (c). Website configuration (d). Shipping method |
1 |
| 33. | 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 |
| 34. | Which file defines application configuration in Adobe Commerce Cloud? |
(a). services.yaml (b). .magento.env.yaml (c). .magento.app.yaml (d). env.php |
0 |
| 35. | Which plugin type wraps the original method? |
(a). before (b). around (c). after (d). observer |
1 |
| 36. | 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 |
| 37. | What is the best way to modify the behavior of a public method in a core class without overriding it? |
(a). Preference (b). Plugin (c). Observer (d). Rewrite |
1 |
| 38. | If Special Price is ₹700 and Tier Price is ₹750 (Qty 5), what will apply? |
(a). Tier Price (b). Special Price (c). Both combined (d). Random |
0 |
| 39. | 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 |
| 40. | What is Special Price in Magento 2? |
(a). Price based on customer group (b). Discount applied for bulk quantity (c). Temporary discounted price for all customers (d). Price only for logged-in users |
0 |
| 41. | Which plugin can completely control method execution? |
(a). before (b). after (c). around (d). observer |
1 |
| 42. | Which folder contains database schema definitions? |
(a). etc/db_schema.xml (b). etc/di.xml (c). etc/module.xml (d). etc/schema.xml |
1 |
| 43. | If multiple observers are defined for the same event, what determines their execution order? |
(a). Alphabetical order of observer names (b). Module load order (sequence.xml) (c). File system order (d). Random execution |
1 |
| 44. | 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(); |
1 |
| 45. | Quote becomes order when: |
(a). Add to cart (b). Checkout complete (c). Login (d). Payment method selected |
1 |
| 46. | A developer needs to modify method behavior without overriding the class. What should be used? |
(a). Preference (b). Plugin (c). Observer (d). Helper |
1 |
| 47. | Which plugin type can stop method execution? |
(a). before (b). after (c). around (d). none |
1 |
| 48. | 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 |
| 49. | Which service is commonly used for Magento caching? |
(a). Redis (b). MongoDB (c). Cassandra (d). SQLite |
1 |
| 50. | 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 |
| Total Marks:41/50 | Percentage:82% | ||