🚧 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 › Database Security & Role Management › Lesson 7
TEC-DATA86-05 · Lesson 7 · 12 clock hours · theory

Regulatory Compliance: Data Security Policy & DAMA CDMP Alignment

Objective. Learners connect database security controls implemented in previous lessons to regulatory frameworks (HIPAA, PCI-DSS, SOC 2 at a general level) and to the DAMA CDMP Data Security knowledge area, producing a security-policy document for a sample organization.

⚠ 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 Regulatory Compliance Belongs in a Database Course

Database administrators do not just install software and tune queries. They are also the technical backstop for an organization's legal obligations. Regulations such as HIPAA, PCI-DSS, and the SOC 2 framework exist because data breaches cause real harm—stolen health records, compromised payment cards, and damaged businesses. Understanding how those frameworks map to specific database controls is a core skill for any working DBA, and it is a central topic in the DAMA CDMP Data Security knowledge area.

DAMA CDMP: The Data Security Knowledge Area

The DAMA Data Management Body of Knowledge (DMBOK2) organizes data management into knowledge areas. Chapter 7, Data Security, describes the activities an organization must perform to protect data: defining security policies, classifying data by sensitivity, managing identities and access, monitoring activity, and auditing compliance. The CDMP exam tests whether candidates understand these activities at a conceptual level and can connect them to real business and technical practice.

Key activities from DMBOK2 Chapter 7 include:

Regulatory Frameworks at a Glance

HIPAA Security Rule

The Health Insurance Portability and Accountability Act (HIPAA) requires covered entities and their business associates to protect electronic Protected Health Information (ePHI). The Security Rule groups safeguards into three categories: administrative (policies and training), physical (facility controls), and technical (database-level controls). Technical safeguards relevant to DBAs include access controls, audit controls, integrity controls, and transmission security. HIPAA does not mandate specific technologies—it requires that organizations assess risk and implement reasonable and appropriate measures.

PCI-DSS

The Payment Card Industry Data Security Standard applies to any organization that stores, processes, or transmits cardholder data. Its requirements address network security, access control, encryption, vulnerability management, monitoring, and security policies. From a database perspective the critical concepts are: cardholder data must be encrypted at rest; access to cardholder data must be limited to those with a business need; all access must be logged; and duties must be separated so no single person can both make a change and approve it. The official PCI-DSS documentation is maintained at pcisecuritystandards.org.

SOC 2

Service Organization Control 2 is an auditing framework developed by the American Institute of Certified Public Accountants (AICPA). It is not a law but a voluntary standard used by technology and cloud-service companies to demonstrate trustworthiness to clients. SOC 2 evaluates five Trust Service Criteria: Security, Availability, Processing Integrity, Confidentiality, and Privacy. At a general level, a SOC 2 audit examines whether the organization has written policies, technical controls that match those policies, and evidence (logs, tickets, screenshots) that the controls actually operate over time.

Mapping Controls to Mechanisms in PostgreSQL

The following table shows how policy requirements translate into PostgreSQL technical mechanisms—the same controls you implemented in earlier lessons:

| Policy Requirement | PostgreSQL Mechanism |

|---|---|

| Encrypt data at rest | pgcrypto extension or filesystem/tablespace-level Transparent Data Encryption (TDE) via EDB or OS tools |

| Encrypt data in transit | SSL/TLS connections enforced in `pg_hba.conf` and `postgresql.conf` (`ssl = on`) |

| Enforce least-privilege access | `GRANT` and `REVOKE` statements; `CREATE ROLE` with limited privileges |

| Separate duties | Distinct roles for DBA, application user, auditor; no single login with both `SUPERUSER` and application access |

| Audit log access and changes | `pgaudit` extension; PostgreSQL logging parameters (`log_connections`, `log_disconnections`, `log_statement`) |

| Authenticate users securely | SCRAM-SHA-256 authentication in `pg_hba.conf`; avoid `trust` except on loopback for testing |

Writing a Security Policy: What Must It Contain?

A database security policy is a written document, approved by management, that states what the organization requires and why. A compliant policy for a retail company handling payment cards should address at minimum:

1. Scope — which systems and data are covered.

2. Data classification — how cardholder data is labeled and handled differently from general business data.

3. Access control — who may access cardholder data tables, how credentials are managed, and how access is reviewed periodically.

4. Encryption — requirements for encrypting stored card data and for using TLS on all connections that carry card data.

5. Audit logging — what events are logged, how long logs are retained, and who reviews them.

6. Separation of duties — no single person can both administer the database and approve their own access changes.

7. Incident response — steps to take when a breach or anomaly is detected.

Each policy statement should name the technical control that enforces it and describe how an auditor would verify compliance—for example, by reviewing the PostgreSQL configuration file, sampling the audit log, or inspecting role membership in `pg_roles`.

Safety and Professional Responsibility

Handling regulated data carries professional and legal responsibility. As a DBA you should never store credentials in plain-text scripts or configuration files, never share superuser passwords, and never disable audit logging to "speed things up" in production. Treat a compliance requirement as a safety requirement: just as lockout/tagout protects workers from physical harm, encryption and access controls protect individuals from identity theft and financial harm. Violating a compliance requirement can expose your employer to fines, litigation, and reputational damage—and can end your own career.

Key terms10

HIPAA Security RuleFederal regulation requiring covered entities and business associates to implement administrative, physical, and technical safeguards to protect electronic Protected Health Information (ePHI).
PCI-DSSPayment Card Industry Data Security Standard; a set of security requirements that organizations must meet when they store, process, or transmit payment-card cardholder data.
SOC 2An AICPA auditing framework assessing whether a service organization's controls meet the Trust Service Criteria (Security, Availability, Processing Integrity, Confidentiality, Privacy).
DAMA DMBOK2 Data Security Knowledge AreaChapter 7 of the DAMA Data Management Body of Knowledge; describes activities such as data classification, access entitlement management, activity monitoring, and compliance management.
Least PrivilegeA security principle requiring that each user or process be granted only the minimum permissions needed to perform its function, reducing the potential impact of a breach or error.
Separation of DutiesA control that divides critical tasks among multiple people or roles so that no single individual can both perform and conceal an unauthorized action.
pgauditA PostgreSQL extension that provides detailed session- and object-level audit logging, producing records of which statements were executed by which role and when.
Transparent Data Encryption (TDE)An encryption approach in which data is automatically encrypted when written to storage and decrypted when read, without requiring changes to application code; available via EDB's PostgreSQL distribution and OS-level tools.
Data ClassificationThe process of assigning sensitivity labels (such as public, internal, confidential, or restricted) to data assets so that appropriate controls can be applied to each category.
Compliance AuditA formal review that collects evidence—configuration files, log samples, role membership records—to verify that technical and administrative controls are operating as required by a policy or regulation.
In class: Case study reading and annotation: learners read a two-page fictional organizational security policy (provided) and annotate each control with the corresponding PostgreSQL technical mechanism (e.g., 'all PII must be encrypted at rest' → pgcrypto or TDE) and the DAMA CDMP activity it satisfies. · Policy writing workshop: in pairs, learners draft a one-page Database Security Policy for a fictitious retail company that must meet PCI-DSS general requirements for cardholder data (no specific code sections required — focus on concepts: access control, encryption, audit logs, separation of duties); instructor circulates and provides feedback. · Class discussion: learners present one policy decision they made, the technical control that enforces it, and how an auditor would verify compliance; instructor provides corrections and reinforcement.
Materials: DAMA DMBOK2 Chapter 7 (Data Security) summary handout, sample organizational security policy (provided), PCI-DSS requirement summary (pcisecuritystandards.org), HIPAA security rule overview (hhs.gov), word processor
Check: Policy document scored by instructor rubric: must address access control, encryption at rest and in transit, audit logging, and separation of duties with at least one specific PostgreSQL mechanism named for each; pass = all four areas addressed with correct mechanisms.

Practice check8

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

DAMA CDMP Data Security / PostgreSQL CE
1. A retail DBA is told that cardholder data stored in a PostgreSQL table must be encrypted at rest. Which mechanism directly satisfies this requirement at the database level?
DAMA CDMP Data Security
2. According to the DAMA DMBOK2 Data Security knowledge area, which activity involves assigning sensitivity labels such as 'confidential' or 'restricted' to data assets?
Microsoft DP-300 / DAMA CDMP Data Security
3. An auditor reviewing a PostgreSQL environment for SOC 2 compliance asks for evidence that connections carrying sensitive data are encrypted in transit. What should the DBA provide?
DAMA CDMP Data Security
4. A healthcare organization's database policy states: 'No single staff member may both modify ePHI records and approve their own access changes.' Which security principle does this policy statement express?
DAMA CDMP Data Security
5. PCI-DSS applies to an organization primarily because of which business activity?
PostgreSQL CE / DAMA CDMP Data Security
6. A DBA enables the pgaudit extension and sets it to log all SELECT statements on the payments table. Which compliance requirement does this control most directly address?
DAMA CDMP Data Security
7. When writing a database security policy, which element allows an auditor to verify that a stated control is actually in place?
PostgreSQL CE / DAMA CDMP Data Security
8. A DBA is designing roles for a PostgreSQL database that stores retail customer data. Following the principle of least privilege, which approach is correct?
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.