Amazon Application Recovery Controller, Zonal Shift and Global Accelerator Failover
Overview
Auto Scaling and Multi-AZ designs handle many failures, but some events need a deliberate, rehearsed response: a whole Availability Zone is impaired, a Region is degraded, or an application is "up" but unhealthy in ways health checks cannot see. Amazon Application Recovery Controller (ARC) provides controls to shift traffic away from a failing AZ (zonal shift and zonal autoshift) and to manage failover between Regions with routing controls and safety rules that are designed to work even when parts of AWS are impaired.
Picture a theatre with several exits. Normally the crowd uses all of them. If one exit is blocked by smoke, a safety officer (zonal shift) closes it and directs people to the others. For a regional emergency you need a master switch panel with a failsafe so nobody flips all the switches at once and locks the building (routing controls with safety rules).
SOA-C03 lists ARC and AWS Global Accelerator as in-scope; both support the "highly available and resilient environments" task statements.
Key Concepts
- Zonal shift temporarily moves traffic away from one AZ for supported resources (ALB, NLB with cross-zone load balancing enabled, and Auto Scaling groups) for a set expiry (up to 3 days, extendable); it can be started in the console, CLI or API.
- Zonal autoshift lets AWS automatically shift traffic away from an AZ when AWS detects a likely impairment, and runs practice runs you configure with CloudWatch alarms as a safety check.
- Routing controls are on/off switches hosted in a highly available data-plane cluster (five Regional endpoints). Each control maps to a Route 53 health check, so flipping it changes DNS failover behavior.
- Safety rules (assertion and gating rules) prevent unsafe states, such as turning off both Regions at once or needing a minimum number of cells on.
- Readiness checks audit that standby resources have matching capacity and configuration; AWS has restricted availability of this feature for new customers, so confirm current status.
- Region switch (newer ARC capability) orchestrates a documented plan to fail over or fail back application components between Regions.
- Global Accelerator provides two static anycast IPs, routes to the nearest healthy endpoint group using health checks, supports traffic dials and endpoint weights, and fails over in seconds without waiting for DNS TTL.
- ARC and Route 53 data planes are designed for static stability: failover must not depend on control-plane APIs that may be impaired.
Detailed Notes
Pick the right failover tool
| Situation | Tool | Notes |
|---|---|---|
| One AZ degraded, ALB/NLB/ASG based app | Zonal shift / autoshift | Fast, no DNS involved |
| Region failure for DNS-routed app | Route 53 failover + ARC routing controls | Manual, safe, rehearsed |
| Static IPs, TCP/UDP apps, fast regional failover | Global Accelerator | No DNS caching issue |
| Rehearse capacity and config of standby | ARC readiness / Region switch plans | Prevent surprises in DR |
| Simple active/passive DNS failover | Route 53 health-check failover | Included in the reliability chapter |
Zonal shift
aws arc-zonal-shift start-zonal-shift \
--resource-identifier arn:aws:elasticloadbalancing:us-east-1:111122223333:loadbalancer/app/web/abc \
--away-from use1-az2 --expires-in 2h --comment "AZ impairment suspected"
aws arc-zonal-shift list-zonal-shifts --status ACTIVE
aws arc-zonal-shift cancel-zonal-shift --zonal-shift-id <id>
aws arc-zonal-shift update-zonal-autoshift-configuration \
--resource-identifier <alb-arn> --zonal-autoshift-status ENABLED
Rules to remember:
- The load balancer needs cross-zone load balancing enabled for zonal shift to work for NLB (ALB has it on by default).
- Remaining AZs must have capacity to absorb the shifted traffic; pre-scale or over-provision about 50% in a three-AZ design.
- A shift for an ASG stops launching instances in the affected AZ and stops sending traffic there; shifts expire automatically.
- Autoshift uses practice runs with outcome alarms (the application must be healthy during the test) and optional blocked dates/times.
- Use the AWS Health Dashboard and CloudWatch AZ-level metrics (for example ALB
HealthyHostCountper AZ) to decide when to shift manually.
Routing controls and safety rules
aws route53-recovery-control-config create-cluster --cluster-name prod-cluster
aws route53-recovery-control-config create-control-panel --cluster-arn <cluster-arn> --control-panel-name app-panel
aws route53-recovery-control-config create-routing-control --cluster-arn <cluster-arn> --routing-control-name use1-active
aws route53-recovery-control-config create-safety-rule --assertion-rule \
'{"Name":"AtLeastOneRegion","ControlPanelArn":"<panel-arn>","AssertedControls":["<use1-arn>","<usw2-arn>"],"RuleConfig":{"Type":"ATLEAST","Threshold":1,"Inverted":false},"WaitPeriodMs":5000}'
# Flip the routing control using any of the five cluster endpoints
aws route53-recovery-cluster update-routing-control-state --routing-control-arn <use1-arn> \
--routing-control-state Off --region us-west-2 --endpoint-url https://<cluster-endpoint>/
The routing control's Route 53 health check is attached to a failover record. When the control is Off, the health check becomes unhealthy and Route 53 stops returning that Region. Because the cluster has endpoints in five Regions, you can still flip controls when your primary Region is down.
Global Accelerator
| Feature | Detail |
|---|---|
| Entry | 2 static anycast IPv4 addresses (optionally dual-stack) |
| Endpoints | ALB, NLB, EC2, Elastic IP in endpoint groups per Region |
| Health | Per-endpoint health checks; unhealthy endpoints removed in seconds |
| Control | Traffic dial (0-100% per Region) and endpoint weights; client affinity |
| Compared with CloudFront | GA proxies TCP/UDP and is for dynamic or non-HTTP traffic; CloudFront caches HTTP content |
aws globalaccelerator create-accelerator --name web --ip-address-type IPV4 --region us-west-2
aws globalaccelerator update-endpoint-group --endpoint-group-arn <arn> --traffic-dial-percentage 0 # drain a Region
DR runbook items
- Define trigger criteria (what proves an AZ or Region is impaired).
- Verify standby capacity, quotas, data replication lag.
- Rehearse with practice zonal shifts and quarterly Region failover tests.
- Execute: zonal shift or flip routing controls (with safety rules) or set the Global Accelerator dial.
- Validate health, fail back after recovery and review the timeline.
Real World Example
Scenario – gray failure in one AZ. A payments API behind an ALB spans three AZs. At 14:05 error rates rise only for requests served from use1-az2, but instances still pass health checks. The on-call engineer starts a zonal shift away from use1-az2 for two hours. Within a minute error rates normalize, and the ASG remains pre-scaled so the other two AZs absorb the load.
Later the team enables zonal autoshift with a practice run alarm on p99 latency, and creates ARC routing controls with an assertion rule so staff can fail the whole application to us-west-2 without risking switching both Regions off. A Global Accelerator traffic dial helps drain a Region during maintenance.
Architecture Diagram
- 1Detect a suspected AZ or Region impairment through alarms or the Health Dashboard.
- 2Confirm remaining AZs or the standby Region have capacity.
- 3Start a zonal shift, set the Global Accelerator dial or flip an ARC routing control.
- 4Safety rules prevent unsafe combinations; traffic drains from the impaired location.
- 5Validate health, then cancel the shift or fail back once the impairment is resolved.
Best Practices
- ✓Enable cross-zone load balancing and keep enough spare capacity in each AZ so a zonal shift can be absorbed.
- ✓Enable zonal autoshift with meaningful practice-run alarms for critical applications.
- ✓Use ARC routing controls with safety rules for Region failover, and store runbooks that do not depend on the impaired Region.
- ✓Use Global Accelerator for static-IP, fast-failover TCP/UDP or HTTP applications and drain Regions with the traffic dial.
- ✓Rehearse failover and failback regularly and monitor per-AZ health metrics.
Common Interview Questions
Exam Tips
SOA-C03 focus
- Move traffic away from one impaired AZ quickly -> ARC zonal shift (or autoshift for automatic).
- Controlled Region failover with protection against flipping everything off -> ARC routing controls with safety rules.
- Static anycast IPs and quick regional failover without DNS -> Global Accelerator.
- Zonal shift expires automatically; remaining AZs must have spare capacity.
Chapter quiz
Network Protection, Data Protection, Hybrid Storage and Regional Resilience · 10 questions
1.An ALB-fronted web application is hit by SQL injection attempts and a flood of login requests from many IPs. Which combination BEST addresses this at the application layer?
2.An operator adds a new AWS managed rule group to a production web ACL and wants to find out whether it would block legitimate traffic before enforcing it. What should they do?
3.Security wants to block instances in a VPC from resolving domains on a known malware list while logging all DNS queries. Which solution fits?
4.Compliance requires that outbound HTTPS from private subnets can reach only approved domain names, with alert logs. Which service provides this?
5.A security team must find S3 objects containing credit-card numbers across 40 accounts and receive findings in Security Hub. Which service should be enabled?
6.A company migrating a Windows file server needs SMB shares joined to Active Directory with shadow-copy based user restores. Which target is MOST appropriate?
7.A nightly sync of 20 TB from an on-premises NFS server to S3 must be verified, scheduled and bandwidth-limited. Which service is designed for this?
8.Private subnets pull terabytes from S3 each month through a NAT gateway, creating large processing charges. What is the MOST cost-effective fix?
9.A remote contractor connects through AWS Client VPN but cannot reach an internal web server in the VPC. The server's security group allows the VPC CIDR. Which is the MOST likely missing configuration?
10.Error rates spike only for requests handled in one Availability Zone behind an ALB, though instances pass health checks. Which action quickly mitigates the problem?
0 of 10 answered
Finished this lesson?
0 of 46 lessons done · 0% of the course

