Lesson 2 of 3 The Iron Triangle

The Cost of Quality Attributes

Quality requirements are often stated without their price. This lesson explains how availability, performance, resilience and recovery, and security and compliance requirements translate into cloud cost, so that engineers can discuss them in concrete terms.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how availability targets translate into cost.
  • Explain how performance requirements affect cost.
  • Distinguish RPO and RTO and their cost effects.
  • Compare disaster recovery strategies by cost and recovery time.
  • Explain how scalability requirements and headroom create cost.
  • Explain how to optimize required security and compliance costs.

Availability

Availability is the proportion of time a service works, often stated as a percentage such as 99.9% (about 8.8 hours of downtime a year) or 99.99% (about 53 minutes a year). Each additional "nine" usually requires more redundancy, and redundancy costs money.

Running across multiple availability zones means keeping enough capacity in each zone to absorb the loss of another, which often increases minimum capacity substantially, and adds charges for data transferred between zones. Running across multiple regions in an active-active design can more than double infrastructure cost and adds inter-region replication charges. These designs are justified for critical services but wasteful for services whose downtime has little impact.

Fill in the value

The price of a nine

Exam skills 6.1.2

Calculate allowed downtime for availability targets over 30 days.

Log in to try this activity Interactive activities are free with an account.

Performance

Performance requirements, such as latency targets and throughput, are met with more or faster capacity: larger instances, provisioned IOPS storage, provisioned throughput for databases or AI services, caching layers and content delivery networks. Some performance improvements reduce cost, such as a cache that reduces database load; others increase it, such as keeping capacity warm to avoid cold starts.

Performance targets should be specific, such as "95th percentile latency under 200 ms at 500 requests per second", because vague targets such as "as fast as possible" lead to over-provisioning.

Resilience and recovery objectives

Two objectives drive the cost of disaster recovery. The following terms define them.

RPO Recovery point objective
The maximum acceptable data loss, measured in time. A shorter RPO needs more frequent backups or continuous replication.
RTO Recovery time objective
The maximum acceptable time to restore service. A shorter RTO needs more capacity kept ready in the recovery location.

Disaster recovery strategies range from cheapest and slowest to most expensive and fastest. The following comparison summarizes four common strategies.

Backup and restore
What runs in the recovery locationOnly backups
Typical RTOHours to a day
Relative costLowest
Choose when Recovery within hours is acceptable
Pilot light
What runs in the recovery locationCore data replicated; minimal services
Typical RTOTens of minutes to hours
Relative costLow
Choose when Data must be current, but some startup time is acceptable
Warm standby
What runs in the recovery locationA scaled-down copy of the full system
Typical RTOMinutes
Relative costMedium to high
Choose when Recovery must take minutes
Multi-site active-active
What runs in the recovery locationA full copy serving traffic
Typical RTONear zero
Relative costHighest
Choose when No meaningful downtime is acceptable
Scenario questions

Matching resilience to need

Exam skills 6.1.2 · 6.2.1

Choose resilience levels that match business need.

Log in to try this activity Interactive activities are free with an account.

Security and compliance

Security and compliance controls add cost: audit logging, encryption key management, network inspection, vulnerability scanning, backup copies in separate accounts and long retention of logs for regulatory reasons. These costs are required; a design that removes them to save money is not a valid option.

Engineers can still optimize how much the controls cost. Old logs can move to archive storage, high-volume low-value logs can be filtered, inspection can be designed to avoid unnecessary data transfer through central points, and encryption choices can avoid excessive key operations. Changes should be agreed with the security team.

Scalability and headroom

Scalability requirements describe how much more load a system must handle and how quickly. A system that must absorb a sudden tenfold spike, such as ticket sales opening, needs either capacity kept in reserve or a design that scales out within seconds; both cost more than a system whose load changes slowly. Headroom, the spare capacity kept above normal load, is the most common place where scalability requirements turn into permanent cost.

Headroom should be justified by how fast the system can scale. If autoscaling adds capacity in two minutes and load never rises faster than that, a small buffer is enough. If scaling takes 20 minutes, for example because instances need a long warm-up, more headroom is needed, and reducing the warm-up time becomes a cost optimization in its own right. Pre-scaling before known events, such as a scheduled sale, is usually cheaper than keeping peak headroom all year.

Matching quality to business need

The most common source of over-spending on quality is applying the highest standard to every workload. Classifying workloads into tiers, for example critical, important and standard, each with defined availability, RPO, RTO and performance targets, lets engineers apply expensive designs only where the business needs them. Non-production environments rarely need multi-zone deployments or production-level backup retention.

The following diagram compares an over-built design with one matched to the requirement.

Matching resilience to the business need. An internal application running in two zones with a warm standby region costs far more than a four-hour recovery time objective requires. A single-region, multi-zone deployment with backup and restore or pilot light for regional failure meets it at much lower cost, once the RTO and RPO are confirmed in writing.
Confirm the RTO and RPO before changing the design.
Worked example

The price of a nine

An internal analytics dashboard runs in two availability zones with a warm standby in a second region, costing USD 22,000 a month. The business says the dashboard can be unavailable for up to four hours without significant impact. What should the engineer propose?

The current design provides far more resilience than required. A four-hour RTO can be met with a single-region, multi-zone deployment and a backup and restore or pilot light strategy for regional failure. Removing the warm standby region could reduce cost substantially while still meeting the stated requirement. The engineer should confirm the RTO and RPO in writing with the business owner before changing the design.

Worked example

Optimizing a compliance cost

Regulations require a bank to retain application logs for seven years. Log storage now costs USD 15,000 a month and grows every month. Logs older than 90 days are almost never read. How can cost be reduced without breaking the requirement?

Keep all logs for seven years, but move logs older than 90 days to an archive storage tier through lifecycle rules, compress them, and filter out duplicate or debug entries that the regulation does not require, with the compliance team's agreement. Retrieval from archive takes longer and costs more per request, which is acceptable for logs that are read only for rare investigations.

Check yourself

Which recovery objective drives how much standby capacity is kept warm in a recovery region?

Show answer

The recovery time objective (RTO). A shorter RTO needs more capacity ready to take over; the RPO drives backup and replication frequency instead.

Exam Tips

Remember for the exam

  • Each additional nine of availability usually adds redundant capacity and transfer cost.
  • Shorter RPO increases backup and replication cost; shorter RTO increases standby cost.
  • Security and compliance costs are required; optimize how they are met, never remove them.
  • Tier workloads so that expensive quality levels apply only where needed.