Design a Real-Time Cloud Configuration Drift Detector

Last updated: December 9, 2025

Quick Overview

Design a system that detects when cloud resource configurations drift from their desired secure state and alerts security teams in real time.

Wiz
System Design
Software Engineer
Wiz
December 9, 2025
Software Engineer
Live Technical Session
System Design
Medium

8

8

1,918 solved


Design a system that detects when cloud resource configurations drift from their desired secure state and alerts security teams in real time.

Configuration drift is a major source of security incidents. A security group might be configured correctly today but someone adds an overly permissive rule tomorrow. The system must detect these changes in near real-time, compare against desired state or security baselines, and alert appropriately.

What the Interviewer Expects
  • Design a change detection system using cloud provider event streams
  • Define and manage desired-state security baselines
  • Handle the difference between intentional changes and security drift
  • Provide context-rich alerts that help security teams respond quickly
Key Topics to Cover
Change data capture from cloud APIs
Desired-state configuration management
Real-time event processing
Alert context enrichment
Infrastructure as Code integration
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you distinguish between an authorized change and a security violation?
  • How would you handle drift detection in environments using Infrastructure as Code?
  • What is your rollback strategy for detected drift?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional Requirements

  1. Change Detection: Monitor cloud resources for configuration changes using APIs (e.g., AWS CloudTrail, Azure Activity Logs).
  2. **Desired-State Configuration Manageme...
Capacity Estimation

Assuming Wiz manages around 10,000 cloud resources across multiple accounts, with an estimated 10% of these resources changing configurations daily:

  1. Resource Changes: 10,000 resources * 10% = 1...

Submit Your Answer
Markdown supported

Related Questions