Building a Scalable Web Application using EC2 and Load Balancing

INTERMEDIATE
120 minutes
5 tasks

In this lab, you will architect and deploy a highly available web application using Amazon EC2 and Elastic Load Balancing. The lab covers designing web server instances, applying auto-scaling policies, and configuring a load balancer to distribute incoming traffic evenly across multiple instances in different Availability Zones. You'll learn to configure health checks, secure connections with HTTPS, and optimize cost-effectiveness with the right scaling policies. This practice will help you understand key design patterns for scalable applications, preparing you for both exam scenarios and real-world implementation.

Scenario

A digital content company requires a scalable architecture for their web application that serves unpredictable peaks in traffic. The company anticipates at least a 40% increase in web traffic every month and wants to minimize operational costs. They've decided to use EC2 instances within a VPC in two Availability Zones to ensure high availability. They seek to automatically scale resources during high traffic periods and revert to minimal resources when traffic subsides, while maintaining HTTPs connections for security.

Learning Objectives

  • Configure a VPC with public and private subnets across two Availability Zones.
  • Deploy EC2 instances using t3.micro instance type and configure for scaling.
  • Implement an Elastic Load Balancer for distributing traffic.
  • Set up auto-scaling policies based on CPU utilization and scheduled actions.
  • Secure application traffic using HTTPS and configure health checks.

tasks (5)

task 1: Set up a VPC with public and private subnets

30 min

task 2: Launch and configure EC2 instances with Auto Scaling

25 min

task 3: Configure an Elastic Load Balancer

20 min

task 4: Implement Auto Scaling Policies and Monitor Traffic

25 min

task 5: Optimize Costs and Review Setup

30 min

Prerequisites

  • Basic understanding of VPC components and networking.
  • Familiarity with EC2 instance types and launching procedures.
  • Knowledge of load balancing concepts in AWS.
  • Understanding auto scaling and CloudWatch monitoring.
  • Basics of RDS databases and encryption best practices.

Skills Tested

Configuring VPCs with subnets, route tables, and Internet Gateways.Implementing auto-scaling with EC2 instances.Configuring Elastic Load Balancers with HTTPS.Setting up CloudWatch Alarms for monitoring and scaling.Deploying and configuring RDS databases with encryption.
    Building a Scalable Web Application using EC2 and Load Balancing - Hands-On Lab - CertiPass