Bird
0
0

Which of the following is the correct JSON snippet to define an AWS Config rule that checks if S3 buckets have versioning enabled?

easy📝 Syntax Q3 of 15
AWS - Advanced Security
Which of the following is the correct JSON snippet to define an AWS Config rule that checks if S3 buckets have versioning enabled?
A{\"ConfigRuleName\": \"s3-bucket-versioning-enabled\", \"Source\": {\"Owner\": \"AWS\", \"SourceIdentifier\": \"S3_BUCKET_VERSIONING_ENABLED\"}}
B{\"ConfigRuleName\": \"s3-bucket-public-access\", \"Source\": {\"Owner\": \"AWS\", \"SourceIdentifier\": \"S3_BUCKET_PUBLIC_READ_PROHIBITED\"}}
C{\"ConfigRuleName\": \"ec2-instance-type-check\", \"Source\": {\"Owner\": \"AWS\", \"SourceIdentifier\": \"EC2_INSTANCE_TYPE_CHECK\"}}
D{\"ConfigRuleName\": \"iam-password-policy\", \"Source\": {\"Owner\": \"AWS\", \"SourceIdentifier\": \"IAM_PASSWORD_POLICY\"}}
Step-by-Step Solution
Solution:
  1. Step 1: Identify the rule for S3 bucket versioning

    The rule named "s3-bucket-versioning-enabled" with SourceIdentifier "S3_BUCKET_VERSIONING_ENABLED" checks versioning status.
  2. Step 2: Verify other options

    Other options check public access, EC2 instance types, or IAM policies, not versioning.
  3. Final Answer:

    JSON defining S3 bucket versioning enabled rule -> Option A
  4. Quick Check:

    Correct JSON for S3 versioning rule = {\"ConfigRuleName\": \"s3-bucket-versioning-enabled\", \"Source\": {\"Owner\": \"AWS\", \"SourceIdentifier\": \"S3_BUCKET_VERSIONING_ENABLED\"}} [OK]
Quick Trick: Match SourceIdentifier to rule purpose [OK]
Common Mistakes:
  • Choosing rules unrelated to versioning
  • Mixing rule names and identifiers
  • Incorrect JSON structure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes