MCQs on S3 Versioning, Replication, and Logging | Amazon AWS S3

AWS S3 is a highly scalable object storage service with robust features for data protection and accessibility. Key topics like Versioning ensure data integrity, Replication facilitates disaster recovery and compliance, and Logging provides critical insights into bucket access. Dive into these concepts with topic-wise MCQs designed for AWS practitioners and learners.


MCQs on Enabling Versioning for Data Integrity

  1. What does enabling versioning in an S3 bucket do?
    a) Automatically archives data to Glacier
    b) Tracks changes to objects with unique version IDs
    c) Compresses objects for storage optimization
    d) Deletes old versions automatically
  2. Which AWS CLI command enables versioning on an S3 bucket?
    a) aws s3api put-bucket-versioning
    b) aws s3api enable-versioning
    c) aws s3 put-versioning
    d) aws enable-versioning
  3. What happens when you delete an object in a versioned bucket without specifying a version ID?
    a) The object is permanently deleted
    b) The object is archived to Glacier
    c) A delete marker is created
    d) All versions of the object are deleted
  4. Versioning in an S3 bucket is disabled by default. What must you do to enable it?
    a) Modify the bucket policy
    b) Use the AWS CLI or console to enable it
    c) Add a lifecycle rule
    d) Enable MFA Delete
  5. Which of the following does NOT require S3 versioning to be enabled?
    a) MFA Delete
    b) Cross-Region Replication
    c) Event Notifications
    d) Object Lock

MCQs on Cross-Region and Same-Region Replication

  1. What is a prerequisite for enabling replication in S3?
    a) The source bucket must have versioning enabled
    b) Objects must be encrypted with a KMS key
    c) The destination bucket must be in a different region
    d) All objects must be publicly accessible
  2. Which type of replication copies data between buckets in the same AWS region?
    a) Cross-Region Replication
    b) Multi-AZ Replication
    c) Same-Region Replication
    d) Local Data Replication
  3. Which statement about replication is true?
    a) It requires manual copying of objects
    b) Replication can be configured without enabling versioning
    c) The replication process is bi-directional by default
    d) Tags and permissions can be replicated
  4. When using replication, which AWS service ensures compliance and disaster recovery?
    a) AWS CloudWatch
    b) AWS CloudFormation
    c) S3 Replication
    d) AWS Lambda
  5. What is the role of the IAM role in S3 replication?
    a) Restricts object permissions
    b) Manages lifecycle policies
    c) Grants permissions to perform replication
    d) Enables bucket logging

MCQs on Server Access Logging for Buckets

  1. What is the primary purpose of enabling server access logging on an S3 bucket?
    a) Improve bucket performance
    b) Encrypt bucket objects
    c) Track requests to the bucket
    d) Replicate bucket data
  2. Which bucket stores the access logs for an S3 bucket?
    a) The source bucket
    b) The destination bucket
    c) A CloudWatch bucket
    d) Any S3 bucket specified during configuration
  3. Access logs include which of the following details?
    a) Request timestamps
    b) Object contents
    c) Lifecycle rule execution
    d) Replication status
  4. How are access logs delivered to the target bucket?
    a) They are streamed in real-time
    b) They are stored as plaintext files
    c) They are delivered periodically
    d) They are encrypted with KMS keys
  5. What permissions are required to enable logging on an S3 bucket?
    a) Write permissions on the target bucket
    b) Admin permissions on the account
    c) Public read permissions on the source bucket
    d) Lifecycle permissions on the target bucket

Expert Section

  1. What does enabling MFA Delete on a versioned bucket provide?
    a) Restricts replication
    b) Adds an extra layer of security for deletion operations
    c) Disables bucket access logs
    d) Enables faster replication
  2. Can replication be used for buckets in different AWS accounts?
    a) No, it is restricted to the same account
    b) Yes, with appropriate permissions and policies
    c) No, it requires IAM federation
    d) Yes, but only with public buckets
  3. What is a typical use case for Same-Region Replication?
    a) Low-latency requirements
    b) Compliance with data residency laws
    c) Data transfer cost optimization
    d) Cross-account access
  4. Which AWS service can be integrated with S3 for event-based logging?
    a) AWS Lambda
    b) AWS Secrets Manager
    c) AWS CloudTrail
    d) AWS CodePipeline
  5. Which log format is used for server access logging?
    a) JSON
    b) Plain text
    c) Apache Common Log Format
    d) XML

Answer Key

QnoAnswer
1b) Tracks changes to objects with unique version IDs
2a) aws s3api put-bucket-versioning
3c) A delete marker is created
4b) Use the AWS CLI or console to enable it
5c) Event Notifications
6a) The source bucket must have versioning enabled
7c) Same-Region Replication
8d) Tags and permissions can be replicated
9c) S3 Replication
10c) Grants permissions to perform replication
11c) Track requests to the bucket
12d) Any S3 bucket specified during configuration
13a) Request timestamps
14c) They are delivered periodically
15a) Write permissions on the target bucket
16b) Adds an extra layer of security for deletion operations
17b) Yes, with appropriate permissions and policies
18b) Compliance with data residency laws
19a) AWS Lambda
20c) Apache Common Log Format

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top