AWS Certified Solutions Architect – Professional (SAP-C02) — Question 10
A company is running a two-tier web-based application in an on-premises data center. The application layer consists of a single server running a stateful application. The application connects to a PostgreSQL database running on a separate server. The application’s user base is expected to grow significantly, so the company is migrating the application and database to AWS. The solution will use Amazon Aurora PostgreSQL, Amazon EC2 Auto Scaling, and Elastic Load Balancing.
Which solution will provide a consistent user experience that will allow the application and database tiers to scale?
Answer options
- A. Enable Aurora Auto Scaling for Aurora Replicas. Use a Network Load Balancer with the least outstanding requests routing algorithm and sticky sessions enabled.
- B. Enable Aurora Auto Scaling for Aurora writers. Use an Application Load Balancer with the round robin routing algorithm and sticky sessions enabled.
- C. Enable Aurora Auto Scaling for Aurora Replicas. Use an Application Load Balancer with the round robin routing and sticky sessions enabled.
- D. Enable Aurora Scaling for Aurora writers. Use a Network Load Balancer with the least outstanding requests routing algorithm and sticky sessions enabled.
Correct answer: C
Explanation
The correct answer is C because enabling Aurora Auto Scaling for Aurora Replicas allows the read capacity to scale with the application load, while using an Application Load Balancer with round robin routing effectively distributes incoming traffic across multiple replicas. Options A and D incorrectly suggest using a Network Load Balancer, which is less suited for HTTP traffic and sticky sessions, while option B focuses on writers, which does not address the scaling of read operations efficiently.