Configurations Flashcards
the configuration object for config.xml
Magento\Framework\App\Config.
logical component that organizes code for optimized request processing
An area
Commerce framework is organized into what main areas?
Admin (adminhtml)
Storefront (frontend)
Basic (base)
Cron (crontab)
what class always loads the ‘crontab’ area?
\Magento\Framework\App\Cron
an area that is used as a fallback for files absent in adminhtml and frontend areas.
Basic (base)
entry point for admin area
pub/index.php
the code needed for store management can be found in what area?
The Admin panel area
what area contains template and layout files that define the appearance of your storefront.
frontend
what directory contains all the code for components you’ll see while working in the Admin?
/app/design/adminhtml directory
with what areas you send requests to the Commerce framework?
Web API REST (webapi_rest)
GraphQL (graphql)
Web API SOAP (webapi_soap)
entry point for webapi_rest?
pub/index.php
how does URL look up for rest area happens?
The REST area has a front controller that understands how to do URL lookups for REST-based URLs.
entry point for GraphQl?
pub/index.php
entry point for webapi_soap?
pub/index.php
Disabling an area does not result in disabling the modules related to it. (True/False)
True
where are areas registered?
di.xml
how does adobe commerce interpret the HTTP request that arrives state the format?
[frontName]/[controller folder]/[controller class]
what is the class for catalog/product_compare/add?
Magento/Catalog/Controller/Product/Compare/Add.php
the controller folders are separated with dash, * or line or _?
underscore
what method gets executed on controller?
only the execute() method of any given controller is executed.
the scope for Shipping Methods in B2B
Global
what is Offloader Header scope?
Global
how to identify the protocol between the client and load balancer?
Offloader Header value
what is default vaLUE FOR offloaded header?
X-Forwarded-Proto (XFP)
what is yes on Upgrade Insecure Requests?
converts unsecure (HTTP) requests received from the browser to the secure (HTTPS) protocol.
what does Enabling HTTP Strict Transport Security (HSTS) do?
provides a measure of security against “man in the middle” attacks, and prevents users from overriding the “invalid certificate” message.
in what condition you can choose to run the store Admin, with or without SSL encryption?
If your domain has a security certificate.
what is the scope for Use Secure URLs in Admin?
Global
what is the scope for Use Secure URLs on Storefront?
Store view
what is the scope for Secure Base URL for User Media Files?
Store view
the scope for cookie life time, Cookie Domain and cookie path?
Store View
what field Determines if Commerce Cookies can be used only over an unsecure channel (http), or can also be used over an encrypted channel (https).
Use HTTP Only
what field Verifies that the IP Address of a request matches $_SESSION data?
Validate REMOTE_ADDR to yes
what does Validate HTTP_VIA do?
if yes, Verifies incoming proxy data and checks that the proxy address of a request matches $_SESSION data. The session terminates if a different proxy address is detected.
name all 4 Session Validation configuration settings?
Validate REMOTE_ADDR
Validate HTTP_VIA
Validate HTTP_x_FORWARDED_FOR
Validate HTTP_USER_AGENT
what is scope for Cookie Restriction Mode?
Website
what is the scope for Base Currency?
Website or Global depends what was set on price catalog scope
What is the scope for Default Display Currency?
Store View
what is the scope for Allowed Currencies?
Store View
what is fixer.io?
Foreign exchange
rates and currency
conversion JSON API
what is the scope for API key and Connection Timeout in Seconds for fixer.io?
Global
what options frequency has for scheduled import configurations?
daily/weekly/monthly
What field Specifies the month and day upon which the year-to-date calculations are based?
Year-to-Date Starts
What field Specifies the day of the month that is used in calculations to mark the beginning of the current month?
Current Month Starts
collection of statistics scope for fields?
Global
what is the scope for WYSIWYG Editor?
Website
what is the scope for Use Static URLs for Media Content in WYSIWYG?
Global
in cms configurations, what does Enable Hierarchy Metadata do?
Gives you the ability to associate meta data with pages in the hierarchy.
options for Default Layout for Hierarchy Menu?
Content, Right column, Left Column
how many currencies in the world adobe commerce accepts?
more than 200 countries around the world.
set the display of the price can be done in what scopes?
separately for each store or view.
If you have a multisite Adobe Commerce or Magento Open Source installation, you can manage multiple base currencies by…………?
by setting the scope to the website level.
base currency is set to what by default?
It is set to global by default,
the base currency scope is defined by?
the catalog price scope- catalog->price->catalog price scope
Set Catalog Price Scope to either …….
Global or Website
name 2 currency service connection?
fixer.io and Currency Converter API
how to update the currency rates?
update the rates manually or to import the rates automatically.
3 Redis features ?
PHP session storage
Tag-based cache cleanup without foreach loops
On-disk saves and master/slave replication
find your Redis configuration in one of the following files?
/etc/redis/redis.conf or /etc/redis/<port>.conf</port>
How To optimize the Redis instance for your requirements?
using a dedicated instance for each session, Commerce cache and FPC.
name 2 persistence options of redis?
Redis Database Backup (RDB)
Append Only File (AOF)
what does Redis Database Backup (RDB) do?
Redis Database Backup (RDB) snapshots store the complete database in a dump file after a given time, when a minimum number of keys have changed since the last save. Use the save setting inside the redis.conf file to configure this setting.
what does Append Only File (AOF) in redis do?
Append Only File (AOF) stores each write operation sent to Redis in a journal file. Redis reads this file on restart only and uses it to restore the original dataset.
AOF files are usually ……. than the equivalent RDB files for the same dataset.
bigger
AOF can be …… than RDB depending on the exact fsync policy
slower
If you care a lot about your data, but still can live with a few minutes of data loss in case of disasters, you can simply use
RDB alone
There are many users using …… alone, but redis discourage it since to have an —- snapshot from time to time is a great idea for doing database backups, for faster restarts, and in the event of bugs in the AOF engine.
AOF
RDB
By default Redis saves snapshots of the dataset on disk, in a binary file called …..
dump.rdb
for in linux
create a child process
how much should be the redis cache instance?
As a starting point, you can use the size of the cache folder on your file system. For example, if the var/cache folder on your file system is 5 GB, set up your Redis instance with at least 5 GB to start. Persistence is not required for the cache instance because the Commerce cache can be restored.
performance options on redis
lazyfree-lazy-eviction yes
lazyfree-lazy-expire yes
lazyfree-lazy-server-del yes
replica-lazy-flush yes
6.x or later redis:
lazyfree-lazy-user-del yes
commandline for redis setup
bin/magento setup:config:set –cache-backend=redis –cache-backend-redis-<parameter_name>=<parameter_value>...</parameter_value></parameter_name>
To configure Redis page caching
bin/magento setup:config:set –page-cache=redis –page-cache-redis-<parameter_name>=<parameter_value>...</parameter_value></parameter_name>
enables Redis page caching, sets the host to 127.0.0.1 and assigns the database number to 1.all others set to default
bin/magento setup:config:set –page-cache=redis –page-cache-redis-server=127.0.0.1 –page-cache-redis-db=1
what is required in redis if you use Redis for both the default and full page cache.
Important: If you use Redis for more than one type of caching, the database numbers must be different. It is recommended that you assign the default caching database number to 0, the page-caching database number to 1, and the session storage database number to 2. 0
how to On install the Redis client on the EC2 instance?
sudo apt-get install redis
Configure Commerce to use Redis for session storage:
bin/magento setup:config:set –session-save=redis –session-save-redis-host=<ElastiCache> --session-save-redis-port=<ElastiCache> --session-save-redis-log-level=4 --session-save-redis-db=2</ElastiCache></ElastiCache>