Coinbase DevOps engineer interviews cover CI/CD pipelines, infrastructure as code, container orchestration, monitoring, and incident response procedures.
KnowledgeBaseSystem that stores articles with CRUD operations. The system operates entirely...Input: Graph (nodes and edges)Dockerfile used to build a service image. The goal is to minimize the image size while ensuring that all dependencies are available and the application runs as expected.def optimize_dockerfile(base_image: str, packages: List[str]) -> str: - Returns an optimized Dockerfile as a string.Example 1:optimize_dockerfile('python:3.9-slim', ['flask', 'requests'])"FROM python:3.9-slim\nRUN pip install --no-cache-dir flask requests"optimize_dockerfile('node:14', ['express', 'body-parser'])"FROM node:14\nRUN npm install --production"1 <= base_image.length <= 501 <= packages.length <= 20 and each package name is at most 30 characters long.def build_image(service_name: str) -> None: - Builds the Docker image for the service.def run_tests(service_name: str) -> bool: - Runs tests for the service and returns True if all tests pass.def deploy(service_name: str, environment: str) -> None: - Deploys the service to the specified environment.def rollback(service_name: str) -> None: - Rolls back the deployment to the previous version.Example 1:build_image('auth_service')Nonerun_tests('auth_service')True1 <= service_name.length <= 100environment must be one of the strings: 'staging', 'production', 'development'.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free