SkillSprout
Chapter 4 · Lesson 5
Advanced
6 min read

Resilience Requirements, SLAs and AWS Resilience Hub

Overview

DOP-C02 task 3.1 asks you to design architectures that meet resilience requirements stated in business terms: availability percentages, RTO, RPO and acceptable degradation. Before choosing services you must translate "the site can be down 5 minutes a month" into design decisions and prove them by testing.

Think of a hospital power plan. The business says which wards must never lose power; engineers pick generators, batteries and drills accordingly, and they test the generators monthly. Resilience engineering is the same: requirements, redundancy, then rehearsal.

AWS gives you the measuring and testing tools: Resilience Hub assesses an application against RTO/RPO policies, and Fault Injection Service (FIS) injects real failures in a controlled way.

Key Concepts

  • Availability = uptime / total time; serial dependencies multiply (99.9% x 99.9% is about 99.8%), parallel redundancy improves it (1 - (1 - a)^n).
  • RTO is how long recovery may take; RPO is how much data loss is acceptable; they drive the DR strategy and cost.
  • Remove single points of failure: single AZ, single NAT, single instance, a single DNS or identity dependency, a manual step.
  • Static stability: workloads keep running during a dependency failure by pre-provisioning capacity instead of scaling in the data plane during an event.
  • CloudFront origin groups fail over to a secondary origin on selected 4xx/5xx codes; Route 53 health checks and Global Accelerator handle Regional failover.
  • AWS Resilience Hub defines a resilience policy, assesses an application (from CloudFormation, Terraform state, AppRegistry or EKS), and returns recommendations and a resilience score.
  • AWS FIS runs experiment templates (stop instances, throttle APIs, network disruption, AZ power interruption) with stop conditions tied to CloudWatch alarms.
  • Graceful degradation, timeouts, retries with jitter and circuit breakers keep partial failure from cascading.

Detailed Notes

From business requirement to design

RequirementTypical design
99.9% (about 43 min/month)Multi-AZ, auto healing, automated deployments
99.99% (about 4 min/month)Multi-AZ at every tier, no manual failover, health-checked DNS, tested rollbacks
RTO under 1 minute, RPO near zeroActive-active multi-Region, DynamoDB global tables, Aurora Global with managed failover
RTO minutes, RPO secondsWarm standby, Aurora Global Database, Route 53 failover
RTO hours, RPO hoursPilot light or backup and restore

Composite availability matters: a request path through ALB (99.99%), EC2 (99.99%), and RDS Multi-AZ (99.95%) in series is roughly 99.93%. Adding a dependency lowers the number, so decouple with queues and caches.

Spotting single points of failure

  • One NAT gateway for several AZs: AZ outage breaks egress for the others. Use a NAT per AZ.
  • One AZ-bound resource (EBS-backed single instance, EFS mount target in one AZ).
  • Hard-coded endpoints or IPs; use DNS, service discovery and load balancers.
  • Regional services in the control path of recovery (for example relying on IAM or Route 53 control plane writes during a disaster). Prefer data plane actions such as Route 53 health checks, or Route 53 Application Recovery Controller routing controls and readiness checks.
  • Secrets, KMS keys and AMIs available in only one Region.

CloudFront origin group

yaml
Resources:
  Distribution:
    Type: AWS::CloudFront::Distribution
    Properties:
      DistributionConfig:
        Enabled: true
        OriginGroups:
          Quantity: 1
          Items:
            - Id: og1
              FailoverCriteria: { StatusCodes: { Quantity: 3, Items: [500, 502, 503] } }
              Members: { Quantity: 2, Items: [{ OriginId: primary }, { OriginId: secondary }] }

Resilience Hub and FIS workflow

  1. Describe the application (CloudFormation stacks, tags or AppRegistry).
  2. Attach a resilience policy with RTO/RPO for application, infrastructure, AZ and Region disruption.
  3. Run an assessment; review the compliance status and recommendations for each component (extra replicas, backups, alarms, SOPs).
  4. Export recommended alarms, SOP runbooks and FIS experiments.
  5. Run FIS experiments in a pre-production or controlled production setting with stop conditions.
json
{
  "description": "Interrupt AZ power for one AZ",
  "targets": {},
  "actions": { "azPower": { "actionId": "aws:ec2:stop-instances", "targets": { "Instances": "tagged" }, "parameters": {} } },
  "stopConditions": [{ "source": "aws:cloudwatch:alarm", "value": "arn:aws:cloudwatch:us-east-1:111122223333:alarm:CheckoutErrors" }],
  "roleArn": "arn:aws:iam::111122223333:role/fis-role"
}

Failure-handling patterns in code

  • Timeouts everywhere, shorter than the caller's timeout.
  • Retries with exponential backoff and jitter, capped, only for idempotent calls.
  • Circuit breaker to stop calling a failing dependency.
  • Bulkheads to isolate pools of capacity.
  • Load shedding and graceful degradation (static fallback pages, cached data).
  • Health checks that are deep enough to catch real faults but not so deep that a dependency blip removes the whole fleet.

Measuring resilience

Track SLIs (availability, latency, error rate) with CloudWatch Application Signals or synthetic canaries, set SLOs and alarm on error budget burn. After incidents, update runbooks and re-run assessments.

Real World Example

Scenario: a payments API must reach 99.99% availability with RTO of 5 minutes for a Regional failure. The team deploys across three AZs with a NAT gateway per AZ, Aurora Global Database with a secondary Region, DynamoDB global tables for sessions and a warm standby fleet. Route 53 Application Recovery Controller routing controls move traffic in one operation.

Resilience Hub scores the design, flags a single-AZ ElastiCache cluster and the team fixes it. Quarterly FIS experiments stop an AZ worth of instances, and the stop condition alarm halts the test if checkout errors rise above one percent.

Architecture Diagram

Requirements to tested resilience
Architecture
Resilience lifecycle
RTO / RPO / SLARequirements
DesignMulti-AZ / Region
Resilience HubAssess
FISInject faults
AlarmsStop conditions

Business targets drive design, assessment and experiments.

  1. 1Business states availability, RTO and RPO targets.
  2. 2Architects remove single points of failure and choose a DR strategy.
  3. 3Resilience Hub assesses the application against the policy.
  4. 4FIS experiments verify behaviour during AZ, instance or dependency failure.
  5. 5Findings update the design, alarms and runbooks.

Best Practices

  • ✓Write RTO, RPO and availability targets per workload before choosing a design.
  • ✓Eliminate single points of failure, including NAT, DNS, identity, keys and manual steps.
  • ✓Prefer data-plane failover mechanisms over control-plane changes during an outage.
  • ✓Run FIS game days with stop conditions and track actual versus target RTO/RPO.
  • ✓Use timeouts, jittered retries and circuit breakers so partial failures do not cascade.

Common Interview Questions

Exam Tips

DOP-C02 focus

  • "Assess application against RTO/RPO and get recommendations" = AWS Resilience Hub.
  • "Inject controlled failures" = AWS Fault Injection Service.
  • "Origin returns 5xx; automatically use a backup origin" = CloudFront origin group.
  • "Fail over without depending on control-plane" = Route 53 health checks or ARC routing controls.

Chapter quiz

Resilient Cloud Solutions · 10 questions

  1. 1.A workload sits behind an ALB in three AZs, but instances in a private subnet all route egress through one NAT gateway in a single AZ. The business requires continued operation during an AZ failure. What change best meets the requirement?

  2. 2.A company wants to know whether its application meets an RTO of 15 minutes and RPO of 5 minutes and receive concrete recommendations and runbooks. Which service should be used?

  3. 3.A static website served by CloudFront from an S3 bucket in us-east-1 must remain available if that bucket becomes unavailable. A replica bucket exists in eu-west-1. What is the simplest design?

  4. 4.A team wants to confirm that its application survives the loss of an AZ, but the test must stop automatically if the error rate of the checkout API exceeds 2%. Which approach is correct?

  5. 5.An application chain has three serial components, each with 99.9% availability. Management wants at least 99.95%. Which design change is most effective?

  6. 6.An ASG behind an ALB keeps instances that pass EC2 status checks but return HTTP 500 for every request. The team wants these instances automatically replaced. What should be changed?

  7. 7.A team must roll out a new AMI across an ASG of 40 instances, pausing after 25% to validate, and automatically reverting if an alarm fires. Which approach is MOST suitable?

  8. 8.A public API must fail over to another Region within about a minute for customers who allowlist a small set of IP addresses, and DNS caching must not delay the switch. Which solution BEST meets the requirements?

  9. 9.A company needs an RPO of seconds and an RTO under 5 minutes for a relational workload in another Region, while limiting cost. Which design is MOST appropriate?

  10. 10.A compliance team requires that production backups cannot be deleted by anyone, including account administrators and the root user, for seven years, and that copies exist outside the production account. What should be implemented?

0 of 10 answered

Finished this lesson?

0 of 44 lessons done · 0% of the course