ELB and ASG Flashcards
Scaling an EC2 instance from r4.large to r4.4xlarge is called ____
A. Horizontal Scalability
B. Vertical Scalability
B. Vertical Scalability
Running an application on an Auto Scaling Group that scales the number of EC2 instances in and out is called ____
A. Vertical Scalability
B. Horizontal Scalability
B. Horizontal Scalability
Elastic Load Balancers provide a ____
A. static IPv4 we can use in our application
B. static DNS name we can use in our application
C. static IPv6 we can use in our application
B. static DNS name we can use in our application
Only Network Load Balancer provides both static DNS name and static IP. While, Application Load Balancer provides a static DNS name but it does NOT provide a static IP. The reason being that AWS wants your Elastic Load Balancer to be accessible using a static endpoint, even if the underlying infrastructure that AWS manages changes.
You are running a website on 10 EC2 instances fronted by an Elastic Load Balancer. Your users are complaining about the fact that the website always asks them to re-authenticate when they are moving between website pages. You are puzzled because it’s working just fine on your machine and in the Dev environment with 1 EC2 instance. What could be the reason?
A. The Elastic Load Balancer does not have Sticky Sessions enabled
B. Your website must have an issue when hosted on multiple EC2 instances
C. The EC2 instances log out users as they can’t see their IP addresses, instead they receive ELB IP addresses
A. The Elastic Load Balancer does not have Sticky Sessions enabled
ELB Sticky Session feature ensures traffic for the same client is always redirected to the same target (e.g., EC2 instance). This helps that the client does not lose his session data.
You are using an Application Load Balancer to distribute traffic to your website hosted on EC2 instances. It turns out that your website only sees traffic coming from private IPv4 addresses which are in fact your Application Load Balancer’s IP addresses. What should you do to get the IP address of clients connected to your website?
A. Modify your website’s frontend so that users send their IP in every request
B. Modify your website’s backend to get the client IP address from X-Forwarded-For header
C. Modify your website’s backend to get the client IP address from X-Forwarded-Port header
D. Modify your website’s backend to get the client IP address from X-Forwarded-Proto header
B. Modify your website’s backend to get the client IP address from X-Forwarded-For header
When using an Application Load Balancer to distribute traffic to your EC2 instances, the IP address you’ll receive requests from will be the ALB’s private IP addresses. To get the client’s IP address, ALB adds an additional header called X-Forwarded-For contains the client’s IP address.
You hosted an application on a set of EC2 instances fronted by an Elastic Load Balancer. A week later, users begin complaining that sometimes the application just doesn’t work. You investigate the issue and found that some EC2 instances crash from time to time. What should you do to protect users from connecting to the EC2 instances that are crashing?
A. Enable ELB Stickiness
B. Enable SSL Termination
C. Enable ELB Health Checks
D. Enable Cross-Zone Load Balancing
C. Enable ELB Health Checks
When you enable ELB Health Checks, your ELB won’t send traffic to unhealthy (crashed) EC2 instances.
You are working as a Solutions Architect for a company and you are required to design an architecture for a high-performance, low-latency application that will receive millions of requests per second. Which type of Elastic Load Balancer should you choose?
A. Application Load Balancer
B. Classic Load Balancer
C. Network Load Balancer
C. Network Load Balancer
Network Load Balancer provides the highest performance and lowest latency if your application needs it.
Application Load Balancers support the following protocols, EXCEPT:
A. HTTP
B. HTTPS
C. Websocket
D. TCP
D. TCP
Network Load Balancers support both TCP and UDP protocols.
Application Load Balancers can route traffic to different Target Groups based on the following, EXCEPT:
A. Hostname
B. Client’s Location (Geography)
C. Request URL Path
D. Source IP Address
B. Client’s Location (Geography)
ALBs can route traffic to different Target Groups based on URL Path, Hostname, HTTP Headers, and Query Strings
Registered targets in a Target Group for an Application Load Balancer can be one of the following, EXCEPT:
A. Network Load Balancer
B. Lambda Functions
C. Private IP Addresses
D. EC2 Instances
A. Network Load Balancer
For compliance purposes, you would like to expose a fixed static IP address to your end-users so that they can write firewall rules that will be stable and approved by regulators. What type of Elastic Load Balancer would you choose?
A. Application Load Balancer with an Elastic IP attached to it
B. Network Load Balancer
C. Classic Load Balancer
B. Network Load Balancer
Network Load Balancer has one static IP address per AZ and you can attach an Elastic IP address to it. Application Load Balancers and Classic Load Balancers as a static DNS name.
You want to create a custom application-based cookie in your Application Load Balancer. Which of the following you can use as a cookie name?
A. AWSALBAPP
B. AWSALBTG
C. APPUSERC
D. AWSALB
C. APPUSERC
The following cookie names are reserved by the ELB (AWSALB, AWSALBAPP, AWSALBTG).
You have a Network Load Balancer that distributes traffic across a set of EC2 instances in us-east-1. You have 2 EC2 instances in us-east-1b AZ and 5 EC2 instances in us-east-1e AZ. You have noticed that the CPU utilization is higher in the EC2 instances in us-east-1b AZ. After more investigation, you noticed that the traffic is equally distributed across the two AZs. How would you solve this problem?
A. Enable Sticky Sessions
B. Enable Cross-Zone Load Balancing
C. Enable ELB Health Checks
D. Enable SSL Termination
B. Enable Cross-Zone Load Balancing
When Cross-Zone Load Balancing is enabled, ELB distributes traffic evenly across all registered EC2 instances in all AZs.
Which feature in both Application Load Balancers and Network Load Balancers allows you to load multiple SSL certificates on one listener?
A. Server Name Indication (SNI)
B. TLS Termination
C. Host Headers
D. SSL Security Policies
A. Server Name Indication (SNI)
You have an Application Load Balancer that is configured to redirect traffic to 3 Target Groups based on the following hostnames: users.example.com, api.external.example.com, and checkout.example.com. You would like to configure HTTPS for each of these hostnames. How do you configure the ALB to make this work?
A. User an HTTP to HTTPS redirect rule
B. Use a security group SSL certificate
C. User Server Name Indication (SNI)
C. User Server Name Indication (SNI)
Server Name Indication (SNI) allows you to expose multiple HTTPS applications each with its own SSL certificate on the same listener. Read more here: https://aws.amazon.com/blogs/aws/new-application-load-balancer-sni/