Cloud Economics: Licensing, Rightsizing and Automation
Overview
Cloud economics is the study of how and why the cost of IT changes when you move to AWS. The headline is simple - replace fixed costs (servers you bought whether or not you use them) with variable costs (capacity you pay for only while it runs) - but several other ideas decide how much you really save: licensing, rightsizing, automation and managed services.
Imagine running a taxi business. Owning cars means paying for insurance and parking even when they sit idle (fixed cost). Hiring cars by the hour means you pay only for trips (variable cost). Hiring a car that is too big for each trip wastes money (rightsizing), and a booking app that dispatches cars automatically saves you a call centre (automation).
This lesson maps directly to exam Task 1.4 and is a favourite source of scenario questions.
Key Concepts
- Fixed costs do not change with usage (data center lease, hardware purchase); variable costs rise and fall with usage (EC2 hours, S3 GB).
- On-premises costs include servers, storage, networking, facilities, power and cooling, security, staff and refresh cycles - far more than the hardware invoice.
- License Included pricing bundles the software licence (for example Windows Server or SQL Server) into the hourly rate; Bring Your Own License (BYOL) reuses licences you already own.
- AWS License Manager tracks licence usage and enforces rules so you stay compliant when running licensed software on AWS.
- Rightsizing means matching instance size and type to the real workload; AWS Compute Optimizer and Cost Explorer give recommendations.
- Automation (CloudFormation, Auto Scaling, Systems Manager) lowers cost by removing manual work, reducing errors and shutting resources down on schedule.
- Managed services (RDS, ECS, EKS, DynamoDB, Lambda) shift patching and operations to AWS, reducing staff effort.
- Cloud usually reduces TCO, but savings come from good practice - idle and oversized resources still cost money.
Detailed Notes
Fixed versus variable costs
| Aspect | Fixed (on-premises) | Variable (AWS) |
|---|---|---|
| Payment | Up front, years in advance | After use, monthly |
| Utilisation | Often 10-30% average | Matches demand |
| Risk | Over-buying or running out of capacity | Small, reversible |
| Accounting term | CapEx | OpEx |
Fixed costs still exist in the cloud when you commit (Reserved Instances, Savings Plans), but the commitment is a discount tool rather than a requirement.
The hidden cost of on-premises
| Cost bucket | Examples |
|---|---|
| Hardware | Servers, storage arrays, network gear, spares |
| Facilities | Rent, power, cooling, fire suppression, physical security |
| People | Administrators, on-call staff, procurement |
| Software | Operating system and database licences, support contracts |
| Opportunity | Months of delay before a new project can start |
Licensing strategies
| Model | Description | Good when |
|---|---|---|
| License Included | Licence cost is part of the hourly price (Windows Server, SQL Server, RDS for Oracle and SQL Server) | You have no existing licences and want pay-as-you-go |
| BYOL | You bring existing licences that allow cloud use, often on Dedicated Hosts for socket or core visibility | You already own transferable licences and want to avoid paying twice |
| Open source | No licence fee (Linux, PostgreSQL, MySQL) | You can run on community software; Aurora and RDS add managed value |
AWS License Manager lets administrators define licence rules (for example a maximum number of cores), then blocks launches that would breach them and reports usage. Compare Windows with Linux pricing for any workload: the licence can be a large part of the bill.
Rightsizing
Rightsizing is the continuous process of selecting the cheapest resource that still meets performance needs.
# Ask Compute Optimizer for EC2 recommendations
aws compute-optimizer get-ec2-instance-recommendations \
--query "instanceRecommendations[].[instanceArn,finding]" --output table
Typical findings are Over-provisioned, Under-provisioned and Optimized. Moving an over-provisioned instance down one size can halve its cost. Rightsizing is not a one-time task: usage changes, so review monthly.
Benefits of automation
| Automation | Economic benefit |
|---|---|
| CloudFormation templates | Identical environments in minutes, fewer errors, easy teardown |
| Auto Scaling | Pay for capacity only when traffic needs it |
| Instance Scheduler / Systems Manager | Stop development servers at night and weekends |
| Lifecycle policies | Move cold data to cheaper storage automatically |
Resources:
DevScheduleTag:
Type: AWS::EC2::Instance
Properties:
InstanceType: t3.small
ImageId: ami-0abcdef1234567890
Tags:
- Key: Schedule
Value: office-hours
Managed services economics
Compare running MySQL yourself on EC2 with Amazon RDS. On EC2 you pay for the instance, EBS volumes, backup scripts and an administrator's time. RDS costs more per hour but removes patching, backup scheduling and failover engineering. For most organisations the engineer hours saved exceed the price difference.
Putting it together
{
"step1": "Measure on-premises TCO honestly",
"step2": "Choose licensing model per workload (BYOL or included)",
"step3": "Rightsize every instance and keep reviewing",
"step4": "Automate provisioning, scaling and shutdown",
"step5": "Prefer managed services where operations are not your differentiator"
}
Real World Example
A mid-sized insurer moves 120 servers to AWS. Its Windows Server and SQL Server licences have Software Assurance, so it uses BYOL on Dedicated Hosts for the database tier while new workloads use License Included to avoid purchasing more. License Manager stops developers launching more licensed instances than allowed.
Compute Optimizer reveals that 40% of instances are over-provisioned; rightsizing saves roughly a quarter of compute spend. Test environments are built from CloudFormation and shut down every evening by schedule, and the self-managed MySQL servers are replaced by Amazon RDS, freeing two administrators for project work.
Architecture Diagram
- 1Replace fixed hardware spend with pay-as-you-go variable cost.
- 2Select the licensing model (BYOL or licence included) per workload.
- 3Rightsize resources using Compute Optimizer and monitoring data.
- 4Automate provisioning and shutdown, and adopt managed services to save effort.
Best Practices
- ✓Calculate TCO with real data before and after migration, including staff and facility costs.
- ✓Review licence entitlements before migrating licensed software and use License Manager to track usage.
- ✓Run Compute Optimizer monthly and act on over-provisioned findings.
- ✓Define environments in CloudFormation so they can be created and destroyed on demand.
- ✓Choose managed services unless you need OS-level control.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Reuse existing software licences" = BYOL; "licence cost in the hourly price" = License Included.
- "Track licence usage" = AWS License Manager.
- "Match instance size to workload" = rightsizing (Compute Optimizer).
- Managed services like RDS, ECS, EKS and DynamoDB reduce operational cost.
Chapter quiz
Cloud Concepts and Value Proposition · 10 questions
1.A company wants to avoid buying servers for a rarely used workload and pay only when it runs. Which cloud advantage is this?
2.Which statement correctly describes elasticity?
3.Which AWS service is an example of Infrastructure as a Service (IaaS)?
4.A company keeps legacy systems in its own data center while new applications run on AWS, linked by AWS Direct Connect. What is this deployment model?
5.Which cost items belong in a Total Cost of Ownership (TCO) comparison of on-premises versus AWS? (Choose the BEST answer)
6.A company owns Windows Server licences with Software Assurance and wants to run those workloads on AWS without paying for the licences again. Which approach fits?
7.An instance averages 8% CPU utilisation on a very large instance type. Which action reduces cost the MOST while still meeting needs?
8.Which statement describes a benefit of using AWS CloudFormation for provisioning?
9.A team wants a database without managing OS patching, backups or failover. Which choice reduces operational effort the MOST?
10.Which service is an example of Platform as a Service (PaaS) where you upload application code and AWS provisions the environment?
0 of 10 answered
Finished this lesson?
0 of 43 lessons done · 0% of the course

