Skip to content

Introduction to DynamoDB Exam Tips

  • Amazon DynamoDB is a low-latency NoSQL database
  • Consists of tables, Items, and Attributes
  • Supports both document and key-value data models
  • Supported document formats are: JSON, HTML, and XML.
  • Two types of Primary Key:
    1. Partition Key (e.g. UserId, ProductId, etc.)
    2. Composite Key (Combination of Partition Key and Sort Key - e.g. Timestamp, date, etc.)
  • Two Consistency Models:
    1. Strongly Consistent - Returns a result that reflects all writes that received a successful response prior to the read.
    2. Eventually Consistent - Consistency across all copies of data is usually reached within a second. Repeating a read after a short time should return the updated data. (Best Read Performance)
  • Access is controlled using IAM policies
    • Fine-grained access control using IAM Condition Parameter: dynamodb:LeadingKeys to allow users to access only the items where the partition key value matches their user ID.