1 What is Magento?
Magento is an ecommerce platform that enables companies to run and manage their ecommerce sites in an optimized way. Magento functions as an open source ecommerce management system. It was first published by a Varien Inc in 2008, before being sold to eBay and ultimately spun off into its own entity. The Magento 2.0 version arrived in November of 2015 and has improved the platform across the board.
Magento 2 is a Model View ViewModel (MVVM) system
2 What are the different versions of Magento?
Magento categorizes their product across multiple offerings:
Magento Commerce
Magento Order Management
Magento Business Intelligence
Magento Shipping
Magento Social
Magento Open Source
3 What is MVC Architecture?
MVC, or Model, View, Controller, is a type of architecture in which business logic, data access, and user interface are separated for applications. MVC has two different types: configuration-based and convention-based. However, Magento uses the configuration-based version. This means that to get a module’s config file to work, everything must be specified to it.
4 Can you explain the technology that is used by Magento?
Magento uses MySQL for database and PHP as a web server scripting language. Specifically, it uses MySQL 5.6 (Percona or Oracle), and PHP 5.4 and 5.5. This technology makes up the core of Magento and is what gives the software its functionality.
5 In which directory we can write our own custom module in Magento2?
app/code
6 In which directory we write our own custom module in Magento2
If we need to create our own module e.g Hello World then we define it in
app/code folder. It will be app/code/VendorName/moduleName.
e.g : app/code/Limex/Hello_world.
7 Where in admin panel we can enable/disable cache?
Admin->System->Tools->Cache Management
8 Which method a controller loads by default in Magento2?
execute method
public function execute()
{
}
9 What is the command to enable/disable a module in Magento2?
php bin/magento module:enable module_name
php bin/magento module:disable module_name
10 What is the command to clear and flush magento cache?
To clean the cache
php bin/magento cache:clean
To flush cache
php bin/magento cache:flush
11 Magento 2 features?
Improve performance
Better backend
A more modular way to develop modules
New frontend design
reduce number of module conflict
Officially automated test suit
Php 7 support
12 What is model?
Model hold business logic of the application and associated with classes, its access the databases
13 What is view?
View is the structure and layout what user see on there screen, its call GUI
14 What is ViewModel?
Its interact with model layers, its part of the controllers, its responsible for handling the user flow.
15 Magento folder holds one part of the architecture, as follows:
Api: Service contracts, defining service interfaces and data interfaces
Block: The ViewModels of our MVVM architecture
Controller: Controllers, responsible for handling the user’s flow while interacting with the system
etc: Configuration XML files—The module defines itself and its parts (routes, models, blocks, observers, and cron jobs) within this folder. The etc files can also be used by non-core modules to override the functionality of core modules.
Helper: Helper classes that hold code used in more than one application layer. For example, in the Cms module, helper classes are responsible for preparing HTML for presentation to the browser.
i18n: Holds internationalization CSV files, used for translation
Model: For Models and ResourceModels
Observer: Holds Observers, or Models which are “observing” system events. Usually, when such an event is fired, the observer instantiates a Model to handle the necessary business logic for such an event.
Setup: Migration classes, responsible for schema and data creation
Test: Unit tests
Ui: UI elements such as grids and forms used in the admin application
view: Layout (XML) files and template (PHTML) files for the front-end and admin application
16 How can you improve the performance of Magento?
There are a number of things that you can do to enhance and improve Magento performance.
Disabling any modules that are not being used
Disabling the Magento log
MySQL Query Caching
Optimizing your image
Enabling Gzip Compression
Enabling Magento Caching
Combining the external CSS/JS into a single file
17 How many design patterns does Magento Have?
Magento has a total of 12 design patterns. These patterns include:
Factory Pattern
Singleton Pattern
Model View Controller Pattern
Front Controller Pattern
Registry Pattern
Prototype Pattern
Iterator Pattern
Object Pool Pattern
Service Locator Pattern
Lazy Loading Pattern
Observer Pattern
Module Pattern
18 How many tables will be created when you make a new EAV module?
If you make a new EAV module, then six tables will be created. These tables include:
module_datetime, module, module_decimal, module_int, module_text, and module_varchar.
19 What Is Eav In Magento?
EAV: stands for Entity Attribute Value, is a technique which allows you to add unlimited columns to your table virtually. EAV also known as object attribute value model and open schema.
Entity (E): Entity actually refers to data item. For example we can consider it as customer, category or product.
Attribute (A): Attribute refers to the different attributes of the Entity. Like for example product have different attributes like color, size, price, etc.
Value (V): Value refers to the actual value of the attribute of the entity. Like color has value red, price has value $205, etc.
20 Which File Stores The Vendor Path?
Its vendor_path.php situated at app/etc/ folder.
21 Which Class Magento 2 Helper Extend?
Magento Framework App Helper AbstractHelper
22 What Is The Difference Between Cache:clean And Cache:flush?
Typically, cache:clean deletes all enabled cache related to magento whereas cache:flush deletes the whole cache storage, whether its magento cache or any third party cache (whether enabled or disabled)
23 What Is Resource Attribute For Admin Menu Item?
resource attribute defines the ACL rule, that a user must have in order to access this Menu Item.
24 Where Does All Core Modules Are Located In Magento2?
They are at vendor\magento folder
25 What are the different versions of Magento?
Magento Enterprise
Magento .go
Magento Community
26 Magento 2 default theme location?
you should find the theme in vendor/magento.
theme-frontend-blank is the blank theme
theme-frontend-luma is the luma theme.
27 Explain how Magento can be made more secure for the client?
Best practices for Magento includes
Using a strong password and changing them at regular interval
Disable remote access to Magento Connect Manager
Disable Downloader on production sites
Restrict access to safe IP addresses
28 Magento 2 Directory Purpose
app contains the design folder for themes and the configuration file env.php
bin contains the Magento 2 command line tool named magento ,
dev contains testing files for the Magento 2 Functional Testing Framework
lib like Magento 1, various libraries and packages are in here
phpserver contains Router.php
pub contains generated static files and your site media
setup several important packages are in here, such as the performance toolkit
update this is similar to the downloader from Magento 1 and contains upgrade files
var like Magento 1, contains raw cache files,logs, and reports
vendor the closest to app/etc/modules you will get in Magento 2
Vendor
Marketplace modules and the core modules are all under vendor. If you download something from the new Magento Marketplace, it will be in here.
29 Mention what is the limitation of Magento?
Magento is supported by PHP, comparatively to other e-commerce solutions, Magento might be slow in performance
It becomes a complex system if it is not using object-oriented programming
Magento requires much space and memory
Magento is an ecommerce platform that enables companies to run and manage their ecommerce sites in an optimized way. Magento functions as an open source ecommerce management system. It was first published by a Varien Inc in 2008, before being sold to eBay and ultimately spun off into its own entity. The Magento 2.0 version arrived in November of 2015 and has improved the platform across the board.
Magento 2 is a Model View ViewModel (MVVM) system
2 What are the different versions of Magento?
Magento categorizes their product across multiple offerings:
Magento Commerce
Magento Order Management
Magento Business Intelligence
Magento Shipping
Magento Social
Magento Open Source
3 What is MVC Architecture?
MVC, or Model, View, Controller, is a type of architecture in which business logic, data access, and user interface are separated for applications. MVC has two different types: configuration-based and convention-based. However, Magento uses the configuration-based version. This means that to get a module’s config file to work, everything must be specified to it.
4 Can you explain the technology that is used by Magento?
Magento uses MySQL for database and PHP as a web server scripting language. Specifically, it uses MySQL 5.6 (Percona or Oracle), and PHP 5.4 and 5.5. This technology makes up the core of Magento and is what gives the software its functionality.
5 In which directory we can write our own custom module in Magento2?
app/code
6 In which directory we write our own custom module in Magento2
If we need to create our own module e.g Hello World then we define it in
app/code folder. It will be app/code/VendorName/moduleName.
e.g : app/code/Limex/Hello_world.
7 Where in admin panel we can enable/disable cache?
Admin->System->Tools->Cache Management
8 Which method a controller loads by default in Magento2?
execute method
public function execute()
{
}
9 What is the command to enable/disable a module in Magento2?
php bin/magento module:enable module_name
php bin/magento module:disable module_name
10 What is the command to clear and flush magento cache?
To clean the cache
php bin/magento cache:clean
To flush cache
php bin/magento cache:flush
11 Magento 2 features?
Improve performance
Better backend
A more modular way to develop modules
New frontend design
reduce number of module conflict
Officially automated test suit
Php 7 support
12 What is model?
Model hold business logic of the application and associated with classes, its access the databases
13 What is view?
View is the structure and layout what user see on there screen, its call GUI
14 What is ViewModel?
Its interact with model layers, its part of the controllers, its responsible for handling the user flow.
15 Magento folder holds one part of the architecture, as follows:
Api: Service contracts, defining service interfaces and data interfaces
Block: The ViewModels of our MVVM architecture
Controller: Controllers, responsible for handling the user’s flow while interacting with the system
etc: Configuration XML files—The module defines itself and its parts (routes, models, blocks, observers, and cron jobs) within this folder. The etc files can also be used by non-core modules to override the functionality of core modules.
Helper: Helper classes that hold code used in more than one application layer. For example, in the Cms module, helper classes are responsible for preparing HTML for presentation to the browser.
i18n: Holds internationalization CSV files, used for translation
Model: For Models and ResourceModels
Observer: Holds Observers, or Models which are “observing” system events. Usually, when such an event is fired, the observer instantiates a Model to handle the necessary business logic for such an event.
Setup: Migration classes, responsible for schema and data creation
Test: Unit tests
Ui: UI elements such as grids and forms used in the admin application
view: Layout (XML) files and template (PHTML) files for the front-end and admin application
16 How can you improve the performance of Magento?
There are a number of things that you can do to enhance and improve Magento performance.
Disabling any modules that are not being used
Disabling the Magento log
MySQL Query Caching
Optimizing your image
Enabling Gzip Compression
Enabling Magento Caching
Combining the external CSS/JS into a single file
17 How many design patterns does Magento Have?
Magento has a total of 12 design patterns. These patterns include:
Factory Pattern
Singleton Pattern
Model View Controller Pattern
Front Controller Pattern
Registry Pattern
Prototype Pattern
Iterator Pattern
Object Pool Pattern
Service Locator Pattern
Lazy Loading Pattern
Observer Pattern
Module Pattern
18 How many tables will be created when you make a new EAV module?
If you make a new EAV module, then six tables will be created. These tables include:
module_datetime, module, module_decimal, module_int, module_text, and module_varchar.
19 What Is Eav In Magento?
EAV: stands for Entity Attribute Value, is a technique which allows you to add unlimited columns to your table virtually. EAV also known as object attribute value model and open schema.
Entity (E): Entity actually refers to data item. For example we can consider it as customer, category or product.
Attribute (A): Attribute refers to the different attributes of the Entity. Like for example product have different attributes like color, size, price, etc.
Value (V): Value refers to the actual value of the attribute of the entity. Like color has value red, price has value $205, etc.
20 Which File Stores The Vendor Path?
Its vendor_path.php situated at app/etc/ folder.
21 Which Class Magento 2 Helper Extend?
Magento Framework App Helper AbstractHelper
22 What Is The Difference Between Cache:clean And Cache:flush?
Typically, cache:clean deletes all enabled cache related to magento whereas cache:flush deletes the whole cache storage, whether its magento cache or any third party cache (whether enabled or disabled)
23 What Is Resource Attribute For Admin Menu Item?
resource attribute defines the ACL rule, that a user must have in order to access this Menu Item.
24 Where Does All Core Modules Are Located In Magento2?
They are at vendor\magento folder
25 What are the different versions of Magento?
Magento Enterprise
Magento .go
Magento Community
26 Magento 2 default theme location?
you should find the theme in vendor/magento.
theme-frontend-blank is the blank theme
theme-frontend-luma is the luma theme.
27 Explain how Magento can be made more secure for the client?
Best practices for Magento includes
Using a strong password and changing them at regular interval
Disable remote access to Magento Connect Manager
Disable Downloader on production sites
Restrict access to safe IP addresses
28 Magento 2 Directory Purpose
app contains the design folder for themes and the configuration file env.php
bin contains the Magento 2 command line tool named magento ,
dev contains testing files for the Magento 2 Functional Testing Framework
lib like Magento 1, various libraries and packages are in here
phpserver contains Router.php
pub contains generated static files and your site media
setup several important packages are in here, such as the performance toolkit
update this is similar to the downloader from Magento 1 and contains upgrade files
var like Magento 1, contains raw cache files,logs, and reports
vendor the closest to app/etc/modules you will get in Magento 2
Vendor
Marketplace modules and the core modules are all under vendor. If you download something from the new Magento Marketplace, it will be in here.
29 Mention what is the limitation of Magento?
Magento is supported by PHP, comparatively to other e-commerce solutions, Magento might be slow in performance
It becomes a complex system if it is not using object-oriented programming
Magento requires much space and memory
No comments:
Post a Comment
Thanks for your comments.