View Quiz Result

Sno. Question Options Marks
1. Which file defines dependency injection configuration? (a). module.xml
(b). di.xml
(c). routes.xml
(d). events.xml
1
2. 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
3. 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
4. Which protocol is used for GraphQL queries? (a). HTTP
(b). FTP
(c). TCP
(d). UDP
1
5. Which CLI tool manages Adobe Commerce Cloud? (a). magento-cloud
(b). adobe-cli
(c). commerce-cli
(d). cloud-cli
0
6. Which plugin can completely control method execution? (a). before
(b). after
(c). around
(d). observer
1
7. 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
1
8. 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
9. 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
10. 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
0
11. 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
0
12. 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
13. 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
14. Service contracts are defined in which folder? (a). Api/
(b). Model/
(c). Helper/
(d). Controller/
1
15. 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
16. During deployment, site downtime occurs.
Best solution?
(a). Deploy directly to production
(b). Use blue-green deployment strategy
(c). Disable maintenance mode
(d). Restart server
1
17. 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
18. Where are events defined? (a). events.xml
(b). di.xml
(c). module.xml
(d). routes.xml
1
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. 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
21. 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
22. What is the purpose of indexers? (a). Improve database speed
(b). Precompute data for faster queries
(c). Backup database
(d). Compress data
1
23. Which file defines application configuration in Adobe Commerce Cloud? (a). services.yaml
(b). .magento.env.yaml
(c). .magento.app.yaml
(d). env.php
1
24. 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
25. Flat catalog is: (a). Mandatory
(b). Deprecated
(c). Recommended
(d). Required for speed
1
26. Best indexing mode for large catalogs? (a). Update on Save
(b). Update by Schedule
(c). Manual
(d). Disabled
1
27. Which service is used as CDN in Adobe Commerce Cloud? (a). Cloudflare
(b). Akamai
(c). Fastly
(d). AWS CloudFront
1
28. Add custom checkout field → best approach? (a). Modify core
(b). Extension attributes
(c). DB column directly
(d). Template change
1
29. Which tool is used for search? (a). MySQL
(b). Redis
(c). Elasticsearch
(d). RabbitMQ
1
30. What is the purpose of config.php? (a). Store module configuration
(b). Store database credentials
(c). Store API tokens
(d). Store cache config
1
31. In Magento 2, which file defines module dependencies and version? (a). registration.php
(b). di.xml
(c). module.xml
(d). config.xml
1
32. Which plugin type can modify arguments? (a). before
(b). after
(c). around
(d). observer
1
33. Which Magento component handles routing? (a). Router
(b). Controller
(c). FrontController
(d). Dispatcher
0
34. What invalidates product cache? (a). Product save
(b). Cron
(c). Admin login
(d). API call
1
35. In Magento 2, plugins (interceptors) are defined in: (a). module.xml
(b). di.xml
(c). config.xml
(d). webapi.xml
1
36. 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
37. 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
0
38. Which folder contains database schema definitions? (a). etc/db_schema.xml
(b). etc/di.xml
(c). etc/module.xml
(d). etc/schema.xml
1
39. 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
0
40. Which file is mainly used to configure Dependency Injection in a custom module? (a). config.xml
(b). routes.xml
(c). di.xml
(d). module.xml
1
41. A third-party module contains a class:
Vendor\Module\Model\OrderManager
You need to modify the return value of the placeOrder() method without breaking other modules.
What is the best solution?
(a). Class Preference
(b). Plugin (After method)
(c). Rewrite core class
(d). Observer
1
42. What mechanism triggers background jobs in Adobe Commerce? (a). Scheduler
(b). Cron
(c). Queue Worker
(d). Worker Pool
1
43. 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
44. Which indexing mode is recommended for production? (a). Update on Save
(b). Update by Schedule
(c). Manual
(d). Auto
1
45. Which command recompiles dependency injection code? (a). setup:install
(b). setup:upgrade
(c). setup:di:compile
(d). setup:static-content:deploy
1
46. GraphQL schema files are located in? (a). etc/graphql
(b). etc/schema
(c). etc/schema.graphqls
(d). etc/api
1
47. ObjectManager should be used: (a). Everywhere
(b). Only in templates
(c). Avoided (except core cases)
(d). Only in controllers
1
48. Which cache backend is commonly used in Magento Cloud? (a). Memcached
(b). Redis
(c). Cassandra
(d). MongoDB
1
49. 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
50. Which cache system is recommended for full page caching? (a). Redis
(b). Varnish
(c). Memcached
(d). Elasticsearch
1
Total Marks:39/50 Percentage:78%