Bird
0
0

You tried to enable versioning on an S3 bucket using this command: aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=enable. What is wrong?

medium📝 Debug Q6 of 15
AWS - S3 Fundamentals
You tried to enable versioning on an S3 bucket using this command: aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=enable. What is wrong?
AVersioning cannot be enabled via CLI.
BThe command should use 'set-bucket-versioning' instead of 'put-bucket-versioning'.
CThe bucket name must be specified with --name, not --bucket.
DThe Status value should be 'Enabled', not 'enable'.
Step-by-Step Solution
Solution:
  1. Step 1: Check Status parameter case sensitivity

    The Status value must be 'Enabled' with capital E, not 'enable'.
  2. Step 2: Validate command syntax

    The command 'put-bucket-versioning' and '--bucket' are correct; only the Status value is wrong.
  3. Final Answer:

    The Status value should be 'Enabled', not 'enable'. -> Option D
  4. Quick Check:

    Status value is case sensitive: 'Enabled' [OK]
Quick Trick: Status value must be 'Enabled' exactly [OK]
Common Mistakes:
  • Using lowercase 'enable' instead of 'Enabled'
  • Confusing command names
  • Wrong parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes