Question 63: You have setup a DynamoDB table for a gaming application data storage. There are millions of users using this application and data stored in DynamoDB table is in GB. Now it is a requirement that the data

stored in the DynamoDB should be retrieved in microseconds and also EC2 instance which is fetching this data should have permission to access this data. Which of the below options are correct for the given requirement?

A. You will be using ElasticCache with the Redix protocol.

B. You will be using the DAX

C. You will be using bigger EC2 instance.

D. You will be using access key credentials on the EC2 instance, so that it can access data stored in DynamoDB

E. You will be using IAM Role which has permission to access the DynamoDB and assign that role to EC2 instance.

1. A,B

2. B,C

3. C,D

4. B,E

5. A,E

Correct Answer : 4 Exp : In this question there are basically two requirements

1. Data should be retrieved from DynamoDB in microsecond level.

2. EC2 instance should have permission to access the data from DynamoDB table.

For accessing data in microsecond level need to use some caching solution and AWS provides the caching solution which can be used with the DynamoDB. This is DAX

Amazon DynamoDB is designed for scale and performance. In most cases, the DynamoDB response times can be measured in single-digit milliseconds. However, there are certain use cases that require response times in

microseconds. For these use cases, DynamoDB Accelerator (DAX) delivers fast response times for accessing eventually consistent data.

DAX is a DynamoDB-compatible caching service that enables you to benefit from fast in-memory performance for demanding applications. DAX addresses three core scenarios:

As an in-memory cache, DAX reduces the response times of eventually-consistent read workloads by an order of magnitude, from single-digit milliseconds to microseconds.

DAX reduces operational and application complexity by providing a managed service that is API-compatible with Amazon DynamoDB, and thus requires only minimal functional changes to use with an existing application.

For read-heavy or bursty workloads, DAX provides increased throughput and potential operational cost savings by reducing the need to over-provision read capacity units. This is especially beneficial for applications

that require repeated reads for individual keys.

Another requirement is to have permission for the application hosted on EC2 instance able to fetch the data from the DynamoDB, you will be creating an IAM Role which has permission for reading data from the DynamoDB

table. And assign that role to the EC2 instance, so that it can access the data from DynamoDB table. You should never store access keys credentials on the EC2 instance. This is not a secure solution.

4