Interview Prep/AWS/VPC and Networking

A new subnet's instances cannot be reached via SSH from the internet. Walk through the checks.

BeginnerScenarioVPC and Networking
Answer

Situation read → Connectivity needs an IGW route, a public IP, an SG rule and a NACL that allows it.

What I'd do →

  1. Subnet route table has 0.0.0.0/0 -> igw-...
  2. Instance has a public or Elastic IP
  3. SG allows TCP 22 from your IP
  4. NACL allows inbound 22 and outbound ephemeral ports
  5. Better, remove public SSH entirely and use SSM Session Manager: aws ssm start-session --target i-0abc

Why → Each layer can independently block; checking in packet order finds the break quickly.

Interview tip → Suggest Session Manager as the modern replacement.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking