AWS Certified Solutions Architect – Associate (SAA-C02) — Question 122
A web application runs on Amazon EC2 instances behind an Application Load Balancer. The application allows users to create custom reports of historical weather data. Generating a report can take up to 5 minutes. These long-running requests use many of the available incoming connections, making the system unresponsive to other users.
How can a solutions architect make the system more responsive?
Answer options
- A. Use Amazon SQS with AWS Lambda to generate reports.
- B. Increase the idle timeout on the Application Load Balancer to 5 minutes.
- C. Update the client-side application code to increase its request timeout to 5 minutes.
- D. Publish the reports to Amazon S3 and use Amazon CloudFront for downloading to the user.
Correct answer: A
Explanation
The correct answer is A because using Amazon SQS with AWS Lambda allows for asynchronous processing of report generation, freeing up the connections for other users. Option B would not solve the underlying issue of connection blocking, and increasing the idle timeout does not improve responsiveness. Option C only changes the client-side timeout without addressing server-side connection usage. Option D, while useful for distribution, does not address the report generation process itself.