Q13 — AWS SAA-C03 Ch.3
Question 13 of 65 | ← Chapter 3
Q143. A company runs its ecommerce application on AWS. Every new order is published as a message in a RabbitMQ queue that runs on an Amazon EC2 instance in a single Availability Zone. These messages are processed by a different application that runs on a separate EC2 instance. This application stores the details in a PostgreSQL database on another EC2 instance. All the EC2 instances are in the same Availability Zone.The company needs to redesign its architecture to provide the highest availability with the least operational overheadWhat should a solutions architect do to meet these requirements?
- A. Migrate the queue to a redundant pair (active/standby) of RabbitMQ instances on Amazon MQ. Create a Multi-AZ Auto Scaling group for EC2 instances that host the application. Create another Multi-AZ Auto Scaling group for EC2 instances that host the PostgreSQL database.
- B. Migrate the queue to a redundant pair (active/standby) of RabbitMQ instances on Amazon MQ. Create a Multi-AZ Auto Scaling group for EC2 instances that host the application. Migrate the database to run on a Multi-AZ deployment of Amazon RDS for PostgreSQL. ✓
- C. Create a Multi-AZ Auto Scaling group for EC2 instances that host the RabbitMQ queue. Create another Multi-AZ Auto Scaling group for EC2 instances that host the application. Migrate the database to run on a Multi-AZ deployment of Amazon RDS for PostgreSQL.
- D. Create a Multi-AZ Auto Scaling group for EC2 instances that host the RabbitMQ queue. Create another Multi-AZ Auto Scaling group for EC2 instances that host the application. Create a third Muti-AZ Auto Scaling group for EC2 instances that host the PostgreSQL database.
Correct Answer: B. Migrate the queue to a redundant pair (active/standby) of RabbitMQ instances on Amazon MQ. Create a Multi-AZ Auto Scaling group for EC2 instances that host the application. Migrate the database to run on a Multi-AZ deployment of Amazon RDS for PostgreSQL.
Explanation
Option A suggests creating Multi-AZ Auto Scaling groups for EC2 instances that host the application and PostgreSQL database, but it does not address the need for a redundant RabbitMQ instance.Option C suggests creating Multi-AZ Auto Scaling groups for EC2 instances that host the RabbitMQ queue and application, but it does not address the need for a Multi-AZ deployment of the database.Option D suggests creating three Multi-AZ Auto Scaling groups for each EC2 instance type, which is not necessary and will likely lead to higher operational overhead.Migrating the queue to a redundant pair of RabbitMQ instances on Amazon MQ will ensure high availability and fault tolerance. Migrating the database to run on a Multi-AZ deployment of Amazon RDS for PostgreSQL will also provide high availability and automatic failover without requiring manual intervention. Creating a Multi-AZ Auto Scaling group for EC2 instances that host the application will ensure that there are always enough instances running to handle incoming requests.