Wunderman Thompson Commerce
Technoformat Infrasolutions Interview Questions and Answers
Q1. Magento2 config ways, Also how we can set config so at time of deployment in multiple environments it auto update magento.
Magento2 config can be set via XML files, database, or environment variables. Configuration can be automatically updated during deployment using tools like Ansible or Jenkins.
Magento2 configuration can be set via XML files in the app/code/[Vendor]/[Module]/etc directory
Configuration can also be set in the database using the core_config_data table
Environment variables can be used to set configuration values
Tools like Ansible or Jenkins can be used to automatically update confi...read more
Q2. What is MVC, and how magento uses MVC
MVC stands for Model-View-Controller. Magento uses MVC architecture to separate business logic, presentation, and user input.
Model represents the data and business logic
View represents the presentation layer
Controller handles user input and updates the model and view accordingly
Magento uses the layout XML files to define the view layer
Magento's controllers are responsible for handling requests and responses
Magento's models are responsible for interacting with the database and...read more
Q3. What is the Mview file usage and what are the indexing techniques.
Mview files are used for indexing in Magento. Indexing techniques include full, partial, and delta indexing.
Mview files are used to store data for indexing purposes.
Full indexing updates all data in the index, while partial indexing updates only specific data.
Delta indexing updates only the data that has changed since the last indexing.
Indexing can be done manually or automatically based on a schedule or trigger.
Q4. What caching techniques magento uses, and how we can control them.
Magento uses various caching techniques to improve performance. We can control them through configuration settings.
Magento uses full page caching, block caching, and session caching.
Full page caching stores the entire page in cache to reduce server load.
Block caching stores individual blocks of content in cache to reduce database queries.
Session caching stores session data in cache to reduce database queries.
Caching can be controlled through configuration settings in the admi...read more
Q5. what is Redis cache, and how we can modify / clear a customer based cache.
Redis cache is an in-memory data structure store that can be used as a database, cache, and message broker.
Redis cache is used to speed up the performance of web applications by storing frequently accessed data in memory.
To modify or clear a customer based cache, we can use Redis commands like DEL, KEYS, and FLUSHDB.
For example, to clear a customer's cache, we can use the command 'DEL customer:123'.
Q6. ways to create a custom attribute in magento Product, Customer and Sales.
Custom attributes can be created in Magento Product, Customer and Sales.
For Product: Use Magento's setup script to create a custom attribute.
For Customer: Use Magento's customer setup script to create a custom attribute.
For Sales: Use Magento's sales setup script to create a custom attribute.
Custom attributes can also be created programmatically using Magento's API.
Attributes can be added to attribute sets and used in product listings and filters.
Q7. What is the use of composer.json and composer.lock
composer.json defines dependencies and composer.lock ensures their versions are consistent.
composer.json lists the dependencies required by the project
composer.lock ensures that the versions of the dependencies remain consistent across different environments
composer.lock is generated automatically when dependencies are installed or updated
composer.json can be manually edited to add or remove dependencies
composer.lock should be committed to version control to ensure consistent...read more
Q8. Steps to make packaging an magento module as a global package to use in composer require.
To make a Magento module a global package for Composer, follow these steps:
Create a composer.json file in the root directory of the module
Specify the name, version, and type of the package in the composer.json file
Add the module's files to the 'src' directory
Create a 'vendor' directory in the module's root directory
Run 'composer install' to generate the vendor/autoload.php file
Publish the package to a repository like Packagist
Use 'composer require' to install the package in o...read more
Reviews
Interviews
Salaries
Users/Month