DevOps Engineering on AWS Certification High Availability, Fault Tolerance, and Auto Scaling 1 — Questions and Answers
Question 1: Which AWS Auto Scaling policy adjusts capacity based on a target value for a specific metric, such as 70% CPU utilization?
- Target Tracking Scaling (Correct answer)
- Step Scaling
- Simple Scaling
- Scheduled Scaling
Correct answer: Target Tracking Scaling
Target Tracking Scaling automatically adjusts the number of instances to keep a chosen metric, like CPU utilization, at or near a specified target value.
Question 2: What is the purpose of an EC2 Auto Scaling lifecycle hook?
- To pause instance launch or termination so custom actions can be performed (Correct answer)
- To set the desired capacity of an Auto Scaling group
- To trigger a CloudWatch alarm on scaling events
- To define the scaling policies for the group
Correct answer: To pause instance launch or termination so custom actions can be performed
Lifecycle hooks put instances in a wait state during launch or termination, allowing time to run scripts, drain connections, or register/deregister from services.
Question 3: Which AWS service provides managed service discovery for microservices running on ECS or EC2?
- AWS Cloud Map (Correct answer)
- Amazon Route 53
- AWS App Mesh
- Elastic Load Balancing
Correct answer: AWS Cloud Map
AWS Cloud Map allows you to register application resources and define custom names, enabling services to discover each other dynamically.
Question 4: Which ELB type is optimized for handling millions of requests per second with ultra-low latency at the TCP layer?
- Network Load Balancer (Correct answer)
- Application Load Balancer
- Gateway Load Balancer
- Classic Load Balancer
Correct answer: Network Load Balancer
Network Load Balancer operates at Layer 4 and is designed for extreme performance, handling millions of requests per second with very low latency.
Question 5: What does an EC2 Auto Scaling warm pool enable?
- Pre-initialized instances that can be quickly launched to handle demand spikes (Correct answer)
- A pool of reserved instances for cost savings
- A staging environment for testing new AMIs
- A secondary Auto Scaling group for blue/green deployments
Correct answer: Pre-initialized instances that can be quickly launched to handle demand spikes
A warm pool maintains a pool of pre-initialized EC2 instances that have completed their bootstrap process, enabling faster scale-out response times.
Question 6: Which Route 53 routing policy distributes traffic based on the geographic location of DNS queries?
- Geolocation routing (Correct answer)
- Latency-based routing
- Weighted routing
- Failover routing
Correct answer: Geolocation routing
Geolocation routing in Route 53 routes traffic to resources based on the geographic location of the user, enabling region-specific content serving.
Which AWS Auto Scaling policy adjusts capacity based on a target value for a specific metric, such as 70% CPU utilization?