Meta DevOps engineer interviews cover CI/CD pipelines, infrastructure as code, container orchestration, monitoring, and incident response procedures.
No verified questions yet for Meta.
ConfigManager class that handles configuration loading and updates.Problem statement: Define the ConfigManager class that stores configurations for different services and provides methods to retrieve and update these configurations.def __init__(self): Initializes the configuration manager.def set_config(self, service_id: str, config: Dict[str, Any]) -> None: Sets or updates the configuration for a specific service.def get_config(self, service_id: str) -> Dict[str, Any]: Retrieves the configuration for a specific service.Example 1:config_manager = ConfigManager(); config_manager.set_config('auth_service', {'retry_limit': 3}); config = config_manager.get_config('auth_service'){'retry_limit': 3}1 <= service_id.length <= 10010^4 key-value pairs.HealthMonitor that allows registering services and conducting regular health checks.def __init__(self): Initializes the health monitor.def register_service(self, service_id: str) -> None: Registers a new service to monitor.def health_check(self, service_id: str) -> bool: Conducts a health check and returns the service's health; returns True or False.Example 1:monitor = HealthMonitor(); monitor.register_service('user_service'); status = monitor.health_check('user_service')True1 <= service_id.length <= 10010^5 service registrations.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free