Skip to content
Learn Netverks

Lesson

Step 12/36 33% through track

ec2-intro

EC2 introduction

Last reviewed May 28, 2026 Content v20260528
Track mode
none
Means
Read / quiz
Reading
~2 min
Level
beginner

This lesson

An orientation to the AWS track—cloud basics, IAM, core services, and how to practice safely in your own sandbox account.

You need a mental map of regions, IAM, and core services before touching production accounts or cloud interviews.

You will apply EC2 introduction in contexts like: Production hosting, data pipelines, and corporate cloud landing zones.

Read the lesson, reproduce steps in your AWS Free Tier or sandbox (console and optional AWS CLI), diagram the architecture in notes, and complete MCQs—no in-browser cloud lab. Also read the interview prep blocks; enable MFA and avoid using root for daily work.

After you can deploy a simple web app locally—when you will own infrastructure, study for Solutions Architect, or join a team on AWS.

Amazon EC2 (Elastic Compute Cloud) provides resizable virtual servers in the cloud. You choose an AMI (Amazon Machine Image), instance type, key pair, and security group to launch a VM.

Core concepts

  • Instance — a running virtual server
  • AMI — template OS + optional software (Amazon Linux, Ubuntu)
  • Instance type — vCPU, memory, network (e.g. t3.micro for learning)
  • Key pair — SSH public key AWS installs; you keep the private key
  • Security group — virtual firewall for instance ENI

Launch workflow (Console mental model)

  1. Choose region and AMI
  2. Select instance type (free tier eligible where noted)
  3. Configure storage (EBS root volume—next lesson)
  4. Configure security group (SSH only from your IP for learning)
  5. Review and launch with a key pair

List instances via CLI

aws ec2 describe-instances \
  --query 'Reservations[].Instances[].{Id:InstanceId,State:State.Name,Type:InstanceType}' \
  --output table

Practice: Launch resources in the EC2 Console or CLI only in a sandbox account. Use t2.micro or t3.micro where free tier applies; terminate when done.

SSH to instance (after launch)

# Replace paths and IP with your sandbox values
ssh -i ~/.ssh/my-sandbox-key.pem ec2-user@203.0.113.10

Free tier: Stop or terminate instances when not learning—EBS storage may still incur cost.

Important interview questions and answers

  1. Q: What is an AMI?
    A: Template image used to boot an EC2 instance with a chosen operating system.
  2. Q: Security group role?
    A: Stateful firewall controlling inbound/outbound traffic to the instance network interface.

Self-check

  1. What five concepts do you configure when launching EC2?
  2. Why restrict SSH to your IP in a security group?

Tip: Restrict SSH to your current IP—never 0.0.0.0/0 in production or long-lived sandboxes.

Interview prep

AMI?

Template image booting an EC2 instance with chosen OS and software.

Security group?

Stateful virtual firewall controlling traffic to instance network interface.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • AMI meaning?
  • Security group stateful?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump