In Adobe Commerce, how does the ObjectManager determine which concrete class to inject when a constructor type-hints an interface such as Magento\Framework\UrlInterface?
Architecture
Question · Medium
A developer needs to modify the return value of a public method on a core service class without rewriting the class. Which plugin type should be used?
Which statement about plugins (interceptors) in Adobe Commerce is correct?
Question · Easy
Tech Exam Prep Podcast
Listen on Spotify
Podcast
When two plugins from different modules target the same method, what determines which plugin's before method runs first?
A developer wants to react to a customer being saved without changing any method signatures or return values, and an appropriate event is already dispatched. What is the recommended approach?
Which file is the correct place to declare an event observer that should fire only in the storefront (frontend) area?
What is the primary purpose of a service contract in Adobe Commerce?
Where should the data interfaces (getters and setters defining an entity's structure) of a service contract reside by convention?
What does the EAV (Entity-Attribute-Value) model allow Adobe Commerce to do?
Which entity types in Adobe Commerce use the EAV model by default?
A module needs to add a new column to a custom table on upgrade. In current Adobe Commerce versions, what is the recommended mechanism?
What is the purpose of the db_schema_whitelist.json file accompanying db_schema.xml?
What is the role of the mview.xml file in Adobe Commerce indexing?
What is the key difference between the 'Update on Save' and 'Update by Schedule' indexer modes?
A developer registers a custom cron job that performs a heavy daily CSV stock import, but the job is sometimes marked 'missed' and other jobs become stuck behind it. What is the most appropriate fix?
Question · Hard
In which file are custom scheduled tasks (cron jobs) and their schedule expressions declared?
Which UI component XML is used to build an admin data grid with sorting, filtering, and pagination in Adobe Commerce?
A developer wants to add a new block to an existing page without overriding the whole layout. Which layout XML instruction inserts the block relative to an existing element?
What is the correct order of subnodes a module's etc/module.xml uses to express that it must load after another module?
Why should application code avoid directly injecting and calling Magento\Framework\ObjectManager?
A developer needs an expensive optional dependency that is rarely used to avoid being instantiated on every request. Which generated class should be configured?
What is the purpose of a Factory class (e.g., ProductFactory) in Adobe Commerce?
When should a developer choose a class preference over a plugin to alter core behavior?
Which command compiles dependency injection definitions, interceptors, proxies, and factories for production deployment?
A repository's getList method needs to return entities matching dynamic filters supplied by an API client. Which object should the method accept to express those filters?
What is the purpose of a virtualType in di.xml?
Which Adobe Commerce architectural layer is responsible for the application's business logic and data persistence, sitting between the presentation and the database?
What is the recommended persistence approach for a single standard CRUD operation on an entity such as saving one product?
Why does Adobe Commerce caution against using repositories for very large bulk imports or mass updates?
Which directory contains a module's generated interceptor, proxy, and factory classes after compilation?
A developer must persist additional data linked to orders but that does not belong in the EAV-style attributes of products. Which mechanism stores complex typed data and exposes it consistently through service contracts and APIs?
Customizations
What is the key distinction between custom attributes and extension attributes in Adobe Commerce?
How can an extension attribute's exposure be restricted so that only API consumers with a specific permission receive it?
In Multi-Source Inventory (MSI), at what point in the order lifecycle is the Source Selection Algorithm applied to deduct physical quantities from sources?
A multi-source merchant wants shipments routed to minimize delivery cost based on the customer's shipping address. Which built-in MSI Source Selection Algorithm should be configured?
In MSI, what does a 'reservation' record represent?
An Adobe Commerce B2B store wants to let approved company customers place orders using a 'Payment on Account' (deferred invoice) option. What enables this in Adobe Commerce B2B?
Which Adobe Commerce B2B feature lets a merchant assign a curated set of products and custom prices to specific company accounts?
A developer needs to expose a custom service method as a REST and SOAP endpoint. Which file declares the route, HTTP method, service interface, and required ACL permission?
In webapi.xml, what does the <resources> element with ref="Magento_Catalog::products" control?
Which authentication type is recommended for a server-to-server third-party system integrating with the Adobe Commerce REST API?
How is a new field added to an existing GraphQL type such as ProductInterface in Adobe Commerce?
What is the role of a resolver class in Adobe Commerce GraphQL?
Which file declares the ACL resource tree (permission nodes) that admin menu items, controllers, and API endpoints reference?
A module must insert reference (seed) data such as default config values during installation, separately from schema changes. What is the recommended mechanism in current Adobe Commerce?
What advantage does implementing PatchRevertableInterface on a data patch provide?
A developer creates a custom admin form using a UI component. Which node provides the data and submit endpoints for the form?
Loading more…