All lessons in Cloud Engineering: Deploy, Operate, and Recover

Choose an Operating Responsibility Boundary

Compare infrastructure, platform, and managed-service choices through concrete operational ownership.

25 minutes · Free lesson

What you will learn

  • Compare compute service models through operational responsibilities.
  • Assign an owner and verification method to important service controls.
  • Identify risks that remain after choosing a managed platform.

Northstar's team can run its status service on a virtual machine or a managed container platform. Both can answer HTTP requests. The useful question is which responsibilities the team is prepared to own, and which constraints justify retaining that control.

An infrastructure choice changes how work is divided. It does not remove the need to protect data, manage access, verify releases, or respond when users cannot complete a transaction. In this lesson you produce an operating-responsibility matrix before selecting the first runtime.

Compare responsibilities, not product labels

With an infrastructure service, the provider operates physical infrastructure while your team typically manages the guest operating system and application. A platform service moves additional runtime responsibilities to the provider. A ready-made software service moves more application operation out of your hands, while leaving decisions about users, configuration, and data.

The exact boundary depends on the service. Read the shared responsibility documentation and the selected product's contract. A generic diagram cannot resolve who updates a library embedded in your own image or who verifies a restore of your business data.

For a virtual machine, list patching, base-image maintenance, process supervision, disk capacity, and host access. For a managed container, ask which of those are abstracted away and which reappear as image, configuration, quota, and dependency responsibilities. A managed host does not automatically replace a vulnerable package that you copied into an image.

Assign a control to a named owner

A useful responsibility matrix includes a control, owner, trigger, and evidence. “Security is shared” is too broad to guide an engineer during an incident. “The application team rebuilds the image when a supported dependency update is approved and retains the new digest and regression result” is actionable.

ControlNorthstar ownerEvidence
Provider physical hostProvider under the service contractService documentation and incident information
Application dependenciesApplication teamPinned inputs, image digest, checked update
Runtime data permissionsService owner with access administratorAllowed and denied requests under the runtime identity
Data retention and restorationData/service ownerRestore test and retained-record comparison
Release responseOn-call release ownerPromotion criteria, rollback record, user-path checks

Also assign responsibility for recognizing when a provider incident is relevant. A provider dashboard may show a healthy region while your resource configuration is broken. Conversely, local application logs may remain quiet because requests never reach the service. Ownership includes finding the right evidence, not assuming another party will notify you.

Evaluate control against ongoing work

Additional control has an operating cost. If Northstar needs a particular kernel capability, a virtual machine may be justified. If it needs only an ordinary stateless HTTP process, managing hosts may add work without improving the contract. Record the concrete requirement that motivates each layer you retain.

Capacity, region availability, networking integration, deployment behavior, and identity support can also change the choice. Start with requirements and check the current service capabilities. Avoid selecting an orchestration platform simply because it appears in job descriptions; operating a cluster is itself a workload.

Worked example

Compare two fictional operating estimates

  1. The team estimates six hours each month for host patching, access review, and capacity housekeeping on a small virtual-machine deployment.
  2. It estimates two hours for runtime configuration and image review on a managed-container deployment. At an invented internal rate of 50 dollars per hour, the estimates are 300 and 100 dollars.
  3. A managed runtime that costs 80 dollars more in resource charges would still have a lower modeled total: 100 + 80 = 180 versus 300, before other common costs.
  4. The difference is 120 dollars under these assumptions. It is not a provider price quote, and the result changes if the workload needs capabilities unavailable in the managed runtime.
  5. Record the estimates and revisit them using observed maintenance effort. Do not hide operational labor by comparing only the compute line item.

Keep failure boundaries visible

Ask what happens if a deployment API is unavailable while the running service is healthy. The management plane may be impaired while the data-serving path continues to work. Conversely, successful management requests can coexist with a broken user path. Separate these situations in the runbook.

Then ask which dependencies the team cannot repair. It may be able to retry a transient call or restore a snapshot, but it cannot repair a provider's physical zone. The response might be to wait, reroute, or restore elsewhere under a declared recovery plan. Each choice needs authority and a limit; unplanned failover can create a larger incident.

Record who can change shared controls. A workload team might own application configuration while a platform team owns policy and network connectivity. When those controls interact, document the handoff and escalation evidence. Otherwise, two teams can each complete their checklist while the end-to-end request still fails.

Compare the operator's responsibilities

Run python3 service.py --help and identify the host, port, data, and release options. For the local process, you own process startup, the listener, data access, and restart. The operating system supplies scheduling and sockets.

For the optional container path, run docker version and inspect both Client and Server sections. A client-only result means the engine is unavailable. Once an engine is available, use docker build -t northstar-lab:1 . and docker run --rm --name northstar-lab -p 127.0.0.1:8765:8765 northstar-lab:1. Stop the Python listener first so the published port is free.

In another terminal run docker inspect northstar-lab --format '{{.Config.User}}' and docker inspect northstar-lab --format '{{json .NetworkSettings.Ports}}'. Expect user 65532:65532 and a host binding on loopback port 8765. Then run python3 probe.py. The image owns the runtime files; the container engine owns process isolation and the port mapping; you still own the application's behavior and deployment settings.

Complete a three-column responsibility table for local process, container, and managed Container Apps. Put each duty under the party that actually performs it: host patching, image rebuilding, scaling limits, data backup, application authorization, and incident response. Use the shared responsibility reference to resolve the managed-service column.

Exercise

An image contains an outdated application library, but the container platform patches its hosts. Who must address the library and what evidence should they retain?

Check your answer

The team owning the image must update and rebuild the application dependency, check the resulting behavior, and deploy the reviewed artifact. Retain the dependency change, build identity/digest, tests, and release result. Host patching does not replace a package embedded in the image.

Exercise

Why is “the provider handles backup” insufficient for Northstar's recovery contract?

Check your answer

It omits retention, coverage, restoration permissions, restoration time, and whether the restored records are usable. Assign an owner to configure and test recovery, and compare a restored snapshot against the declared data-loss and time targets.

Exercise

A provider's deployment API fails while existing status requests succeed. Should the incident report declare the user service unavailable?

Check your answer

Report the impaired management capability separately from the observed user path. Freeze or defer changes if appropriate, continue measuring user outcomes, and state that future recovery or scaling operations may be affected. Do not invent a user outage or assume ongoing success will last indefinitely.

Summary

Select a service model by the responsibilities and constraints it creates. Assign owners to controls, include operating effort in decisions, and verify end-to-end outcomes even when infrastructure is managed.

Next action

Inspect the process, listener, permissions, and dependency boundaries of a small service before diagnosing failures through the cloud control plane.

Choose another lesson