You already know what the cloud is and how it works inside. The question any management team now asks, and the one Sara, Hortalia's finance director, has put to Laura, is far more blunt: is it right for us? The cloud offers very real benefits, but it also introduces new risks and, in some cases, works out more expensive or is simply not the best option. In this lesson we will look critically at the main advantages and disadvantages, see how to mitigate each risk, run a first illustrative cost calculation with a small Python script, and finish by identifying the cases in which the cloud is not a good idea. Being able to argue both sides is what sets a good architect or IT manager apart from a mere enthusiast.

  1. Advantages of cloud computing

1.1 From CapEx to OpEx

Finance distinguishes two types of spend:

  • CapEx (Capital Expenditure): investment in assets that will be used for years, such as buying a server. It is paid up front and depreciated in the accounts over several financial years.
  • OpEx (Operational Expenditure): recurring spend tied to day-to-day operation, such as rent or a subscription. It is paid as you use it.

The cloud turns a good part of IT CapEx into OpEx. Implications:

  • No money has to be tied up at the start: cash stays free for the business (at Hortalia, for example, for vans or cold rooms).
  • Spend follows activity: if the store sells little in February, it spends little on infrastructure in February.
  • Less risk of getting the sizing wrong: you do not have to guess today how much capacity you will need in five years' time.

Careful, though: OpEx does not automatically mean cheaper. We will check that with numbers in section 4.

1.2 Elasticity and pay-per-use

As we saw in Basic Concepts, elasticity lets you match capacity to real demand. Instead of paying all year for the Christmas peak capacity, Hortalia's store would pay for that capacity only at Christmas. The more variable the workload, the greater the potential saving.

1.3 Agility

Going from weeks to minutes to obtain resources changes the way you work:

  • Marc can create a test environment, try out an idea, and delete it the same day.
  • Trying a new service (a database, an AI service) does not require buying anything.
  • The cost of a failed experiment is small, so you experiment more. This shortens time to market.

1.4 Global reach

The large providers have regions in dozens of countries and content delivery networks (CDN) with hundreds of points of presence. A company can serve customers on another continent without opening a single technical office there. For Hortalia, which operates in Spain, global reach matters less than it would for an exporter, but it does allow it, for example, to keep backups in another region.

1.5 Resilience

With several availability zones and managed backup and replication services, it is possible to reach levels of availability and disaster recovery that an SME could hardly afford on its own. Today, if Hortalia's cabinet server breaks down (or the warehouse floods), the ERP stops and the USB disk backups, if they sit in the same cabinet, may be lost too.

Important: resilience is not automatic. The provider offers the tools (zones, replicas, backups), but you have to design the solution to use them.

1.6 Innovation and economies of scale

  • Access to advanced services that would be out of reach locally: data analytics, machine learning, generative AI, IoT...
  • Economies of scale: the provider buys hardware and energy in enormous quantities and spreads the fixed costs across millions of customers.
  • Less "undifferentiated heavy lifting": swapping disks, patching firmware, or replacing UPS units does not set Hortalia apart from its competitors. Delegating it frees Laura up for work that adds value to the business.

  1. Disadvantages and risks

2.1 Dependence on connectivity

If everything is in the cloud, no internet means no service. Hortalia today has a single fibre line into the warehouse; if it is cut, the order pickers could not access the ERP. Mitigation means a second line from another carrier (or a 4G/5G backup) and knowing which processes could keep running in degraded mode.

2.2 Runaway costs

Pay-per-use is a double-edged sword. Typical causes of nasty surprises on the invoice:

  • Resources created for a test that nobody deleted.
  • Oversized machines kept "just in case".
  • Outbound data transfer to the internet (egress), which is usually billed separately.
  • A programming bug that generates millions of requests.

The discipline that deals with controlling cloud spend is called FinOps. The bare minimum from day one: spend budgets and alerts, tagging of resources by project, and a monthly review. We will develop this in Costs and TCO.

2.3 Vendor lock-in

The more you use a provider's own services (its databases, its queues, its serverless functions), the harder and more expensive it becomes to move to another. That is not necessarily bad (those services deliver a lot of value), but it must be a conscious decision. We will look at the strategies for managing it in Cloud Migration: Strategies and Vendor Lock-in.

2.4 Regulatory compliance and data location

The personal data of Hortalia's customers is protected by the GDPR. You need to know which country it is stored in, what contractual guarantees the provider offers, and who can access it. Some sectors (healthcare, finance, the public sector) have additional requirements. We will deal with this in Security and Regulatory Compliance by Model.

2.5 Loss of control

  • You do not decide when the provider carries out maintenance, and you cannot walk into the data center.
  • You depend on the quality of the provider's support when an incident hits.
  • Outages at a large provider, although infrequent, affect thousands of companies at once.
  • The provider can change prices, withdraw services, or amend terms.

Service level agreements (SLAs) define availability commitments (for example, 99.9% or 99.99% monthly) and compensation, usually in the form of credits on the invoice, which rarely cover the real damage to the business.

2.6 Learning curve

The cloud does not remove the need for technical knowledge: it changes it. Laura knows how to administer Windows Server and swap a disk, but she will have to learn virtual networking, identity management, automation, and cost control. A cloud badly configured through lack of training can end up less secure and more expensive than the cabinet server.

  1. Table of advantages, risks, and mitigations

Advantage Associated risk Mitigation
Pay-per-use (OpEx) Unexpected invoices Budgets, alerts, tagging, monthly review (FinOps)
Elasticity Unbounded scaling after a bug or an attack Maximum scaling limits and alerts
Agility and self-service "Orphan" resources, lack of control Permission policies, environments with an expiry date, inventory
Access from anywhere Exposure to the internet, improper access MFA, least privilege, private networks
Advanced managed services Vendor lock-in Open standards where reasonable, a documented exit plan
Multi-zone resilience A false sense of safety if it is not designed Multi-zone architecture, backups tested regularly
Delegating the infrastructure Loss of control, dependence on support Choosing the right SLA and support plan, your own monitoring
Everything reachable over the network Dependence on connectivity Secondary line from another carrier, mobile backup
Global providers Data outside the desired jurisdiction Choosing the region, reviewing contracts and data protection guarantees

  1. Worked example: CapEx versus OpEx for Hortalia's ERP

The ERP server is now nine years old. Sara asks Laura for a five-year comparison between two options:

  • Option A: buy a new server and stay in the warehouse cabinet (CapEx).
  • Option B: move the ERP to a virtual machine in the cloud, paying a monthly fee with licenses included (OpEx).

Note: all figures are illustrative, rounded to make the arithmetic easier. Real prices depend on the provider, the region, the size of the machine, licensing, and discounts, and they change over time. The aim is to understand the reasoning, not the exact result.

Laura writes a small Python script to run the numbers:

# Illustrative CapEx vs OpEx comparison for Hortalia's ERP
# All figures are ILLUSTRATIVE (euros, excluding VAT)

YEARS = 5
LAURA_HOURLY_COST = 40  # internal cost per hour of IT work

# Option A: replace the server in the warehouse (CapEx)
initial_investment_a = {
    "new server": 9000,
    "Windows Server + SQL Server licenses": 7000,
    "UPS and NAS for backups": 2500,
    "installation and migration": 1500,
}
annual_spend_a = {
    "hardware maintenance": 600,
    "electricity": 700,
    "Laura's hours (60 h)": 60 * LAURA_HOURLY_COST,
}

# Option B: virtual machine in the cloud (OpEx), licenses included
initial_investment_b = {"migration to the cloud": 3000}
MONTHLY_FEE_B = 650  # VM + disks + backups + licenses
annual_spend_b = {
    "cloud fee (12 months)": MONTHLY_FEE_B * 12,
    "Laura's hours (25 h)": 25 * LAURA_HOURLY_COST,
}

def cumulative(initial, annual, years):
    """Return a list with the cumulative cost at the end of each year."""
    total = sum(initial.values())
    result = []
    for _ in range(years):
        total += sum(annual.values())
        result.append(total)
    return result

cost_a = cumulative(initial_investment_a, annual_spend_a, YEARS)
cost_b = cumulative(initial_investment_b, annual_spend_b, YEARS)

print(f"{'Year':<5}{'A: own server':>20}{'B: cloud':>12}")
for year_n in range(YEARS):
    print(f"{year_n + 1:<5}{cost_a[year_n]:>20,}{cost_b[year_n]:>12,}")

Explanation of the code, step by step:

  • Lines starting with # are comments: they document the code and Python ignores them.
  • YEARS and LAURA_HOURLY_COST are constants (in capitals, by convention): the horizon of the analysis and the internal cost of an hour of Laura's time. Including staff hours is key: the in-house server does not "cost" only what appears on the invoice.
  • initial_investment_a is a dictionary: a collection of "item": amount pairs. Using dictionaries instead of a single number documents where each figure comes from and makes it easy to change.
  • annual_spend_a gathers the costs that recur every year in option A. 60 * LAURA_HOURLY_COST works out the cost of 60 hours a year spent maintaining the server (patching, backups, incidents).
  • In option B, the initial investment is only the migration, and the annual spend is the monthly fee multiplied by 12 plus fewer of Laura's hours (25), because she no longer looks after the hardware, although she still administers the operating system and the ERP.
  • The cumulative function takes the initial costs, the annual ones, and the number of years:
    • sum(initial.values()) adds up all the amounts in the initial dictionary: that is the starting point at year 0.
    • The for _ in range(years) loop runs once per year (the _ indicates that we do not need the iteration number).
    • On each pass it adds the annual spend and stores the total in the result list with append.
  • The last two parts print a table. In f-strings (f"..."), :<5 left-aligns within 5 characters, :>20 right-aligns within 20, and , adds a thousands separator (English style, with a comma).

Result:

Year        A: own server    B: cloud
1                  23,700      11,800
2                  27,400      20,600
3                  31,100      29,400
4                  34,800      38,200
5                  38,500      47,000

4.1 Interpretation

Year A: own server (€) B: cloud (€) Difference A − B (€) Cheaper up to that year
1 23,700 11,800 +11,900 Cloud
2 27,400 20,600 +6,800 Cloud
3 31,100 29,400 +1,700 Cloud
4 34,800 38,200 −3,400 Own server
5 38,500 47,000 −8,500 Own server
  • For the first three years, the cloud is cheaper and, above all, does not require handing over €20,000 in one go. For Hortalia's cash position that may be decisive.
  • From the fourth year onwards, in this example option A comes out cheaper in cumulative cost. A stable workload, running 24/7 at the same size, makes little use of elasticity, so paying per use brings no saving.
  • But the comparison is not fair yet, because the two options do not deliver the same thing:
    • Option A still has a single server with no redundancy in a cabinet. Matching the resilience of the cloud would require a second server and an alternative location, which would send the cost soaring.
    • Option B could be made cheaper with commitment discounts (one- or three-year reservations or savings plans, which the large providers offer at significant reductions) or by shutting down test environments outside working hours.
    • The cost of an outage has not been factored in: if the ERP is down for two days in the middle of the peak season, how much does Hortalia lose?

The lesson for Sara: comparing only "the price of the server" against "the monthly fee" is a mistake. What you have to compare is the total cost of ownership (TCO) of equivalent solutions, including staff, risks, and the value of flexibility. We will do that full analysis in Costs and TCO: Pricing Models in IaaS, PaaS, and SaaS.

  1. When the cloud is not a good idea

The cloud is the default option for most new projects, but not for all of them. It is worth thinking twice when:

  • The workload is very stable, large, and predictable for years, and the company has the capability to run it well. Some high-volume companies have repatriated workloads to their own data centers (cloud repatriation) after running the numbers.
  • Latency has to be minimal and local: real-time control of industrial machinery, for example. This is where edge computing solutions or on-site servers fit.
  • Connectivity is poor or unreliable and cannot be improved (rural operations, ships, mines).
  • There are regulatory or contractual restrictions requiring certain data never to leave a specific location and no provider can meet them.
  • Legacy software with hardware-tied licensing, or software the vendor does not support in virtualized or cloud environments.
  • There is no capability to run it: migrating without training, without cost or security control, moving your problems into an environment you understand less well.
  • The volume of outbound data transfer is enormous and makes egress costs outweigh the saving.

At Hortalia, none of these cases seems to block cloud adoption, although the warehouse's connectivity is a weak point Laura will have to sort out before moving the ERP.

Common Mistakes and Tips

  • Believing the cloud is always cheaper. It is more flexible; whether it is cheaper depends on the workload, the design, and cost discipline.
  • Comparing different things. A single server in a cabinet is not equivalent to a multi-zone solution with managed backups.
  • Forgetting the cost of staff and of outages. They are invisible on the invoice, but real.
  • Migrating without spend alerts. Set up budgets and alerts the same day you create the account.
  • Assuming resilience comes "out of the box". A single VM in a single zone can fail just like an in-house server.
  • Tip: always present advantages and risks with their mitigation. Management trusts people who acknowledge the drawbacks and have a plan for them.

Exercises

Exercise 1. Classify each spend as CapEx or OpEx: a) buying a server; b) a monthly subscription to a cloud office suite; c) the monthly invoice for virtual machines; d) buying perpetual SQL Server licenses; e) the fee for the annual hardware maintenance contract.

Exercise 2. Modify the script in section 4, in your head (or on your computer), so that option B gets a 30% commitment discount on the monthly fee. Which line would you change? What would option B's five-year cumulative cost be? Does the conclusion change?

Exercise 3. Sara says: "If we go to the cloud, we stop worrying about IT". Write a short answer mentioning at least three risks and their mitigation.

Solutions

Solution 1. a) CapEx; b) OpEx; c) OpEx; d) CapEx (an asset used for years); e) OpEx (recurring operating spend).

Solution 2. It is enough to apply the discount to the fee, for example by changing the annual fee line:

annual_spend_b = {
    "cloud fee (12 months)": MONTHLY_FEE_B * 12 * 0.70,  # 30% discount
    "Laura's hours (25 h)": 25 * LAURA_HOURLY_COST,
}

Multiplying by 0.70 is the same as paying 70% of the fee. The annual spend becomes 7,800 × 0.70 + 1,000 = €6,460. Over five years: 3,000 + 5 × 6,460 = €35,300, below option A's €38,500, and with more potential resilience on top. The conclusion changes: with a commitment, the cloud is cheaper throughout the period. In exchange, Hortalia commits to paying for that capacity for one or three years, even if it stops using it, which reduces flexibility.

Common mistake: writing 0.30 instead of 0.70 (that would mean paying only 30%).

Solution 3 (suggested). "Not quite: we stop worrying about hardware, electricity, and the cabinet, but other responsibilities appear. First, cost: if we do not keep an eye on it, the invoice can grow; we will mitigate that with budgets and alerts. Second, connectivity: without internet there will be no ERP; we will contract a second line. Third, access and data security: that stays ours; we will enable MFA and least privilege. And Laura will need cloud training."

Conclusion

The cloud brings very real advantages: it turns CapEx into OpEx, and offers elasticity, agility, global reach, resilience, and access to innovation that an SME could not build on its own. In exchange, it introduces risks that have to be managed: dependence on connectivity, runaway costs, vendor lock-in, regulatory compliance, loss of control, and a learning curve. With the example of Hortalia's ERP you have seen that the cloud is not always cheaper in gross cost, and that the right comparison is between equivalent solutions and in total-cost terms.

So far we have talked about "the cloud" in general. But renting a virtual machine is not the same as using a platform that runs your code or subscribing to a finished application: the control, the effort, and the division of tasks all change. In the next lesson, Comparing IaaS, PaaS, and SaaS, we will study the three service models and draw the first map of where each of Hortalia's systems fits.

© Copyright 2026. All rights reserved