AWS - DynamoDBYou 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 numbersBNumber (N) type for each phone numberCList (L) type to hold multiple phone numbersDMap (M) type with phone numbers as keysCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify attribute types for multiple valuesDynamoDB supports List (L) type to store ordered collections of values.Step 2: Choose best type for multiple phone numbersList type is best to store multiple phone numbers as separate elements.Final Answer:List (L) type to hold multiple phone numbers -> Option CQuick Check:Multiple values = List type [OK]Quick Trick: Use List type for multiple values in one attribute [OK]Common Mistakes:Using string with commasUsing number type for multiple valuesUsing map incorrectly
Master "DynamoDB" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes CloudWatch - Why monitoring matters - Quiz 9hard DynamoDB - DynamoDB capacity modes (on-demand, provisioned) - Quiz 3easy Elastic Load Balancing - Application Load Balancer (ALB) - Quiz 14medium Elastic Load Balancing - Cross-zone load balancing - Quiz 5medium RDS and Relational Databases - Multi-AZ deployment for high availability - Quiz 7medium RDS and Relational Databases - RDS security (encryption, security groups) - Quiz 1easy RDS and Relational Databases - RDS supported engines - Quiz 4medium RDS and Relational Databases - RDS backup and snapshots - Quiz 3easy SNS and SQS - SNS topics and subscriptions - Quiz 10hard SNS and SQS - Standard vs FIFO queues - Quiz 3easy