Bird
0
0

Which of the following is the correct AWS CLI command to enable versioning on an S3 bucket named 'my-bucket'?

easy📝 Syntax Q3 of 15
AWS - S3 Fundamentals
Which of the following is the correct AWS CLI command to enable versioning on an S3 bucket named 'my-bucket'?
Aaws s3api set-versioning --bucket my-bucket --status enabled
Baws s3 enable-versioning --bucket my-bucket
Caws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled
Daws s3 versioning enable --bucket my-bucket
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI syntax for versioning

    The correct command uses 'put-bucket-versioning' with '--versioning-configuration Status=Enabled'.
  2. Step 2: Check option correctness

    Only aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled matches the exact AWS CLI syntax; others are invalid commands.
  3. Final Answer:

    aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled -> Option C
  4. Quick Check:

    Enable versioning CLI = put-bucket-versioning + Status=Enabled [OK]
Quick Trick: Use 'put-bucket-versioning' with Status=Enabled [OK]
Common Mistakes:
  • Using incorrect CLI commands
  • Wrong parameter names or casing
  • Assuming 'aws s3' commands enable versioning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes