Sub topic 2
Shared Resources, Elasticity, Metering, and High Availability
This chapter covers the four traits that the CompTIA A+ Core 1 exam lists as the defining characteristics of cloud services. It assumes you know basic PC hardware terms (CPU, RAM, storage, network adapter), have used Windows or Linux, and understand terms like IP address, LAN, and internet. It also assumes you have read the previous chapter, which defined cloud computing as network-delivered computing resources that a provider runs and a customer uses on demand.
The four traits are shared resources, rapid elasticity, metered usage (also called measured service), and high availability. The exam often describes a situation and asks which trait it shows. You need to recognize each one and know where it can fail.
Shared Resources
A cloud provider owns large pools of servers, storage, and network equipment. Many customers draw from the same pool. This arrangement is called multitenancy, and each customer is a tenant. A tenant's virtual machines and data run on the same physical hardware as other tenants' workloads, but the provider keeps them logically separated.
Sharing lowers cost because the provider does not need dedicated hardware for each customer. One physical server can host virtual machines for dozens of tenants. When one tenant is idle, another can use the spare capacity.
Sharing has trade-offs:
- Noisy neighbor: A tenant that uses a lot of CPU or disk throughput can slow other tenants on the same host. Providers reduce this with resource limits, but it can still occur.
- Isolation risk: Tenants depend on the provider's separation (hypervisor, network segmentation, access controls). A flaw in that separation could expose data.
- Less control: You cannot choose which physical server runs your workload in most public cloud services.
Resource pooling is the formal name for the provider side of this idea. The provider pools resources and assigns them to tenants dynamically, so a customer usually does not know or control the exact physical location of a resource.
Rapid Elasticity
Elasticity is the ability to add or remove resources quickly as demand changes, often automatically. A web store might need 2 servers on a quiet Tuesday and 20 during a holiday sale. With elasticity, the capacity grows for the sale and shrinks afterward, so you pay only for what you need.
Two terms are easy to confuse:
| Term | Meaning | Example |
|---|---|---|
| Elasticity | Capacity expands and contracts automatically or on demand to match the current load | An autoscaling group adds servers during a traffic spike and removes them afterward |
| Scalability | The ability of a system to handle more load by adding resources, over the long term | Planning a service to grow from 1,000 to 100,000 users |
Elasticity is about short-term, two-way adjustment. Scalability is about the capacity to grow. On the exam, words like "spike," "seasonal," "automatically adds," or "returns to normal" point to elasticity.
You can scale in two directions:
- Vertical scaling (scale up): Give one machine more CPU or RAM.
- Horizontal scaling (scale out): Add more machines and spread the load across them.
Traditional on-premises IT usually forces you to buy hardware for the peak load, and that hardware sits idle the rest of the year. Elasticity avoids this cost.
The rising and falling line is demand. An elastic service follows that line. The flat line shows the fixed capacity an on-premises setup must buy to survive the 12h peak.
Metered Usage
Metered usage (the exam also uses the terms measured service and pay-as-you-go) means the provider measures how much of each resource you consume and bills you for that amount. Typical measured items include:
- Compute time (for example, hours a virtual machine runs)
- Storage used (gigabytes per month)
- Data transferred out of the provider's network
- Number of requests or API calls
This turns IT spending from a large up-front capital expense (CapEx), such as buying servers, into an ongoing operating expense (OpEx), a recurring bill. Metering also gives the customer and provider the same data for reporting, budgeting, and chargeback to departments.
Metering creates its own common errors:
- Forgotten resources. A test VM left running keeps billing even if nobody uses it.
- Unexpected egress charges. Moving data out of the cloud often costs money, while moving it in is usually free.
- Unbounded elasticity. Automatic scaling during an attack or a bug can raise a bill sharply. Budget alerts and scaling limits protect against this.
Elasticity and metering work together. Elasticity changes how much you use, and metering makes sure the bill follows that change.
High Availability
High availability (HA) means a service stays accessible with very little downtime. Providers achieve it with redundancy: duplicate components so that when one fails, another takes over. Common techniques include:
- Multiple servers behind a load balancer, which spreads requests and stops sending traffic to a failed server
- Data replication across several disks, servers, or data centers
- Failover, the automatic switch to a standby system when the primary fails
- Hosting in multiple availability zones (separate data centers in one region) or multiple regions
Availability is usually written as a percentage of uptime. Each extra "nine" cuts the allowed downtime sharply.
| Availability | Approximate downtime per year |
|---|---|
| 99% | About 3.65 days |
| 99.9% | About 8.8 hours |
| 99.99% | About 53 minutes |
| 99.999% | About 5 minutes |
A service level agreement (SLA) is the contract that states the availability a provider promises, and what credit or remedy you receive if it falls short. An SLA is a promise with a penalty. It does not guarantee the service will never fail.
High availability is not the same as backup. HA keeps a service running through a failure. A backup lets you restore data after loss or corruption. If a user deletes a file, replication copies the deletion to every replica, so you still need backups.
HA also depends on your own design. If you place all your VMs in one data center, a failure there can take everything down even though the provider's platform is highly available.
Putting the Four Traits Together
The following table maps a typical exam clue to the trait it signals.
| Clue in the scenario | Trait |
|---|---|
| Many customers run on the same physical servers | Shared resources (multitenancy) |
| A retailer's capacity grows automatically for a sale, then shrinks | Rapid elasticity |
| The company is billed per hour of compute and per gigabyte stored | Metered usage |
| A failed server is replaced automatically and users notice nothing | High availability |
| A provider promises 99.99% uptime in a contract | High availability (SLA) |
| A department is charged only for the resources it used this month | Metered usage |
You can also check the traits against a quick set of real-world checks. If you work with cloud services at a help desk, these questions help you diagnose a complaint:
- A user says a cloud app is slow only at certain hours. Could another tenant on the shared host be competing for resources, or is the app not scaling to the load?
- A manager says the cloud bill doubled. Did autoscaling add servers, or did someone leave resources running?
- A service was unreachable for an hour. Does that break the SLA, and was the workload deployed in more than one zone?
Common Mistakes on the Exam
- Choosing scalability when the question describes an automatic, temporary adjustment in both directions. That is elasticity.
- Treating high availability as a backup strategy. HA addresses uptime, and backup addresses data recovery.
- Assuming a private cloud removes metering. A private cloud can still measure and charge back usage internally.
- Mixing up shared resources with file sharing. Shared resources describes provider infrastructure used by many tenants, and file sharing describes users accessing the same files.
Summary
- Shared resources: many tenants use one pool of hardware, which lowers cost but brings noisy-neighbor and isolation concerns.
- Rapid elasticity: capacity grows and shrinks quickly with demand, in both directions.
- Metered usage: you pay for what you consume, which shifts spending from CapEx to OpEx.
- High availability: redundancy, load balancing, and failover keep services up, and an SLA states the promised uptime.
Exercise
A company runs an online ticket store. During a concert sale, its cloud provider automatically adds 15 extra servers within minutes. Two hours after the sale, the extra servers are removed, and the company is billed only for the hours they ran. Which two cloud characteristics does this scenario show?
Show answer
Rapid elasticity and metered usage. Capacity expanded and then shrank automatically to match demand (rapid elasticity), and the company paid only for the server hours it actually used (metered usage).
Exercise
A cloud provider's contract promises 99.99% availability. Roughly how much downtime per year does that allow, and why does an SLA not replace a backup?
Show answer
About 53 minutes per year. An SLA only states the promised uptime and the remedy if the provider misses it. It does not protect against deleted or corrupted data, because replication copies those changes to every replica. Backups are needed to restore data.
Exercise
A help desk technician sees that a cloud-hosted app slows down every weekday at 9 a.m., even though the company's own usage is steady. Which characteristic of cloud services could explain this, and what is the term for the problem?
Show answer
Shared resources (multitenancy). Other tenants on the same physical host may be using heavy CPU or disk capacity at that time, which is called the noisy neighbor problem.