AWS - S3 FundamentalsWhich 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 enabledBaws s3 enable-versioning --bucket my-bucketCaws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=EnabledDaws s3 versioning enable --bucket my-bucketCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall AWS CLI syntax for versioningThe correct command uses 'put-bucket-versioning' with '--versioning-configuration Status=Enabled'.Step 2: Check option correctnessOnly aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled matches the exact AWS CLI syntax; others are invalid commands.Final Answer:aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled -> Option CQuick 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 commandsWrong parameter names or casingAssuming 'aws s3' commands enable versioning
Master "S3 Fundamentals" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Account and Billing - Creating an AWS account - Quiz 1easy AWS Account and Billing - Billing dashboard overview - Quiz 3easy AWS Account and Billing - Setting up billing alerts - Quiz 6medium AWS CLI - Installing AWS CLI - Quiz 14medium EC2 Fundamentals - Why EC2 matters for compute - Quiz 1easy Identity and Access Management - Policy evaluation logic - Quiz 9hard S3 Fundamentals - S3 encryption options - Quiz 5medium S3 Fundamentals - S3 storage classes (Standard, IA, Glacier) - Quiz 5medium VPC Fundamentals - NAT Gateway for private subnet internet - Quiz 9hard VPC Fundamentals - Internet Gateway for public access - Quiz 2easy