Deployment & Provisioning Flashcards
What are the two commons for EC2 instances failing?
#InstanceLimitExceed error - Exceeded the default limit for number of instances on a region, can add more. #InsufficientInstanceCapacity error - Aws do not have currently enough available EC2 on-demand for your request.
What is a Bastion Host/Jump Box?
Bastion host is server connected to a public subnet, can connect via internet and gives access to the private subnet through SSH/RDP only.
What is the layer that Application LoadBalancer, Network Load and Classic Load Balancer
# ALB: Layer 7 Application # NLB: Layer 4 transport # CLB: Layer 7 and 4, but 7 is limited
What is Application Load Balancer?
Is for HTTP and HTTPS, and is application-aware(know about the route, path and etc), routing based on request.
What is Network Load Balancer?
Is for TCP traffic, extreme performance, handle millions of request per second.
What is Classic Load Balancer?
Is legacy ELB, can handle HTTP/HTTPS, use X-Forwarded and sticky sessions for routing, or use only TCP
What is Pre-warming an ELB?
Avoid overloading the ELB, contact AWS support and specify req/s is expected, range of time, total size of a typical request.
An Application is behind an ELB and needs Static IP/ Elastic IP what ELB choose and Why?
Network load balancer because NLB creates static IP for each subnet.
What are erros 4XX that ELB returns?
# 400 - Bad/malformed request # 401 - Unauthorized use access denied # 403 - Forbidden request is blocked by WAF acces control list # 460 - Client closed connection before load balancer could respond, client timeout may be short. # 463 - Load balanacer receive an X-Fowarded-For request header with > 30 IP addresses
What are erros 5XX that ELB returns?
# 500 - Internal error server. # 502 - Bad gateway application server closed the connection/ malformed response # 503 - Service Unavaible - no registered target # 504 - Gateway timeout app is not respoding # 561 - Unauthorized received an erro code from the ID provider.
What are different types of metrics of ELB?
# General health - HealthyHostCount/UnHealthyHostCount, HTTPCode_Backend_2XX /3XX / 4XX / 5XX # Performance - Latency, RequestCount, (SurgeQueueLength and SpilloverCount(Classic only)) --> high number is perfomance issues