Linux VM and application track
Run these read-only commands inside the intended VM and record the actual output, redacting addresses or usernames where required: These utilities are common Linux tools, not portable Mac commands.
Audience: learner who has completed the local CLI/API labs. Prerequisites: a fresh disposable Linux VM, provider console recovery, authorized SSH identity and an inventory entry. Evidence status: the commands below are a target-VM recipe; local process/HTTPS/release evidence lives in the separate integration receipts. Expected outcome: a service survives an application restart, rejects unauthorized access, emits useful operational signals and can be retired with its dependencies accounted for.
Adapt all twelve phases
| Phase | Linux-specific decision and exit evidence |
|---|---|
| 1 Framework | Name host, service, owner and environment; assign the dossier location. |
| 2 Beginner | Explain files, users, processes, package management, sockets, exit codes and service startup. |
| 3 Architecture | Choose OS support lifecycle, VM size, disks, traffic path, availability and maintenance window. |
| 4 Provision | Recreate VM/network/storage using a reviewed image and IaC plan; verify inventory and console access. |
| 5 Foundation | Separate operator/service identities; verify SSH, sudo, updates, private secret delivery and firewall paths. |
| 6 Service | Run a pinned application artifact under a service identity with explicit working directory and resources. |
| 7 Go live | Verify DNS, trusted HTTPS, readiness and complete user workflow from outside the host. |
| 8 Operate | Measure host pressure, request/queue outcomes, logs and delivered alerts; assign an on-call owner. |
| 9 Change | Stage package/application/kernel updates; test compatible rollback and an approved reboot. |
| 10 Recover | Rebuild on a replacement host using retained configuration, artifacts, identities and restored data. |
| 11 Retire | Drain traffic/jobs, preserve required data, revoke access, remove exact resources and check billing inventory. |
| 12 Assess | A second operator rebuilds and diagnoses a fault using only the dossier. |
Learn the host before changing it
Run these read-only commands inside the intended VM and record the actual output, redacting addresses or usernames where required:
These utilities are common Linux tools, not portable Mac commands. If absent, identify the distribution's supported package and install through the reviewed maintenance path. df -h checks filesystem capacity; df -i checks inode capacity. A filesystem can reject new files even when byte capacity looks adequate. ss shows listeners on this host; it does not prove an external firewall permits or denies traffic.
Choose one request and explain every hop: client resolver → public endpoint → edge/TLS → application → database/worker → response. Check from inside outward during diagnosis. A readiness503 with reachable HTTPS suggests the edge works while a dependency may not. A refused TCP connection is different from an HTTP authentication rejection.
Supervise the service deliberately
For the Course 0 workspace's Compose route, follow the reference example and Chapter 7. For a native systemd route, create a separately reviewed unit with an explicit User, WorkingDirectory, executable path, secret file, restart policy and shutdown allowance. Do not enable the retention timer before reviewing data policy. Inspect the installed unit before changing it:
mastery.service is an example unit name: use it only after installing and reviewing that exact lab unit. A unit being active is insufficient: exercise readiness, identity rejection and one real job. Apply configuration changes through the appropriate reload/restart path and record the result. The [systemctl reference](https://www.freedesktop.org/software/systemd/man/latest/systemctl.html) documents the distinction between unit inspection and control operations.
Failure exercise: stop only the owned worker, submit a fresh synthetic job and confirm durable queueing. Start it and prove completion. Then set an incorrect database address in a disposable candidate configuration and verify it stays out of traffic. Restore the previous configuration; do not repeatedly restart a shared database to solve an application typo.
Recovery and retirement
An approved OS reboot tests service startup and storage mounting; an application restart does not. Before reboot, verify console recovery, pending work, database shutdown behavior and maintenance communications. After reboot, verify mounts, services, time synchronization, alerts and the external user workflow. Keep the result distinct from local subprocess restart evidence.
Before retirement, inventory VM, disks, snapshots/backups, load-balancer targets, public addresses, DNS, certificates, monitoring, identities, registry artifacts and scheduled jobs. Migrate consumers first. Remove resources by reviewed IDs and retain a receipt with timestamps; check for orphaned charges after the provider's reporting delay. Deleting a VM alone does not establish complete retirement.
Lock in what you just learned (3 quick questions)
systemd) rather than leaving python3 app.py & in a terminal?systemd unit without dumping unrelated kernel noise?