DynamoDB - with ServerlessWhich of the following is the correct way to enable DynamoDB Streams on a table using AWS CLI?Aaws dynamodb set-stream --table MyTable --enabled trueBaws dynamodb enable-stream --table MyTable --type NEW_IMAGECaws dynamodb create-stream --table-name MyTable --view-type KEYS_ONLYDaws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGESCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall AWS CLI command for enabling streamsThe correct command uses 'update-table' with '--stream-specification' to enable streams.Step 2: Verify syntax and parametersaws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES correctly sets StreamEnabled=true and specifies StreamViewType as NEW_AND_OLD_IMAGES.Final Answer:aws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES -> Option DQuick Check:Enable streams = update-table + stream-specification [OK]Quick Trick: Use update-table with stream-specification to enable streams [OK]Common Mistakes:MISTAKESUsing non-existent commands like enable-streamIncorrect parameter namesConfusing create-stream with enabling streams
Master "with Serverless" in DynamoDB9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More DynamoDB Quizzes Backup and Recovery - On-demand backups - Quiz 11easy Cost Optimization and Monitoring - Why cost management prevents surprises - Quiz 14medium Cost Optimization and Monitoring - Auto-scaling configuration - Quiz 13medium DynamoDB with AWS SDK - Expressions with SDK helpers - Quiz 12easy DynamoDB with AWS SDK - Boto3 (Python) client vs resource - Quiz 1easy DynamoDB with AWS SDK - Why SDK integration is essential - Quiz 6medium DynamoDB with Serverless - Lambda function with DynamoDB - Quiz 11easy DynamoDB with Serverless - Why DynamoDB pairs with Lambda - Quiz 12easy DynamoDB with Serverless - Lambda function with DynamoDB - Quiz 13medium Security and Access Control - Why IAM policies protect data - Quiz 7medium