DOP-C02 Question 160
Select 3Your organization runs a customer-facing e-commerce platform. During seasonal sales events, your platform experiences traffic spikes that are 10 times higher than the average daily traffic. You are tasked with implementing a scalable architecture to handle these spikes while optimizing cost. Which of the following solutions would best address these requirements?
- A
Use an Auto Scaling group with a predictive scaling policy to automatically adjust the number of EC2 instances based on historical traffic patterns.
- B
Manually provision additional EC2 instances before the sales event and terminate them afterward to handle the increased load.
- C
Implement Amazon CloudFront as a content delivery network (CDN) to cache static assets and reduce load on the origin servers.
- D
Configure an Amazon RDS database with a multi-AZ deployment and enable Read Replicas to handle increased read queries.
- E
Use AWS Lambda with Amazon API Gateway to replace the current application architecture and handle all incoming requests.
Show answer and explanation
Correct answers: A, C, D
Explanation
To implement a scalable solution for a traffic spike scenario, leveraging an Auto Scaling group with predictive scaling ensures the application servers can handle spikes dynamically. Using Amazon CloudFront reduces the load on backend servers by caching static assets closer to users, while configuring an Amazon RDS database with multi-AZ and Read Replicas ensures the database can handle increased read queries. Together, these solutions provide scalability, high availability, and cost optimization.
- A. Correct.
Correct. An Auto Scaling group with a predictive scaling policy can automatically scale EC2 instances up or down based on historical traffic patterns, ensuring the system is prepared for traffic spikes while optimizing costs during normal traffic levels.
- B. Incorrect.
Not correct. Manually provisioning EC2 instances is not scalable or cost-effective, as it requires manual intervention and can lead to resource wastage if not properly managed.
- C. Correct.
Correct. Amazon CloudFront can cache static assets closer to users, reducing load on the origin servers and improving performance during high traffic periods.
- D. Correct.
Correct. Configuring Amazon RDS with a multi-AZ deployment and Read Replicas ensures high availability and scalability for database queries during traffic spikes.
- E. Incorrect.
Not correct. While AWS Lambda and API Gateway are highly scalable, replacing the entire application architecture with this approach is not realistic for an e-commerce platform without significant re-architecture and testing. This is not a practical or cost-effective solution for existing applications.