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
105 practiced

You're deploying an ML inference service requiring a GPU-backed model with 100 requests per second baseline and p95 latency under 50ms. Compare serverless GPU options, containers on managed Kubernetes with GPU nodes, and VMs with GPUs. Provide a recommended approach and justify trade-offs for latency, cost, and operational complexity.

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
72 practiced

A team needs to run nightly batch jobs with variable parallelism and a limited budget; jobs can run up to 4 hours. Compare using serverless functions, container-based batch runners, and a managed batch service for this. Recommend an approach and justify it on cost, execution-time limits, cold starts, and operational effort.

MediumTechnical
73 practiced

Compare serverless functions (e.g. AWS Lambda, GCP Cloud Functions) versus container-based deployments on Kubernetes (EKS/GKE/AKS) for serving ML models. Discuss cold starts, concurrency limits, model size limits, latency characteristics, state management, operational complexity, and cost behavior at low and high traffic volumes. Provide recommendations for small batch inference and for serving large transformer models.

MediumTechnical
53 practiced

Explain the operational trade-offs between using managed GPU clusters from a cloud vendor versus running your own self-hosted GPU clusters on Kubernetes. Cover productivity, cost predictability, hardware control, scheduling complexity, portability, and long-term maintenance.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.