All Questions
Dynamodb medium

In 'Single Table Design', why are generic primary key names like `PK` and `SK` used instead of descriptive names like `UserID` and `OrderID`?

  1. A To reduce the storage overhead of the JSON keys in the underlying database files.
  2. B Key Overloading: It allows storing multiple diverse entity types in the same physical partitions, enabling complex queries that fetch related data in a single round-trip using prefix-based lookups.
  3. C It is required for the application to be compatible with older versions of the AWS SDK.
  4. D To make the data intentionally difficult for unauthorized users to read (Obfuscation).

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions