Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Sec. 7: AWS Fundamentals: ELB + ASG

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Scaling an EC2 instance from r4.large to r4.4xlarge is called .....................

a)

Horizontal Scalability

b)

Vertical Scalability

2.

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

3.

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

4.

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.

5.

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

6.

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

7.

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

8.

Application Load Balancers support the following protocols, EXCEPT:

a)

HTTP

b)

HTTPS

c)

WebSocket

d)

TCP

9.

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

10.

Registered targets in a Target Groups 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

11.

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

12.

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

13.

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

14.

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

15.

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)

Use an HTTP to HTTPS redirect rule

b)

Use a security group SSL certificate

c)

Use Server Name Indication (SNI)

16.

You have an application hosted on a set of EC2 instances managed by an Auto Scaling Group that you configured both desired and maximum capacity to 3. Also, you have created a CloudWatch Alarm that is configured to scale out your ASG when CPU Utilization reaches 60%. Your application suddenly received huge traffic and is now running at 80% CPU Utilization. What will happen?

a)

The desired capacity will go up to 4 and the maximum capacity will stay at 3

b)

Nothing

c)

The desired capacity will go up to 4 and the maximum capacity will stay at 4

17.

You have an Auto Scaling Group fronted by an Application Load Balancer. You have configured the ASG to use ALB Health Checks, then one EC2 instance has just been reported unhealthy. What will happen to the EC2 instance?

a)

The ASG will keep the instance running and re-start the application

b)

The ASG will detach the EC2 instance and leave it running

c)

The ASG will terminate the EC2 instance

18.

Your boss asked you to scale your Auto Scaling Group based on the number of requests per minute your application makes to your database. What should you do?

a)

You politely tell him it's impossible

b)

Create a CloudWatch custom metric then create a CloudWatch Alarm on this metric to scale your ASG

c)

Enable Detailed Monitoring then create a CloudWatch Alarm to scale your ASG

19.

An application is deployed with an Application Load Balancer and an Auto Scaling Group. Currently, you manually scale the ASG and you would like to define a Scaling Policy that will ensure the average number of connections to your EC2 instances is around 1000. Which Scaling Policy should you use?

a)

Simple Scaling Policy

b)

Step Scaling Policy

c)

Scheduled Scaling Policy

d)

Target Tracking Policy

20.

Your application hosted on EC2 instances managed by an Auto Scaling Group suddenly receives a spike in traffic which triggers your ASG to scale out and a new EC2 instance has been launched. The traffic continuously increases but the ASG doesn't launch any new EC2 instances immediately but after 5 minutes. What is a possible cause for this behavior?

a)

Cooldown Period

b)

Lifecycle Hooks

c)

Target Tracking Policy

d)

Launch Template