Quizzes · Glossary term

Lambda

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

  • 15 questions, from a pool of 22
  • 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 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 2Todo.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 3Todo.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 4Todo.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 5Which 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 6Todo.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 7Todo.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 8How is Todo.io billed for a Lambda function?

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda · IAM role

Question 12Todo.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 13Todo.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 14A 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 15Todo.io moves its API to Lambda. Which of these is still Todo.io's job?

Choose one answer

Learn it: Lambda

Question 16Todo.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 17Todo.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 18Todo.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 19Todo.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 20What does "Lambda" mean?

Choose one answer

Learn it: Lambda

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

Choose one answer

Learn it: Lambda

Question 22Which 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