Category: Interval-based system design problem# Top 5 Recently Asked System Design Questions - Microsoft These are the commonly asked system design questions from Microsoft interviews and some...Input: List Output: Computed result
system designSeniorapi design#1
1. [OA] Service Health Monitor – Design a class to monitor service health in Azure
Microsoft needs a robust system to track and manage the health of various services across its cloud environments. You will design a Service Health Monitor to detect and report service disruptions. Your task is to: - Create a class that monitors services and returns health status. - Include methods to log status and send alerts based on predefined thresholds.Example 1: Input: monitor = ServiceHealthMonitor(); monitor.check_service('AzureStorage') Output: Service 'AzureStorage' is healthy. Explanation: Successfully checks the health status of the specified service and logs it.Constraints: - Must check service status every 5 minutes. - Must handle at least 10 different services concurrently.
system designSeniorci cd#2
2. [OA] CI/CD Pipeline – Design a scalable Continuous Integration pipeline for Azure DevOps
Continuous Integration (CI) is vital for teams at Microsoft to ensure code quality and rapid delivery. Design a scalable CI pipeline that can handle multiple repositories and parallel builds for high demand. Your task is to: - Create a system that can manage build jobs for several repositories at once. - Include a function to trigger builds based on pull requests.Example 1: Input: trigger_build(pr=True, repo='repo1') Output: Build initiated for repo1 for pull request. Explanation: Triggers build when a new pull request is made and verifies the main branch.Constraints: - Must support at least 50 parallel builds. - Should allow build configurations for multiple types of applications.