SAA-C03 Question 263
Single answerA company runs a web application that experiences unpredictable traffic patterns. During peak traffic, the application becomes unresponsive due to resource constraints, and during low traffic periods, the company incurs unnecessary costs due to underutilized resources. What is the most appropriate solution to handle these challenges?
- A
Configure Amazon EC2 Auto Scaling to dynamically adjust the number of instances based on demand.
- B
Manually launch and terminate EC2 instances as traffic increases or decreases.
- C
Use an Amazon S3 bucket to host the web application, replacing the EC2 instances.
- D
Deploy a fixed number of EC2 instances and use Elastic Load Balancing to distribute traffic evenly.
Show answer and explanation
Correct answer: A
Explanation
Amazon EC2 Auto Scaling is designed to handle fluctuating traffic patterns by automatically adjusting the number of EC2 instances based on defined scaling policies. This ensures that the application remains responsive during peak traffic and minimizes costs during low traffic periods, making it the most appropriate solution for this scenario.
- A. Correct.
This is the correct answer. Amazon EC2 Auto Scaling allows you to automatically adjust the number of instances based on demand, ensuring the application scales out during high traffic and scales in during low traffic, optimizing both performance and cost.
- B. Incorrect.
Manually adjusting EC2 instances can be error-prone and is not scalable during sudden traffic spikes. It also doesn't address cost optimization effectively.
- C. Incorrect.
Amazon S3 is not suitable for hosting dynamic web applications that require compute resources. It is primarily used for static website hosting or object storage.
- D. Incorrect.
Using a fixed number of EC2 instances with Elastic Load Balancing can distribute traffic evenly, but it does not dynamically scale resources based on demand, leading to potential performance and cost inefficiencies.