Bird
0
0

Given a DynamoDB Stream with StreamViewType set to KEYS_ONLY, what data will a stream record contain after an item update?

medium📝 Predict Output Q4 of 15
AWS - DynamoDB
Given a DynamoDB Stream with StreamViewType set to KEYS_ONLY, what data will a stream record contain after an item update?
AOnly the primary key attributes of the modified item
BThe entire item before and after the update
COnly the new attribute values after the update
DNo data is recorded for updates
Step-by-Step Solution
Solution:
  1. Step 1: Understand KEYS_ONLY StreamViewType

    KEYS_ONLY records only the primary key attributes of changed items.
  2. Step 2: Apply to update event

    After an update, only keys are recorded, not full or partial item images.
  3. Final Answer:

    Only the primary key attributes of the modified item -> Option A
  4. Quick Check:

    KEYS_ONLY = primary keys only [OK]
Quick Trick: KEYS_ONLY streams capture only keys, not item data [OK]
Common Mistakes:
  • Assuming full item data is included
  • Confusing KEYS_ONLY with NEW_IMAGE
  • Thinking no data is recorded

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes