🃏 DynamoDB Flashcards

Test your DynamoDB knowledge — keys, indexes, capacity, streams, and DAX.

Card 1 of 10

Question

What is the maximum item size in DynamoDB?

Click to reveal answer

Answer

400 KB per item, including attribute names and values.

Click to flip back

All DynamoDB Flashcards

1

Q: What is the maximum item size in DynamoDB?

A: 400 KB per item, including attribute names and values.

2

Q: GSI vs LSI: when must you create each?

A: LSI must be defined at table creation and shares the table partition key. GSI can be added anytime with a different partition key.

3

Q: How does DynamoDB on-demand capacity work?

A: DynamoDB instantly accommodates workloads as they ramp up or down. You pay per read/write request with no capacity planning.

4

Q: What are DynamoDB Streams?

A: An ordered sequence of item-level changes (INSERT, MODIFY, REMOVE). Records are available for 24 hours and can trigger Lambda functions.

5

Q: How do DynamoDB transactions work?

A: TransactWriteItems and TransactGetItems provide ACID transactions across up to 100 items or 4 MB. They consume 2x normal RCU/WCU.

6

Q: What is DAX?

A: DynamoDB Accelerator — an in-memory, write-through cache that delivers microsecond read latency. API-compatible with DynamoDB.

7

Q: What is a DynamoDB partition key design best practice?

A: Choose a high-cardinality attribute to distribute data evenly across partitions. Avoid hot partitions caused by skewed access patterns.

8

Q: What does TTL do in DynamoDB?

A: TTL automatically deletes expired items in the background without consuming WCU. Useful for session data, logs, and temporary records.

9

Q: How do you handle large items exceeding 400 KB?

A: Store the item metadata in DynamoDB and the large payload in S3. Store the S3 object key as an attribute.

10

Q: What consistency does a GSI support?

A: GSIs only support eventually consistent reads. For strongly consistent reads, query the base table.

More DVA-C02 Flashcard Decks