Quizzes · Services

Compute

Level 0 questions on every service listed under Compute.

  • 15 questions, from a pool of 74
  • Most have 1 correct answer of 4; some ask for 2 of 5
  • 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 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 2What does a security group attach to?

Choose one answer

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

Question 3The Todo.io app runs on an EC2 instance and must write to a DynamoDB table. What is the most secure way to give it AWS credentials?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · Temporary credentials · IAM role · Design Todo.io on EC2

Question 4Todo.io runs its app on EC2. A security patch for the operating system is released. Whose job is it to install it?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 5Todo.io wants every new app server to start with the same operating system and the same software already installed. What should every launch use?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 6Todo.io's app server keeps running out of memory. What should Todo.io change?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 7A Linux test server runs for about 40 minutes a day and is stopped the rest of the time. How is it billed as an On-Demand instance?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 8Todo.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 9Todo.io's app on EC2 has a role attached through an instance profile. Where does the AWS SDK get the role's credentials from?

Choose one answer

Learn it: Temporary credentials · IAM role

Question 10An 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 11Todo.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 12Which of Todo.io's compute choices still leaves Todo.io patching an operating system?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · ECS and Fargate · Lambda

Question 13What does Amazon RDS do for Todo.io that running MySQL on its own EC2 instance would not?

Choose one answer

Learn it: RDS (Relational Database Service)

Question 14Todo.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 15Todo.io's app on EC2 writes log files, but nothing shows up in CloudWatch Logs. What is needed?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · CloudWatch Logs

Question 16An 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 17Todo.io moves its app from an EC2 instance to a Lambda function. On EC2, the app wrote to DynamoDB with a role attached through an instance profile. What gives the function the same access?

Choose one answer

Learn it: Lambda · EC2 (Elastic Compute Cloud) · IAM role

Question 18Todo.io's API gets a few hundred requests a day and sits idle most of the night, yet it runs on an EC2 instance around the clock. Which swap cuts the cost of the idle hours the most?

Choose one answer

Learn it: Lambda · EC2 (Elastic Compute Cloud) · ECS and Fargate

Question 19On 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 20Todo.io's app on EC2 swaps its RDS MySQL database for a DynamoDB table. With RDS, access came down to the database's security group and a password. What decides whether the app may write to the table now?

Choose one answer

Learn it: DynamoDB · RDS (Relational Database Service) · EC2 (Elastic Compute Cloud) · IAM policy

Question 21What does "EC2 (Elastic Compute Cloud)" mean?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 22Which term is this? "Rent a virtual server by the second."

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 23Which AWS term is described by this analogy? "Renting a computer you have to look after yourself."

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 24In Amazon ECS, what is a running copy of a container (or a group of containers that run together) called?

Choose one answer

Learn it: ECS and Fargate

Question 25Todo.io has packaged its app as a container. It wants to run it without managing any EC2 servers. What should it use?

Choose one answer

Learn it: ECS and Fargate

Question 26Code inside Todo.io's ECS task must send messages to SQS. Which role should be allowed sqs:SendMessage?

Choose one answer

Learn it: ECS and Fargate · IAM role

Question 27A Fargate task fails to start because ECS can't pull the container image or create its log stream. Which role is missing permissions?

Choose one answer

Learn it: ECS and Fargate

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

Choose one answer

Learn it: ECS and Fargate · ENI

Question 29Todo.io runs containers on ECS with Fargate. Who patches the operating system of the servers the tasks run on?

Choose one answer

Learn it: ECS and Fargate

Question 30How does output from Todo.io's containers on Fargate reach CloudWatch Logs?

Choose one answer

Learn it: ECS and Fargate · CloudWatch Logs

Question 31Todo.io's ECS service is set to keep two tasks running. One task crashes. What happens?

Choose one answer

Learn it: ECS and Fargate

Question 32Todo.io's monthly export takes about 40 minutes. Which compute choice can run it in one go without managing servers?

Choose one answer

Learn it: Lambda · ECS and Fargate

Question 33Todo.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 34Todo.io's Lambda function processes large uploads and always stops at exactly 15 minutes, unfinished. What is the right fix?

Choose one answer

Learn it: Lambda

Question 35What does "ECS and Fargate" mean?

Choose one answer

Learn it: ECS and Fargate

Question 36Which term is this? "Run containers on AWS. Pick the serverless option and AWS also runs the servers underneath."

Choose one answer

Learn it: ECS and Fargate

Question 37Which AWS term is described by this analogy? "Handing over a packed lunchbox and letting someone else heat it up."

Choose one answer

Learn it: ECS and Fargate

Question 38A Todo.io Lambda function must write to a DynamoDB table. How should it get that permission?

Choose one answer

Learn it: IAM role · Lambda

Question 39A developer may create Lambda functions, but gets AccessDenied when choosing an existing execution role for a new function. What is missing?

Choose one answer

Learn it: iam:PassRole

Question 40Todo.io's backend runs on Lambda. Browsers need an HTTPS address to send requests to. What should sit in front of the function?

Choose one answer

Learn it: API Gateway

Question 41Todo.io's API Gateway invokes its Lambda function. In Todo.io's setup, which policy says that API Gateway may invoke the function?

Choose one answer

Learn it: API Gateway · IAM policy · Lambda

Question 42Todo.io's Lambda function tries to push a message to a browser by POSTing to the WebSocket API's @connections URL, and gets AccessDenied. What fixes it?

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API) · IAM policy

Question 43Todo.io wants an API with no servers to patch or scale. Which combination is the classic serverless pattern?

Choose one answer

Learn it: API Gateway · Lambda

Question 44Todo.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 45How is Todo.io billed for a Lambda function?

Choose one answer

Learn it: Lambda

Question 46Todo.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 47When should Todo.io attach a Lambda function to its VPC?

Choose one answer

Learn it: Lambda

Question 48How many execution roles does a Lambda function have?

Choose one answer

Learn it: Lambda · IAM role

Question 49Todo.io's Lambda function prints log lines, but nothing appears in CloudWatch Logs. What is the most likely cause?

Choose one answer

Learn it: Lambda · CloudWatch Logs

Question 50Todo.io's worker is a Lambda function that handles messages from an SQS queue. How do the messages reach the function?

Choose one answer

Learn it: Lambda · SQS

Question 51A Lambda function with a 60-second timeout processes an SQS queue whose visibility timeout is 30 seconds. Some messages are processed twice. What is the fix?

Choose one answer

Learn it: Lambda · SQS (Simple Queue Service)

Question 52Todo.io moves its API to Lambda. Which of these is still Todo.io's job?

Choose one answer

Learn it: Lambda

Question 53A 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 54Todo.io's Lambda function, not attached to any VPC, swaps its DynamoDB table for an RDS MySQL database in a private subnet. Which two network changes let the function reach the database?

Choose two answers

Choose two.

Learn it: Lambda · Subnet · Security group · RDS (Relational Database Service) · NAT gateway

Question 55Todo.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

Learn it: SQS (Simple Queue Service) · Lambda · IAM policy · VPC (Virtual Private Cloud)

Question 56What does "Lambda" mean?

Choose one answer

Learn it: Lambda

Question 57Which term is this? "Upload a function; AWS runs it only when something calls it."

Choose one answer

Learn it: Lambda

Question 58Which AWS term is described by this analogy? "A taxi. You pay for the ride, not for owning the car."

Choose one answer

Learn it: Lambda

Question 59Every morning at 9:00, thousands of Todo.io users add todos within a few minutes. The app writes each todo straight to its database, which can't keep up, and some saves fail. No todo may be lost. What should Todo.io do?

Choose one answer

Learn it: SQS (Simple Queue Service) · Design Todo.io with the Queue add-on

Question 60Todo.io's worker reads jobs from a standard SQS queue. Very rarely, a todo is counted twice in a user's stats. What is the most likely cause, and the right fix?

Choose one answer

Learn it: SQS (Simple Queue Service) · Design Todo.io with the Queue add-on

Question 61What does it mean that an SQS queue decouples Todo.io's app from its worker?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 62Todo.io's worker is down for three days. Messages keep arriving in its standard SQS queue, which uses the default settings. What happens to them?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 63Todo.io's worker receives a message, then crashes before deleting it. What happens to the message?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 64One malformed message makes Todo.io's worker fail every time, so it is retried forever. How should Todo.io deal with messages like this?

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 65Todo.io's source queue is a FIFO queue. What kind of queue can be its dead-letter queue?

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 66Events about each todo must be processed in exactly the order they happened, and only once. Which queue fits?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 67Todo.io's app gets AccessDenied when it calls SendMessage on its queue. What should be fixed?

Choose one answer

Learn it: SQS (Simple Queue Service) · IAM policy

Question 68Todo.io moves "send a welcome email" out of sign-up and into a queue with a worker. What changes for a user who signs up?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 69What does "SQS (Simple Queue Service)" mean?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 70Which term is this? "A managed queue. One part of your system drops messages in, another takes them out later."

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 71Which AWS term is described by this analogy? "A ticket rail in a restaurant kitchen. Waiters clip orders up, cooks take them down when ready."

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 72What does "Dead-letter queue (DLQ)" mean?

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 73Which term is this? "A side queue where messages go after failing too many times."

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 74Which AWS term is described by this analogy? "The "problem orders" tray, so one bad order doesn't block the kitchen."

Choose one answer

Learn it: Dead-letter queue (DLQ)