Quizzes · Service

VPC

Level 0 questions on VPC. Read about it first if it's new to you.

Works with: EC2 (7), RDS (6), Lambda (5), DynamoDB (4), ECS + Fargate (3), SQS (2), API Gateway (1), IAM (1), S3 (1), CloudWatch Logs (1)

  • 15 questions, from a pool of 48
  • 1 correct answer of 4 each
  • Pass line 80%

Questions and answers come in a new order every time, and every choice is explained. Your answers feed your weak spots on the exam page; they don't change your exam score.

Question 1A teammate says a subnet is public because the instances in it have public IP addresses. What actually makes a subnet public?

Choose one answer

Learn it: Subnet · Internet gateway

Question 2Only Todo.io's app servers may connect to the MySQL database on port 3306. The app servers come and go during the day, so their private IP addresses keep changing. How should the database's security group allow them in?

Choose one answer

Learn it: Security group

Question 3A security group on Todo.io's app server allows inbound HTTPS (TCP 443) from anywhere. Someone deletes all of its outbound rules. What happens to the replies the server sends to users' HTTPS requests?

Choose one answer

Learn it: Security group

Question 4A brand-new AWS account wants to launch an EC2 instance right away, without designing a network. Where can it go?

Choose one answer

Learn it: VPC (Virtual Private Cloud)

Question 5Todo.io's app servers all sit in one subnet. Which Availability Zones does that subnet cover?

Choose one answer

Learn it: Subnet · Region

Question 6How many internet gateways can be attached to one VPC?

Choose one answer

Learn it: Internet gateway

Question 7Todo.io wants to block one abusive IP address from reaching its web server, while still allowing everyone else. Can it add that block to the server's security group?

Choose one answer

Learn it: Security group

Question 8What does a security group attach to?

Choose one answer

Learn it: ENI (Elastic Network Interface) · Security group

Question 9Where should Todo.io place its MySQL database inside the VPC?

Choose one answer

Learn it: Subnet · Security group

Question 10Servers in Todo.io's private subnets must download updates from the internet, but must not be reachable from it. Where does the NAT gateway go?

Choose one answer

Learn it: NAT gateway

Question 11Where does Todo.io's public API Gateway endpoint run, relative to its VPC?

Choose one answer

Learn it: API Gateway · VPC (Virtual Private Cloud)

Question 12Todo.io attaches its Lambda function to the VPC so it can reach the MySQL database in a private subnet. Since then, the function's calls to SQS time out. IAM allows sqs:SendMessage. What fixes it?

Choose one answer

Learn it: NAT gateway · Lambda · IAM policy · ENI

Question 13Todo.io stopped and started its web server overnight. Now users can't reach it at the public IP address they had. What happened?

Choose one answer

Learn it: Public IP address

Question 14An EC2 instance sits in a private subnet with no NAT gateway. It needs to download a software update from the internet. What happens?

Choose one answer

Learn it: NAT gateway · Subnet

Question 15Todo.io's web server is in a public subnet and has a public IP, but users get a timeout on HTTPS (port 443). What should be checked first?

Choose one answer

Learn it: Security group

Question 16What does each Fargate task get in Todo.io's VPC?

Choose one answer

Learn it: ECS and Fargate · ENI

Question 17Todo.io's Fargate tasks run in private subnets. Their IAM permissions are correct, but every call they make to SQS times out. What fixes it?

Choose one answer

Learn it: NAT gateway · IAM policy

Question 18Todo.io creates a new Lambda function and doesn't attach it to any VPC. Can it call DynamoDB?

Choose one answer

Learn it: Lambda · DynamoDB

Question 19When should Todo.io attach a Lambda function to its VPC?

Choose one answer

Learn it: Lambda

Question 20Todo.io's app can't connect to its RDS MySQL database: the connection times out. The password is correct. What is the most likely cause?

Choose one answer

Learn it: Security group · RDS (Relational Database Service)

Question 21Todo.io is creating a single-AZ RDS database, but its DB subnet group must include subnets in at least two Availability Zones. Why?

Choose one answer

Learn it: RDS (Relational Database Service) · Subnet

Question 22Unlike DynamoDB, where does an Amazon RDS database run?

Choose one answer

Learn it: RDS (Relational Database Service) · VPC (Virtual Private Cloud)

Question 23Todo.io's app on EC2, in a public subnet, calls DynamoDB. Which way does the request travel?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · DynamoDB · Internet gateway

Question 24Todo.io wants traffic from its VPC to DynamoDB to stay off the internet, without paying extra for it. What should it add?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · DynamoDB · NAT gateway

Question 25A Lambda function that isn't attached to a VPC writes to DynamoDB. Which security group is involved?

Choose one answer

Learn it: DynamoDB · Security group

Question 26Is Amazon S3 inside Todo.io's VPC?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · S3

Question 27An EC2 instance in a public subnet sends its log lines to CloudWatch Logs. Which way do they travel?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · CloudWatch Logs

Question 28What does "VPC (Virtual Private Cloud)" mean?

Choose one answer

Learn it: VPC (Virtual Private Cloud)

Question 29Which term is this? "Your own private network inside an AWS Region."

Choose one answer

Learn it: VPC (Virtual Private Cloud)

Question 30Which AWS term is described by this analogy? "A fenced-off private estate inside the city."

Choose one answer

Learn it: VPC (Virtual Private Cloud)

Question 31What does "Subnet" mean?

Choose one answer

Learn it: Subnet

Question 32Which term is this? "A slice of a VPC's addresses that lives in one Availability Zone."

Choose one answer

Learn it: Subnet

Question 33Which AWS term is described by this analogy? "One street on the estate."

Choose one answer

Learn it: Subnet

Question 34What does "Internet gateway" mean?

Choose one answer

Learn it: Internet gateway

Question 35Which term is this? "The VPC's door to the public internet."

Choose one answer

Learn it: Internet gateway

Question 36Which AWS term is described by this analogy? "The estate's front gate."

Choose one answer

Learn it: Internet gateway

Question 37What does "Public IP address" mean?

Choose one answer

Learn it: Public IP address

Question 38Which term is this? "An address the whole internet can reach."

Choose one answer

Learn it: Public IP address

Question 39Which AWS term is described by this analogy? "A street address printed on the outside of the building."

Choose one answer

Learn it: Public IP address

Question 40What does "Security group" mean?

Choose one answer

Learn it: Security group

Question 41Which term is this? "A firewall attached to a network card, listing what traffic is allowed in and out."

Choose one answer

Learn it: Security group

Question 42Which AWS term is described by this analogy? "A bouncer standing at one particular door, holding a guest list."

Choose one answer

Learn it: Security group

Question 43What does "ENI (Elastic Network Interface)" mean?

Choose one answer

Learn it: ENI (Elastic Network Interface)

Question 44Which term is this? "A virtual network card that gives something an address in a subnet."

Choose one answer

Learn it: ENI (Elastic Network Interface)

Question 45Which AWS term is described by this analogy? "A phone line installed in a particular room."

Choose one answer

Learn it: ENI (Elastic Network Interface)

Question 46What does "NAT gateway" mean?

Choose one answer

Learn it: NAT gateway

Question 47Which term is this? "Lets things in private subnets reach out to the internet, while nothing can reach in."

Choose one answer

Learn it: NAT gateway

Question 48Which AWS term is described by this analogy? "A one-way turnstile at the gate. Staff can go out, strangers can't walk in."

Choose one answer

Learn it: NAT gateway