Bird
0
0

Which syntax correctly enables DynamoDB Streams on a table using AWS CLI?

easy📝 Syntax Q3 of 15
AWS - DynamoDB
Which syntax correctly enables DynamoDB Streams on a table using AWS CLI?
Aaws dynamodb set-stream --table MyTable --enabled true --view NEW_IMAGE
Baws dynamodb enable-stream --table MyTable --view NEW_IMAGE
Caws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE
Daws dynamodb create-stream --table-name MyTable --type NEW_IMAGE
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI command for enabling streams

    The correct command is 'update-table' with --stream-specification parameter.
  2. Step 2: Match correct syntax

    aws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE matches the correct syntax and parameters.
  3. Final Answer:

    aws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE -> Option C
  4. Quick Check:

    Enable streams CLI syntax = update-table with stream-specification [OK]
Quick Trick: Use update-table with --stream-specification to enable streams [OK]
Common Mistakes:
  • Using non-existent commands like create-stream
  • Wrong parameter names
  • Confusing enable with set commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes