🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Management / Database Administration › Capstone Project: Integrated Database Administration System Build › Lesson 3
TEC-DATA86-10 · Lesson 3 · 36 clock hours · practice

Documentation, Governance Artifacts, and Runbook Completion

Objective. Students produce a complete technical documentation package—including a data dictionary, data quality rule log, lineage diagram, operational runbook, and change log—sufficient for a new DBA to operate and maintain the system without additional guidance.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Why Documentation Is a Professional Obligation

A database system that exists only in the mind of the person who built it is a liability, not an asset. When that person is unavailable—due to illness, resignation, or reassignment—the organization loses the ability to operate, recover, or audit the system safely. Professional documentation transforms tacit knowledge into a shared, maintainable record. DAMA International's Data Management Body of Knowledge (DMBOK, 2nd edition) treats documentation as a core data governance responsibility, not an optional afterthought. In this lesson you will assemble the complete technical documentation package that a new DBA would need to take over your capstone system on day one.

The Data Dictionary

A data dictionary is the authoritative catalog of every table and column in your database. For each column you must record the business name (what the business calls the field, e.g., "Customer Email Address"), the technical name (the actual column name in the schema, e.g., `cust_email`), the data type (e.g., `VARCHAR(255)`), allowed values or domain (e.g., must match email format), the source system where the value originates, the designated data steward, and any regulatory classification such as Personally Identifiable Information (PII).

You cross-reference every entry against your Entity-Relationship Diagram (ERD). PostgreSQL's `information_schema.columns` view and the `pg_class` catalog table are useful starting points: they let you extract technical metadata programmatically rather than typing it by hand, reducing transcription errors. Use the instructor-provided template so that the format is consistent across all team submissions.

Identifying PII columns is not merely a documentation habit—it is the first step in protecting data subjects' privacy and complying with applicable regulations. Mark those columns clearly; downstream access control and masking decisions depend on them.

Data Quality Rules

Data quality rules define what "good" data looks like. You must write at least eight rules in two forms: plain English (so that a business analyst can understand the intent) and SQL (so that the database can enforce it). Common rule types include:

After writing the rules, run a data quality audit query against your live database. Compare actual data against each rule and document every violation in a defect log. Each defect log entry should identify the rule that was violated, the affected row or rows (by primary key), the nature of the defect, and its current resolution status (open, in progress, or resolved). This log becomes evidence that you actively govern the data, not just that you defined rules on paper.

The Lineage Diagram

Data lineage shows where data comes from and how it moves. Your lineage diagram must trace each data element from its source system through any transformation steps to the target table in your database. Use draw.io to create a clear flow diagram: boxes for systems and tables, arrows for data movement, and labels for any transformations applied (e.g., type casting, deduplication, concatenation). A well-drawn lineage diagram allows an auditor or a new DBA to answer the question "Where did this value come from?" in minutes rather than hours.

The Operational Runbook

A runbook is a step-by-step operations manual. Your runbook must cover five areas:

1. Daily startup and shutdown procedures — in what order services are started or stopped, and how to verify success.

2. Backup verification steps — how to confirm that a backup completed successfully and how to test restorability.

3. User provisioning workflow — the process for creating, modifying, and revoking database accounts and roles.

4. Incident response checklist — the sequence of actions to take when an alert fires or a service degrades.

5. Disaster recovery contact tree — who to call, in what order, when a major failure occurs.

Runbooks must be written at a level of detail that allows a competent but unfamiliar DBA to execute every procedure correctly without asking anyone for help. Avoid pronouns like "it" or "the system" when you mean a specific service or command—be explicit.

The Change Log

Every schema or configuration change made during the build phase must be recorded in the change log. Each entry should capture the date, the person who made the change, a description of what changed, the reason for the change, and whether the change was tested and approved. The change log creates an audit trail and is essential for troubleshooting regressions.

Safety and Integrity Considerations

Documentation work carries its own risks. Inaccurate documentation is sometimes more dangerous than no documentation, because a reader trusts it and acts on it. Verify every procedure in the runbook by actually executing it in a test environment before writing the final version. Protect the documentation package itself: store it in version-controlled storage with access controls, because it contains PII field locations and disaster recovery contacts that must not be exposed to unauthorized parties. Apply least-privilege principles to who can edit the documents.

Submitting Your Package

Your completed package will be scored against a 25-item rubric. Every SQL data quality rule must execute without error in your PostgreSQL environment before submission. A classmate acting as a new DBA will walk through your runbook in ten minutes during a peer review exercise—if they get lost, a section needs revision. Aim for a minimum rubric score of 80%.

Key terms10

Data DictionaryA structured catalog that documents every table and column in a database, recording metadata such as business name, technical name, data type, allowed values, source system, steward, and regulatory classification.
Data StewardThe individual or role accountable for the quality, definition, and appropriate use of a specific data element or dataset within an organization.
Data LineageA record of the origin, movement, and transformation of data from source systems through processing steps to destination tables, used to support auditability and troubleshooting.
Operational RunbookA documented set of step-by-step procedures that allow an operator to perform routine and emergency tasks on a system without additional guidance.
Data Quality RuleA defined constraint or condition that data must satisfy to be considered accurate and fit for use, expressed in plain English and enforced through SQL constraints or trigger logic.
Defect LogA record of data quality violations discovered during an audit, including the rule violated, the affected rows, the nature of the defect, and its resolution status.
Change LogA chronological record of every schema or configuration modification made to a system, including the date, author, description, reason, and approval status of each change.
PII (Personally Identifiable Information)Any data that can be used on its own or in combination with other data to identify a specific individual, requiring special handling, access controls, and regulatory classification in documentation.
information_schemaA standard set of read-only views available in PostgreSQL (and other SQL databases) that expose metadata about database objects such as tables, columns, and constraints.
Disaster Recovery Contact TreeA structured list of personnel and their contact information, organized by escalation order, to be used when a major system failure requires coordinated response.
In class: Complete a data dictionary spreadsheet for every table and column, recording business name, technical name, data type, allowed values or domain, source system, steward, and any applicable regulatory classification (e.g., PII); cross-reference each column against the ERD. · Write a minimum of eight data quality rules (e.g., NOT NULL enforcement, referential integrity, range checks, format validation) in both plain English and as SQL CHECK constraints or trigger logic; run a data quality audit query against the live database and document findings in a defect log with resolution status. · Assemble the operational runbook covering daily startup/shutdown procedures, backup verification steps, user provisioning workflow, incident response checklist, and a disaster recovery contact tree; include the lineage diagram showing data flow from each source through transformation to target tables, and maintain a change log recording every schema or configuration modification made during the build phase.
Materials: DAMA DMBOK 2nd edition (Chapters 6, 13), data dictionary template (instructor-provided), draw.io for lineage diagram, Microsoft Word or Google Docs, runbook template (instructor-provided), PostgreSQL system catalog reference (pg_class, information_schema)
Check: Documentation package reviewed against a 25-item rubric; all eight data quality rules must be syntactically correct and execute without error; runbook must be judged complete and navigable by a peer acting as a new DBA in a 10-minute walkthrough exercise; minimum rubric score of 80%.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Data Governance / DAMA CDMP
1. A data dictionary entry for a column named `cust_dob` is marked with a regulatory classification of PII. What is the most important immediate implication of that classification for the DBA?
PostgreSQL CE (EDB)
2. Which PostgreSQL system view would you query to programmatically extract a list of all column names, data types, and nullability settings from the current database to populate a data dictionary?
PostgreSQL CE (EDB)
3. A team writes the following data quality rule: 'Order quantity must be greater than zero.' Which SQL construct correctly enforces this rule at the column level in PostgreSQL?
DAMA CDMP Associate
4. During a data quality audit, a query reveals that 45 rows in the `orders` table have a `customer_id` value that does not exist in the `customers` table. In the defect log, what type of data quality rule has been violated?
Oracle DBA CA / Microsoft DP-300
5. According to sound operational runbook practice, backup verification steps should confirm which of the following?
DAMA CDMP Associate
6. A lineage diagram for a sales reporting database should show which of the following?
Oracle DBA CA / Microsoft DP-300
7. A new DBA attempts to follow the incident response checklist in the runbook but cannot determine which database service to restart because the runbook uses the phrase 'restart the system' without specifying a service name. This is an example of a runbook failing which quality criterion?
DAMA CDMP Associate
8. A change log entry records that an index was added to the `invoices` table on a Tuesday. Which additional fields are most important to include in that entry to satisfy governance requirements?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.