Amazon ElastiCache for Redis | Backup and Restore Flashcards

1
Q

Can I test the Multi-AZ functionality?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Yes. If you have the “Multi-AZ” feature enabled on a cluster or replication group with one or more read replicas, you can trigger a failover. ElastiCache will respond in the same way as a real failure scenario – by detecting the failure, promoting the most up-to-date read replica to become the new primary, and then replacing the failed primary, attaching it as a new read replica in place of the one promoted. For more details on testing failover, please see documentation.

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

What is Backup and Restore?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Backup and Restore is a feature that allows customers to create snapshots of their ElastiCache for Redis clusters. ElastiCache stores the snapshots, allowing users to subsequently use them to restore Redis clusters.

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

What is a snapshot?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

A snapshot is a copy of your entire Redis cluster at a specific moment.

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

Why would I need snapshots?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Creating snapshots can be useful in case of data loss caused by node failure, as well as the unlikely event of a hardware failure. Another common reason to use backups is for archiving purposes. Snapshots are stored in Amazon S3, which is a durable storage, meaning that even a power failure won’t erase your data.

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

What can I do with a snapshot?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

You can use snapshots to warm start an ElastiCache for Redis cluster with preloaded data.

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

How does Backup and Restore work?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

When a backup is initiated, ElastiCache will take a snapshot of a specified Redis cluster that can later be used for recovery or archiving. You can initiate a backup anytime you choose or set a recurring daily backup with retention period of up to 35 days.

When you choose a snapshot to restore, a new ElastiCache for Redis cluster will be created and populated with the snapshot’s data. This way you can create multiple ElastiCache for Redis clusters from a specified snapshot.

Currently, ElastiCache uses Redis’ native mechanism to create and store an RDB file as the snapshot.

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

Where are my snapshots stored?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

The snapshots are stored in S3.

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

How can I get started using Backup and Restore?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

You can select to use the Backup and Restore feature through the AWS Management Console, through the ElastiCache APIs (CreateCacheCluster, ModifyCacheCluster and ModifyReplicationGroup API’s) and CLI. You can deactivate and reactivate the feature anytime you choose.

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

How do I specify which Redis cluster and node to backup?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Backup and Restore creates snapshots on a cluster basis. Users can specify which ElastiCache for Redis cluster to backup through the AWS Management Console, CLI or through the CreateSnapshot API. In a Replication Group, you can choose to backup the primary or any of the read-replica clusters. We recommend users enable backup on one of the read-replicas, mitigating any latency effect on the Redis primary.

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

Does ElastiCache for Memcached support Backup and Restore?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

No, snapshots are available only for ElastiCache for Redis.

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

How can I specify when a backup will take place?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Through the AWS Management Console, CLI or APIs you can specify when to start a single backup or a recurring backup. Users are able to:

Take a snapshot right now (through “Backup” console button in the “Redis” tab, or CreateSnapshot API)

Set up an automatic daily backup. The backup will take place during your preferred backup window. You can set that up through Creating/Modifying cluster via console or the CreateCacheCluster, ModifyCacheCluster or ModifyReplicationGroup API’s.

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

What is a backup window and why do I need it?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

The preferred backup window is the user-defined period of time during which your ElastiCache for Redis cluster backup will start. This is helpful if you want to backup at a certain time of day or to refrain from backups during a particularly high-utilization period.

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

What is the performance impact of taking a snapshot?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

While taking a snapshot, you may encounter increased latencies for a brief period at the node. Snapshots use Redis’s built-in BGSAVE and are subject to its strengths and limitations. In particular, the Redis process forks and the parent continues to serve requests while the child saves the data on disk and then exits. The forking increases the memory usage for the duration of the snapshot generation. When this memory usage exceeds that of the available memory of the node, swapping can get triggered, further slowing down the node. For this reason, we recommend generating snapshots on one of the read replicas (instead of the primary). Also, we suggest setting the reserved-memory parameter to minimize swap usage. See here for more details.

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

Can I create a snapshot from an ElastiCache for Redis read replica?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Yes. Creating a snapshot from a read replica is the best way to backup your data while minimizing performance impact.

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

In what regions is the Backup and Restore feature available?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Backup and Restore feature is available in all regions where ElastiCache service is available.

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

Can I export ElastiCache for Redis snapshots to an S3 bucket owned by me?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Yes. You can export your ElastiCache for Redis snapshots to an authorized S3 bucket in the same region as your cluster. For more details on exporting snapshots and setting the required permissions, please refer to this.

17
Q

Can I copy snapshots from one region to another?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Yes. You must first copy your snapshot into an authorized S3 bucket of your choice in the same region and then use the S3 PUT object- Copy API to copy it to a bucket in another region. For more details on copying S3 objects, please see this.

18
Q

I have multiple AWS accounts using ElastiCache for Redis. Can I use ElastiCache snapshots from one account to warm start an ElastiCache for Redis cluster in a different one?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Yes. You must first copy your snapshot into an authorized S3 bucket of your choice in the same region and then grant cross-account bucket permissions to the other account. For more details on S3 cross-account permissions, please see this. Finally, specify the S3 location of your RDB file during cluster creation through the Launch Cache Cluster Wizard in the console or through the CreateCacheCluster API.

19
Q

How much does it cost to use Backup and Restore?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Amazon ElastiCache provides storage space for one snapshot free of charge for each active ElastiCache for Redis cluster. Additional storage will be charged based on the space used by the snapshots with $0.085/GB every month (same price in all regions). Data transfer for using the snapshots is free of charge.

20
Q

What is the retention period?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Retention period is the time span during which the automatic snapshots are retained. For example, if a retention period is set for 5, a snapshot that was taken today will be retained for 5 days before being deleted. You can choose to copy one or more automatic snapshots to store them as manual so that they won’t be deleted after the retention period is over.

21
Q

How do I manage the retention of my automated snapshots?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

You can use the AWS Management Console or ModifyCluster API to manage the period of time your automated backups are retained by modifying the RetentionPeriod parameter. If you desire to turn off automated backups altogether, you can do so by setting the retention period to 0 (not recommended).

22
Q

What happens to my snapshots if I delete my ElastiCache for Redis cluster?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

When you delete an ElastiCache for Redis cluster, your manual snapshots are retained. You will also have an option to create a final snapshot before the cluster is deleted. Automatic snapshots are not retained.

23
Q

What nodes types support backup and restore capability?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

All ElastiCache for Redis instance node types besides t1.micro and t2 family support backup and restore:

Current Generation Nodes:

cache. m3.medium
cache. m3.large
cache. m3.xlarge
cache. m3.2xlarge
cache. m4.large
cache. m4.xlarge
cache. m4.2xlarge
cache. m4.4xlarge
cache. m4.10xlarge
cache. r3.large
cache. r3.xlarge
cache. r3.2xlarge
cache. r3.4xlarge
cache. r3.8xlarge
cache. r4.large
cache. r4.xlarge
cache. r4.2xlarge
cache. r4.4xlarge
cache. r4.8xlarge
cache. r4.16xlarge

Previous Generation Nodes:

cache. m1.small
cache. m1.medium
cache. m1.large
cache. m1.xlarge
cache. m2.xlarge
cache. m2.2xlarge
cache. m2.4xlarge
cache. c1.xlarge

24
Q

Can I use my own RDB snapshots stored in S3 to warm start an ElastiCache for Redis cluster?

Backup and Restore

Amazon ElastiCache for Redis | Database

A

Yes. You can specify the S3 location of your RDB file during cluster creation through the “Create Cluster” Wizard in the console or through the CreateCacheCluster API.