Practice Test

True/False: Application Load Balancer can distribute incoming application traffic across multiple Amazon EC2 instances in a single availability zone.

Answer: False.

Explanation: Application Load Balancer distributes incoming application traffic across multiple Amazon EC2 instances in multiple availability zones. This ensures availability and fault tolerance.

Which of the following is not a type of AWS Load Balancer?

  • A. Application Load Balancer
  • B. Network Load Balancer
  • C. Classic Load Balancer
  • D. Elastic Load Balancer

Answer: D. Elastic Load Balancer.

Explanation: The AWS Elastic Load Balancer (ELB) is not a type of load balancer; instead, it is a service that includes the types: Application Load Balancers, Network Load Balancers, and Classic Load Balancers.

True/False: When creating an application load balancer, it is mandatory to register the target instances during the initial setup.

Answer: False.

Explanation: While creating an application load balancer, it is not mandatory to register the target instances immediately. You can register the instances later.

True/False: Load balancing does not support maintaining session stickiness for request routing.

Answer: False.

Explanation: Load balancing does support maintaining session stickiness for request routing. In this way, the same client is routed to the same backend server for maintaining a session.

Which type of load balancer does AWS recommend for most applications?

  • A. Network Load Balancer
  • B. Classic Load Balancer
  • C. Application Load Balancer
  • D. None of the above

Answer: C. Application Load Balancer.

Explanation: AWS generally recommends an Application Load Balancer because of its application-level traffic management features.

True/False: An Application Load Balancer only operates at the seventh layer of the OSI model, the application layer.

Answer: True.

Explanation: An Application Load Balancer operates at the seventh layer of the OSI model, focusing exclusively on HTTP and HTTPS traffic.

Load balancers are incapable of performing which of the following functions?

  • A. Health checks
  • B. Automatic scaling
  • C. Request routing
  • D. Data encryption

Answer: B. Automatic scaling.

Explanation: Load balancers do not perform automatic scaling. This is the function of AWS Auto Scaling service.

True/False: Cross-zone load balancing ensures that each load balancer node distributes traffic evenly across the registered instances in all enabled zones.

Answer: True.

Explanation: Cross-zone load balancing distributes traffic evenly across all backend hosts, regardless of the zone in which they are located.

Which type of load balancer can handle volatile workloads and scale beyond the capacity of a single Amazon EC2 instance?

  • A. Network Load Balancer
  • B. Classic Load Balancer
  • C. Application Load Balancer
  • D. None of the above

Answer: A. Network Load Balancer.

Explanation: Network Load Balancer can handle volatile workloads and scale beyond the capacity of a single Amazon EC2 instance.

True/False: AWS WAF (Web Application Firewall) service can be associated with Application Load Balancer.

Answer: True.

Explanation: AWS WAF can be associated with an Application Load Balancer to protect your applications from web exploits.

Interview Questions

What is the primary function of a Load Balancer in AWS?

A load balancer automatically distributes incoming application traffic across multiple targets, such as EC2 instances. It increases the availability and fault tolerance of your applications.

What are the three types of Amazon Elastic Load Balancer?

There are three types of Elastic Load Balancer: Application Load Balancer, Network Load Balancer, and Classic Load Balancer.

What is the main difference between an Application Load Balancer and a Classic Load Balancer?

An Application Load Balancer is best suited for load balancing of HTTP and HTTPS traffic, providing advanced request routing based on HTTP headers, methods, and URL paths. A Classic Load Balancer provides basic load balancing across multiple EC2 instances and operates at both the request level and connection level.

How does Amazon’s Application Load Balancer ensure high availability?

Application Load Balancer ensures high availability by distributing incoming traffic across multiple EC2 instances in multiple availability zones (AZs). If the health checks fail in any case, the ALB will automatically reroute the traffic to the healthy instances in other AZs.

What is the primary function of the health checks in AWS Load Balancer?

Health checks, performed by the load balancer, determine the operational status of the registered instances. If an instance is deemed unhealthy, the load balancer stops routing requests to it and only routes to healthy instances.

What is Amazon Network Load Balancer best suited for?

Network Load Balancer is best suited for load balancing of TCP traffic where extreme performance is required. It is capable of handling millions of requests per second while maintaining ultra-low latencies.

When should you consider using a Sticky Session with your Load Balancer?

Sticky Sessions should be used when you want the load balancer to bind a user’s session to a specific instance. This ensures that all requests from the user during the session are sent to the same instance.

What is the use of connection draining in a Load Balancer?

Connection draining is used to ensure that in-flight requests are completely served before an instance is de-registered or becomes unhealthy. It gives the instances in-service time to complete their requests or connections before being shut down.

Can an Application Load Balancer direct requests to targets using multiple ports on the same IP address?

Yes, Application Load Balancer supports multiple ports on the same IP address for targets, thus increasing the availability for applications that are housed on the same instance.

How does an Application Load Balancer process incoming client connections?

Application Load Balancer processes client connections in two stages. In the first stage, it manages the incoming connection and performs content-based routing to an appropriate target group. In the second stage, it manages the connection to the selected target for the duration of the request.

Can you specify the load balancing algorithm for your Load Balancer in AWS?

No, you can’t specify the load balancing algorithm. Amazon Elastic Load Balancer automatically distributes incoming traffic across targets based on the round-robin algorithm.

What is cross-zone load balancing in AWS Load Balancer?

Cross-zone load balancing is a feature where each load balancer node distributes requests evenly across the registered targets in all enabled availability zones.

What functionality does Path-based routing provide in Application Load Balancer?

Path-based routing in Application Load Balancer allows you to route requests to multiple web services on a single EC2 instance, based on the content of the request URL.

Can you register instances from multiple availability zones with a single load balancer?

Yes, you can register instances from multiple availability zones with a single load balancer to increase the availability and fault tolerance of your applications.

What is the maximum idle timeout that can be configured for Load Balancer connections in AWS?

The maximum idle timeout that can be configured for Load Balancer connections in AWS is 4000 seconds.

Leave a Reply

Your email address will not be published. Required fields are marked *