Quizzes · The core four

Compute

Level 0 questions on Compute. Read the pillar first if it's new to you.

  • 15 questions, from a pool of 57
  • 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 1Todo.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 2The 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 3Todo.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 4Todo.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 5Todo.io's app server keeps running out of memory. What should Todo.io change?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 6A 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 7Todo.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 8Todo.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 9An 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 10Todo.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 11Which 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 12In 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 13Todo.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 14Code 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 15A 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 16What does each Fargate task get in Todo.io's VPC?

Choose one answer

Learn it: ECS and Fargate · ENI

Question 17Todo.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 18How does output from Todo.io's containers on Fargate reach CloudWatch Logs?

Choose one answer

Learn it: ECS and Fargate · CloudWatch Logs

Question 19Todo.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 20Todo.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 21Todo.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 22Todo.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 23How is Todo.io billed for a Lambda function?

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda · IAM role

Question 27Todo.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 28Todo.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 29A 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 30Todo.io moves its API to Lambda. Which of these is still Todo.io's job?

Choose one answer

Learn it: Lambda

Question 31Every 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 32Todo.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 33What 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 34Todo.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 35Todo.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 36One 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 37Todo.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 38Events 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 39Todo.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 40Todo.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 41Todo.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 42Todo.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 43What does "EC2 (Elastic Compute Cloud)" mean?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

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

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 45Which 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 46What does "ECS and Fargate" mean?

Choose one answer

Learn it: ECS and Fargate

Question 47Which 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 48Which 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 49What does "Lambda" mean?

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda

Question 51Which 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 52What does "SQS (Simple Queue Service)" mean?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 53Which 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 54Which 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 55What does "Dead-letter queue (DLQ)" mean?

Choose one answer

Learn it: Dead-letter queue (DLQ)

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

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 57Which 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)