An enterprise operates a real-time analytics platform on AWS. The application tier runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The EC2 instances process transaction payloads, download supporting assets from an Amazon EBS gp3 volume, write raw transaction logs to an Amazon S3 bucket encrypted with an AWS KMS Customer Managed Key (CMK), and write transactional records to an Amazon Aurora PostgreSQL database. During weekly flash sales, traffic abruptly spikes from 100 requests per second to over 50,000 requests per second within one minute. During these spikes, the platform experiences the following issues: the ALB drops incoming requests with 502 Bad Gateway and 504 Gateway Timeout errors; the EC2 instances experience high CPU utilization and high disk queue lengths; the Aurora database writer instance experiences CPU exhaustion, and the single reader instance experiences significant replication lag; the application logs show multiple S3 '503 SlowDown' errors and KMS 'ThrottlingException' errors. Which of the following combinations of actions will resolve these performance bottlenecks? (Select TWO.)
- Request ELB pre-warming from AWS Support prior to the scheduled flash events, and configure Amazon S3 Bucket Keys on the destination S3 bucket to reduce KMS cryptographic requests.Answer
- Update the EC2 launch template to use EBS-optimized compute-optimized instance types with increased gp3 IOPS and throughput, and implement Aurora Auto Scaling to dynamically add reader replicas.Answer
- CConfigure Application Load Balancer target tracking scaling policies based on RequestCountPerTarget to allow the load balancer to scale out automatically to handle the flash traffic spikes.
- DConfigure the Application Load Balancer to direct database read queries to the Amazon Aurora Multi-AZ standby instance to reduce CPU utilization on the primary writer instance.
- EEnable EBS Multi-Attach on the gp3 volumes to share the assets folder across the EC2 instances, and create multiple KMS customer managed keys to rotate requests.