View Quiz Result

Sno. Question Options Marks
1. A developer needs to modify method behavior without overriding the class. What should be used? (a). Preference
(b). Plugin
(c). Observer
(d). Helper
1
2. Service contracts are defined in which folder? (a). Api/
(b). Model/
(c). Helper/
(d). Controller/
1
3. Which Magento component handles routing? (a). Router
(b). Controller
(c). FrontController
(d). Dispatcher
0
4. Which indexing mode is recommended for production? (a). Update on Save
(b). Update by Schedule
(c). Manual
(d). Auto
1
5. 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
6. Which file defines dependency injection configuration? (a). module.xml
(b). di.xml
(c). routes.xml
(d). events.xml
1
7. What is Tier Price used for? (a). Seasonal discounts
(b). Bulk purchase discounts
(c). Coupon-based pricing
(d). Fixed product pricing
1
8. A merchant complains that:
  • Category pages are slow
  • Elasticsearch is enabled
  • Queries are optimized

What should you check FIRST?
(a). MySQL performance
(b). Elasticsearch cluster health & indexing
(c). Frontend theme
(d). Admin configuration
1
9. 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
10. GraphQL schema files are located in? (a). etc/graphql
(b). etc/schema
(c). etc/schema.graphqls
(d). etc/api
1
11. 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
12. 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
13. Which plugin type can modify arguments? (a). before
(b). after
(c). around
(d). observer
1
14. 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
15. 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
16. 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
17. Which service file defines database and cache services? (a). services.yaml
(b). routes.yaml
(c). env.php
(d). config.php
1
18. Which indexer mode is recommended for production? (a). Manual
(b). Schedule
(c). Realtime
(d). Disabled
1
19. Which configuration file should NOT be committed to the repository? (a). config.php
(b). env.php
(c). composer.json
(d). module.xml
1
20. Tier price depends on: (a). Product category
(b). Quantity purchased
(c). Website configuration
(d). Shipping method
1
21. Which cache stores layout XML? (a). Layout cache
(b). Config cache
(c). Block cache
(d). Full page cache
0
22. Which API type is preferred for headless storefronts? (a). SOAP
(b). REST
(c). GraphQL
(d). RPC
1
23. Where is module version defined? (a). composer.json
(b). module.xml
(c). di.xml
(d). routes.xml
1
24. 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
25. Which Magento 2 mode provides the best performance but does not allow automatic code generation? (a). Developer Mode
(b). Production Mode
(c). Default Mode
(d). Maintenance Mode
1
26. Special price is applied: (a). Based on quantity
(b). Based on customer group
(c). Globally to all customers (with date range)
(d). Only in admin panel
1
27. What is used to define service contracts? (a). Interfaces
(b). Controllers
(c). Blocks
(d). Helpers
1
28. What invalidates product cache? (a). Product save
(b). Cron
(c). Admin login
(d). API call
1
29. What is the correct way to dispatch a custom event in Magento 2? (a). $this->dispatchEvent('custom_event');
(b). $this->_eventManager->dispatch('custom_event', ['data' => $value]);
(c). Event::trigger('custom_event');
(d). Mage::dispatch('custom_event');
1
30. 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
1
31. 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
32. 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
33. 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
1
34. Flat catalog is: (a). Mandatory
(b). Deprecated
(c). Recommended
(d). Required for speed
1
35. What is the purpose of db_schema.xml? (a). Define UI components
(b). Define database tables
(c). Configure API routes
(d). Configure cache
1
36. What is MView? (a). Materialized View system
(b). Magento View
(c). Module View
(d). Model View
1
37. Which service is used as CDN in Adobe Commerce Cloud? (a). Cloudflare
(b). Akamai
(c). Fastly
(d). AWS CloudFront
1
38. Which plugin can completely control method execution? (a). before
(b). after
(c). around
(d). observer
1
39. Which CLI tool manages Adobe Commerce Cloud? (a). magento-cloud
(b). adobe-cli
(c). commerce-cli
(d). cloud-cli
0
40. 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
0
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. Which is preferred over class override? (a). Preference
(b). Plugin
(c). Rewrite
(d). Observer
1
43. 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
44. 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
45. 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
46. Which plugin method runs before original method execution? (a). beforeMethod
(b). aroundMethod
(c). afterMethod
(d). overrideMethod
1
47. 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
48. Quote becomes order when: (a). Add to cart
(b). Checkout complete
(c). Login
(d). Payment method selected
1
49. 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
50. 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
Total Marks:45/50 Percentage:90%