
Answer-first summary for fast verification
Answer: Employ a scheduled scaling policy for the EC2 instances. Manage the database on an Amazon Aurora PostgreSQL Multi-AZ DB cluster. Set up an Amazon EventBridge rule to trigger an AWS Lambda function for creating a larger Aurora Replica before a sale event, and failover to this replica. Establish another EventBridge rule to invoke a Lambda function to scale down the Aurora Replica after the event.
The best solution for handling the predictable traffic peaks during scheduled sale events is to use a scheduled scaling policy for the EC2 instances, as this allows you to plan for the exact times when the traffic will spike. Hosting the database on an Amazon Aurora PostgreSQL Multi-AZ DB cluster provides high performance and reliability. The use of Amazon EventBridge rules to manage the creation and scaling of a larger Aurora Replica before and after the sale events ensures efficient resource utilization while maintaining performance. While other options introduce more complexity or may not be as optimal in terms of scaling strategies, option D offers a balanced approach that closely aligns with the requirements of maximizing availability during the sale events.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A live-events company is planning to enhance the scalability of its ticket application on AWS, which experiences significant traffic spikes during scheduled sale events. The application operates on Amazon EC2 instances within an Auto Scaling group and utilizes PostgreSQL for its database. To ensure high availability during these peak periods, the company requires an effective scaling solution. What approach should be adopted to meet these requirements?
A
Implement a predictive scaling policy for the EC2 instances. Deploy the database on an Amazon Aurora PostgreSQL Serverless v2 Multi-AZ DB instance with auto-scaling read replicas. Develop an AWS Step Functions state machine to execute parallel AWS Lambda functions for pre-warming the database prior to a sale event. Establish an Amazon EventBridge rule to trigger the state machine.
B
Adopt a scheduled scaling policy for the EC2 instances. Utilize an Amazon RDS for PostgreSQL Multi-AZ DB instance with auto-scaling read replicas for the database. Set up an Amazon EventBridge rule to invoke an AWS Lambda function for creating a larger read replica before a sale event, and failover to this replica. Configure another EventBridge rule to invoke a Lambda function to scale down the read replica post-event.
C
Apply a predictive scaling policy for the EC2 instances. Host the database on an Amazon RDS for PostgreSQL Multi-AZ DB instance with auto-scaling read replicas. Construct an AWS Step Functions state machine to run parallel AWS Lambda functions for pre-warming the database before a sale event. Implement an Amazon EventBridge rule to activate the state machine.
D
Employ a scheduled scaling policy for the EC2 instances. Manage the database on an Amazon Aurora PostgreSQL Multi-AZ DB cluster. Set up an Amazon EventBridge rule to trigger an AWS Lambda function for creating a larger Aurora Replica before a sale event, and failover to this replica. Establish another EventBridge rule to invoke a Lambda function to scale down the Aurora Replica after the event.