Q9 — AWS SAA-C03 Ch.15
Question 9 of 100 | ← Chapter 15
Q1109. A company is hosting multiple websites for several lines of business under its registered parent domain. Users accessing these websites will be routed to appropriate backend Amazon EC2 instances based on the subdomain. The websites host static webpages, images, and server-side scripts like PHP and JavaScript.Some of the websites experience peak access during the first two hours of business with constant usage throughout the rest of the day. A solutions architect needs to design a solution that will automatically adjust capacity to these traffic patterns while keeping costs low. Which combination of AWS services or features will meet these requirements? (Select TWO.)
- A. AWS Batch
- B. Network Load Balancer
- C. Application Load Balancer ✓
- D. Amazon EC2 Auto Scaling ✓
- E. Amazon S3 website hosting
Correct Answer: C. Application Load Balancer, D. Amazon EC2 Auto Scaling
Explanation
To meet the company's requirements of automatically adjusting capacity to traffic patterns while keeping costs low for multiple websites hosted under a parent domain, with routing based on subdomains and serving static content as well as server-side scripts, the best combination of AWS services or features is:C. Application Load BalancerD. Amazon EC2 Auto ScalingAnalysis:Traffic Patterns:The websites experience peak access during the first two hours of business with constant usage throughout the rest of the day.Content:The websites host static webpages, images, and server-side scripts like PHP and JavaScript.Routing:Users accessing these websites are routed to appropriate backend Amazon EC2 instances based on the subdomain.Evaluation of Options:A. AWS Batch:AWS Batch is used for running batch computing workloads on AWS. It is not suitable for serving web traffic or dynamically scaling web applications.B. Network Load Balancer:A Network Load Balancer (NLB) operates at the Transport Layer (OSI Layer 4) and is optimized for low latency and high throughput.While it can route traffic, it is not designed to handle the content type and routing complexity required for web applications that serve static and dynamic content.C. Application Load Balancer:An Application Load Balancer (ALB) operates at the Application Layer (OSI Layer 7) and can route traffic based on HTTP headers and application-specific cookies.It supports content-based routing, which is ideal for routing traffic based on subdomains. It can also handle SSL termination and provide a single point of contact for application health checks.D. Amazon EC2 Auto Scaling:Amazon EC2 Auto Scaling allows you to automatically adjust the number of EC2 instances in your fleet based on demand.It is ideal for handling variable workloads and ensuring that your application can scale to meet traffic requirements while minimizing costs.E. Amazon S3 website hosting:Amazon S3 can be used to host static websites, but it does not support server-side scripting languages like PHP.Therefore, it is not suitable for this scenario where the websites also host server-side scripts.Conclusion:To meet the company's requirements, the best combination of AWS services is:Application Load Balancer (ALB): To handle routing based on subdomains and serving as a single point of contact for application traffic.Amazon EC2 Auto Scaling: To automatically adjust the number of EC2 instances based on traffic patterns, ensuring scalability and cost-efficiency.These services together provide a robust, scalable, and cost-effective solution for the company's web hosting needs.