Bird
0
0

Which of the following is a valid primary key type in DynamoDB?

easy📝 Conceptual Q2 of 15
AWS - DynamoDB
Which of the following is a valid primary key type in DynamoDB?
AComposite key with partition key and sort key
BMultiple partition keys
CMultiple sort keys
DNo key required
Step-by-Step Solution
Solution:
  1. Step 1: Recall DynamoDB primary key types

    DynamoDB supports simple primary keys (partition key only) or composite keys (partition key + sort key).
  2. Step 2: Evaluate options

    Multiple partition or sort keys are not supported; a table must have exactly one partition key and optionally one sort key.
  3. Final Answer:

    Composite key with partition key and sort key -> Option A
  4. Quick Check:

    Primary key type = Composite key allowed [OK]
Quick Trick: Primary key can be simple or composite only [OK]
Common Mistakes:
  • Trying to use multiple partition keys
  • Omitting the partition key
  • Assuming no key is allowed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes