ECAP785
ECAP785
SHUBHAM GUPTA
ECAP785: WEB PERFORMANCE OPTIMIZATION
SELF ASSESSMENT:
UNIT:1
1.
Which HTTP header can be used to enable browser caching of static resources?
Expires
Cache-Control
Last-Modified
ETag
4.
What does the term "above the fold" refer to in web performance?
The part of the webpage that is visible without scrolling
The process of lazy-loading images and videos
The technique of compressing CSS files
The practice of minifying JavaScript files
5.
Which of the following techniques can help reduce the file size of images for better web
performance?
Gzip compression
Minification
Image compression
Browser caching
8.
responsive design
Code minification
Browser caching
All of the above
10.
Connection
Keep-Alive
Upgrade
Content-Length
12.
It reduces the latency for each request by eliminating connection setup time.
It provides stronger encryption and security for data transmission.
It allows for concurrent processing of multiple requests on the server.
It enables caching of resources on the client-side for offline access.
13.
HTTP/0.9
HTTP/1.0
HTTP/1.1
HTTP/2.0
14.
UNIT :2
1.
HTML pages
CSS files
JavaScript files
All of the above
4.
A records
CNAME records
MX records
All of the above.
14.
HTML pages.
CSS files.
JavaScript files.
All of the above.
15.
UNIT:3
1.
Which of the following compression algorithms is widely used for web content?
Gzip
Brotli
Lempel-Ziv
Deflate
2.
What is the benefit of compressing web resources like CSS and JavaScript?
ob_flush()
ob_start()
ob_end_clean()
ob_gzhandler()
4.
Which image format is generally preferred for photographs due to its better compression?
PNG
GIF
BMP
JPEG
6.
Which transfer encoding method allows data to be sent in small, discrete chunks?
Chunked Encoding
Identity Encoding
Gzip Encoding
Brotli Encoding
7.
PHP configuration
HTML settings
JavaScript environment
Web server configurations
8.
Which compression format offers better compression ratios but requires higher processing
power?
Gzip
Brotli
Deflate
Identity
10.
Which file type is commonly used for web fonts and can be compressed for improved loading
times?
TTF
OTF
WOFF
SVG
11.
What is the benefit of compressing PHP-generated pages before sending them to the client's
browser?
Which of the following is a popular compression algorithm used for PHP generated pages?
JPEG
Gzip
Brotli
GIF
14.
Which of the following is not a typical optimization done during JavaScript minification?
Which asset type is typically NOT minified in the web development process?
HTML files
CSS files
Image files (e.g., JPG, PNG)
JavaScript files
10.
Which programming interface allows developers to interact with and manipulate elements on a
web page using languages like JavaScript?
CSS
HTML
DOM
PHP
3.
Which property of a DOM element allows you to access its parent node?
parentNode
parent
parentElement
parentDOM
5.
Which method is used to create a new HTML element in the DOM using JavaScript?
createNode()
createElement()
makeElement()
newElement()
6.
Which of the following events is an example of user interaction that can be captured using the
DOM?
Server restart
Mouse click
Browser update
Network request
7.
Which DOM property is used to change the text content of an HTML element?
innerHTML
textContent
innerText
contentText
9.
What does the term "Ajax" stand for in web development?
XMLHttpRequest
WebSockets
Document Object Model (DOM)
HyperText Transfer Protocol (HTTP)
12.
JSONP API
Fetch API
DOM API
Async API
14.
integer
float
boolean
struct
3.
PHP
Java
Python
C
5.
require_extension()
include_extension()
load_extension()
dl()
7.
$_SESSION
$_GLOBALS
$_SERVER
$_REQUEST
9.
JavaScript code
CSS stylesheets
PHP code performance
Database queries
10.
What is the purpose of using opcode caches like OPcache or APC in PHP optimization?
Which PHP extension helps you monitor code execution, including function calls and memory
usage?
profiler
xhprof
monitor
debug
14.
Which PHP extension can help you manage memory usage and detect memory leaks?
memcache
memcached
memory_management
xdebug
UNIT: 7
1.
Sending emails
Playing videos
Storing databases
FTP
SMTP
HTTP
DNS
3.
Which web server software is known for its efficiency and lightweight design, often used as a reverse proxy?
Apache
Nginx
IIS
LiteSpeed
4.
What does the term "reverse proxy" refer to in the context of web servers?
A server that forwards requests to backend servers, enhancing security and performance.
Which component of a web server is responsible for interpreting server-side scripting languages like PHP?
Cache
Proxy server
Web browser
Apache
Nginx
LiteSpeed
Which term refers to a situation where a single physical server hosts multiple websites using separate configurations?
Load Balancing
Virtualization
Clustering
Caching
10.
What type of server is responsible for translating domain names into IP addresses?
Web server
File server
DNS server
Database server
11.
IIS
LiteSpeed
Apache
Nginx
12.
Which module is commonly used to integrate PHP with the Apache web server?
mod_php
mod_ssl
mod_proxy
mod_rewrite
13.
Managing databases
Which configuration file is commonly used to modify settings for the Apache web server?
httpd.conf
server.cfg
apache.ini
config.xml
15.
Which directive is used to specify the web server's document root directory in the Apache configuration?
ServerRoot
DocumentRoot
WebRoot
RootDirectory
UNIT 8
.1.Which configuration parameter in MySQL is used to allocate memory for storing frequently accessed index blocks?
query_cache_size
innodb_buffer_pool_size
key_buffer_size
table_cache
2.
Which storage engine in MySQL is known for its support of ACID transactions, crash recovery, and foreign key
constraints?
MyISAM
InnoDB
MEMORY
ARCHIVE
3.
Which MySQL tool provides insight into query execution plans and helps identify performance bottlenecks?
mysqlcheck
mysqladmin
EXPLAIN
mysqldump
4.
In a highly concurrent environment, which type of locking does MyISAM use for its operations?
Row-level locking
Page-level locking
Table-level locking
Database-level locking
5.
Which MySQL command is used to analyze and optimize MySQL query performance by identifying slow queries
and query patterns?
SHOW PROCESSLIST
SHOW QUERIES
SHOW STATUS
pt-query-digest
6.
Which of the following storage engines in MySQL supports full-text indexing and searching?
InnoDB
MyISAM
MEMORY
CSV
7.
Which MySQL feature can help improve read scalability and high availability by maintaining copies of the master
database on slave servers?
Indexing
Replication
Sharding
Partitioning
8.
What is the primary benefit of using the InnoDB storage engine over MyISAM?
Table-level locking
Full-text indexing
Which MySQL configuration parameter defines the maximum number of concurrent connections to the MySQL
server?
max_connections
thread_cache_size
table_cache
query_cache_size
10.
Which MySQL command is used to repair and optimize MyISAM tables to fix table corruption and minimize
fragmentation?
REPAIR TABLE
OPTIMIZE TABLE
CHECK TABLE
ALTER TABLE
11.
Which MySQL storage engine is optimized for high-performance write-intensive workloads and provides features
like hot backups and online schema changes?
MyISAM
InnoDB
MEMORY
TokuDB
12.
Which MySQL command is used to analyze and optimize MySQL table structures, eliminating overhead and
fragmentation?
REPAIR TABLE
OPTIMIZE TABLE
ANALYZE TABLE
CHECK TABLE
13.
Which storage engine in MySQL is commonly used for temporary data storage and caching due to its fast access
times, but does not provide data persistence?
InnoDB
MyISAM
MEMORY
ARCHIVE
14.
Which MySQL tool can be used to generate and analyze execution plans for SQL statements to identify potential
performance bottlenecks?
mysqladmin
EXPLAIN
pt-query-digest
mysqlanalyze
15.
Which MySQL tool is commonly used for performing backups and restores while ensuring data consistency across
tables and databases?
mysqlbackup
mysqldump
mysqlrestore
mysqlbackup-restore
UNIT :9
1.
For which of these storage engines are configuration options always built?
Falcon
FEDERATED
InnoDB
MyISAM
2.
The storage engine for which the runtime options are always enabled is ______________
Falcon
FEDERATED
InnoDB
MEMORY
3.
key cache
memory cache
time cache
speed cache
4.
Which system variable enables mysqld to keep more tables open simultaneously?
table_cache
max_connect
delayed_queue_size
max_allowed_packet
5.
table
column
view
database
6.
cache_table
open_cache
cache_open
7.
16
32
8.
True
False
9.
Installing more memory into the machine enables to configure larger values for cache server.
True
False
10.
When optimizing a slow SQL query, what should be the first step taken?
Which SQL optimization technique involves reducing the number of database requests by combining multiple
queries into a single query?
Indexing
Normalization
Query caching
Query batching
12.
Which of the following techniques can help optimize a SQL query's performance?
Which storage engine stores data in plain text files and is primarily used for exporting data?
ARCHIVE
CSV
MEMORY
InnoDB
15.
Which storage engine is known for its fast read operations and is suitable for read-intensive workloads, but lacks
support for transactions and foreign keys?
InnoDB
MyISAM
MEMORY
ARCHIVE
UNIT:10
1.
The process of copying data from one MySQL database to another, making them consistent over time.
The process of encrypting data within a MySQL database to enhance security.
2.
Which component of MySQL Replication is responsible for capturing changes from the master database?
Replication Monitor
Replication Slave
Replication Agent
Replication Binlog
3.
A technique to divide a database into smaller, independent shards to distribute data and improve scalability.
Master-slave replication
Master-master replication
Multi-master replication
Cluster replication
5.
Increased availability
Increased scalability
Increased performance
Which of the following is the process of dividing a database across multiple servers?
Sharding
Replication
Replication factor
Shard key
8.
A column or set of columns that is used to determine which shard a row should be placed on.
Increased scalability
Increased availability
Increased performance
Horizontal sharding
Vertical sharding
Token sharding
Range sharding
12.
Which of the following is a good complement to MySQL for storing large amounts of data?
MongoDB
Cassandra
Elasticsearch
Hadoop
Spark
Kafka
Amazon DynamoDB
UNIT:11
1.
Non-SQL
Not Only SQL
New SQL
Non-relational SQL
2.
ACID transactions
Which type of NoSQL database is best suited for handling highly interconnected data, such as social networks or
recommendation systems?
Document store
Key-value store
Graph database
Column-family store
4.
In a key-value store, what is used as the primary method for data retrieval and storage?
Tables
Documents
Which NoSQL database is often associated with JSON-like documents and is commonly used for web applications?
MongoDB
Cassandra
Redis
Couchbase
6.
What is the primary advantage of using a column-family store NoSQL database like Apache Cassandra?
High write throughput and scalability
Schema flexibility
Which NoSQL database is known for its in-memory data store and is commonly used for caching and real-time
analytics?
MongoDB
Cassandra
Redis
Couchbase
8.
Which consistency model in NoSQL databases sacrifices immediate consistency for higher availability and partition
tolerance?
Strong consistency
Eventual consistency
Causal consistency
Linearizability
9.
Which NoSQL database model is typically associated with wide-column stores and is used for handling large
amounts of data with high write throughput?
Document store
Key-value store
Graph database
Column-family store
11.
Which NoSQL database is designed for handling highly interconnected data and uses nodes and edges to represent
and store data?
Cassandra
MongoDB
Redis
Neo4j
12.
What is the primary use case for a column-family store NoSQL database like Apache Cassandra?
Real-time analytics
Document storage
Caching
13.
Which NoSQL database is often associated with a query language called "CQL" (Cassandra Query Language)?
MongoDB
Cassandra
Redis
Couchbase
14.
Which NoSQL database is designed for high-speed data ingestion and querying of time-series data?
Cassandra
MongoDB
InfluxDB
Couchbase
UNIT:12
1.
JPEG
PNG
GIF
SVG
2.
Which of the following is the best image format for logos and illustrations?
JPEG
PNG
GIF
SVG
3.
Which of the following is the best way to reduce the size of an image without losing too much quality?
Which of the following HTML attributes is used to specify the alt text for an image?
alt
title
src
href
5.
Photoshop
GIMP
ImageOptim
Which image file format is typically recommended for photographs and images with many colors, while maintaining
good quality and compression?
PNG
GIF
JPEG
SVG
8.
To load images gradually as the user scrolls, reducing initial page load time
Rasterization
Lossless compression
Pixelation
Anti-aliasing
11.
Which of the following is the HTML tag used to insert an image in a web page?
12.
Which of the following attributes is used to specify the location of the image file?
src
href
alt
title
13.
Which of the following attributes is used to specify the alt text for an image?
alt
title
src
width
14.
JPEG
PNG
GIF
SVG
UNIT:13
1.
CSS concatenation
CSS nesting
CSS compression
2.
What does the term "render-blocking" refer to in the context of CSS optimization?
Which CSS property can be used to group multiple selectors and apply the same styles to them?
cascade
combine
concatenate
comma
4.
When should you consider using CSS sprites for optimizing web images?
Which CSS feature is used for defining and using reusable values in your stylesheets?
CSS animations
CSS pseudo-classes
CSS transitions
6.
Which CSS layout model is designed for creating grid-based layouts with ease?
Flexbox
Floats
Positioning
Inline-block
8.
Which CSS property can you use to control the stacking order of elements on a webpage?
z-index
position
order
display
9.
To improve website performance, which HTTP header can be used to enable browser caching of CSS files?
Cache-Control
Content-Encoding
Expires
User-Agent
10.
13.
In CSS, how do you select an element with the class name "example"?
.element:example
element.example
.example
14.
color
text-color
font-color
textColor
15.
shadow-box
box-shadow
shadow-effect
box-effect
UNIT:14
1.
Data compression
Data integrity
Data obfuscation
Data duplication
3.
In the SSL/TLS handshake process, what is the purpose of the "ClientHello" message?
Client authentication
Key exchange
Server authentication
4.
Which protocol succeeded SSL and became the standard for secure communication over the internet?
TCP
HTTPS
TLS
FTPS
5.
Data encryption
Data compression
Data authentication
6.
DES
AES
RSA
MD5
7.
Encrypt data
Decrypt data
Transport Layer
Network Layer
Presentation Layer
9.
What is the term for the security vulnerability where an attacker intercepts and alters the communication between a
client and a server?
Eavesdropping
DDoS Attack
Buffer Overflow
10.
Which version of the TLS protocol introduced the concept of Perfect Forward Secrecy (PFS)?
TLS 1.0
TLS 1.1
TLS 1.2
TLS 1.3
11.
Data obfuscation
Data duplication
12.
During an SSL/TLS handshake, which key is used for encrypting and decrypting data?
Public key
Private key
Symmetric key
Asymmetric key
13.
Data encryption
Data compression
Data duplication
14.
Encrypt data
Decrypt data
DES
AES
RSA
SHA-256
~~~~~~~THANK YOU~~~~~~~