Soru

Zorluk: OrtaS3 Reliability and Replication

A SysOps Administrator is setting up Amazon S3 Same-Region Replication (SRR) between a source bucket and a destination bucket in the same AWS account. The administrator enables versioning on the source bucket, creates an IAM role with the necessary S3 permissions, and defines the replication configuration. When the administrator runs the AWS CLI command `aws s3api put-bucket-replication` to apply the configuration, the command fails with an error. Which of the following is the most likely cause of this failure?

  1. The destination bucket does not have S3 versioning enabled.Cevap
  2. B
    The IAM user running the CLI command is missing the iam:PassRole permission to pass the replication role to the Amazon S3 service.
  3. C
    The KMS key policy for the destination bucket's default KMS encryption fails to allow the replication IAM role to perform key operations.
  4. D
    The replication IAM role's trust relationship policy contains specific S3 bucket action permissions rather than trust permissions for the service principal.

Cevap

The destination bucket does not have S3 versioning enabled.
Amazon S3 replication requires versioning to be enabled on both the source and destination buckets. If versioning is not enabled on the destination bucket, S3 will reject the replication configuration with an error when attempting to apply it.

Adım Adım Çözüm

1
Review the requirements for configuring Amazon S3 replication.
Identify that S3 replication requires bucket versioning to be enabled on both the source and destination buckets.
S3 replication relies on version IDs to track and copy object updates accurately across buckets.
2
Analyze the validation behavior of the put-bucket-replication API call.
Confirm that the S3 API validates the versioning state of both the source and target buckets during configuration application.
Amazon S3 performs synchronous validation to ensure the destination bucket is ready to receive versioned replicas.
3
Enable versioning on the destination bucket.
The destination bucket is properly configured for versioned object storage, allowing replication to succeed.
This satisfies the S3 replication pre-requisite, resolving the validation failure.

Anahtar Kavram

Amazon S3 replication requires bucket versioning to be enabled on both the source and destination buckets.
Bu soruyu puanla