Quizzes · Service

DynamoDB

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

Works with: IAM (8), Lambda (5), VPC (5), EC2 (4), RDS (2), API Gateway (1)

  • 15 questions, from a pool of 21
  • 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 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 report job only reads items from the Todos table. Which policy follows the principle of least privilege?

Choose one answer

Learn it: IAM policy

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 4The 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 5Todo.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 6How does Todo.io's app read and write DynamoDB?

Choose one answer

Learn it: DynamoDB

Question 7Todo.io's app gets AccessDeniedException when it calls PutItem on the Todos table. What should be fixed?

Choose one answer

Learn it: DynamoDB · IAM policy

Question 8Todo.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 9Todo.io wants traffic from its VPC to DynamoDB to stay off the internet, without paying extra for it. What should it add?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · DynamoDB · NAT gateway

Question 10How should Todo.io design a DynamoDB table so that reads are fast?

Choose one answer

Learn it: DynamoDB

Question 11A 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 12Todo.io needs to store login sessions: millions of them, always looked up by session id, never joined to anything. Which service fits best?

Choose one answer

Learn it: DynamoDB

Question 13With DynamoDB, which of these does Todo.io manage?

Choose one answer

Learn it: DynamoDB

Question 14Todo.io created its Todos table in us-east-1. An app in eu-west-1 calls DynamoDB in eu-west-1 and gets ResourceNotFoundException. Why?

Choose one answer

Learn it: Region · DynamoDB

Question 15A policy should cover only the Todos table, in us-east-1, in account 111122223333. Which Resource is right?

Choose one answer

Learn it: ARN (Amazon Resource Name)

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 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 18Todo.io needs SQL reports with joins, so it moves its todos from DynamoDB to RDS MySQL. DynamoDB lived outside the VPC. Where does the new database go?

Choose one answer

Learn it: RDS (Relational Database Service) · Subnet · VPC (Virtual Private Cloud)

Question 19What does "DynamoDB" mean?

Choose one answer

Learn it: DynamoDB

Question 20Which term is this? "A fully managed NoSQL database you use through AWS API calls."

Choose one answer

Learn it: DynamoDB

Question 21Which AWS term is described by this analogy? "A giant labelled locker wall where you fetch lockers by their exact key."

Choose one answer

Learn it: DynamoDB