Questions 28 to 30
Explanations for questions 28 to 30
We'll cover the following
Question 28
There is a new requirement for a database that will store a large number of records for an online store. You are evaluating the use of DynamoDB. Which of the following are AWS best practices for DynamoDB? (Select TWO)
- Use separate local secondary indexes for each item.
- Store objects larger than 400 KB in S3, and uses pointers in DynamoDB.
- Store more frequently and less frequently accessed data in separate tables.
- Use for BLOB data use cases.
- Use large files.
Correct Answer: 2, 3
Explanation: DynamoDB best practices include:
- Keep item sizes small.
- If you are storing serial data in DynamoDB that will require actions based on data/time, use separate tables for days, weeks, and months.
- Store more frequently and less frequently accessed data in separate tables.
- If possible, compress larger attribute values.
- Store objects larger than 400 KB in S3, and use pointers (S3 Object ID) in DynamoDB.
INCORRECT: “Use separate local secondary indexes for each item.” is incorrect as this is not a best practice.
CORRECT: “Store objects larger than 400 KB in S3, and use pointers in DynamoDB.” is the correct answer.
CORRECT: “Store more frequently and less frequently accessed data in separate tables.” is the correct answer.
INCORRECT: “Use for BLOB data use cases.” is incorrect as this is not a best practice.
INCORRECT: “Use large files.” is incorrect as this is not a best practice.
References: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/best-practices.html
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.