Google DevOps engineer interviews cover CI/CD pipelines, infrastructure as code, container orchestration, monitoring, and incident response procedures.
No verified questions yet for Google.
ConfigManager class that allows applications to store and retrieve configurations using a key-value pair approach.- class ConfigManager: def set_config(self, key: str, value: str) -> None: def get_config(self, key: str) -> str: def delete_config(self, key: str) -> None: def list_configs(self) -> List[Tuple[str, str]]: config_manager = ConfigManager() config_manager.set_config('feature_x_enabled', 'true') None 1 <= key.length <= 100 1 <= value.length <= 100 CircuitBreaker class that manages the state of the circuit breaker and the logic to handle requests based on its state.- class CircuitBreaker: def call(self, request: Callable[[], T]) -> T: def reset(self) -> None: cb = CircuitBreaker() result = cb.call(lambda: my_service_call()) result from my_service_call() or raises an exception CICDPipeline that manages builds and deployments, handles test executions, and keeps track of build histories.- class CICDPipeline: def build(self, service_name: str) -> bool: True if the build is successful, otherwise False.def test(self, service_name: str) -> bool: True if the tests are successful, otherwise False.def deploy(self, service_name: str) -> bool: True if deployment is successful, otherwise False.def get_build_history(self) -> List[str]: pipeline = CICDPipeline() pipeline.build('ServiceA') True 1 <= service_name.length <= 100 Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free