Elastic Load Balancer Flashcards
What are the possible target groups for an Application Load Balancer?
- instance - The targets are specified by instance ID.
- ip - The targets are IP addresses.
- lambda - The target is a Lambda function.
How the ELB routs the traffic when you specify targets using an instance ID?
Traffic is routed to instances using the primary private IP address specified in the primary network interface for the instance.
Why to use an ALB with Lambda?
- Use load balancer rules to route HTTP requests to a function, based on path or header values.
- You will need either an ALB or API Gateway in front of a Lambda function.
Can you set a public IP as an ELB target?
You can’t specify publicly routable IP addresses.
What are the ALB use cases?
- HTTP/HTTPS
- path based routing
- host base routing
- query string routing
What are the NLB use cases?
- TCP, UDP or TLS
- ultra-high performance
- low latency
What are the Gateway LB use cases?
- In front of appliances
- Firewalls
What are the NLB targets
EC2 instance
IP address
What does the HTTP 503: Service unavailable
ALB error mean?
The target groups for the load balancer have no registered targets.
What does the HTTP 504: Gateway timeout
ALB error mean?
The load balancer failed to establish a connection to the target
What does the HTTP 502: Bad gateway
ALB error mean?
Other communcation errors beteen the ALB and the taget like:
- unreachable host
- malformed http headers (from the target)
- SSL handshake error
- Lambda function errors