⚡ ~/naveed Interview Prep
⚡ Portfolio Home 👤 About Naveed Bio & Credentials 📫 Contact Naveed Get In Touch ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 1,000+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
← Back to All Linux & SRE Interview Questions Scenario 20 of 135 in Linux & SRE
Staff SRE / Principal Architect [L3] General DevOps General DevOps — Scenario-Based Interview Questions Staff SRE Scenario [L3]
🎯 Target Role / Context: General DevOps Scenario #14 (L3) · General DevOps — Scenario-Based Interview Questions

Q: A legacy monolithic application is tightly coupled to a single master database. You want to break it into microservices, but they all still query the massive 10TB monolithic database. What is this anti-pattern called, and how do you migrate away from it?

When an interviewer asks about this scenario, I explain how we balanced incident response with long-term prevention. The interviewer is testing: Integration Database anti-pattern, Strangler Fig pattern, database per service..

#General DevOps #L3 #DevOps #SRE #Architecture
🎙️ Candidate Opening & Architectural Context
""When an interviewer asks about this scenario, I explain how we balanced incident response with long-term prevention. The interviewer is testing: Integration Database anti-pattern, Strangler Fig pattern, database per service.. I structure my answer around systematic triage first, root cause analysis second, and permanent remediation third.""
Advertisement
⚡ Recommended Practice Lab

Want to master this scenario in a live sandbox? The Linux Foundation's Certified System Administrator (LFCS) & SRE Track covers this exact problem with hands-on terminal drills.

🛠️ Production Runbook & Step-by-Step Resolution

Direct Answer: "When an interviewer asks about this scenario, I explain how we balanced incident response with long-term prevention. The interviewer is testing: Integration Database anti-pattern, Strangler Fig pattern, database per service.. I structure my answer around systematic triage first, root cause analysis second, and permanent remediation third."

1️⃣

Initial Diagnostics & Root Cause Analysis

The anti-pattern is an Integration Database. It ruins the benefits of microservices because the database becomes a massive single point of failure; a schema change by Service A breaks Service B, and scaling the DB becomes near impossible.

  • Identify a small, bounded context (e.g., User Profiles) in the monolith.
  • Build the new UserProfileService and give it its own entirely separate, small database.
  • Keep them in sync during migration using Change Data Capture (CDC, like Debezium) streaming from the monolith DB to the new DB.
2️⃣

Remediation & Permanent Safeguards

The migration approach is the Strangler Fig Pattern combined with Database per Service:

  • Update the API Gateway to route /users traffic to the new microservice.
  • Once stable, sever the sync and delete the tables from the monolithic database. Repeat for all domains until the monolith is "strangled."
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Identify a small, bounded context (e.g., User Profiles) in the monolith.."
⚡ 60-Second Elevator Pitch Talking Points
  • Identify a small, bounded context (e.g., User Profiles) in the monolith.
  • Build the new UserProfileService and give it its own entirely separate, small database.
  • Keep them in sync during migration using Change Data Capture (CDC, like Debezium) streaming from ...
⛔ Critical Candidate Mistakes to Avoid in This Scenario

Senior hiring managers and bar raisers evaluate how you prioritize during outages. Avoid these common anti-patterns:

  1. Engineering bespoke in-house developer tools instead of adopting standardized platform Golden Paths when configuring General legacy monolithic Bespoke internal tools create long-term maintenance debt and fragmented workflows, whereas standardized Golden Paths accelerate delivery.
  2. Overlooking infrastructure cost visibility and FinOps allocation tagging across multi-tenant environments when configuring General legacy monolithic Without granular resource tagging, engineering organizations cannot attribute cloud infrastructure costs to specific teams or business units.
  3. Failing to define explicit Service Level Objectives (SLOs) and Error Budgets to balance feature velocity with reliability when configuring General legacy monolithic Without agreed SLOs, engineering and product teams lack an objective data-driven framework to prioritize technical debt over new features.
  4. Neglecting automated continuous drift detection between declarative configuration and deployed cloud state when configuring General legacy monolithic Unmanaged drift accumulates over time, causing future automated deployments to fail or overwrite emergency manual adjustments.
Advertisement
Want more Linux & SRE scenarios?
Explore our complete collection of scenario-based Linux & SRE interview runbooks.
Browse All Linux & SRE Questions →