1. Which of the following is a type of load balancer provided by AWS?
a) Amazon Web Services (AWS) Load Balancer
b) Elastic Load Balancer (ELB)
c) Scalable Load Balancer (SLB)
d) All of the above
2. Which of the following is not a type of ELB?
a) Classic Load Balancer (CLB)
b) Application Load Balancer (ALB)
c) Network Load Balancer (NLB)
d) None of the above
3. Which of the following is true about Classic Load Balancers?
a) They support Layer 7 (application) and Layer 4 (transport) protocols.
b) They are designed for HTTP/HTTPS traffic.
c) They are best suited for applications that rely on long-lived TCP connections.
d) They are not recommended for new applications.
4. Which of the following is true about Application Load Balancers?
a) They support Layer 7 (application) and Layer 4 (transport) protocols.
b) They are designed for HTTP/HTTPS traffic.
c) They are best suited for applications that rely on long-lived TCP connections.
d) They support WebSocket and HTTP/2 traffic.
5. Which of the following is true about Network Load Balancers?
a) They support Layer 7 (application) and Layer 4 (transport) protocols.
b) They are designed for HTTP/HTTPS traffic.
c) They are best suited for applications that rely on long-lived TCP connections.
d) They are best suited for applications that require ultra-high performance and low latency.
6. Which type of scaling policy allows you to scale your Auto Scaling Group based on a target value for a specific metric?
a) Target Tracking Scaling Policy
b) Step Scaling Policy
c) Simple Scaling Policy
d) None of the above
7. Which type of scaling policy allows you to scale your Auto Scaling Group based on a combination of multiple metrics?
a) Target Tracking Scaling Policy
b) Step Scaling Policy
c) Simple Scaling Policy
d) None of the above
8. Which of the following is not a metric that can be used for dynamic scaling of an Auto Scaling Group?
a) CPU utilization
b) Network traffic
c) Disk I/O
d) Database latency
9. Which type of scaling strategy adjusts the size of an Auto Scaling Group based on anticipated changes in demand?
a) Manual Scaling
b) Scheduled Scaling
c) Predictive Scaling
d) Dynamic Scaling
10. Which AWS service is used to monitor the health of your instances and automatically replace unhealthy instances?
a) Amazon EC2
b) Amazon S3
c) Amazon RDS
d) Amazon EC2 Auto Scaling (ASG)
11. Which of the following is not a benefit of using Elastic Load Balancer (ELB)?
a) Increased availability and fault tolerance
b) Increased security
c) Reduced latency
d) Reduced cost
12. Which of the following is a security feature provided by Application Load Balancers?
a) SSL termination
b) DDoS protection
c) SSL/TLS cipher negotiation
d) Certificate management
13. Which of the following is a feature of Network Load Balancers?
a) Cross-zone load balancing
b) Session stickiness
c) Health checks at the transport layer
d) Connection draining
14. Which of the following is true about cross-zone load balancing?
a) It is a feature provided by Classic Load Balancers.
b) It ensures that requests are evenly distributed across all registered instances.
c) It balances the incoming traffic across multiple availability zones.
d) It can cause uneven traffic distribution if used incorrectly.
15. Which of the following is a scaling metric that can be used for Amazon EC2 Auto Scaling?
a) Number of requests per second
b) Number of TCP connections
c) Number of HTTP 200 responses
d) All of the above
16. Which type of scaling policy adjusts the size of an Auto Scaling Group based on a predefined set of scaling adjustments?
a) Target Tracking Scaling Policy
b) Step Scaling Policy
c) Simple Scaling Policy
d) Scheduled Scaling Policy
17. Which of the following is not a metric that can be used for step scaling of an Auto Scaling Group?
a) CPU utilization
b) Memory utilization
c) Network traffic
d) Response time
18. Which of the following is not a type of health check provided by ELB?
a) HTTP health check
b) HTTPS health check
c) TCP health check
d) ICMP health check
19. Which of the following is a feature provided by ELB to allow traffic to be routed to different instances based on the URL path?
a) Path-based routing
b) Health-based routing
c) Weighted routing
d) DNS-based routing
20. Which of the following is a feature provided by Amazon EC2 Auto Scaling to help ensure that all instances in an Auto Scaling Group are identical?
a) Launch templates
b) Instance profiles
c) Security groups
d) None of the above
21. Which of the following is a feature of a Classic Load Balancer?
a) Supports WebSocket traffic
b) Allows custom domain names
c) Supports VPC Peering
d) Provides static IP addresses
22. Which of the following is a feature of an Application Load Balancer?
a) Supports Layer 4 (TCP/UDP) routing
b) Provides SSL/TLS offloading
c) Supports VPC peering
d) Supports static IP addresses
23. Which of the following is a feature of a Network Load Balancer?
a) Supports Layer 7 (HTTP/HTTPS) routing
b) Provides SSL/TLS offloading
c) Supports VPC peering
d) Supports static IP addresses
24. Which type of scaling policy adjusts the size of an Auto Scaling Group based on a metric or set of metrics specified by the user?
a) Target Tracking Scaling Policy
b) Simple Scaling Policy
c) Step Scaling Policy
d) Scheduled Scaling Policy
25. Which of the following is a feature of an Application Load Balancer?
a) Supports sticky sessions
b) Supports cross-zone load balancing
c) Supports SSL/TLS termination
d) Supports routing based on the URL path
26. Which type of health check is used by ELB to monitor the health of instances in an Auto Scaling Group?
a) HTTP
b) HTTPS
c) TCP
d) ICMP
27. Which of the following is a feature of a Network Load Balancer?
a) Supports routing based on the URL path
b) Supports Layer 7 (HTTP/HTTPS) routing
c) Provides SSL/TLS offloading
d) Supports static IP addresses
28. Which type of scaling policy allows the user to specify a target value for a metric, and then adjusts the size of an Auto Scaling Group to maintain that target value?
a) Simple Scaling Policy
b) Target Tracking Scaling Policy
c) Step Scaling Policy
d) Scheduled Scaling Policy
29. Which of the following is a feature of a Classic Load Balancer?
a) Supports SSL/TLS termination
b) Provides SSL/TLS offloading
c) Supports cross-zone load balancing
d) Supports VPC peering
30. Which of the following is not a benefit of using Amazon EC2 Auto Scaling?
a) Increased fault tolerance
b) Increased availability
c) Reduced cost
d) Reduced latency
Answers
1: b) Distributes incoming traffic across multiple EC2 instances
Explanation: An Elastic Load Balancer (ELB) is a managed service that automatically distributes incoming application traffic across multiple targets, such as EC2 instances, containers, and IP addresses.
2: c) Application Load Balancer
Explanation: An Application Load Balancer (ALB) is a type of ELB that operates at the application layer (Layer 7) and can route traffic based on the content of the request, such as the URL path or host header.
3: a) Increases the number of instances in response to high traffic
Explanation: Auto Scaling is a feature that automatically increases or decreases the number of instances in an Auto Scaling Group (ASG) based on demand, helping to ensure that applications are always available to users.
4: d) All of the above
Explanation: The three types of scaling policies in Amazon EC2 Auto Scaling are target tracking, simple, and step scaling. Scheduled scaling is not a type of scaling policy, but rather a way to schedule specific scaling actions at predefined times.
5: a) True
Explanation: An ALB can route traffic to different targets based on the value of a cookie in the request, allowing for sticky sessions.
6: d) All of the above
Explanation: An ELB can monitor the health of instances in an ASG using HTTP, HTTPS, TCP, and ICMP health checks.
7: b) Network Load Balancer
Explanation: A Network Load Balancer (NLB) is a type of ELB that operates at the transport layer (Layer 4) and can handle millions of requests per second with ultra-low latencies.
8: c) Security Group
Explanation: A security group is a virtual firewall that controls inbound and outbound traffic for EC2 instances.
9: b) True
Explanation: Cross-zone load balancing is a feature of ELB that allows traffic to be distributed evenly across all available instances in all enabled availability zones.
10: a) True
Explanation: Auto Scaling can help maintain application availability by automatically launching new instances to replace failed ones.
11: c) Simple Scaling Policy
Explanation: A simple scaling policy adjusts the capacity of an ASG by a fixed amount, such as adding or removing a set number of instances.
12: b) Application Load Balancer
Explanation: An ALB is a type of ELB that supports path-based routing, allowing different URLs to be directed to different sets of targets.
13: d) Both a and b
Explanation: A target group is a logical grouping of targets, such as EC2 instances or IP addresses, that an ALB routes traffic to based on the rules defined in the listener.
14: b) Elastic IP address
Explanation: An Elastic IP address (EIP) is a static, public IP address that can be associated with an EC2 instance, allowing it to maintain the same IP address even after it is stopped and started.
15: c) Network Load Balancer
Explanation: An NLB is a type of ELB that supports TCP and UDP traffic and is optimized for handling millions of requests per second with ultra-low latencies.
16: a) Launch Configuration
Explanation: A launch configuration is a blueprint that specifies the configuration settings for instances launched by an ASG.
17: d) Both a and b
Explanation: An ALB can route traffic based on a variety of conditions, including the path, host, HTTP method, and query string.
18: b) To ensure high availability and fault tolerance of applications
Explanation: The main purpose of using an ELB is to distribute incoming traffic across multiple targets, such as EC2 instances, to ensure high availability and fault tolerance of applications.
19: d) All of the above
Explanation: Auto Scaling groups can be used to maintain the desired capacity of EC2 instances based on various factors, including changes in demand, performance, and availability.
20: a) ELB health checks
Explanation: ELB health checks are used to determine if a target, such as an EC2 instance, is available to handle traffic. If the health check fails, the ELB will stop routing traffic to that target until it passes the health check again. This helps to ensure that only healthy targets receive traffic from the ELB.
21: b) ELB scales the number of instances in an ASG
Explanation: An ELB distributes incoming traffic across multiple targets, such as instances in an ASG. It does not directly manage the scaling of instances in the ASG, which is handled by the Auto Scaling feature.
22: c) Both a and b
Explanation: An ALB can route traffic based on a variety of conditions, including the source IP address and the country of origin of the request.
23: a) True
Explanation: Auto Scaling can help optimize costs by automatically reducing the number of instances in an ASG during periods of low demand.
24: b) Health Check
Explanation: A health check is a way for an ELB to determine if a target, such as an EC2 instance, is available to handle traffic.
25: c) Elastic IP address
Explanation: An EIP is a static, public IP address that can be associated with an EC2 instance to enable communication with the internet or other external resources.
26: a) True
Explanation: The AWS Management Console is a web-based interface that provides access to various AWS services, including ELB and ASG.
27: d) Both a and b
Explanation: An ALB can route traffic to different targets based on the value of a query string parameter in the request.
28: b) Application Load Balancer
Explanation: An ALB is a type of ELB that supports routing traffic based on the content of the request, such as the path or host header.
29: c) Amazon Route 53
Explanation: Amazon Route 53 is a domain name system (DNS) web service that can route traffic to various AWS resources, including ELB and ASG.
30: a) Target Tracking Scaling Policy
Explanation: A target tracking scaling policy adjusts the capacity of an ASG to maintain a specified target value, such as CPU utilization or network throughput.