Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Lesson 4.5: Hosting and operations, written test

A fourteen-question written test for the end of the Hosting and operations course, on writable directories and users, backups and restores, deploying a PHP change, maintenance and monitoring, Velocity health checks…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/assessments/module-04-technical-courses/hosting-operations-written-test.md

On this page

Lesson 4.5: Hosting and operations, written test

This test closes the Hosting and operations course. It checks the judgment that keeps hosted sites safe: which user writes which files, what a backup must contain, the order of a deploy, how to tell maintenance from an outage, and how to keep a restored copy from mailing real people.

Note

This is the trainer's own assessment, not an official certification.

At a glance

CourseAssessments and practical exercises
ModuleModule 4: Assessing the technical courses
Duration45 minutes (5 briefing, 30 test, 10 going through the answers)
LevelIntermediate to advanced
AudienceLearners at the end of the Hosting and operations course
PrerequisitesThe Hosting and operations course; Lesson 1.2 for the trainer

Learning objectives

Learners who pass this test have shown that they can:

  • say which directories must be writable and by whom;
  • list what a backup contains and how to make database and files agree;
  • explain the order of a deploy and why it matters;
  • monitor a site correctly during maintenance and with Velocity;
  • act safely when a disk is full or a backup is restored for a test.

Trainer's notes

How to run it

  1. Hand out the questions without the key; 30 minutes.
  2. Go through the answers with the hosting pages on the projector.

Common questions

Our hosts do not run Velocity. Drop questions 9 and 10 and lower the pass mark by two.

Pitfalls

  • Learners who reach for rm -rf var/. Question 12 is there for a reason; discuss it.

The test

  1. Which directory must always stay writable, and why?
  2. What is the recommended ownership setup for an installation?
  3. Why does running a cache clear as root break a site later?
  4. A backup consists of two halves. Name them, and the condition they must meet.
  5. Which directory of a backup is as sensitive as the server itself, and why?
  6. How do you back up a SQLite database of a running site?
  7. A PHP class was changed. Which single command deploys it, and how do you see what it would do first?
  8. Why are rendered-output caches cleared only after PHP-FPM and Velocity run the new code?
  9. Which address answers a health check of a Velocity server, and what does it not prove?
  10. What does the Velocity watchdog do, and what does it never do?
  11. Your monitor alerts on a 503 during a planned maintenance window. How should the check behave?
  12. The disk is full. Name one thing you may remove and one you must never remove.
  13. You restore a backup on a test machine. Name two things you do so it cannot act like the live site.
  14. Why do you test a restore on another machine, and how often?
Answers
  1. var/ and everything below: caches, compiled templates, logs, uploads, image variations, autoloads, the SQLite database (Writable directories and permissions).
  2. Run everything as the site's user: PHP-FPM pool, Velocity workers, cron, console and Composer (Writable directories and permissions).
  3. Files written by root cannot be replaced by the site user afterwards (Writable directories and permissions).
  4. The database and the files, taken at the same moment (Backups: what to back up).
  5. settings/override/: it holds the database password and other credentials (Backups: what to back up).
  6. With SQLite's online backup, sqlite3 <db file> ".backup '<target>'", never by copying a busy file (Database backups per engine).
  7. ./console exp:velocity deploy --allow-root-user; --dry-run first (Deploying changes).
  8. Otherwise pages requested in between are rendered by the old code and cached again (Deploying changes).
  9. /Q/health (for example http://127.0.0.1:8088/Q/health); it shows the server process answers, not that a page of the site renders (Health checks and uptime).
  10. It starts the default engine again when it is down and nobody meant it to be; it never touches a server that runs (Health checks and uptime).
  11. Pause the check for the window, or accept a 503 with Retry-After while maintenance is on; alert if the window lasts longer than announced (Health checks and uptime).
  12. May: caches through the cache command, rotated log archives through exp:logs --prune. Never: var/storage, settings/, or the SQLite files by hand (Disk full).
  13. Two of: set the file transport (or DebugSending), do not install the crontab, restrict access, remove the copy afterwards (Restore and restore tests).
  14. It proves the backup, the procedure and the time; at least once and after every major upgrade, and on your own schedule (Restore and restore tests).

Scoring

  • One point per question; questions 4, 12 and 13 need both parts.
  • Pass: 10 of 14 points or more, with questions 5 and 13 correct: both protect other people's data.

Further reading

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x