
Answer-first summary for fast verification
Answer: Move the website images onto an Amazon Elastic File System (Amazon EFS) file system that is mounted on every EC2 instance., Create an Amazon Machine Image (AMI) from the existing EC2 instance. Use the AMI to provision new instances behind an Application Load Balancer as part of an Auto Scaling group. Configure the Auto Scaling group to maintain a minimum of two instances. Configure an Amazon CloudFront distribution for the website.
## Explanation **Correct Answers: C and E** ### Why C is correct: - **Amazon EFS** provides a scalable, shared file system that can be mounted on multiple EC2 instances simultaneously. - This solves the problem of website images being stored on a single EBS volume attached to only one instance. - With EFS, all instances in the Auto Scaling group can access the same image files, ensuring consistency and availability. - EFS is designed for shared access across multiple instances, making it ideal for content that needs to be accessed by multiple web servers. ### Why E is correct: - **Auto Scaling with Application Load Balancer** improves resilience by distributing traffic across multiple instances and automatically replacing failed instances. - Maintaining a minimum of two instances ensures high availability. - **Amazon CloudFront** improves performance by caching static content (like images) at edge locations closer to users, reducing latency and offloading traffic from the origin servers. - CloudFront is specifically designed for content delivery and works well with S3 or EC2 origins. ### Why other options are incorrect: **A**: S3 buckets cannot be "mounted" on EC2 instances like file systems. While S3 is excellent for storing static assets, it requires applications to use the S3 API to access objects, not a file system mount. **B**: Using NFS share from the primary EC2 instance creates a single point of failure. If the primary instance fails, the NFS share becomes unavailable to other instances. **D**: While the Auto Scaling and Load Balancer parts are correct, AWS Global Accelerator is designed for improving availability of TCP/UDP applications, not specifically for website performance. CloudFront (in option E) is more appropriate for website content delivery. ### Key Architecture Improvements: 1. **Resilience**: Auto Scaling group with minimum 2 instances + Application Load Balancer 2. **Shared Storage**: EFS for shared access to website images across all instances 3. **Performance**: CloudFront for content delivery network (CDN) capabilities This combination addresses both performance (through CloudFront caching) and resilience (through Auto Scaling and shared EFS storage).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company runs a website that uses a content management system (CMS) on Amazon EC2. The CMS runs on a single EC2 instance and uses an Amazon Aurora MySQL Multi-AZ DB instance for the data tier. Website images are stored on an Amazon Elastic Block Store (Amazon EBS) volume that is mounted inside the EC2 instance.
Which combination of actions should a solutions architect take to improve the performance and resilience of the website? (Choose two.)
A
Move the website images into an Amazon S3 bucket that is mounted on every EC2 instance
B
Share the website images by using an NFS share from the primary EC2 instance. Mount this share on the other EC2 instances.
C
Move the website images onto an Amazon Elastic File System (Amazon EFS) file system that is mounted on every EC2 instance.
D
Create an Amazon Machine Image (AMI) from the existing EC2 instance. Use the AMI to provision new instances behind an Application Load Balancer as part of an Auto Scaling group. Configure the Auto Scaling group to maintain a minimum of two instances. Configure an accelerator in AWS Global Accelerator for the website
E
Create an Amazon Machine Image (AMI) from the existing EC2 instance. Use the AMI to provision new instances behind an Application Load Balancer as part of an Auto Scaling group. Configure the Auto Scaling group to maintain a minimum of two instances. Configure an Amazon CloudFront distribution for the website.