Flashcardsfor IT Certifications

D1: DynamoDB Keys, Consistency & Operations

AWS Associate AWS Certified Developer – Associate exam practice questions · 14 flashcards

Question
Partition key vs composite key?
1 / 14

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 14 DynamoDB Keys, Consistency & Operations practice questions and answers
  1. Partition key vs composite key?
    Simple primary key: partition key only. Composite: partition key + sort key.
  2. Why high-cardinality partition keys?
    Distribute traffic evenly across partitions, avoiding hot keys.
  3. Strongly consistent read?
    Returns most recent data; ConsistentRead=true; 1 RCU per 4 KB; not on GSIs.
  4. Eventually consistent read?
    May return stale data briefly; half the RCU cost.
  5. Query vs Scan?
    Query finds items by key efficiently; Scan reads all items — slow and costly.
  6. GSI?
    Global secondary index: alternate partition/sort keys, own capacity, eventually consistent, add anytime.
  7. LSI?
    Local secondary index: same partition key, different sort key, created at table creation, strong consistency allowed.
  8. Projected attributes?
    Attributes copied into an index (KEYS_ONLY, INCLUDE, ALL).
  9. Conditional writes?
    Write only if condition holds (optimistic locking with version attribute).
  10. Batch operations?
    BatchGetItem (100 items) and BatchWriteItem (25 items); handle UnprocessedItems.
  11. TransactWriteItems?
    ACID transactions across up to 100 items.
  12. Calculate RCUs: 10 strongly consistent reads/s of 6 KB items?
    Each read = 2 RCU (round up 6 KB to 8 KB ÷ 4 KB) → 20 RCU.
  13. Calculate WCUs: 5 writes/s of 2.5 KB items?
    Each write = 3 WCU (round up to 3 KB) → 15 WCU.
  14. ProjectionExpression?
    Return only specific attributes to reduce data transfer.