Quizzes · Glossary terms

Compute

Level 0 questions on every term listed under Compute.

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

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 5A 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 6Which 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 7Todo.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 8Todo.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 9Todo.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 10Todo.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 11What does "EC2 (Elastic Compute Cloud)" mean?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

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

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 13Which 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 14In 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 15Todo.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 16Code 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 17A 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 18What does each Fargate task get in Todo.io's VPC?

Choose one answer

Learn it: ECS and Fargate · ENI

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

Choose one answer

Learn it: ECS and Fargate · CloudWatch Logs

Question 21Todo.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 22Todo.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 23What does "ECS and Fargate" mean?

Choose one answer

Learn it: ECS and Fargate

Question 24Which 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 25Which 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 26A 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 27Todo.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 28Todo.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 29Todo.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 30Todo.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 31How is Todo.io billed for a Lambda function?

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda · IAM role

Question 35Todo.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 36Todo.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 37A 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 38Todo.io moves its API to Lambda. Which of these is still Todo.io's job?

Choose one answer

Learn it: Lambda

Question 39Todo.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 40Todo.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 41What does "Lambda" mean?

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda

Question 43Which 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 44Every 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 45Todo.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 46What 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 47Todo.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 48Todo.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 49Events 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 50Todo.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 51Todo.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 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 55One 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 56Todo.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 57What does "Dead-letter queue (DLQ)" mean?

Choose one answer

Learn it: Dead-letter queue (DLQ)

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

Choose one answer

Learn it: Dead-letter queue (DLQ)

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