AWS Certified Solutions Architect – Professional (SAP-C02) — Question 452

A company needs to migrate its website from an on-premises data center to AWS. The website consists of a load balancer, a content management system (CMS) that runs on a Linux operating system, and a MySQL database.

The CMS requires persistent NFS-compatible storage for a file system. The new solution on AWS must be able to scale from 2 Amazon EC2 instances to 30 EC2 instances in response to unpredictable traffic increases. The new solution also must require no changes to the website and must prevent data loss.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Amazon EFS provides a fully managed, persistent, NFS-compatible file system that can be concurrently mounted by up to thousands of EC2 instances, making it ideal for the scaling CMS. AWS Elastic Beanstalk simplifies the deployment and scaling of the application, and utilizing `.ebextensions` allows automated mounting of the EFS volume during instance launch. Keeping the Amazon Aurora MySQL database outside of the Elastic Beanstalk environment prevents accidental database deletion during environment updates or termination, ensuring no data loss.