Learn Elastic Load Balancing (ELB) (AWS Certified Solutions Architect) with Interactive Flashcards
Master key concepts in Elastic Load Balancing (ELB) through our interactive flashcard system. Click on each card to reveal detailed explanations and enhance your understanding.
Elastic Load Balancer Types
There are three types of Elastic Load Balancers in AWS: Classic Load Balancer, Application Load Balancer, and Network Load Balancer. The Classic Load Balancer distributes traffic across multiple targets in a single Availability Zone or multiple Availability Zones. It operates at both the request and connection levels. The Application Load Balancer operates at the application level, meaning it routes HTTP/HTTPS requests. It provides advanced request routing features such as host-based or path-based routing. The Network Load Balancer operates at the connection level and is designed for extremely high-performance workloads, handing millions of requests per second.
Load Balancer Listeners
Listeners are components of Elastic Load Balancers that take incoming requests and distribute them to one or more registered backend instances. They are configured with a protocol and port number for incoming connections, along with a default rule defining how to route requests to target instances. Listeners support various protocols such as HTTP, HTTPS, TCP, and TLS. They process incoming connections and establish sessions or connections to the appropriate target instance based on the configured routing rules.
ELB Health Checks
Health checks in Elastic Load Balancing are a feature that continuously monitors the health of the registered instances, marking them as healthy or unhealthy based on predefined criteria. They are used to determine which instances can receive traffic from the load balancer. Health checks are configured to evaluate the response of an HTTP or TCP request sent to a specified port on the instance, determining the instance's health status. Unhealthy instances are removed from the load balancer until they return as healthy, ensuring that the load balancer always routes traffic to healthy instances.
ELB Connection Draining
Connection draining, also known as deregistration delay, is a feature in Elastic Load Balancing that enables in-flight requests to be completed when an instance is being terminated or removed from the load balancer. It helps ensure that existing connections are not terminated abruptly, giving existing requests a chance to complete before terminating the instance. The feature is particularly useful during planned maintenance or scaling events. The connection draining timeout value can be configured to determine the maximum time to keep connections open before forcefully terminating them.
ELB Auto Scaling
Auto Scaling is a feature that automatically adjusts the number of registered instances in an Elastic Load Balancer target group based on real-time demand, ensuring optimal workload distribution and availability. It supports both scale-out and scale-in operations, increasing or decreasing the number of instances in response to predefined scaling policies, such as traffic thresholds or the average CPU utilization of target instances. Auto scaling helps maintain high availability and automatically handles changing application requests, resulting in an efficient, cost-effective solution by distributing traffic across the most appropriate resources.
Elastic Load Balancing Algorithms
Elastic Load Balancing Algorithms determine how the load balancer distributes incoming traffic across the registered instances. AWS supports two types of load balancing algorithms: 1. Round Robin: This is a default method, where each instance gets an equal distribution of traffic, ensuring balanced utilization of resources. 2. Least Outstanding Requests: This method directs incoming traffic to the instance with the least number of outstanding requests, ensuring that no single instance gets overwhelmed. Both algorithms can further leverage Sticky Sessions to bind user sessions to specific instances, providing consistent user experience during peak times. By choosing an appropriate algorithm, you can achieve higher performance, fault tolerance, and availability for your applications.
Cross-Zone Load Balancing
Cross-Zone Load Balancing is an essential concept to ensure high availability and fault tolerance of your application deployed across multiple Availability Zones. By enabling Cross-Zone Load Balancing, the traffic is distributed evenly not just among instances in a single Availability Zone but across all registered instances in multiple Availability Zones. This helps you achieve better resource utilization, high availability, and consistent performance for your applications. In addition, it prevents service disruptions and uneven distribution of traffic due to issues in a single Availability Zone, ensuring that your application continues to run smoothly even during an outage in one of the zones.
ELB-Integrated AWS Services
Elastic Load Balancing is highly integrated with various AWS services, offering several benefits for better performance and security of your applications. Some popular integrated services include: 1. Amazon Route 53: It allows you to map domain names to your load balancers, easily directing customers to your applications. 2. AWS Certificate Manager (ACM): You can use ACM with your ELB to deploy SSL/TLS certificates for secure and encrypted connections. 3. AWS Web Application Firewall (WAF): It integrates with your ELB to help protect your applications against common web attacks. 4. AWS Auto Scaling: It works cohesively with ELB to automatically scale the number of instances based on the traffic load, ensuring consistent performance under fluctuating workloads. By leveraging these integrated services, you can achieve better performance, security, and scalability for your applications.
ELB Security Policies
Elastic Load Balancing offers security policies that consist of protocols, ciphers, and security configurations to manage secure connections between clients and your backend instances. For example, SSL/TLS Security Policies specify which SSL/TLS protocols and ciphers to be used for secure connections to your load balancer. These policies play a critical role in maintaining optimal security and compliance for your applications. AWS provides predefined Security Policies that cater to common-use cases, and you can also create custom security policies to fit specific requirements. Regularly reviewing and updating your security policies helps you stay compliant with industry-specific regulations and protect your applications from potential security threats.
ELB Monitoring and Logging
Elastic Load Balancing provides monitoring and logging features to help you analyze the performance and health of your applications, identify issues, and make data-driven decisions. Some key monitoring and logging features include: 1. CloudWatch Metrics: You can monitor the health and performance of your load balancer using Amazon CloudWatch metrics, which provide real-time statistics of your instances, traffic distribution, request processing time, and other performance-related parameters. 2. Access Logs: These detailed logs contain information about client requests, enabling you to analyze traffic patterns, identify security issues, and troubleshoot potential problems. 3. CloudTrail Logs: These logs record API calls made to the Elastic Load Balancing service, allowing you to detect unauthorized activity, security breaches, or alterations to your load balancer settings. By utilizing these monitoring and logging features, you can proactively address issues, optimize performance, and maintain the availability, reliability, and security of your applications.
Go Premium
AWS Certified Solutions Architect - Associate Preparation Package (2024)
- 3215 Superior-grade AWS Certified Solutions Architect - Associate practice questions.
- Accelerated Mastery: Deep dive into critical topics to fast-track your mastery.
- Unlock Effortless AWS Certified Solutions Architect preparation: 5 full exams.
- 100% Satisfaction Guaranteed: Full refund with no questions if unsatisfied.
- Bonus: If you upgrade now you get upgraded access to all courses
- Risk-Free Decision: Start with a 7-day free trial - get premium features at no cost!