AWS Training Flashcards
You would like to expose a fixed static IPto your end-users for compliance purposes, so they can write firewall rules that will be stable and approved by regulators.Which Load Balancer should you use?
Network Load Balancers (NLB) expose a public static IP, whereas an Application or Classic Load Balancer exposes a static DNS (URL)
An application is deployed with an Application Load Balancer and an Auto Scaling Group. Currently, the scaling of the Auto Scaling Group is done manually and you would like to define a scaling policy that will ensure the average number of connections to your EC2 instances is averaging at around 1000. Which scaling policy should you use?
Target Tracking
Your application is using an Application Load Balancer. It turns out your application only sees traffic coming from private IPwhich are in fact your load balancer’s. What should you do to find the true IPof the clients connected to your website?
look into the x-forwared-for header in the backend
You quickly created an ELB and it turns out your users are complaining about the fact that sometimes, the servers just don’t work. You realise that indeed, your servers do crash from time to time. How to protect your users from seeing these crashes?
Health checks ensure your ELB won’t send traffic to unhealthy (crashed) instances
You are designing a high performance application that will require millions of connections to be handled, as well as low latency. The best Load Balancer for this is
NLB provide the highest performance if your application needs it
Application Load Balancers (ALB) handle all these protocols except
HTTP, HTTPS, Websocket.
NLB (Network Load Balancer) support TCP instead
The application load balancer can route to different target groups based on all these except…
Hostname, request Path, Source IP
Except Geography
You are running at desired capacity of 3 and the maximum capacity of 3. You have alarms set at 60%CPUto scale out your application.Your application is now running at 80%capacity. What will happen?
The capacity of your ASG cannot go over the maximum capacity you have allocated during scale out events
I have an ASGand an ALB, and I setup my ASG to get health status of instances thanks to my ALB. One instance has just been reported unhealthy. What will happen?
Because the ASG has been configured to leverage the ALB health checks, unhealthy instances will be terminated
Your boss wants to scale your ASG based on the number of requests per minute your application makes to your database.
create a CloudWatch custom metrix and build an alarm to scale your ASG
You would like to expose a fixed static IPto your end-users for compliance purposes, so they can write firewall rules that will be stable and approved by regulators.Which Load Balancer should you use?
Network Load Balancers expose a public static IP, whereas an Application or Classic Load Balancer exposes a static DNS (URL)
A web application hosted in EC2 is managed by an ASG. You are exposing this application through an Application Load Balancer. The ALBis deployed on the VPCwith the following CIDR: 192.168.0.0/18. How do you configure the EC2 instance security group to ensure only the ALBcan access the port 80?
Open up the EC2 security on port 80 to ALB security Group
This is the most secure way of ensuring only the ALB can access the EC2 instances.
Your application load balancer is hosting 3 target groups with hostnames being users.example.com, api.external.example.com and checkout.example.com. You would like to expose HTTPS traffic for each of these hostnames. How do you configure your ALBSSL certificates to make this work?
SNI (Server Name Indication) is a feature allowing you to expose multiple SSL certs if the client supports it.
Read more here: https://aws.amazon.com/blogs/aws/new-application-load-balancer-sni/
An ASGspawns across 2 availability zones. AZ-Ahas 3 EC2 instances and AZ-Bhas 4 EC2 instances. The ASGis about to go into a scale-in event. What will happen?
AZ-B will termnate the oldest Launch configuration
Make sure you remember the Default Termination Policy for ASG. It tries to balance across AZ first, and then delete based on the age of the launch configuration.
The Application Load Balancers target groups can be all of these EXCEPT…
EC2, IP ADDR, Lambda Function
Except NLB