Certopolis

AWS Certified Solutions Architect – Professional

ARC zonal shift vs routing control vs Region switch (SAP-C03)

The Amazon Application Recovery Controller (ARC) guide describes zonal shift and zonal autoshift for moving traffic out of one impaired Availability Zone, and routing control and Region switch for moving an application between Regions. For failover, AWS recommends data plane operations, such as updating routing control states through the cluster endpoints, not the console.

Zonal shift and zonal autoshift

A zonal shift moves a supported resource's traffic away from one Availability Zone to the healthy zones in the same Region. You start it, and it ends when it expires or you cancel it. A load balancer must be opted in first: on a Network Load Balancer you enable the ARC zonal shift integration attribute.

Where the shift starts matters when load balancers are chained. If an Application Load Balancer is the target of a Network Load Balancer, the shift must start from the Network Load Balancer. A shift started on the Application Load Balancer does not stop the Network Load Balancer sending traffic to it and its targets. During a shift, the Network Load Balancer node in that zone is removed from DNS and the targets in the zone stop receiving traffic.

With zonal autoshift, AWS starts the shift for you when its own telemetry shows an impairment in a zone. You enable it per resource, and you must also configure a practice run. AWS runs practice runs about weekly for 30 minutes to prove the application has enough capacity without one zone. A practice run needs at least one outcome alarm, a CloudWatch alarm that goes into ALARM when losing a zone hurts the application. Blocking alarms are optional and stop practice runs from starting.

Autoshift assumes you pre-scale so the remaining zones can carry the load. If the target groups in the other zones have no instances, or every instance is unhealthy, the load balancer fails open and the zone cannot be shifted away.

Routing control: data plane vs control plane

A routing control is an on/off state you set to move traffic between Regions. The mechanism is a DNS update: new connections go to the other Region, while clients with open connections stay until they reconnect. AWS suggests record TTLs of 60 or 120 seconds and a shorter load balancer keepalive for that reason.

ARC splits routing control in two. The control plane, the Recovery Control Configuration API, creates clusters, control panels and routing controls. It is hosted in US West (Oregon) and is not highly available. The data plane is a dedicated cluster across five Regions that gets, lists and updates routing control states. It is highly available.

So the failover step should use the data plane only. AWS recommends calling UpdateRoutingControlState from the AWS CLI or an SDK and not changing states in the console. Keep the five Regional cluster endpoints and the routing control ARNs in the runbook or code, and retry on another endpoint if one does not answer. Looking the endpoints up during an event relies on an API that is not on the data plane.

AWS also recommends long-lived IAM credentials kept only for disaster recovery, so failover does not depend on federated sign-in.

Region switch plans

Region switch orchestrates a whole recovery. A plan holds workflows, a workflow holds steps, and each step runs one or more execution blocks in parallel or in sequence. Plans work across accounts, support active/passive and active/active designs, and run manually or from a CloudWatch alarm trigger. Region switch has a data plane in each Region, so a plan can run without depending on the Region being left.

Execution blocks do the work. The Amazon EC2 Auto Scaling group block scales the group in the Region being activated to a percentage of the other Region's capacity. Region switch does not guarantee that capacity will be available, so AWS recommends reserving it for critical applications. The Aurora Global Database block runs the database recovery and can perform a failover, which might lose data.

Traffic can move without routing controls. The Route 53 health check block creates a health check for each Region, and you attach those health checks to your own DNS records. Running the block flips the health check states. That change is a Route 53 data plane operation. There is also an ARC routing control block for plans that use routing controls.

Where the exam catches people

  • Believing a zonal shift on the Application Load Balancer is enough when a Network Load Balancer fronts it: the shift must start from the Network Load Balancer.
  • Believing you choose the alarm that triggers an autoshift: AWS starts autoshifts from its own telemetry. Your alarms belong to the practice run, and at least one outcome alarm is required.
  • Believing the ARC console is the reliable way to change routing control states in an outage: AWS recommends the data plane API through the cluster endpoints.
  • Believing one cluster endpoint in the runbook is enough: keep all five and retry, because an endpoint can be unavailable.
  • Believing Region switch needs ARC routing controls to move DNS: the Route 53 health check block changes health check states on records you own.

Written from these sources

Try 3 questions on this

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

  1. A company serves a partner API from Amazon EC2 instances in an Auto Scaling group that spans three Availability Zones in eu-west-1. An Application Load Balancer (ALB) routes requests to the instances, and its target group has cross-zone load balancing turned off. Partners must allow-list fixed IP addresses, so an internet-facing Network Load Balancer (NLB) with an Elastic IP address in each zone forwards all traffic to the ALB through a target group of the ALB type. The instances are pre-scaled so that any two zones can carry peak load. The company wants AWS to move partner traffic away from a zone automatically whenever AWS detects an impairment there, with no on-call action. 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,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

    With the ALB target group's cross-zone load balancing off, removing the zone at the NLB also keeps the ALB node in that zone, and its targets, out of the path. Autoshift itself comes with a condition: enabling it for a resource requires a practice run configuration, and that configuration needs at least one outcome alarm that goes into ALARM when losing a zone hurts the application, such as the API's 5XX rate.

    Written from docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html

  2. A company runs an order platform in us-east-1 with a pilot light copy in us-west-2. In us-west-2, an Amazon EC2 Auto Scaling group runs two instances behind an Application Load Balancer, and an Amazon Aurora global database has a secondary cluster. Users reach the platform through records in an Amazon Route 53 public hosted zone. The company is building an Amazon Application Recovery Controller (ARC) Region switch plan to recover into us-west-2 while us-east-1 is impaired. The plan must grow the us-west-2 fleet to the size of the us-east-1 fleet, make the database writable in us-west-2, and then move users. The company does not use ARC routing controls and does not plan to buy them. Which combination of steps should the solutions architect take to build the plan's workflow? (Select THREE.)

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

    Not that one: B,D,F 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 Aurora Global Database block, set to failover because the primary Region is impaired, makes the us-west-2 cluster the writer. The Route 53 health check block then moves users: Region switch creates a health check per Region, the company attaches them to its records, and the plan flips their states. That flip is a Route 53 data plane action with no control plane dependency, so it works while us-east-1 is down, and it needs no routing controls.

    Written from docs.aws.amazon.com/r53recovery/latest/dg/region-switch.html

  3. A company runs its claims platform in us-west-2, with a warm standby in us-east-1. Amazon Route 53 failover records for the platform carry Amazon Application Recovery Controller (ARC) routing control health checks, and both routing controls are on one ARC cluster. The failover runbook tells an operator to open the ARC page of the AWS Management Console, turn the us-east-1 routing control On, and then turn the us-west-2 routing control Off. A recent review found that nobody has ever tried the runbook while us-west-2 was impaired. The company must be able to complete the Regional failover even when us-west-2 is severely impaired. 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,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

    Calling UpdateRoutingControlState from the CLI against a cluster endpoint keeps the failover on the highly available path, which is exactly what is needed when the impaired Region is us-west-2. Because ARC takes endpoints down for maintenance from time to time, the script must also carry all five endpoints and move on when one does not answer; looking them up at failover time would itself be a call outside the data plane.

    Written from docs.aws.amazon.com/r53recovery/latest/dg/route53-arc-best-practices.regional.html

Ask for something