Skip to content
tezvyn:

Top 30 Deployment Interview Questions and Answers

30 multiple-choice questions on Deployment, drawn from 30 bites out of the 130 tagged Deployment on Tezvyn. Answer them here or read straight down. Every question carries the correct option, why it is correct, and a link to the bite it came from.

30 questions. Pick an answer, or open “Show the answer” to read it.

Answers are graded in your browser. Nothing is saved, and no XP or streak is earned here. The app keeps score.

  1. Question 1 of 30

    What is the significance of Vercel using the same public Adapter API contract as third-party platforms?

    Show the answer

    Answer: a · Third-party platforms can achieve full framework fidelity without relying on reverse-engineered internals.

    The correct answer is B because the card emphasizes that the public contract allows any platform to target the same framework fidelity as Vercel without reverse-engineering build output. Option D is tempting because Vercel did open-source its adapter, but the card explicitly states there are no private hooks, so there was no secret build logic to replicate.

    Read the full bite: Next.js 16.2 ships stable Adapter API for all platforms

  2. Question 2 of 30

    How does Bitbucket prioritize the deployment status badge when a single commit maps to multiple environments with different states?

    Show the answer

    Answer: d · It ranks statuses by urgency and surfaces the highest-priority state

    The card explains that badges bubble up by urgency, ranking Failed above Stopped, In Progress, and Successful. Distractor A is tempting because many tools sort by recency, but Bitbucket explicitly uses urgency-based prioritization.

    Read the full bite: Bitbucket beta adds live deployment status to PR lists

  3. Question 3 of 30

    Which scenario would trigger an automated MLOps deployment but typically not a traditional DevOps pipeline?

    Show the answer

    Answer: b · Production monitoring detecting drift in input data distributions

    The card states that MLOps deployments add triggers like data drift detection, unlike DevOps pipelines that react to code commits, dependency patches, or infrastructure changes. The GPU driver update is a tempting distractor because a common misconception is that MLOps is simply DevOps plus GPUs.

    Read the full bite: What are the primary differences between traditional DevOps and MLOps?

  4. Question 4 of 30

    Which approach aligns with the 'build once, deploy many' principle when handling environment-specific database URLs?

    Show the answer

    Answer: d · Build the container image once, then provide the database URL via environment variables at deployment time

    The correct answer preserves artifact immutability by externalizing configuration and deploying the same binary everywhere. Option C is tempting because build arguments appear to parameterize deployments cleanly, but they force per-environment rebuilds that can introduce unverified dependency changes.

    Read the full bite: What is a build artifact and why build once deploy many crucial?

  5. Question 5 of 30

    A development team prioritizes rapid deployment of their custom web application and wants to avoid managing servers or operating systems. Which cloud service model best fits their needs?

    Show the answer

    Answer: b · Platform as a Service (PaaS), as it abstracts away infrastructure, allowing focus on code and quick deployment.

    PaaS is designed for rapid development and deployment by abstracting away the underlying infrastructure like servers and operating systems, allowing developers to focus solely on their application code. While IaaS offers control, it requires managing those underlying components, which the team wants to avoid.

    Read the full bite: Platform as a Service (PaaS): Focus on Code, Not Infrastructure

  6. Question 6 of 30

    What is the primary advantage of implementing a Blue-Green deployment strategy?

    Show the answer

    Answer: d · It ensures continuous service availability and provides immediate rollback capabilities during deployments.

    The card states that Blue-Green deployment enables "zero-downtime releases and instant rollbacks," which directly translates to continuous service availability and immediate rollback. Option C is incorrect because this strategy temporarily doubles infrastructure costs.

    Read the full bite: Blue-Green Deployment: Zero-Downtime Releases

  7. Question 7 of 30

    What is the primary distinguishing characteristic of CD4ML compared to traditional CI/CD pipelines?

    Show the answer

    Answer: a · It explicitly manages and automates changes across code, data, and trained models.

    CD4ML's core innovation is extending CI/CD to manage the unique lifecycle of ML systems, which includes versioning and automating changes for code, data, and the trained model. While it does automate deployment (Option C), this is also a feature of traditional CI/CD; the distinction lies in the comprehensive management of data and models as first-class artifacts.

    Read the full bite: CD4ML: Automating ML from Data to Deployment

  8. Question 8 of 30

    When is it most appropriate to use Expo Application Services (EAS)?

    Show the answer

    Answer: d · When preparing a production-ready build for app store submission or pushing over-the-air updates.

    EAS is designed for production workflows, handling cloud builds, app store submissions, and over-the-air updates for React Native apps. It is explicitly stated as distinct from local development tools like the `expo` CLI, which are used for prototyping and running local development servers.

    Read the full bite: Expo Application Services (EAS): The Cloud Toolchain for React Native

  9. Question 9 of 30

    Which characteristic of blue-green deployment most directly enables sub-minute rollback during a failed release?

    Show the answer

    Answer: c · The blue environment remains fully operational and ready to receive traffic after cutover.

    The card states that because the old environment stays warm, rollback is a single traffic switch rather than a redeploy. Option A describes a canary release, which reuses the same infrastructure and gradually shifts traffic, making it a common misconception rather than true blue-green behavior.

    Read the full bite: Explain blue-green deployment, its prerequisites, and how it reduces deployment risk.

  10. Question 10 of 30

    What is a key architectural difference between adapter-static and adapter-node?

    Show the answer

    Answer: a · adapter-static pre-renders pages into HTML files at build time, whereas adapter-node produces a Node server for dynamic requests

    adapter-static outputs static HTML for CDN deployment while adapter-node creates a running Node server capable of SSR and API routes. A is tempting but wrong because Vite handles bundling; an adapter only repackages the already-bundled output for a specific platform.

    Read the full bite: What is a SvelteKit adapter and how do adapter-static and adapter-node differ?

  11. Question 11 of 30

    For what primary purpose is a SvelteKit adapter indispensable?

    Show the answer

    Answer: a · To translate the built application for a specific production hosting environment.

    SvelteKit adapters are essential for bridging the gap between SvelteKit's platform-agnostic build and the specific requirements of a production hosting environment. The card explicitly states that adapters are not needed during local development, as the vite dev server handles everything.

    Read the full bite: SvelteKit Adapters: Bridge Your App to Production

  12. Question 12 of 30

    What is the primary benefit of using Uvicorn workers for a FastAPI application in production?

    Show the answer

    Answer: d · It allows the application to utilize multiple CPU cores for concurrent request processing.

    Uvicorn workers are designed to scale your application by running multiple processes, each capable of handling requests, thereby utilizing all available CPU cores to process requests concurrently. Options A and B are incorrect because workers actually complicate debugging and disable auto-reloading; option A is wrong as workers do not fix fundamentally slow or blocking application logic.

    Read the full bite: Uvicorn Workers: Scaling Your FastAPI App

  13. Question 13 of 30

    What type of content is explicitly advised AGAINST including directly within a build artifact?

    Show the answer

    Answer: c · Environment-specific configuration variables or secrets

    The card explicitly states, "Do not bundle environment-specific configuration or secrets into an artifact." This ensures the artifact remains a generic, deployable unit, with configuration supplied at runtime. The other options describe components that are typically part of a build artifact.

    Read the full bite: Build Artifact: The Packaged Output of a CI Run

  14. Question 14 of 30

    In an automated rollback pipeline triggered by a failed canary smoke test, which step must occur before redeploying the last known good release?

    Show the answer

    Answer: c · Shift traffic back to the stable baseline and freeze the canary progression

    The card states that traffic isolation—freezing the canary and shifting traffic to the stable baseline—must happen before any rollback begins to minimize blast radius. Running health checks against the previous release is part of post-redeploy verification, while manual approval or in-place patches break the automated safety contract.

    Read the full bite: Smoke test fails after canary deployment. Design the automated rollback.

  15. Question 15 of 30

    What should an automated pipeline validate after a model is tagged Staging but before it receives production traffic?

    Show the answer

    Answer: c · Data drift, performance regression, bias thresholds, schema compatibility, and security scanning

    Before any traffic exposure, the pipeline must automatically validate data drift, performance regression, bias, schema compatibility, and security against production baselines. Option B is tempting because it mentions holdout metrics and model cards, but a signed card is a trigger rather than a validation gate, and holdout metrics alone omit critical production-specific checks like drift and bias.

    Read the full bite: Design a CI/CD pipeline that automates model promotion from Staging to Production

  16. Question 16 of 30

    What is the core problem with deploying app:latest to production Kubernetes?

    Show the answer

    Answer: d · The tag is mutable, so the same reference can resolve to different code across pods and time

    latest is a movable pointer, breaking reproducibility and rollbacks. It is not blocked by Kubernetes (A), unrelated to size (B), and does not affect health checks (C).

    Read the full bite: Why :latest is a production anti-pattern

  17. Question 17 of 30

    Why is a Service needed in front of the Deployment's Pods for external access?

    Show the answer

    Answer: c · Pod IPs are ephemeral, so a Service provides a stable endpoint and load-balances across them

    Pods get new IPs when rescheduled; a Service gives a durable virtual IP and balances traffic across current healthy Pods. The Deployment creates Pods regardless of any Service.

    Read the full bite: Minimal objects to expose a stateless app

  18. Question 18 of 30

    Why is a StatefulSet, not a Deployment, the right choice for a clustered database?

    Show the answer

    Answer: c · Each Pod needs a stable identity and its own persistent volume that survives rescheduling

    A StatefulSet gives stable ordinal names, stable DNS, and per-Pod persistent storage that databases require. Deployments treat Pods as interchangeable and can mount volumes (B) but not per-Pod stable ones.

    Read the full bite: Deployment versus StatefulSet

  19. Question 19 of 30

    During a Deployment image update, what mechanism actually performs the rolling update?

    Show the answer

    Answer: c · The Deployment creates a new ReplicaSet and scales it up while scaling the old one down

    The Deployment orchestrates rollouts by creating a new ReplicaSet and shifting replicas between old and new. A ReplicaSet only maintains count; it does not rewrite Pods in place (B).

    Read the full bite: Deployment, ReplicaSet, and Pod hierarchy

  20. Question 20 of 30

    After running kubectl create deployment webapp --image=my-app:1.0 with no extra flags, how many Pods does Kubernetes schedule by default?

    Show the answer

    Answer: a · One, because create defaults to a single replica

    create deployment defaults to a single replica, so you must scale to reach three. The 'three by default' option is a common misconception; there is no automatic per-node or zero-replica behavior.

    Read the full bite: Create a Deployment with 3 replicas via kubectl

  21. Question 21 of 30

    Which combination of automated CI tests best validates a classification model artifact before deployment?

    Show the answer

    Answer: c · Data schema checks, performance regression against a baseline, bias audits, and artifact integrity tests

    Data schema checks, performance regression, bias audits, and artifact integrity tests validate the model artifact itself rather than just the surrounding code. Option A is tempting because it verifies the pipeline runs and responds quickly, but it never asserts whether the model's accuracy, fairness, or data assumptions have degraded.

    Read the full bite: What automated tests belong in CI before deploying a classification model?

  22. Question 22 of 30

    In a CI/CD4ML pipeline, why is a model registry considered an active control plane rather than passive storage?

    Show the answer

    Answer: b · It serves as a versioned artifact store where CI publishes validated models and CD consumes approved versions, enabling promotion workflows and rollback by switching version pointers.

    The registry is an active control plane because CI publishes validated, versioned artifacts with metadata and CD consumes approved versions, supporting promotion and rollback. Treating it as a manual cloud storage bucket misses the versioning, governance, and automated lifecycle contracts between data science and engineering.

    Read the full bite: What is a model registry's purpose in CI/CD4ML and its CI/CD interaction?

  23. Question 23 of 30

    During a rolling update triggered by an image change, what does the Deployment controller actually do with the old ReplicaSet?

    Show the answer

    Answer: d · Scales it down gradually and retains it at zero for rollback

    The old ReplicaSet is scaled down progressively and kept at zero so rollout undo can restore it. Pods are never edited in place, and the old ReplicaSet is not deleted right away.

    Read the full bite: How a Deployment rolling update works

  24. Question 24 of 30

    When you run kubectl rollout undo, how does Kubernetes restore the previous version so quickly?

    Show the answer

    Answer: b · It scales the previously retained ReplicaSet back up and the bad one down

    The old ReplicaSet was kept at zero, so undo just scales it up again. Rollback does not rebuild images or restore data; it only changes the workload's pod template back.

    Read the full bite: Rolling back a bad Deployment

  25. Question 25 of 30

    Which sequence of quality gates correctly reflects the flow of the immutable container image toward production?

    Show the answer

    Answer: a · Build and unit tests, vulnerability scan, staging integration tests, canary with SLO checks

    The card describes a pipeline where the image is built and unit-tested first, scanned for vulnerabilities before registry push, validated in staging with integration tests, and finally promoted via canary using SLO checks. Option B reverses build and scan, C places staging before the security gate, and D pushes the image before scanning and skips the canary stage.

    Read the full bite: Describe essential CI/CD stages for a containerized app and critical quality gates

  26. Question 26 of 30

    What does progressDeadlineSeconds do when new Pods in a rolling update never become Ready?

    Show the answer

    Answer: d · It marks the Deployment as failed (ProgressDeadlineExceeded) after that much time without progress

    After no progress for that duration, the controller sets the Progressing condition to False with reason ProgressDeadlineExceeded. It does not auto-rollback, delete old Pods, or restart the failing ones.

    Read the full bite: Stalled rollouts and progressDeadlineSeconds

  27. Question 27 of 30

    Why is contract testing especially important in a microservice-based ML system?

    Show the answer

    Answer: d · Services evolve independently, so verifying interface and data-schema expectations catches breaking changes before integration

    Independent release cadences make interface and schema drift the main risk; consumer-driven contract tests catch breaks in the producer's pipeline early. It complements, not replaces, unit tests and versioning.

    Read the full bite: CI/CD for microservice-based ML systems

  28. Question 28 of 30

    On a git-based PaaS like Heroku, what is the role of the Procfile versus requirements.txt?

    Show the answer

    Answer: d · The Procfile declares the process start command; requirements.txt lists the dependencies to install

    requirements.txt tells the buildpack which packages to install, while the Procfile declares how to start each process, such as the web command. Secrets belong in config vars, not the Procfile.

    Read the full bite: Deploying to Heroku via Git

  29. Question 29 of 30

    For which scenario is the Kubernetes Recreate deployment strategy the most appropriate choice?

    Show the answer

    Answer: a · Introducing a new database schema that is incompatible with the existing application version.

    Option A is correct because the Recreate strategy is specifically designed for updates with breaking changes, such as database schema migrations, where old and new versions cannot coexist. Option B is incorrect because the Recreate strategy explicitly guarantees downtime, making it unsuitable for scenarios requiring no service interruption.

    Read the full bite: Recreate Deployment: Downtime for a Clean Slate

  30. Question 30 of 30

    What is the primary role of a container registry in a build-and-deploy pipeline for Cloud Run?

    Show the answer

    Answer: c · It stores the built, tagged image so the deploy stage can pull that exact artifact

    The registry stores immutable tagged images and is the handoff between build (which pushes) and deploy (which pulls). It does not compile code, run tests, or generate Dockerfiles.

    Read the full bite: CI/CD pipeline for a container PaaS

Could you explain these out loud?

That is what an interview actually tests. Tezvyn gives you questions like these with what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon