Skip to content
L-SYSTEM

What the cloud is and what you pay for

Preview unit: this one is open without enrolling. The rest open after you enrol.

Your lesson is in your language: your assistant leads it. Material: Russian · Exam: Russian, not translated How to connect an assistant

Pain: you pay for the peak but live on average load

Imagine a department that runs its own server room. To launch a new service, you have to estimate the peak load, add headroom, order hardware, wait for delivery, rack it, and set up power and cooling. Weeks, sometimes months, pass between the decision and the first request.

Then the unpleasant part begins. The purchased capacity is enough for the peak — which means it sits idle almost all the time. If you estimated generously, the money is frozen in hardware that will be obsolete in three years. If you skimped, the service goes down on Black Friday, and a new server arrives in six weeks. An error in either direction is expensive, and it is slow to fix.

A separate pain is that the decision is made once and for a long time. You forecast load three years ahead without having data.

Solution: computing as a utility

Cloud computing is the delivery of computing resources (servers, storage, networks, databases, applications) as a service over the internet, paid for by actual consumption.

The key phrase here is not "over the internet". Hosting is over the internet too. The key is a set of properties that a rented server does not have:

  • on-demand self-service — a resource is created in minutes, without negotiating with the provider;
  • elasticity — the amount of resources follows the load, up and down;
  • resource pooling — you share a huge pool of capacity with other customers, so you don't pay for idle time;
  • measured service — consumption is metered and shown.

Analogy: electricity. Nobody buys a generator sized for an apartment's peak consumption. You switch on the kettle and pay for kilowatt-hours, and the power plant's capacity is not your concern. The cloud sells computing the same way.

Слева маленький дом с огромным генератором во дворе ради одного чайника, справа тот же дом, подключённый к общей электросети со счётчиком
FigureСлева маленький дом с огромным генератором во дворе ради одного чайника, справа тот же дом, подключённый к общей электросети со счётчиком
Description

Рисунок из двух половин. Слева небольшой дом, во дворе которого стоит промышленный дизель-генератор в несколько раз больше самого дома, рядом бочки с топливом. В окне виден единственный включённый чайник. Хозяин стоит у машины с пустым кошельком. Это CapEx: мощность куплена под пик, почти всё время простаивает, а деньги уже потрачены. Справа тот же дом, двор пуст. От дома тонкий провод уходит к линии опор и большой электростанции на горизонте, к которой подключены и другие дома. На стене светится счётчик, хозяйка пьёт чай в кресле. Это модель на основе потребления: станция общая, платят по счётчику. Чего рисунок не показывает: на ровной круглосуточной нагрузке свой генератор может выйти дешевле сети, и счётчик крутится даже тогда, когда про включённый прибор забыли.

FigureДва графика расходов во времени: ступенька закупок железа и плавная линия потребления

Две координатные плоскости рядом, горизонтальная ось — время (три года), вертикальная — деньги. Слева подпись CapEx: широкая ступенька уходит вверх в самом начале и держится на высоте плато; под плато волнистая линия реальной нагрузки, которая почти всё время идёт заметно ниже плато, а в двух местах коротким пиком пробивает его выше — эти два места отмечены восклицательными знаками. Пространство между плато и волнистой линией заштриховано и подписано «оплаченный простой». Справа подпись OpEx: та же волнистая линия нагрузки, и поверх неё сплошная линия расходов, которая повторяет её изгибы почти вплотную. Заштрихованной области справа нет. Файла у этого рисунка нет: нарисуйте график по описанию или перескажите его словами.

How you pay for it: the consumption-based model

Consumption-based model — you pay for the resources you used: hours a virtual machine ran, gigabytes in storage, number of requests, volume of outbound traffic. Don't use it — don't pay.

This is not the only pricing model in Azure, and the exam requires you to tell them apart:

Model How it is charged When it pays off
Consumption / pay-as-you-go by actual consumption, per second or per unit unpredictable or variable load, experiments
Reserved a commitment 1 or 3 years ahead, discount off the rate baseline load that will definitely run all that time
Spot spare capacity at a rock-bottom price jobs you don't mind being interrupted
Fixed / per-user a fixed amount per user or instance typical of SaaS: a license per person
q1 Можно ли дать обязательство на 1–3 года вперёд? q2 Страшно ли, если работу прервут в любой момент? q1->q2 нет res Reserved скидка за обязательство q1->res да: нагрузка ровная и точно будет q3 Счёт зависит от потребления или от числа пользователей? q2->q3 страшно spot Spot свободные мощности дёшево, могут забрать q2->spot не страшно: можно запустить заново payg Pay-as-you-go платите по факту, без обязательств q3->payg от потребления fix Fixed / per-user типично для SaaS q3->fix от пользователей
FigureДерево выбора модели оплаты из трёх вопросов: обязательство, прерывание, от чего зависит счёт
Description

Три ромба-вопроса сверху вниз. Первый: «Можно ли дать обязательство на 1–3 года вперёд?» Ответ «да: нагрузка ровная и точно будет» ведёт к Reserved — скидка за обязательство. Ответ «нет» ведёт ко второму вопросу: «Страшно ли, если работу прервут в любой момент?» Ответ «не страшно: можно запустить заново» ведёт к Spot — свободные мощности дёшево, но их могут забрать. Ответ «страшно» ведёт к третьему вопросу: «Счёт зависит от потребления или от числа пользователей?» От потребления — Pay-as-you-go, платите по факту без обязательств; от пользователей — Fixed / per-user, типично для SaaS. Порядок вопросов не случаен: сначала проверяется самое выгодное при выполнении условия, и каждое «нет» стоит денег. Подробно инструменты экономии разобраны в юните 14.

CapEx and OpEx

CapEx (capital expenditure) is a large one-off purchase of an asset: servers, licenses, a datacenter building. The money goes out at once, is written off gradually through depreciation, and the asset sits on the balance sheet.

OpEx (operational expenditure) is regular spending on ongoing operations: the cloud bill, electricity, subscriptions. It is expensed in the same period and creates no asset.

Moving to the cloud shifts spending from CapEx to OpEx. What this changes in substance: you don't need to defend a large budget in advance, an experiment costs as much as it lasts, and a failed project is closed together with its bill.

Cost

The bill becomes variable — and grows unnoticed. In the CapEx world a forgotten test VM just sits in a rack; in the cloud it sends a bill every month. Cost discipline turns from a one-off procurement task into ongoing work (see u13 and u14).

On long, steady load the cloud is more expensive than your own hardware. A 24/7 service with a flat profile and no spikes is the case where your own server, costed over three years, usually wins on money. The cloud sells not cheapness but the absence of commitment.

You lose some control. Platform versions, maintenance windows, available regions and service retirement dates are set by the provider. Azure Blueprints, for example, is being retired on 31 January 2027 — and that is not your decision.

Vendor lock-in appears. The more deeply you use provider-specific services, the more expensive it is to move.

Three deployment models

Public cloud. The infrastructure belongs to the provider, resources are shared among customers, entry is by credit card. Maximum elasticity, minimum control over the physical layer. Suits: a startup without its own datacenter, seasonal load, test environments, a public web service.

Private cloud. The same cloud properties — self-service, elasticity, measured consumption — but the pool of capacity is yours and is used by a single organization. It can sit in your datacenter or at a provider. Suits: strict regulation, a requirement to keep data inside the perimeter, legacy systems that cannot be moved.

An important distinction: a private cloud is not a synonym for a server room. A server room becomes a private cloud only when self-service and measured consumption appear on top of it. Otherwise it is just virtualization.

Hybrid cloud. Public and private work together as one environment, with data and workloads moving between them. Suits: the database stays on premises as the regulator requires, while computations move to Azure for the duration of the peak; or a gradual migration stretched over years; or a standby site for disaster recovery.

Hybrid is a stable architecture, not a transfer station. Many organizations live in it for years for perfectly rational reasons.

q1 Есть данные или системы, которые обязаны остаться на своей площадке? q2 Нужна ли при этом эластичность или мощность сверх своей площадки? q1->q2 да: регулятор, унаследованные системы pub Публичное облако максимум эластичности, минимум капитальных затрат q1->pub нет note Слова-сигналы: «обязаны», «регулятор», «в нашем ЦОДе» — ветка «да»; «минимизировать капитальные затраты» — ветка «нет» q1->note prv Частное облако пул ваш, но с самообслуживанием и измеряемым потреблением q2->prv нет hyb Гибридное облако данные на площадке, пики и расчёты — в Azure q2->hyb да
FigureДерево выбора модели развёртывания из двух вопросов: что обязано остаться на площадке и нужна ли эластичность сверх неё
Description

Два ромба-вопроса. Первый: «Есть данные или системы, которые обязаны остаться на своей площадке?» Ответ «нет» ведёт к публичному облаку — максимум эластичности, минимум капитальных затрат. Ответ «да: регулятор, унаследованные системы» ведёт ко второму вопросу: «Нужна ли при этом эластичность или мощность сверх своей площадки?» Ответ «нет» — частное облако: пул ваш, но с самообслуживанием и измеряемым потреблением. Ответ «да» — гибридное облако: данные на площадке, пики и расчёты в Azure. К первому вопросу пунктиром привязана заметка со словами-сигналами: «обязаны», «регулятор», «в нашем ЦОДе» ведут по ветке «да», «минимизировать капитальные затраты» — по ветке «нет». Слова «безопаснее» среди сигналов нет намеренно: на нём выбор не строится.

Watch out: a trap

  • "Cheaper" in a question is almost never about the deployment model. If the scenario says "minimize capital expenditure", that is public cloud. If it says "data must stay in our datacenter, but elasticity is needed for computations", that is hybrid, and the word "must" decides it.
  • A private cloud is not "more secure by definition". It gives control over placement, and security depends on how it is configured. An exam question about private cloud usually rests on a regulatory requirement or on legacy hardware, not on the word "security".
  • Don't confuse elasticity with scalability. Scalability is the ability to grow. Elasticity is the ability to grow and come back down, automatically. It is the coming back down that saves money. More in u03.
  • CapEx versus OpEx is a question about accounting, not about the amount. The phrase "avoid large upfront investment" points to OpEx, even if over three years the cloud comes out more expensive.

Practice

Checking here changes nothing: answers start counting once you enrol on the course.

  1. The CFO says: "This quarter we are not ready to pull two million out of circulation at once for servers, but we are ready to pay monthly, even if over three years the total comes out higher." What argument is he making?

  2. A bank is required by the regulator to keep its customer records in its own datacenter. Once a quarter it runs risk models, and for those three days it needs ten times more computing power than on ordinary days. Which deployment model should it choose, and which word in the statement decides it?

    This one is judged by the author’s rubric — your assistant does that, not the site.

  3. A colleague says: "We already have a private cloud — two hypervisors in the server room, and we create VMs on them on request via tickets." What is missing for this to be a private cloud?

    This one is judged by the author’s rubric — your assistant does that, not the site.

  4. Match each workload with a suitable pricing model: (1) a domain controller that runs around the clock for the next three years; (2) an overnight report recalculation that can be restarted if it is interrupted; (3) a demo environment for a client, needed for two weeks, and it is unclear whether it will be in demand.

    This one is judged by the author’s rubric — your assistant does that, not the site.

  5. Name two costs of moving to the public cloud that are not visible in the monthly bill.

    This one is judged by the author’s rubric — your assistant does that, not the site.

  6. Fill in the gap: in a -based model, an organization pays only for the resources actually used and does not pay for unused capacity.

  7. Is the statement true? "Moving a 24/7 workload with a flat profile to the public cloud always reduces total spending over three years."

  8. Is the statement true? "A private cloud must be located in the organization's own datacenter."

  9. Is the statement true? "An organization can stay in a hybrid cloud for years, and that is a normal architecture, not an unfinished migration."

  10. Using the deployment model decision tree: a startup without its own datacenter is launching a public web service, the load is unpredictable, and the goal is to minimize capital expenditure. There are no data residency requirements. At which node does the path end?

  11. Using the pricing model decision tree: a company takes a CRM as a ready-made service for forty employees. It does not want to make a multi-year commitment, interruption of work is unacceptable, and the bill does not depend on how much the employees worked in the system. Where does the path end?

  12. What in the picture with the two houses corresponds to "paid-for idle time"?