
Answer-first summary for fast verification
Answer: Use Amazon MQ with active/standby brokers configured across two Availability Zones. Add an Auto Scaling group for the consumer EC2 instances across two Availability Zones. Use Amazon RDS for MySQL with Multi-AZ enabled.
## Explanation Option **D** offers the highest availability because: 1. **Amazon MQ with active/standby brokers** - This is a managed message broker service that provides automatic failover across Availability Zones, reducing operational complexity compared to self-managed ActiveMQ on EC2. 2. **Auto Scaling group for consumer EC2 instances** - This provides automatic scaling and self-healing capabilities. If a consumer instance fails, Auto Scaling will automatically launch a new instance to replace it, ensuring continuous message processing. 3. **Amazon RDS for MySQL with Multi-AZ enabled** - This provides automatic failover for the database with synchronous replication to a standby instance in another Availability Zone, managed by AWS. **Comparison with other options:** - **Option A**: Uses self-managed components (ActiveMQ on EC2, manual MySQL replication) which increases operational complexity and doesn't provide automatic failover. - **Option B**: Improves on A with Amazon MQ, but still uses manual EC2 instance management and manual MySQL replication. - **Option C**: Uses Amazon MQ and RDS Multi-AZ, but only has a single additional consumer EC2 instance without auto-scaling or self-healing capabilities. **Key benefits of Option D:** - **Managed services** reduce operational complexity - **Automatic failover** for all components - **Self-healing** capabilities through Auto Scaling - **Multi-AZ deployment** across all layers - **Highest availability** with minimal manual intervention
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company recently migrated a message processing system to AWS. The system receives messages into an ActiveMQ queue running on an Amazon EC2 instance. Messages are processed by a consumer application running on Amazon EC2. The consumer application processes the messages and writes results to a MySQL database running on Amazon EC2. The company wants this application to be highly available with low operational complexity.
Which architecture offers the HIGHEST availability?
A
Add a second ActiveMQ server to another Availability Zone. Add an additional consumer EC2 instance in another Availability Zone. Replicate the MySQL database to another Availability Zone.
B
Use Amazon MQ with active/standby brokers configured across two Availability Zones. Add an additional consumer EC2 instance in another Availability Zone. Replicate the MySQL database to another Availability Zone.
C
Use Amazon MQ with active/standby brokers configured across two Availability Zones. Add an additional consumer EC2 instance in another Availability Zone. Use Amazon RDS for MySQL with Multi-AZ enabled.
D
Use Amazon MQ with active/standby brokers configured across two Availability Zones. Add an Auto Scaling group for the consumer EC2 instances across two Availability Zones. Use Amazon RDS for MySQL with Multi-AZ enabled.