Question 1 A 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 2 Where does Todo.io's public API Gateway endpoint run, relative to its VPC?
Choose one answer Outside the VPC, as a managed AWS service with its own public endpoint. Correct. Like DynamoDB and SQS, it is a public AWS service. It doesn't need your subnets or a NAT gateway. Inside one of the VPC's public subnets. Not this one. API Gateway doesn't run in your subnets. Inside a private subnet, reached through a NAT gateway. Not this one. NAT is for things inside the VPC calling out, not for a public front door. On an EC2 instance that Todo.io launches. Not this one. It is fully managed; there is no instance to launch.
Learn it: API Gateway · VPC (Virtual Private Cloud)
Question 3 Unlike DynamoDB, where does an Amazon RDS database run?
Choose one answer Inside your VPC, in your subnets, with security groups deciding who can connect. Correct. DynamoDB is reached through a public AWS endpoint instead. Outside the VPC, behind a public AWS endpoint. Not this one. That describes DynamoDB. Only in your own data centre. Not this one. RDS runs in AWS. Inside the Lambda function that uses it. Not this one. Databases run on their own; functions connect to them.
Learn it: RDS (Relational Database Service) · VPC (Virtual Private Cloud)
Question 4 Todo.io's app on EC2, in a public subnet, calls DynamoDB. Which way does the request travel?
Choose one answer Out through the internet gateway to DynamoDB's public AWS endpoint. Correct. DynamoDB isn't inside your VPC. A gateway endpoint (Level 1) can keep this traffic off the internet. Straight to the table inside the VPC. Not this one. Tables don't live in your VPC. Through the RDS database. Not this one. RDS and DynamoDB are unrelated. Through an SQS queue. Not this one. Queues pass messages between your own components.
Learn it: VPC (Virtual Private Cloud) · DynamoDB · Internet gateway
Question 5 Todo.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 A VPC gateway endpoint for DynamoDB. Correct. Gateway endpoints (for DynamoDB and S3) add a route to the service that never leaves AWS, and cost nothing. A NAT gateway. Not this one. A NAT gateway costs per hour and per GB, and the traffic still goes out to the public endpoint. A public IP on every instance. Not this one. That puts more traffic on the internet, not less. Move the table into the VPC. Not this one. DynamoDB tables can't be placed in a VPC.
Learn it: VPC (Virtual Private Cloud) · DynamoDB · NAT gateway
Question 6 Is Amazon S3 inside Todo.io's VPC?
Choose one answer No. S3 is a public AWS service; traffic reaches it through the internet gateway, a NAT gateway or a gateway endpoint. Correct. Like DynamoDB and SQS, S3 sits outside every customer VPC. Yes. Each subnet has its own copy of every bucket. Not this one. Buckets live in a Region, not in subnets. Only in private subnets. Not this one. S3 isn't in any of your subnets. Only Lambda can reach S3. Not this one. Anything with permission and a network path can.
Learn it: VPC (Virtual Private Cloud) · S3
Question 7 An EC2 instance in a public subnet sends its log lines to CloudWatch Logs. Which way do they travel?
Choose one answer Out through the internet gateway to CloudWatch Logs' public AWS endpoint. Correct. Like SQS and DynamoDB, CloudWatch Logs is a public AWS service, not something inside the VPC. They stay inside the VPC; CloudWatch Logs runs in every subnet. Not this one. It runs outside every customer VPC. Through the RDS database. Not this one. Logs don't pass through databases. Through an SQS queue. Not this one. The agent sends straight to CloudWatch Logs.
Learn it: VPC (Virtual Private Cloud) · CloudWatch Logs
Question 8 On EC2, browsers reached Todo.io's app through the internet gateway, at the server's public IP. Todo.io moves the app to a Lambda function. What is the front door now?
Choose one answer Learn it: API Gateway · NAT gateway · VPC (Virtual Private Cloud) · Security group · Internet gateway
Question 9 Todo.io needs SQL reports with joins, so it moves its todos from DynamoDB to RDS MySQL. DynamoDB lived outside the VPC. Where does the new database go?
Choose one answer Inside the VPC, in private subnets, with a security group that only lets the app in. Correct. RDS runs inside your VPC, unlike DynamoDB. Databases go in private subnets with no route to the internet. Outside the VPC, like DynamoDB: RDS is a public AWS service too. Not this one. RDS runs inside your VPC, in your subnets. That's one of the biggest differences from DynamoDB. In a public subnet, so the app can reach it over the internet. Not this one. A database should never have a route to the internet. The app reaches it inside the VPC. Outside the VPC, reached through a free gateway endpoint. Not this one. Gateway endpoints exist only for S3 and DynamoDB, and RDS lives inside the VPC anyway.
Learn it: RDS (Relational Database Service) · Subnet · VPC (Virtual Private Cloud)
Question 10 Todo.io moves "update the monthly stats" out of its API function and into a worker, with an SQS queue between them. What should the API function's execution role gain?
Choose one answer sqs:SendMessage on that queue's ARN.Correct. Sending is an AWS API call approved by IAM. Least privilege: only the action the job needs, only on the queue it uses. sqs:* on *, so it keeps working if more queues are added.Not this one. That allows every SQS action on every queue in the account. Least privilege means the one action on the one queue. Nothing: open port 443 on the queue's security group instead. Not this one. SQS is a public AWS service outside your VPC, with no security group. IAM decides who may send. Nothing: an account's functions may send to its queues by default. Not this one. A function can do only what its execution role allows. Without the permission, SendMessage fails with AccessDenied.
Learn it: SQS (Simple Queue Service) · Lambda · IAM policy · VPC (Virtual Private Cloud)
Question 11 What does "VPC (Virtual Private Cloud)" mean?
Choose one answer Learn it: VPC (Virtual Private Cloud)
Question 12 Which term is this? "Your own private network inside an AWS Region."
Choose one answer Learn it: VPC (Virtual Private Cloud)
Question 13 Which AWS term is described by this analogy? "A fenced-off private estate inside the city."
Choose one answer Learn it: VPC (Virtual Private Cloud)