Operational Risk Management Questions
Identifying, assessing, and mitigating operational risk before it becomes an incident. Covers risk registers, likelihood/impact assessment, prioritizing mitigations, and operational decision-making that weighs risk against speed. The proactive risk-reduction discipline, distinct from reactive incident handling.
Explain the 'three lines of defense' model as applied to enterprise operations and incident management. For each line (first-line product/ops, second-line risk/compliance, third-line audit), describe responsibilities, how SREs should interact with them during incidents, and what information each line needs from the incident response process.
Sample Answer
The "three lines of defense" is a governance model that clarifies who owns operational risk, who provides oversight, and who independently verifies controls. Applied to enterprise operations and incident management:
First line — Product / Ops (owners)
- Responsibilities: Build/run services, detect and resolve incidents, implement controls and runbooks, maintain SLOs and error budgets.
- SRE interaction (as SREs are often first-line): Lead remediation, run on-call rotations, execute runbooks, escalate when out of scope, and record timeline/events.
- Information needed by others: Incident timeline, impact (users affected, duration, degraded functionality), mitigations applied, root-cause hypothesis, SLO/error budget consumption, and data (logs/metrics/traces).
Second line — Risk / Compliance / Security (oversight)
- Responsibilities: Define policies, expected controls, risk thresholds, enforce compliance, advise on mitigations and regulatory implications.
- SRE interaction during incidents: Notify per escalation matrix, consult for regulatory or security-impact incidents, implement temporary compensating controls advised by risk teams.
- Information needed: Impact mapped to regulatory obligations, audit trails, evidence of control operation, timeline of decisions, post-incident action plan and risk acceptance statements.
Third line — Internal Audit (independent assurance)
- Responsibilities: Independent review of processes, validate that controls were effective, produce formal audit reports and recommendations.
- SRE interaction: Provide evidence for audits, support retrospective reviews, implement audit remediation items.
- Information needed: Complete post-incident report (timeline, RCA, actions), proof of remediation, change logs, SLO metrics pre/post incident, and documentation of governance adherence.
Practical tips for SREs:
- Keep structured incident records (timestamped events, runbook steps, communications).
- Tag incidents with risk/compliance flags to trigger second-line involvement.
- Produce concise post-incident reports with evidence to satisfy audit requirements.
How would you evaluate the reliability and risk profile of a third-party SaaS vendor before integrating it into production? Cover SLAs, observability, incident history, data handling, and contractual protections you would seek.
Sample Answer
I evaluate a third‑party SaaS vendor by combining measurable reliability criteria, operational observability, historical behavior, data/security posture, and firm contractual protections. I then translate those into a phased integration plan (pilot → canary → prod) with clear rollback criteria.
Key reliability & SLA checks
- Required SLIs/SLOs: uptime (%) target (e.g., 99.95%), request success rate, latency P95/P99, error rate. Ensure vendor SLAs map to our SLOs and error budget model.
- Measurables & penalties: MTTR/MTTA commitments, SLA credits formula, clear definitions of downtime vs. degraded performance, maintenance window rules, and change notification lead times.
Observability & operations
- Telemetry access: support for request/response tracing, meaningful metrics, structured logs, and service-specific SLIs; export options (Prometheus, Datadog, OpenTelemetry).
- Alerts & integration: webhook/alertmanager hooks, paging/ES escalation paths, runbook/playbook access for common incidents.
- Monitoring guarantees: retention periods for metrics/traces/logs and sample rates; ability to query historical telemetry for RCA.
Incident history & transparency
- Past incidents: request incident timeline, RCA reports, frequency/severity trends, time-to-detect and time-to-resolve stats.
- Communication practices: public status page, incident SLA for customer notifications (e.g., initial notice within 30 minutes), post-incident RCA delivery and remediation timelines.
- Maturity signals: defined oncall rotations, runbooks, practice of blameless postmortems.
Data handling & security
- Data classification: what data they store/process, residency (regions), encryption in transit (TLS 1.2+/TLS 1.3) and at rest (AES-256).
- Access controls: least privilege for vendor staff, role-based access, strong MFA, logging of admin actions, IAM integrations (SCIM/OAuth).
- Data lifecycle: backups, retention policy, deletion/portability, returns/wipe on termination, backups encryption and test restores.
- Compliance & testing: SOC2 Type II / ISO27001 / PCI / HIPAA as applicable, recent pen test reports, vulnerability disclosure program and SLA for fixes.
Contractual protections to require
- SLA language: clear SLOs, measurement/verification methods, remedies (credits), and termination rights on repeated breaches.
- Security clauses: breach notification timeline (e.g., within 24 hours), right to audit or independent audit reports, obligation to remediate critical vulnerabilities within defined windows.
- Liability & indemnity: data breach indemnity, limits of liability aligned with business risk (not trivially capped), cyber insurance minimums.
- Data portability & deletion: obligations to export customer data in usable format within X days and certified data erasure on termination.
- Exit & continuity: transition assistance, escrow for critical code/configuration if vendor is single-thread for critical function.
Operational risk mitigation (practical steps)
- Start with a scoped pilot behind feature flags and strict RBAC.
- Canary traffic with SLO-based health gates and automated rollback.
- Integrate vendor metrics into our dashboards and SLO alerts before scaling.
- Run periodic reliability tests (chaos, failover) and validate backups/restores.
- Require runbooks and tabletop drills with vendor on defined failure modes.
Decision outcome uses a risk score combining SLA alignment, observability completeness, incident transparency, security posture, and contractual strength. Only vendors meeting minimum thresholds (and willing to negotiate protections) proceed to production with phased rollout and monitoring guardrails.
A critical third-party API your service relies on is intermittently failing. You can build a local caching/fallback layer (weeks) or press the vendor for SLA improvements and dedicated support (uncertain timeline). As a senior SRE, describe your decision process, immediate risk mitigations, long-term strategy, and vendor management considerations.
Sample Answer
Situation/Decision process:
I’d start by quantifying user impact and business risk: measure error rate, affected transactions/sec, user-facing latency, revenue/critical-path features, and current SLO/error budget consumption. That informs whether this is an incident requiring immediate mitigation vs. a degradation to be managed. I weigh two axes: (1) short-term operational risk and (2) long-term cost/time to fix. Given the cache/fallback takes weeks but is controlled by us, and vendor fixes are uncertain, I favour a hybrid phased approach: mitigate now, architect long-term resilience.
Immediate risk mitigations (hours–days):
- Add defensive controls in code: client-side retries with exponential backoff and jitter, circuit breaker to prevent cascading failures, and bulkheading to isolate dependent subsystems.
- Implement feature toggles / graceful degradation so non-critical calls can be disabled or served degraded responses.
- Deploy enhanced monitoring and SLIs: per-endpoint latency, error codes, success rate, and user-impact metrics; set actionable alerts tied to SLO thresholds and runbooks.
- Short-term lightweight cache: introduce an in-memory/edge cache (TTL short) or response staleness policy to reduce call volume while we build full fallback; ensure cache invalidation and stale-if-error semantics.
- Run incident postmortem and communicate clearly to stakeholders and customers about degraded functionality and expected timelines.
Long-term strategy (weeks–quarters):
- Build a robust local fallback layer: tiered caching (edge CDN, local in-process, durable store) with configurable TTLs and consistency modes. Design for safe fail-open or fail-closed behaviour depending on data criticality.
- Integrate contract tests and chaos experiments that simulate vendor failures (chaos engineering) to validate fallback behavior and SLO resilience.
- Automate rollback/feature flags, observability (distributed tracing, dashboards), and capacity planning for the cache layer.
- Define SLOs for end-to-end service that incorporate third-party reliability and set realistic error budgets; if vendor breaches consume error budget often, require mitigating controls.
Vendor management considerations:
- Immediately open an incident with vendor, provide thorough telemetry and reproducible traces; request interim mitigation steps and temporary escalation path.
- Review contract: existing SLA, uptime targets, credits, response/restore times. If SLA weak, escalate to account/technical leads and propose SLA improvements and dedicated support as part of remediation.
- Negotiate for measurable commitments: improved MTTR, dedicated on-call, engineering time for root cause fix, data access for observability, and contractual penalties if appropriate.
- Use vendor scorecards: track reliability over time, incorporate into procurement decisions, and consider multi-vendor redundancy if dependency critical.
- If vendor non-responsive or SLA inadequate, escalate to procurement/legal for contract amendment or alternative vendors.
Trade-offs and rationale:
- Short-term mitigations are low-risk, quick to deploy, and protect availability without waiting on vendor. Investing in a full cache/fallback upfront is engineering-heavy but reduces vendor exposure long-term.
- Vendor improvements are cheaper if they deliver, but timeline is uncertain and outside our control—so don’t rely on it alone.
- The hybrid approach minimizes user impact now and creates durable resiliency while keeping pressure on the vendor to meet contractual obligations.
Success metrics:
- Reduction in user-facing error rate and latency within 24–72 hrs
- Stabilized SLOs and preserved error budget
- Completed fallback implementation with automated tests within planned weeks
- Vendor SLA improvements documented or contingency plan approved (multi-vendor or permanent fallback)
This plan balances immediate availability, long-term reliability, and pragmatic vendor governance.
A third-party payment gateway changed its rate limits without sufficient notice, causing intermittent failures for your checkout flow. Propose a cross-functional remediation plan: immediate technical mitigations (client-side throttling, retry/backoff, local queuing), vendor negotiation strategy (SLA, escalation contacts), customer communication, and longer-term architecture changes to reduce single-vendor risk. Explain trade-offs and timelines.
Sample Answer
Situation: Our checkout flow began experiencing intermittent failures after a third‑party payment gateway tightened rate limits without notice, increasing checkout errors and user drop-off.
Immediate technical mitigations (0–48 hours)
- Rapidly deploy client-side throttling: add token-bucket limiter at edge (CDN or gateway) to smooth bursts from clients and avoid hammering the vendor.
- Implement exponential backoff + jitter in payment requests with capped retries (e.g., 3 attempts, base 200ms, max 2s) to reduce peak load and avoid synchronized retries.
- Local queuing/fallback: persist payment attempts in a durable queue (Redis stream or DB) and process at a controlled rate; respond to users with an “attempting secure retry” UI message to reduce drop-offs.
- Circuit breaker: trip after configurable error rate to fail fast and show friendly message or alternative payment option.
- Monitoring & alerting: add dashboards and alerts for vendor 429/5xx rates, queue backlog, user checkout conversion delta.
Vendor negotiation strategy (24–72 hours, parallel)
- Escalate via vendor SLA contacts; provide metrics (timestamps, error rates, request traces) to prove impact.
- Request temporary rate‑limit exemption or increased quota while we adjust. Ask for formal SLOs and written change-notice policy.
- Negotiate: defined escalation path, 24/7 on‑call contact, and credits for outages. If vendor non-cooperative, initiate procurement for backup gateway.
Customer communication (within 24 hours)
- Proactive transparency: banner or email to affected customers: acknowledging intermittent checkout issues, advising on safe retry behaviors, and ETA for resolution.
- Provide temporary alternatives: suggest alternate payment methods or phone support for high-value orders.
- Follow up with post‑incident summary and remediation commitments.
Longer-term architecture changes (2 weeks – 6 months)
- Multi-vendor strategy: integrate a second payment provider with transactional routing and failover (priority routing + dynamic load split). Timeline: prototyping 2–4 weeks, QA 2–4 weeks, rollout phased by region.
- Service abstraction: put payment calls behind an internal payment service API that handles retries, throttling policies, analytics, and vendor selection.
- Rate-limiting & traffic shaping as platform features with configurable per-vendor profiles.
- Contract & procurement improvements: require change-notice SLAs, runbooks, and integration testing windows.
- Chaos testing: add synthetic transactions and chaos experiments to validate vendor SLAs and our failover.
Trade-offs
- Immediate mitigations trade user latency/complexity for fewer failures; local queuing delays completion but preserves revenue.
- Multi-vendor increases cost and operational overhead (integration, reconciliation), but greatly reduces single‑vendor risk.
- Aggressive retries may worsen vendor overload; circuit-breakers and backoff mitigate that.
Expected timeline summary
- 0–48h: throttling, backoff, queuing, monitoring, customer message.
- 48h–2 weeks: vendor escalation, temporary quotas, internal payment service MVP.
- 2–8 weeks: secondary vendor integration, phased failover.
- 2–6 months: full production multi-vendor rollout, procurement SLAs, resilience testing.
I would run these steps in parallel, prioritize customer-impacting fixes first, and capture all actions in the incident post‑mortem with owners, deadlines, and success metrics (reduced 429s, restored conversion rate, vendor SLA commitments).
You are leading a program to improve site reliability for a service that handles PCI or HIPAA protected data. Testing, monitoring, and incident disclosure have additional legal and compliance constraints. Outline a program plan that satisfies compliance: test strategies with sanitized data, access controls, logging and audit trails, incident reporting to regulators and customers, and coordination with legal and compliance teams.
Sample Answer
Requirements & constraints:
- Protect PCI/HIPAA data at rest, in transit, and during testing; preserve auditability and timely regulatory/customer reporting; integrate legal/compliance review into incident and test workflows.
Program plan (phases):
- Discover & classify
- Inventory systems, data flows, and touchpoints; tag all datasets as PHI/PCI/other.
- Map who/what accesses each asset; identify high-risk paths.
- Test strategy with sanitized data
- Prefer synthetic datasets that mirror schema, distributions, edge cases. Generate using tooling (e.g., Faker, synthetic-data frameworks) and property-based fuzzing to exercise edge cases.
- Where production-like data needed, apply robust de-identification: format-preserving tokenization for PAN/SSNs, irreversible hashing with per-environment salts for identifiers, and redaction for free text with NLP PII extraction.
- Maintain a sanitized-data pipeline in CI that enforces masking rules via automated checks and rejects any test artifact containing raw identifiers.
- Access controls & least privilege
- Enforce RBAC and ABAC; require MFA and short-lived credentials (OIDC, AWS STS).
- Use network segmentation and VPCs to isolate test environments from production.
- Approve access via documented access request workflows integrated with ticketing and just-in-time access gates; log approvals.
- Logging, audit trails & monitoring
- Centralize immutable logs (WORM where required) with SIEM (Splunk/ELK) and ensure log retention meets regulatory timelines.
- Capture data access events, decryption/key usage, masking operations, and admin actions; add end-to-end trace IDs for request provenance.
- Implement detectors for anomalous access patterns (UEBA) and automate alerts that feed SRE runbooks.
- Incident reporting & disclosure
- Define incident severity matrix tied to regulatory breach definitions and SLO impact.
- Pre-author SRE/legal collaboration playbooks: immediate containment steps, evidence preservation, timeline construction.
- Reporting timelines: internal notification (15/30/60 min thresholds), legal/compliance review within specified SLA, and regulator/customer notification per PCI/HIPAA timelines (e.g., 72 hours for GDPR-like requirements; follow specific statute).
- Prepare templated disclosures and customer communication channels.
- Coordination with legal & compliance
- Form a standing incident response committee: SRE lead, Chief Compliance Officer, Data Protection Officer, Security, and PR.
- Run quarterly tabletop exercises and annual audits; keep playbooks and data-mapping docs updated.
- Use compliance-as-code: encode masking, retention, and access policies in CI/CD and policy engines (OPA).
Metrics & success criteria
- % of tests using sanitized/synthetic data = 100%
- Time-to-detect and time-to-contain SLAs (e.g., detect <15m, contain <2h)
- Audit completeness score (log coverage) > 99%
- Number of unapproved access incidents = 0
Trade-offs
- Synthetic data increases test fidelity gaps — mitigate with targeted production-data-safe probes and robust de-id.
- Increased controls add friction; offset via automation and JIT access.
This plan operationalizes compliance into SRE practices: automated masking pipelines, least-privilege access, immutable logging, fast legal coordination, and measurable SLOs.
Unlock Full Question Bank
Get access to all 9 Operational Risk Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.