Prepstellar

AZ-900 · Cloud foundations and economics

21 cards

Cloud Economics and Serverless

Swipe, scroll or use ← →
  1. Paying for what you use

    Cloud economics rests on one sentence. Cloud computing uses a consumption-based model in which customers pay for the IT resources they use. Instead of buying and maintaining datacenter infrastructure, a customer can rent compute power and storage, then release those resources when they are no longer needed.

    Compare the two ways of obtaining the same capacity:

    Buying infrastructure Consumption-based cloud
    How capacity arrives Purchased and installed in advance Rented when it is needed
    How capacity leaves It stays; it is an owned asset Released when it is no longer needed
    What idle capacity costs The full purchase, whether used or not Nothing, because it was released

    This approach avoids paying for idle capacity in the same way as a fixed hardware purchase.

    1 / 21
  2. Paying for what you use

    Two abilities follow directly from that, and they are the ones scenarios are built on. A consumption-based model can avoid upfront hardware and datacenter costs. It also lets a customer add resources when demand rises and release resources when demand falls.

    The financial effect follows actual resource use rather than a permanently installed capacity level. That is the difference worth carrying into the exam: spending tracks a curve of real usage, not a flat line drawn by a purchase order signed a year earlier.

    A seasonal business shows it most clearly. Capacity goes up for the peak, comes down afterwards, and the bill follows the same shape.

    2 / 21
  3. Quick check

    A retailer expects a brief seasonal peak and does not want to own the extra capacity afterwards. What does the consumption-based model let it do?

    1. ABuy capacity sized for the peak and keep it installed once the peak has passed

      Buying for the peak is traditional capacity planning, and it leaves paid-for infrastructure sitting idle after the season ends.

    2. BKeep the peak capacity idle on-site and count the idle hours as consumed

      Idle hardware is not consumption: the model bills actual resource use, not capacity that is standing still.

    3. CRent the extra capacity for the peak and release it once demand falls back

      Right. Customers pay for the resources they use, adding resources when demand rises and releasing them when demand falls.

    3 / 21

  4. Capital and operational expenditure

    Traditional IT budgeting splits spending into two categories, and the cloud lands squarely in one of them.

    Capital expenditure is upfront spending on physical infrastructure such as servers, network hardware, and datacenter space. Operational expenditure is ongoing spending on services over time.

    Capital expenditure Operational expenditure
    When it is paid Upfront, before use Over time, as services are used
    What it buys Servers, network hardware, datacenter space Services consumed
    Example A rack of purchased servers A cloud bill that tracks usage

    Because cloud services are paid for as they are consumed, cloud computing is classified as an operational expense.

    4 / 21
  5. Capital and operational expenditure

    The test is when and for what, not who sends the invoice. An upfront purchase of physical infrastructure is capital expenditure even if it is financed over several years. A charge that accrues while a service is being used is operational expenditure even if it turns out to be large.

    This is also why the classification does not change with size. A single virtual machine billed by the hour and an estate of thousands are both operational spending, because both follow consumption. And buying one server for a rack is capital spending, because the money went into physical infrastructure before anything ran on it.

    5 / 21
  6. Quick check

    A finance team must classify two lines: a purchase of rack servers, and a monthly cloud bill that tracks usage. How are they classified?

    1. ABoth are capital expenditure, because each one pays for computing capacity

      Capital expenditure is upfront spending on physical infrastructure, and a bill that follows consumption does not fit that definition.

    2. BThe servers are capital expenditure, and the usage-based cloud bill is operational spending

      Right. Servers, network hardware and datacenter space are bought upfront, while cloud services paid for as they are consumed are an operating expense.

    3. CBoth are operational expenditure, because each of them is settled by a supplier invoice

      Being invoiced does not make spending operational: buying the physical servers upfront is capital expenditure.

    6 / 21

  7. The capacity-planning problem it solves

    Traditional capacity planning requires an estimate of future resource needs, and an estimate can miss in either direction. Both misses cost money, but they cost it differently.

    Estimate What happens What it costs
    Overestimate Infrastructure sits idle Spending on capacity nobody uses
    Underestimate Applications suffer degraded performance Lost performance, then a slow repair

    Overestimating creates spending on infrastructure that sits idle, while underestimating can cause degraded application performance.

    7 / 21
  8. The capacity-planning problem it solves

    The asymmetry is in the repair. Correcting an underestimate requires ordering, installing, and provisioning more hardware, power, and cooling — a sequence measured in weeks while the application keeps running slowly.

    Cloud capacity removes the guess rather than improving it. Resources are added when demand rises and released when demand falls, so the estimate never has to be right in advance.

    This is why "we sized it wrong" means something entirely different on each side. In a traditional datacenter it is a procurement project; in a consumption-based model it is an adjustment.

    8 / 21
  9. Quick check

    A traditional datacenter was sized from an estimate that proved too low, and applications are now slow. What does fixing it require?

    1. AOrdering, installing and provisioning more hardware, plus power and cooling

      Right. Correcting an underestimate in a traditional datacenter means ordering, installing and provisioning additional hardware, power and cooling.

    2. BReleasing installed capacity right away and continuing with a smaller footprint

      Releasing capacity is a cloud adjustment, and here it would deepen the shortfall instead of fixing it.

    3. CWaiting for an event-driven trigger to free up the hosts that are overloaded

      Event-driven deallocation belongs to serverless compute and does nothing for hardware the organization owns.

    9 / 21

  10. Keep your progress in the app

    That’s 3 of 7 quick checks. In the app they stay answered, and every lesson remembers where you left off.

  11. Pay-as-you-go pricing

    Cloud providers use a pay-as-you-go pricing model. It is the commercial expression of everything above: you are billed for the services you consume rather than for a capacity level you declared in advance.

    Paying for consumed services helps customers do three things:

    • Manage operating costs, because spending follows the workload instead of a fixed asset.
    • Use infrastructure more efficiently, because unused capacity can be released rather than absorbed.
    • Scale when workload needs change, in either direction.
    10 / 21
  12. Pay-as-you-go pricing

    There is a matching obligation on the other side of the deal. The provider maintains the underlying power, cooling, hardware, and networking.

    That is what the customer is really buying out of: not just the servers, but the facility around them and the work of keeping it running. A team that moves to pay-as-you-go stops budgeting for cooling capacity and starts budgeting for consumption.

    Note the limit, because scenarios exploit it. Pay-as-you-go makes costs manageable and proportional; it does not make them disappear or remove the need to plan them.

    11 / 21
  13. Quick check

    What does a pay-as-you-go model give a team that a fixed hardware purchase does not?

    1. AA guarantee that this team will never have to plan any of its operating costs again

      The model helps customers plan and manage their operating costs; it does not remove the need to manage them.

    2. BOwnership of the power, cooling and networking beneath the running services

      The provider maintains the underlying power, cooling, hardware and networking, so the customer does not own them.

    3. CCosts that follow the workload, so capacity can grow or shrink as needs change

      Right. Paying for consumed services helps manage operating costs, run infrastructure more efficiently and scale as workload needs change.

    12 / 21

  14. Serverless execution with Azure Functions

    Consumption-based thinking reaches its limit in compute. A virtual machine or a container has to be running for the application to work, so something is provisioned even at three in the morning when nothing is happening.

    Azure Functions is an event-driven, serverless compute option that does not require maintaining virtual machines or containers. An event wakes a function, so resources do not need to remain provisioned while no events occur.

    13 / 21
  15. Serverless execution with Azure Functions

    What counts as an event is specific. Common triggers include a REST request, a timer, or a message from another Azure service.

    Trigger Typical use
    REST request Code that runs when an endpoint is called
    Timer Work on a schedule
    Message from another Azure service Reacting to something that happened elsewhere in the platform

    Azure Functions also scales automatically according to demand, which makes it a reasonable fit when that demand is variable rather than steady.

    14 / 21
  16. Serverless execution with Azure Functions

    The billing follows the same shape as the execution. Azure Functions runs code when triggered and deallocates resources when the function finishes. In this model, the customer is charged for the CPU time used while the function runs — not for the hours in between.

    One behavioral detail completes the picture. Stateless behavior is the default: a function acts as though it restarts on every event. When state is needed, Durable Functions passes context through the function to track prior activity.

    15 / 21
  17. Quick check

    A message arrives every few hours and must trigger a short piece of code, with nothing provisioned in between. Which option fits?

    1. AAn Azure Function triggered by the arriving message, with its resources deallocated when the run ends

      Right. An event wakes the function, it runs, and its resources are deallocated when it finishes, with the charge based on CPU time used.

    2. BA virtual machine left running so the code is ready whenever a message finally lands

      A virtual machine has to keep running for the app to work, which is exactly the provisioned idle time the team wants to avoid.

    3. CA container the team keeps reserved and maintained while no messages arrive

      A reserved container is maintained and kept running by the team, so resources stay provisioned while nothing is happening.

    16 / 21

  18. When serverless is the right shape

    Serverless is appropriate when the team wants to focus on code rather than the underlying platform or infrastructure, and the work responds to events.

    Read that as two conditions that must both hold, not one:

    Condition What it rules in What it rules out
    The work is event-driven Requests, timers, service messages Work that must run continuously
    The team wants no platform to maintain Code as the only artifact Designs built around owning a VM or container
    17 / 21
  19. When serverless is the right shape

    The contrast is what makes it examinable. Serverless differs from a virtual machine or container design that must keep resources running for the application to function. If the answer to "what happens between events?" is "resources must stay up", the workload is not the serverless shape being described here.

    The direction of the clue matters too. Triggers, variable demand, and short bursts of work all point towards Functions. A requirement to hold resources continuously, or to maintain and restart a container before each execution, points away from it.

    18 / 21
  20. Quick check

    Which detail tells you a workload is a poor fit for the serverless option described here?

    1. AIt starts from a REST request, a timer, or a message from another service

      Those are precisely the triggers that wake a function, so this detail points towards Azure Functions rather than away from it.

    2. BIt must hold resources running continuously for the application to work

      Right. A design that must keep virtual machines or containers running is the one Azure Functions is explicitly contrasted with.

    3. CIts demand is variable and the team would rather not size the platform

      Functions scale automatically according to demand and let the team focus on code instead of the platform underneath.

    19 / 21

  21. Key takeaways

    • Consumption-based cloud spending follows the resources used, so capacity can be rented and released instead of purchased and left idle.
    • Capital expenditure is upfront infrastructure spending; operational expenditure is ongoing service spending — and cloud services paid for as they are consumed are an operating expense.
    • Cloud capacity can be added as demand rises and released as demand falls, which removes the traditional planning risk: overestimating pays for idle infrastructure, and underestimating degrades performance until more hardware, power, and cooling are ordered, installed, and provisioned.
    • Azure Functions runs code in response to events and deallocates resources when execution finishes, charging for the CPU time used, scaling automatically, and defaulting to stateless behavior unless Durable Functions carries context forward.
    20 / 21
  22. Quick check

    Which summary of cloud spending and serverless execution is correct?

    1. ASpending follows the resources used, and a function frees them when it ends

      Right. Consumption-based spending tracks actual use, and Azure Functions deallocates resources when a run finishes, charging for CPU time used.

    2. BSpending is fixed once capacity is bought, and a function keeps its resources reserved

      Fixed capacity bought in advance is the traditional model, and a function does not hold its resources between events.

    3. CSpending is upfront capital expenditure, and a function bills for the hours it sits idle

      Cloud services consumed over time are an operating expense, and idle hours are not what a function is charged for.

    21 / 21

  23. 7 quick checks · then the test

    In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.

The whole course, on your phone

Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.