Certopolis

AWS Certified Solutions Architect – Professional

AWS Elastic Disaster Recovery failover and failback (SAP-C03)

The AWS Elastic Disaster Recovery guide says the service replicates source servers continuously at block level into a staging area, then launches drill or recovery instances from the latest state or an earlier point in time. Failover, meaning redirecting traffic, is done by you outside the service. Failback replicates data from the recovery instances back to the source.

Continuous replication: what RPO and RTO to expect

The AWS Replication Agent watches the blocks written to each source server's volumes and copies them straight to a staging area subnet in your AWS account. The staging area uses low-cost storage and minimal compute. Source servers can be on premises or in the cloud.

AWS states a crash-consistent recovery point objective (RPO) of seconds and a recovery time objective (RTO) that typically runs between 5 and 20 minutes. The RTO depends mostly on operating system boot time: an average Linux server boots in about 5 minutes and an average Windows server in about 20. At launch the service converts volumes that came from outside AWS so the instance boots natively on EC2.

The RPO holds only while the network and the staging resources keep up with the write rate. Ten servers that each write 10 MB per second need at least 100 MB per second of outbound bandwidth. If writes outrun the link, the RPO grows until replication catches up. Data still in application memory is not replicated until it is written to disk.

Point-in-time snapshots and drills

The service keeps point-in-time (PIT) snapshots, each a crash-consistent set of EBS snapshots, one per replicated volume. The default schedule keeps one every 10 minutes for the last hour, one an hour for the last 24 hours, and one a day for the last 7 days. Only the daily retention can be changed, from 1 to 365 days, in the replication settings. Longer retention adds EBS cost.

A recovery drill launches drill instances by the same process as a real recovery. It does not affect the source servers or ongoing replication, so you can launch from a chosen point in time and inspect it while protection continues.

Choosing the most recent data makes the service try to take a fresh snapshot, which needs a live connection to the source server and waits up to 10 minutes. If the source is offline, picking an existing point in time can be faster.

Recovery, failover and failback are separate steps

AWS defines the terms narrowly. Recovery is launching recovery instances on AWS. Failover is redirecting production traffic to them, which you do outside the service, typically with DNS such as Amazon Route 53. Failback returns the workload to the source infrastructure by replicating data from the recovery instances back.

For an on-premises source, you boot the Failback Client on the server that will receive the data. It supports x86_64 servers only. The client connects to the recovery instance on TCP 1500, over a VPN or Direct Connect or a public IP, so the recovery instance must allow TCP 1500 inbound and TCP 443 outbound. The receiving server's volumes must be the same size as the recovery instance's or larger.

The target matters for speed. Failing back to the original source server replicates only the changes made after recovery. Failing back to a different server synchronizes all the data. When the recovery instance shows Ready, you choose Failback, which stops replication and starts the conversion.

How is it different from MGN?

Both services replicate servers into a staging area with an agent. The difference is the end state. AWS Transform MGN, the migration service, is built for a one-time move: finalizing a cutover stops replication, discards the replicated data and terminates the replication resources.

Elastic Disaster Recovery is meant to keep replicating during normal operation, with periodic drills, a history of points in time to recover from, and a path back to the primary site. After a recovery you can also choose to keep the applications in AWS.

Where the exam catches people

  • Believing Elastic Disaster Recovery moves users to the recovery instances: it launches the instances. Redirecting traffic is your step, outside the service.
  • Believing the default policy keeps weeks of recovery points: daily points are kept for 7 days unless you raise the daily retention, up to 365 days.
  • Believing a drill pauses protection: drills do not affect the source servers or ongoing replication.
  • Believing failback to new hardware costs the same as failback to the original server: the original receives only the changes since recovery, and a different server receives everything.
  • Believing the recovery instance opens the failback connection: the Failback Client on the source side connects to the recovery instance on TCP 1500.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company protects the six on-premises servers of an order application with AWS Elastic Disaster Recovery, using the default point-in-time policy. A faulty batch job has been corrupting order records on the database server, and the corruption may have started as long as six days ago. Before any recovery, the finance team must run reconciliation reports against the whole application, started in AWS from a candidate point in time, to prove that the point is clean. Checking candidates may take two weeks. Replication from the data center must continue throughout. Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Resilience, Migration, and Business Continuity building.

    Not that one: B,D is right. In the game your Resilience, Migration, and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The second is time. By default, daily points are kept for only seven days, and a candidate up to six days old would expire long before two weeks of checking ends. Raising the daily retention to 30 days keeps those points available to drill and, later, to recover from.

    Written from docs.aws.amazon.com/drs/latest/userguide/CloudEndure-Concepts.html

  2. A company used AWS Elastic Disaster Recovery to recover 12 servers into AWS after a cooling failure in its data center, and the servers have run in AWS for nine days. The original x86_64 servers in the data center are intact and unchanged since the failure. The facilities team has also installed new servers with larger disks and proposes failing back onto those. The data center reaches the recovery VPC over a 500 Mbps VPN. Failback must return all data written in AWS while sending as little data over the VPN as possible. Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Resilience, Migration, and Business Continuity building.

    Not that one: C,E is right. In the game your Resilience, Migration, and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    For the replication itself, the Failback Client booted on each on-premises server reaches out to its recovery instance on TCP 1500, so the recovery instances' security groups must accept that port from the data center.

    Written from docs.aws.amazon.com/drs/latest/userguide/failback-performing.html

  3. A company is closing one of its two data centers. The 40 servers in the closing site will move to us-east-1 permanently during one weekend cutover, and the old hardware will be wiped afterward. The 25 physical servers in the remaining data center must stay on premises for latency reasons, but the company needs us-east-1 as their recovery site. If ransomware strikes the remaining data center, those servers must come up in AWS as they were before the attack. Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Resilience, Migration, and Business Continuity building.

    Not that one: B,D is right. In the game your Resilience, Migration, and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The servers that stay need protection that never ends and can reach back before an attack. Elastic Disaster Recovery keeps replicating indefinitely and lets a recovery launch from a previous point in time, so the 25 servers can come up as they were before the ransomware ran.

    Written from docs.aws.amazon.com/drs/latest/userguide/what-is-drs.html

Ask for something