SAP-C02 exam dumps

SAP-C02 practice question 613 of 678

AWS Certified Solutions Architect - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAP-C02 Question 613

Single answer

A company has an on-premises three-tier application that includes a web layer, an application layer, and a MySQL database running on physical servers. The company wants to migrate this workload to AWS to achieve scalability, high availability, and cost optimization. The application must handle unpredictable traffic spikes and ensure minimal downtime during the migration. Which architecture should you recommend for this workload on AWS?

  1. A

    Migrate the workload to Amazon EC2 instances for the web and application layers, and use Amazon RDS for MySQL in a Multi-AZ deployment.

  2. B

    Migrate the workload to AWS Elastic Beanstalk for the web and application layers, and use Amazon Aurora with read replicas for the database layer.

  3. C

    Migrate the workload to Amazon EC2 instances in an Auto Scaling group for the web layer, AWS Lambda for the application layer, and Amazon DynamoDB for the database.

  4. D

    Migrate the workload to AWS Fargate for the web and application layers, and use Amazon RDS for MySQL in a single-AZ deployment.

Show answer and explanation

Correct answer: B

Explanation

The correct answer is to use AWS Elastic Beanstalk for the web and application layers and Amazon Aurora with read replicas for the database layer. AWS Elastic Beanstalk simplifies deployment and management while automatically scaling to handle traffic spikes. Amazon Aurora is a highly available, scalable, and cost-effective relational database that supports MySQL compatibility, making it a suitable replacement for the on-premises MySQL database. This architecture meets all the requirements of scalability, high availability, cost optimization, and minimal downtime during migration.

  • A. Incorrect.

    This solution provides scalability and high availability for the database using Amazon RDS with Multi-AZ deployment. However, it lacks cost optimization and cannot scale easily for unpredictable traffic spikes unless additional configurations, such as load balancers and Auto Scaling, are implemented.

  • B. Correct.

    This solution leverages AWS Elastic Beanstalk for managing the web and application layers, which abstracts infrastructure management and provides Auto Scaling for unpredictable traffic. Amazon Aurora with read replicas offers scalability, high availability, and cost optimization for the database layer, making this an ideal architecture for the requirements.

  • C. Incorrect.

    While Auto Scaling for the web layer is appropriate, using AWS Lambda for the application layer may not be suitable for a traditional three-tier application that requires stateful processing. Additionally, Amazon DynamoDB is a NoSQL database and may not support the relational schema of the MySQL database.

  • D. Incorrect.

    AWS Fargate is a good choice for containerized workloads, but using a single-AZ deployment for Amazon RDS compromises high availability, which is a critical requirement for the migration.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam