Cloud Compute Options and Trade-offs Questions

Choosing among compute abstractions independent of provider: virtual machines, containers, managed container services, serverless functions, and bare metal. Covers the cost, control, cold-start, scaling, and operational trade-offs of each model; how to pick an instance family or hardware accelerator (general-purpose, compute-optimized, memory-optimized, GPU, TPU) and a purchasing model (on-demand, reserved, spot); and how workload characteristics (latency, statefulness, burstiness) drive the decision. Managed-versus-self-managed reasoning lives here.

MediumTechnical
53 practiced

Spot (or preemptible) instances offer a steep pricing discount in exchange for the provider being able to reclaim the instance on short notice. Describe how an architecture can safely use spot instances for stateless web tiers, batch processing, and other compute-intensive jobs, and what you'd design in to handle interruptions gracefully.

MediumTechnical
74 practiced

Compare virtual machines, containers, managed PaaS, and serverless functions for deploying a three-tier web application: explain the differences in operational responsibility, control over the runtime, patching, scaling behavior, and typical startup latency, and say where each model is the best fit, giving a concrete example workload for each (a steady web tier, a bursty API, a batch job). Then explain how your recommendation would change for a small operations team versus a large platform team.

HardSystem Design
68 practiced

Design an architecture to host interactive developer sessions (remote IDEs) that need long-running connections per user with predictable latency and cost controls; serverless functions are unsuitable here because of execution limits. Explain your compute choice, session persistence, autoscaling strategy for sessions, idle-session cleanup, security isolation, and how costs are allocated per user.

MediumTechnical
65 practiced

You must host a REST API with predictable traffic peaking at 100 requests/sec, per-request compute under 50ms, and a compliance requirement to retain logs for 7 years. Choose between VMs, containers on managed Kubernetes, and serverless functions. Explain your recommended compute platform, the logging and storage choices that satisfy retention and compliance, a minimal monitoring stack, and the trade-offs you considered.

HardTechnical
53 practiced

For a legacy monolith currently running on VMs, compare a lift-and-shift to containers against rearchitecting to serverless microservices. For each approach, sketch a migration plan with phases, expected timelines, key risks, a testing strategy, and the metrics you'd use to decide which path to pursue.

Unlock Full Question Bank

Get access to all 36 Cloud Compute Options and Trade-offs interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.