AWS - DynamoDBWhich of the following is a valid primary key type in DynamoDB?AComposite key with partition key and sort keyBMultiple partition keysCMultiple sort keysDNo key requiredCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall DynamoDB primary key typesDynamoDB supports simple primary keys (partition key only) or composite keys (partition key + sort key).Step 2: Evaluate optionsMultiple partition or sort keys are not supported; a table must have exactly one partition key and optionally one sort key.Final Answer:Composite key with partition key and sort key -> Option AQuick 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 keysOmitting the partition keyAssuming no key is allowed
Master "DynamoDB" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Request and response mapping - Quiz 5medium API Gateway - Lambda integration - Quiz 2easy AWS Lambda - Lambda execution model - Quiz 10hard AWS Lambda - Creating a Lambda function - Quiz 6medium Auto Scaling - Launch templates - Quiz 2easy DynamoDB - Put, get, and query operations - Quiz 15hard DynamoDB - Tables, items, and attributes - Quiz 4medium RDS and Relational Databases - RDS pricing considerations - Quiz 7medium RDS and Relational Databases - RDS backup and snapshots - Quiz 7medium SNS and SQS - SNS topics and subscriptions - Quiz 6medium