Data Quality Service Level Agreement (SLA) Design
This document outlines a comprehensive Data Quality SLA tailored for enterprise data pipelines, warehouses, or lakes. It defines contracts (agreements and commitments), monitors (measurement and observation mechanisms), and remediation (response and recovery processes). The SLA assumes a data provider (e.g., engineering team) and data consumers (e.g., analytics or business users). It focuses on six core data quality dimensions: Accuracy, Completeness, Consistency, Timeliness, Validity, and Uniqueness.
The SLA is designed to be measurable, automated where possible, and scalable. Targets are set conservatively for high-stakes environments (e.g., finance or healthcare); adjust based on risk tolerance.
1. Contracts (Agreements and Commitments)
Scope
- Datasets Covered: All production tables in [Data Warehouse/Lake Name], excluding staging/raw zones.
- Quality Dimensions and Targets (monthly rolling average, unless noted):
| Dimension | Definition | Target | Measurement Example |
|---|
| Accuracy | Data matches real-world values (e.g., via sampling or external validation). | ≥99.5% | Sample 1% of records; validate against golden source. |
| Completeness | Required fields are non-null/populated. | ≥99.9% | % of rows with nulls in key columns. |
| Consistency | Data aligns across schemas/sources (e.g., formats, enums). | ≥99.8% | Cross-table joins for mismatches (e.g., customer ID formats). |
| Timeliness | Data freshness (e.g., ETL lag). | ≤2 hours | Max latency from source ingest to availability. |
| Validity | Data conforms to rules (e.g., email regex, date ranges). | ≥99.9% | Rule-based checks (e.g., age >0). |
| Uniqueness | No duplicates in primary keys. | ≥99.99% | COUNT(*) vs. COUNT(DISTINCT key). |
-
Availability: Data accessible ≥99.99% uptime (excluding scheduled maintenance).
-
Parties and Responsibilities:
| Party | Responsibilities |
|---|
| Provider | Maintain pipelines, implement monitors, remediate breaches, report monthly. |
| Consumer | Define business rules upfront, review reports, escalate valid issues. |
| Both | Quarterly SLA reviews; notify of changes (e.g., schema updates) with 30 days' notice. |
-
Term and Termination: 12-month rolling term; terminable with 90 days' notice if breaches exceed 3 consecutive months.
-
Exclusions: Force majeure, consumer-induced changes (e.g., bad upstream data flagged as such).
Penalties and Incentives
- Credits: 10% of monthly fee per 1% below target (capped at 50%).
- Incentives: Bonus for 100% compliance over 3 months.
2. Monitors (Measurement and Observation)
Monitoring Framework
-
Automated Pipeline: Integrated into CI/CD and data orchestration (e.g., Airflow, dbt).
-
Tools Stack:
| Component | Tool/Example | Purpose |
|---|
| Validation | Great Expectations or Soda | Expectation suites for dimensions. |
| Orchestration | Apache Airflow / Prefect | Schedule checks post-ETL. |
| Alerting | PagerDuty / Slack | Real-time notifications. |
| Dashboarding | Datadog / Tableau / Looker | Real-time + historical views. |
| Logging | ELK Stack / CloudWatch | Audit trails for all checks. |
-
Frequency and Granularity:
| Check Type | Frequency | Scope |
|---|
| Real-time | Streaming (e.g., Kafka) | Timeliness, Validity (high-volume tables). |
| Batch | Hourly/Daily post-ETL | All dimensions (full scans for <1TB tables). |
| Sampling | Weekly | Accuracy (full validation too costly). |
| Ad-hoc | On-demand | Consumer-triggered deep dives. |
-
Success Criteria: Pass if ≥ target threshold. Partial passes logged but not alerted.
-
Reporting:
- Daily email digest to stakeholders.
- Monthly executive report: Trends, root causes, improvements.
- Public dashboard with drill-downs (e.g., by dataset/table).
Example Monitor Implementation (Pseudocode)
# Great Expectations Suite Snippet
expectation = context.add_or_update_expectation(
expectation_configuration={
"expectation_type": "expect_column_values_to_not_be_null",
"kwargs": {"column": "customer_email"}
}
)
suite_results = validator.validate()
if suite_results.success: # Triggers Airflow success
slack_notify("All checks passed")
else:
pagerduty_incident("DQ Breach: Completeness 98.5%")
3. Remediation (Response and Recovery)
Breach Detection and Classification
- Severity Levels:
| Level | Criteria | Impact |
|---|
| Low | <1% below target; no business impact. | Auto-log. |
| Medium | 1-5% below; affects reports. | Alert team. |
| High | >5% below or >1 hour downtime. | Page on-call. |
| Critical | >10% or affects core transactions. | Exec escalation. |
Escalation Matrix
| Breach Level | Initial Response (MTTR) | Escalation Path |
|---|
| Low | Acknowledge in 4 hours; fix in 24 hours. | Jira ticket to data eng. |
| Medium | Acknowledge in 1 hour; fix in 8 hours. | Slack channel + manager. |
| High | Acknowledge in 15 min; fix in 4 hours. | PagerDuty → Eng Lead. |
| Critical | Acknowledge in 5 min; fix in 2 hours. | PagerDuty → VP + CEO notify. |
Continuous Improvement
- Quarterly Review: Analyze breach trends; adjust targets/monitors.
- KPIs for SLA Health: Breach frequency <5%/month; MTTR adherence ≥95%.
This SLA design ensures proactive data quality, minimizing downstream risks like faulty ML models or bad decisions. Implement via a shared contract (e.g., Google Doc + Git repo for monitors). For customization, provide specifics on your tech stack or domain.
Sherlock, Trailblazer Labs