S3 Replication Flashcards

1
Q

How many types of S3 replication are available in AWS?

A
  • Cross-region replication (CRR)

- Same-region replication (SRR)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How are buckets replicated?

A

Replication of objects from a SOURCE bucket to a DESTINATION bucket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is defined in the Replication Configuration?

A

It is a configuration that is applied to the source bucket and configures S3 to replicate from this source bucket to a destination bucket.

Additionally, it configures the IAM Role to use for the replication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Is there any IAM identity needed to perform S3 replication?

A

Yes, an IAM role must be defined in the Replication Configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do trust policy and permission policy look like for the IAM role to perform the replication?

A

The role is configured to allow the S3 service to assume it based on its trust policy.

The role’s permission policy grants access to read objects on the source bucket and replicate them in the destination bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is the IAM role trusted by default by the destination account? (in case of different accounts in use)

A

No, it is not trusted by default by the destination account.
You must add a bucket policy in the destination bucket to allow the IAM Role from the source account to access the bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What can be selected in the S3 Replication options?

A
  1. Which objects are replicated. (all or smaller subset)
  2. Select which storage class will be used by the destination bucket (same by default or cheaper if needed)
  3. Define ownership of the objects (same account as the source by default)
  4. Replication time control (RTC) - a guaranteed level of SLA for replication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens with the ownership of objects when the replication happens from and to different accounts?

A

If the buckets are in different accounts, the objects in the destination could be owned by the source account and destination account is not allowed access - this can be overwritten so the owner is the destination account and therefore has access to the bucket and its objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is RTC?

A

Replication Time Control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

For what is RTC used?

A

Adds a guaranteed level of SLA within 15 minutes for extra cost.

  • This is useful for buckets that must be in sync the whole time.
  • NOTE: without RTC this is a best-effort process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Is the replication of objects considered a best-effort process by default??

A

Yes, without RTC is a best-effort process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is replication retroactive?

A

No, objects already existing at the time of the activation of Replication will NOT be replicated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is mandatory in terms of versioning to perform Bucket replication?

A

Both buckets, source, and destination must have enabled versioning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Is Bucket replication a one-way or two-way process?

A

One-way, always from Source bucket to Destination bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are encrypted files handled by S3 replication?

A

S3 replication can handle objects that are unencrypted or encrypted by SSE-S3.

NOTE: SSE-KMS can also be handled but it is more complex to configure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can S3 replication handle objects encrypted by SSE-KMS?

A

Yes, but it is more complex to configure

17
Q

Can S3 replication work with objects encrypted with SSE-C?

A

No, because AWS does not have access to the keys. AWS does not have control over the keys and replication will not work.

18
Q

Does the source bucket owner require any permissions to objects to perform replication?

A

Yes, the source bucket owner must have access to the objects that are intended to be replicated.

19
Q

What will not be replicated from buckets?

A

System events, Glacier or Glacier Deep Archive.

20
Q

Are changes due to Lifecycle management replicated?

A

No.

21
Q

Is the deletion of objects replicated?

A

No.

22
Q

Why should you use SRR?

A
  1. Log aggregation
  2. Sync production and test accounts (data sync) (PROD to other environments replication)
  3. Resilience with strict sovereignty requirements (account level isolation)
23
Q

Why should you use CRR?

A
  1. Global resilience improvements
  2. Latency reduction
  3. Performance improvement