Bird
0
0

You want to store a list of phone numbers as an attribute in a DynamoDB item. Which attribute type should you use?

hard📝 Application Q8 of 15
AWS - DynamoDB
You want to store a list of phone numbers as an attribute in a DynamoDB item. Which attribute type should you use?
AString (S) type with comma-separated numbers
BNumber (N) type for each phone number
CList (L) type to hold multiple phone numbers
DMap (M) type with phone numbers as keys
Step-by-Step Solution
Solution:
  1. Step 1: Identify attribute types for multiple values

    DynamoDB supports List (L) type to store ordered collections of values.
  2. Step 2: Choose best type for multiple phone numbers

    List type is best to store multiple phone numbers as separate elements.
  3. Final Answer:

    List (L) type to hold multiple phone numbers -> Option C
  4. Quick Check:

    Multiple values = List type [OK]
Quick Trick: Use List type for multiple values in one attribute [OK]
Common Mistakes:
  • Using string with commas
  • Using number type for multiple values
  • Using map incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes