CLF-C02 Question 167
Single answerYour company is building a new web application and needs a compute service that can automatically scale the number of instances based on demand. Which AWS compute service is best suited for this requirement?
- A
Amazon EC2 Auto Scaling
- B
AWS Lambda
- C
Amazon Elastic Kubernetes Service (EKS)
- D
AWS Fargate
Show answer and explanation
Correct answer: A
Explanation
Amazon EC2 Auto Scaling is the best choice for scenarios where you need to automatically scale the number of EC2 instances based on demand. It ensures high availability and cost-efficiency by dynamically adjusting the resources to match the workload. While other options like AWS Lambda, EKS, or Fargate are compute-related services, they are not specifically tailored to this requirement.
- A. Correct.
Amazon EC2 Auto Scaling is designed to automatically add or remove EC2 instances based on demand, making it ideal for applications that require dynamic scaling.
- B. Incorrect.
AWS Lambda is a serverless compute service that automatically scales based on the number of requests, but it is event-driven and may not be suitable for traditional web application hosting.
- C. Incorrect.
Amazon Elastic Kubernetes Service (EKS) is a managed Kubernetes service for orchestrating containers, but it requires additional setup and is not specifically designed for automatic instance scaling.
- D. Incorrect.
AWS Fargate is a serverless compute engine for containers, but it does not manage scaling of EC2 instances directly.