Bird
0
0

You want to suspend versioning on an S3 bucket but accidentally run: aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Disabled. What will happen?

medium📝 Debug Q7 of 15
AWS - S3 Fundamentals
You want to suspend versioning on an S3 bucket but accidentally run: aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Disabled. What will happen?
AVersioning will be enabled instead.
BThe command will fail because 'Disabled' is not a valid status.
CVersioning will be suspended successfully.
DThe bucket will be deleted.
Step-by-Step Solution
Solution:
  1. Step 1: Check valid Status values

    Valid values are 'Enabled' or 'Suspended'. 'Disabled' is invalid and causes failure.
  2. Step 2: Effect of invalid Status

    The command will return an error and not change versioning state.
  3. Final Answer:

    The command will fail because 'Disabled' is not a valid status. -> Option B
  4. Quick Check:

    Use only 'Enabled' or 'Suspended' for Status [OK]
Quick Trick: Status must be Enabled or Suspended only [OK]
Common Mistakes:
  • Using 'Disabled' instead of 'Suspended'
  • Expecting command to succeed with invalid status
  • Confusing suspend with disable

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes