Quality Metrics and Test Reporting Questions
Measuring quality and communicating it. Covers defining quality and test metrics, dashboards and reporting, continuous-improvement measurement, and tying quality signals to business outcomes. Emphasizes metrics that drive decisions rather than vanity numbers.
Propose a maintainability scorecard for microservices that SREs can use during onboarding reviews. Include at least eight dimensions (e.g., test coverage, deployment automation, docs, observability, ownership), scoring rubric, and an action plan for services scoring below threshold.
Write a Postgres SQL query that returns the tests with failure_rate > 5% and average duration > 2 seconds over the last 30 days. Table schema:
test_runs(
run_id UUID PRIMARY KEY,
test_name TEXT,
status TEXT CHECK (status IN ('pass','fail')),
duration_seconds DOUBLE PRECISION,
started_at TIMESTAMP WITH TIME ZONE
)
Return columns: test_name, runs, failures, failure_rate, avg_duration. Use efficient aggregation and a HAVING clause.
That is every published Quality Metrics and Test Reporting question for Site Reliability Engineer (SRE) so far. Browse the other topics in this category, or practice this one interactively.