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
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
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
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
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
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
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
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
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
When using replication, which AWS service ensures compliance and disaster recovery? a) AWS CloudWatch b) AWS CloudFormation c) S3 Replication d) AWS Lambda
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
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
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
Access logs include which of the following details? a) Request timestamps b) Object contents c) Lifecycle rule execution d) Replication status
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
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
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
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
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
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
Which log format is used for server access logging? a) JSON b) Plain text c) Apache Common Log Format d) XML
Answer Key
Qno
Answer
1
b) Tracks changes to objects with unique version IDs
2
a) aws s3api put-bucket-versioning
3
c) A delete marker is created
4
b) Use the AWS CLI or console to enable it
5
c) Event Notifications
6
a) The source bucket must have versioning enabled
7
c) Same-Region Replication
8
d) Tags and permissions can be replicated
9
c) S3 Replication
10
c) Grants permissions to perform replication
11
c) Track requests to the bucket
12
d) Any S3 bucket specified during configuration
13
a) Request timestamps
14
c) They are delivered periodically
15
a) Write permissions on the target bucket
16
b) Adds an extra layer of security for deletion operations