View Quiz Result

Sno. Question Options Marks
1. Which content is NOT cached by Varnish? (a). CMS pages
(b). Product pages
(c). Customer-specific data (cart, account)
(d). Category pages
1
2. 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
3. Where is checkout UI logic defined? (a). XML only
(b). Knockout.js
(c). PHP
(d). CSS
1
4. Best indexing mode for large catalogs? (a). Update on Save
(b). Update by Schedule
(c). Manual
(d). Disabled
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. 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
7. In Magento 2, plugins (interceptors) are defined in: (a). module.xml
(b). di.xml
(c). config.xml
(d). webapi.xml
1
8. 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
9. 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
10. 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
11. Which service is commonly used for Magento caching? (a). Redis
(b). MongoDB
(c). Cassandra
(d). SQLite
1
12. Which tool is used for search? (a). MySQL
(b). Redis
(c). Elasticsearch
(d). RabbitMQ
1
13. Which configuration file should NOT be committed to the repository? (a). config.php
(b). env.php
(c). composer.json
(d). module.xml
1
14. Which cache stores layout XML? (a). Layout cache
(b). Config cache
(c). Block cache
(d). Full page cache
1
15. Which Magento feature protects against CSRF? (a). Form Key
(b). Session ID
(c). Token
(d). Salt
1
16. Which file defines REST API routes? (a). routes.xml
(b). webapi.xml
(c). api.xml
(d). rest.xml
1
17. 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
18. 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
19. 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
20. Which table stores product entity data? (a). catalog_product_entity
(b). product_entity
(c). catalog_product_data
(d). product_table
0
21. Which component handles checkout UI? (a). Knockout.js
(b). Vue.js
(c). Angular
(d). React
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 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
24. Which command recompiles dependency injection code? (a). setup:install
(b). setup:upgrade
(c). setup:di:compile
(d). setup:static-content:deploy
1
25. Where is module version defined? (a). composer.json
(b). module.xml
(c). di.xml
(d). routes.xml
1
26. What invalidates product cache? (a). Product save
(b). Cron
(c). Admin login
(d). API call
1
27. 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
28. 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
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 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
31. Which cache system is recommended for full page caching? (a). Redis
(b). Varnish
(c). Memcached
(d). Elasticsearch
1
32. In Magento 2, which file defines module dependencies and version? (a). registration.php
(b). di.xml
(c). module.xml
(d). config.xml
1
33. 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
34. Which Magento component handles routing? (a). Router
(b). Controller
(c). FrontController
(d). Dispatcher
1
35. Which cache type stores full page responses? (a). Config cache
(b). Page cache
(c). Layout cache
(d). Block cache
1
36. What type of plugin executes before method? (a). around
(b). before
(c). after
(d). override
1
37. Which plugin method runs before original method execution? (a). beforeMethod
(b). aroundMethod
(c). afterMethod
(d). overrideMethod
1
38. What is the purpose of db_schema.xml? (a). Define UI components
(b). Define database tables
(c). Configure API routes
(d). Configure cache
1
39. Which scenario requires cache invalidation? (a). Static CSS loaded
(b). Product price updated
(c). JS file loaded
(d). Layout XML parsed
1
40. Which interface must be implemented to make a block cache-aware using cache tags? (a). CacheInterface
(b). TagInterface
(c). IdentityInterface
(d). CacheableInterface
0
41. In Magento 2, what is the purpose of the generated folder? (a). Stores compiled classes and dependency injection generated files
(b). Stores static content like CSS and JS
(c). Stores cache and logs
(d). Stores backup copies of modules
1
42. Which message broker is commonly used with Adobe Commerce Cloud? (a). Kafka
(b). RabbitMQ
(c). ActiveMQ
(d). ZeroMQ
1
43. 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
44. Quote becomes order when: (a). Add to cart
(b). Checkout complete
(c). Login
(d). Payment method selected
1
45. What database model does Magento use for catalog? (a). Relational
(b). Document
(c). EAV
(d). Graph
1
46. GraphQL schema files are located in? (a). etc/graphql
(b). etc/schema
(c). etc/schema.graphqls
(d). etc/api
1
47. 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
48. Which cache improves frontend speed most? (a). Config cache
(b). Block cache
(c). Full Page Cache
(d). Layout cache
1
49. Which protocol is used for GraphQL queries? (a). HTTP
(b). FTP
(c). TCP
(d). UDP
1
Total Marks:42/50 Percentage:84%