Quizzes · Service

API Gateway

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

Works with: Lambda (4), IAM (2), DynamoDB (1), VPC (1)

  • 15 questions, from a pool of 16
  • 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'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 2A buggy client starts sending thousands of requests a second to Todo.io's API. Which API Gateway feature protects the backend?

Choose one answer

Learn it: API Gateway

Question 3Todo.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 4When a todo changes, Todo.io wants every open browser tab to update at once, without the browser asking again and again. What fits?

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API)

Question 5Which routes does every API Gateway WebSocket API have built in?

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API)

Question 6Todo.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 7Todo.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 8Which of these does API Gateway handle for Todo.io?

Choose one answer

Learn it: API Gateway

Question 9Where does Todo.io's public API Gateway endpoint run, relative to its VPC?

Choose one answer

Learn it: API Gateway · VPC (Virtual Private Cloud)

Question 10Hundreds of browsers hold WebSocket connections open to Todo.io. How does the backend send a message to one of them?

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API)

Question 11What does "API Gateway" mean?

Choose one answer

Learn it: API Gateway

Question 12Which term is this? "A managed HTTPS front door that passes requests to your code."

Choose one answer

Learn it: API Gateway

Question 13Which AWS term is described by this analogy? "A receptionist who takes every visitor's request and phones the right person."

Choose one answer

Learn it: API Gateway

Question 14What does "WebSocket (API Gateway WebSocket API)" mean?

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API)

Question 15Which term is this? "An API Gateway API that keeps each browser connection open, so your backend can push messages at any time."

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API)

Question 16Which AWS term is described by this analogy? "An open phone line instead of sending letters back and forth."

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API)