In the context of web applications, what does the term 'sticky session' mean?
- A session that retains client affinity
- A session with a fixed duration
- A session with persistent data
- A session with secure connections
'Sticky session' refers to a session that retains client affinity, meaning requests from the same client are directed to the same server, enhancing user experience in stateful applications.
What is a common challenge when scaling stateful applications?
- Caching
- Data consistency
- Load balancing
- Stateless communication
Achieving Data consistency is a common challenge when scaling stateful applications, as it involves ensuring that data is synchronized across multiple instances of the application.
How does a distributed cache enhance the scalability of a web application?
- Decreases Cache Hit Rate
- Improves Session Management
- Increases Network Latency
- Reduces Database Load
A distributed cache reduces the load on the database by storing frequently accessed data, reducing the need to query the database, and thereby enhancing the scalability of a web application.
What is a potential downside of using round-robin load balancing in a heterogeneous server environment?
- Improved Resource Utilization
- Increased Latency
- Limited Fault Tolerance
- Uneven Distribution of Load
A potential downside of round-robin load balancing in a heterogeneous server environment is the uneven distribution of load, as servers may have different capacities or capabilities, leading to suboptimal performance.
How can containerization aid in scaling web applications?
- Enhanced Portability
- Improved Isolation
- Increased Hardware Utilization
- Reduced Microservices
Containerization aids in scaling web applications by providing enhanced portability, allowing applications to run consistently across different environments, facilitating easier scaling and deployment.
Load balancing is critical in a _________ architecture to distribute traffic evenly across servers.
- client-server
- microservices
- monolithic
- peer-to-peer
Load balancing is critical in a monolithic architecture to distribute traffic evenly across servers.
_________ scaling involves adding more resources to the existing servers.
- Diagonal
- Horizontal
- Parallel
- Vertical
Horizontal scaling involves adding more resources to the existing servers.
A _________ balancer distributes network or application traffic across a number of servers.
- Firewall
- Load
- Proxy
- Router
A Load balancer distributes network or application traffic across a number of servers.
In cloud environments, _________ scaling refers to the automated process of adding or removing resources as needed.
- Elastic
- Horizontal
- Static
- Vertical
In cloud environments, Horizontal scaling refers to the automated process of adding or removing resources as needed, also known as scaling out or in.
In terms of design pattern, which one follows the Model View Controller (MVC) more closely?
- Both follow MVC equally
- JSPs
- Neither follows MVC
- Servlets
JSPs (JavaServer Pages) follow the Model-View-Controller (MVC) design pattern more closely than Servlets. JSPs provide a clear separation of concerns with HTML as the view, JavaBeans as the model, and tag libraries for controller logic.