SAP-C02 practice question 1 of 35

A company runs an application in (he cloud that consists of a database and a website Users can post data to the website, have the data processed, and…

Full set: 689 questions

Domain Accelerate Workload Migration and Modernization

A company runs an application in (he cloud that consists of a database and a website Users can post data to the website, have the data processed, and have the data sent back to them in an email Data is stored in a MySQL database running on an Amazon EC2 instance The database is running in a VPC with two private subnets The website is running on Apache Tomcat in a single EC2 instance in a different VPC with one public subnet There is a single VPC peering connection between the database and website VPC. The website has suffered several outages during the last month due to high traffic Which actions should a solutions architect take to increase the reliability of the application? (Select THREE.)
Answer options
A: Place the Tomcat server in an Auto Scaling group with multiple EC2 instances behind an Application Load Balancer Correct answer
B: Provision an additional VPC peering connection
C: Migrate the MySQL database to Amazon Aurora with one Aurora Replica Correct answer
D: Provision two NAT gateways in the database VPC.
E: Move the Tomcat server to the database VPC
F: Create an additional public subnet in a different Availability Zone in the website VPC Correct answer
Correct Answer:
A. Place the Tomcat server in an Auto Scaling group with multiple EC2 instances behind an Application Load Balancer; C. Migrate the MySQL database to Amazon Aurora with one Aurora Replica; F. Create an additional public subnet in a different Availability Zone in the website VPC
Explanation

The application's reliability issues stem from single points of failure in both the web and database tiers. To address the website outages, the single EC2 instance must be replaced with a scalable and fault-tolerant architecture. Placing the Tomcat servers into an Auto Scaling group behind an Application Load Balancer (A) allows the application to handle traffic spikes and recover from instance failures. For this architecture to be highly available, it must operate across multiple Availability Zones (AZs), necessitating the creation of an additional public subnet in a different AZ (F). Furthermore, the single MySQL database instance is a critical single point of failure. Migrating to Amazon Aurora with a replica (C) introduces a managed, fault-tolerant database with automatic failover, significantly enhancing data tier reliability.

Why Incorrect

B. A single VPC peering connection is managed by AWS and is not a single point of failure; adding another is unnecessary and not possible between the same two VPCs.
D. NAT gateways are for outbound internet access from private subnets and do not help resolve outages caused by high inbound traffic to the website.
E. Moving the Tomcat server to the database VPC does not resolve the core issue of it being a single, non-scalable instance that fails under load.

References

1. Auto Scaling and Load Balancing (A

F): The AWS documentation states that to achieve high availability

you should distribute traffic across instances in multiple Availability Zones. An Application Load Balancer requires at least two AZs to be configured for fault tolerance. An Auto Scaling group works with the load balancer to automatically adjust capacity.

Source: AWS Documentation

"Tutorial: Set up a scaled and load-balanced application"

Step 2: Choose a VPC and subnets. The tutorial specifies selecting at least two public subnets in different Availability Zones.

2. Amazon Aurora for High Availability (C): Amazon Aurora is designed for high availability. An Aurora DB cluster consists of a primary DB instance and one or more Aurora Replicas. If the primary instance fails

Aurora automatically fails over to a replica.

Source: AWS Documentation

"High availability for Amazon Aurora"

Section: "Amazon Aurora high availability".

3. VPC Peering Redundancy (B): The infrastructure for a VPC peering connection is created to be neither a single point of failure nor a bandwidth bottleneck.

Source: AWS Documentation

"VPC Peering Guide"

Section: "VPC peering basics"

under "What is VPC peering?".

Scroll to Top