AWS Certification: DynamoDB Questions

Amazon DynamoDB

Overview
Amazon DynamoDB is a key-value and document database that delivers single-digit millisecond performance at any scale. It’s a fully managed, multiregion, multimaster, durable database with built-in security, backup and restore, and in-memory caching for internet-scale applications. DynamoDB can handle more than 10 trillion requests per day and can support peaks of more than 20 million requests per second.
1. A company has setup an application in AWS that interacts with DynamoDB. It is required that when an item is modified in a DynamoDB table, an immediate entry is made to the associating application. How can this be accomplished? Choose 2 answers from the choices below.

A. Setup CloudWatch to monitor the DynamoDB table for changes. Then trigger a Lambda function to send the changes to the application.

B. Setup CloudWatch logs to monitor the DynamoDB table for changes. Then trigger AWS SQS to send the changes to the application.

C. Use DynamoDB streams to monitor the changes to the DynamoDB table.

D. Trigger a lambda function to make an associated entry in the application as soon as the DynamoDB streams are modified

Answer
C. & D.

2. A company is developing a web application to be hosted in AWS. This application needs a data store for session data.

As an AWS Solution Architect, which of the following would you recommend as an ideal option to store session data? Choose 2 answers from the options given below.


A. CloudWatch

B. DynamoDB

C. Elastic Load Balancing

D. ElastiCache

Answer
B. & D.

3. A company needs to have a fully managed NoSQL database on the AWS Cloud. This database must have an ability for backups and high availability.

Which Amazon database meets these requirements?


A. MySQL

B. Microsoft SQL Server

C. DynamoDB

D. Amazon Aurora

Answer
C. DynamoDB

4. A company wants to have a NoSQL database hosted on the AWS Cloud, but do not have the necessary staff to manage the underlying infrastructure. Which of the following choices would be ideal for this requirement?

A. AWS Aurora

B. AWS RDS

C. AWS DynamoDB

D. AWS Redshift

Answer
C. AWS DynamoDB

5. A mobile application hosted on AWS needs to access a Data Store in AWS. With each item measuring around 10KB in size, the latency of data access must remain consistent despite very high application traffic. Which of the following would be an ideal Data Store for the application?

A. AWS DynamoDB

B. AWS EBS Volumes

C. AWS Glacier

D. AWS Redshift

Answer
A. AWS DynamoDB

6. A team is building an application that must persist and index JSON data in a highly available data store. Latency of data access must remain consistent despite very high application traffic.

What service should the team choose for the above requirement?


A. Amazon EFS

B. Amazon Redshift

C. DynamoDB

D. AWS CloudFormation

Answer
C. DynamoDB

7. An application currently writes a large number of records to a DynamoDB table in one region. There is a requirement for a secondary application to retrieve new records written to the DynamoDB table every 2 hours and process the updates accordingly. Which of the following is an ideal way to ensure that the secondary application gets the relevant changes from the DynamoDB table?

A. Insert a timestamp for each record and then scan the entire table for the timestamp asper the last 2 hours.

B. Create another DynamoDB table with the records modified in the last 2 hours.

C. Use DynamoDB Streams to monitor the changes in the DynamoDB table.

D. Transfer records to S3 which were modified in the last 2 hours.

Answer
C. Use DynamoDB Streams to monitor the changes in the DynamoDB table.

8. An application sends images to S3. The metadata for these images needs to be saved in persistent storage and is required to be indexed. Which of the following can be used for the underlying metadata storage?

A. AWS Aurora

B. AWS S3

C. AWS DynamoDB

D. AWS RDS

Answer
C. AWS DynamoDB

9. You are building a stateless architecture for an application which will consist of web servers and an Auto Scaling Group. Which of the following would be an ideal storage mechanism for Session data?

A. AWS DynamoDB

B. AWS Redshift

C. AWS EBS Volumes

D. AWS S3

Answer
A. AWS DynamoDB

10. You are developing a new mobile application which is expected to be used by thousands of customers.You are considering storing user preferences inAWS, and need a data store to save the same. Each data item is expected to be 20KB in size. The solution needs to be cost-effective, highly available, scalable and secure. How would you design the data layer?

A. Createa new AWS MySQL RDS instance and store the user data there.

B. Create a DynamoDB table with the required Read and Write capacity and use it as thedata layer.

C. Use Amazon Glacier to store the user data.

D. Use an Amazon Redshift Cluster for managing the user preferences.

Answer
B. Create a DynamoDB table with the required Read and Write capacity and use it as thedata layer.

11. You need to have a Data storage layer in AWS. Following are the key requirements:

a) Storage of JSON documents b) Availability of Indexes c) Automatic scaling Which of the following would be an ideal storage layer for the above requirements?


A. AWS DynamoDB

B. AWS EBS Volumes

C. AWS S3

D. AWS Glacier

Answer
A. AWS DynamoDB

12. Your company currently has an infrastructure hosted On-premises. You have been requested to devise an architecture on AWS for migrating some of the On-premises components. A current concern is the data storage layer. Minimum administrative overheads are also required for the underlying infrastructure in AWS. Which of the following would be included in your proposed architecture? Choose 2 answers from the options given below.

A. Use DynamoDB to store data in tables.

B. UseEC2 to host the data on EBS Volumes.

C. Use the Simple Storage Service to store data.

D. UseAWS RDS to store the data.

Answer
A. & C.

13. Your company manages an application that currently allows users to upload images to an S3 bucket. These images are picked up by EC2 Instances for processing and then placed in another S3 bucket. You need an area where the metadata for these images can be stored. Which of the following would be an ideal data store for this?

A. AWSRedshift

B. AWSGlacier

C. AWS DynamoDB

D. AWSSQS

Answer
C. AWS DynamoDB