Cloud and operations · 24 concepts
Cloud for developers: Kubernetes, CI/CD and AWS
What a developer must know to ship and run a service: Kubernetes, CI/CD pipelines, and the AWS and Docker details beyond the basics.
Asked in these mock interviews
Part 1 · 3 concepts
Docker for developers
- 01
Production images: Node, Spring Boot and Python AI services
A production image is built in stages, installs dependencies in their own cached layer, runs on a small runtime base and carries no build tools. The details differ for…
- 02
Configuration and secrets: one image, many environments
Build one image and deploy it everywhere, with configuration from the environment at run time. A secret copied into any layer stays there, so use build secret mounts…
- 03
Why it works on your laptop and breaks in the container
Containers change the network, the user and the file system. Most laptop-to-container bugs come from localhost, binding to 127.0.0.1, running as non-root, writing to…
Part 2 · 5 concepts
Kubernetes: shipping a service
- 04
What your service owes the platform
Kubernetes can run any container, but it replaces pods at any time and sends signals, so a service must be stateless, configurable from outside, observable and ready to…
- 05
Deployment, Service and CronJob manifests
A Deployment runs pods, a Service gives them one stable address by matching labels, and a CronJob runs a task on a schedule. Most first bugs are labels and ports that…
- 06
Graceful shutdown and rolling deploys
On pod deletion Kubernetes sends SIGTERM and waits for a grace period before SIGKILL. If your process never sees the signal, every deploy cuts live connections at once.
- 07
Debugging CrashLoopBackOff, ImagePullBackOff and stuck rollouts
Always start with the pod status, then describe, then the logs of the previous run, then events. The exit code and the event message usually name the cause.
- 08
Requests, limits and OOMKilled
Requests decide scheduling, limits decide enforcement. A container over its memory limit is killed by the kernel, and for Java the heap is only a part of the memory the…
Part 3 · 4 concepts
Kubernetes: scaling and running it well
- 09
The HPA and why CPU is the wrong signal
The Horizontal Pod Autoscaler scales on a metric against a target. An I/O-bound service can be drowning while CPU stays low, so scale on concurrency, queue length or…
- 10
Service balancing and long-lived connections
A ClusterIP Service balances connections, not requests. With HTTP/2 or gRPC one connection carries everything, so new pods can sit idle while old pods are overloaded.
- 11
ConfigMaps, secrets and Helm per environment
Environment variables from a ConfigMap never change in a running pod. Treat a configuration change as a deploy. Helm packages manifests with values per environment.
- 12
Init containers, sidecars and Jobs
Init containers run to completion before the app. A sidecar runs next to the app for its whole life. Native sidecars give the sidecar a start and stop order, and Jobs…
Part 4 · 6 concepts
CI/CD for developers
- 13
Designing a pipeline for a new service
A good pipeline gives fast feedback on every pull request, builds one artifact on main, and promotes the same artifact through staging to production with approval and a…
- 14
Jenkins and GitHub Actions pipelines as code
Both tools keep the pipeline in the repository. Know the shape of a declarative Jenkinsfile and the trade-offs between self-hosted Jenkins and hosted GitHub Actions.
- 15
Pipeline security: untrusted input and deploy credentials
A pipeline runs code with deploy credentials, so every input that an outsider controls is a way in: comments, pull request code, branch names and runners that keep state.
- 16
Making a slow pipeline fast
Measure first: queue time, run time and the critical path. Then fix caching, split tests in parallel, reuse a prepared database and bake dependencies into a base image.
- 17
Image tags, versions and knowing what is running
Tag every image with the commit SHA and deploy by digest. The latest tag hides which code runs and breaks rollbacks.
- 18
Safe releases: strategies, flags and database migrations
Your code and database must work while two versions run together. Choose rolling, blue-green or canary on purpose, separate deploy from release with feature flags, and…
Part 5 · 6 concepts
AWS for developers
- 19
How code gets AWS credentials, and least-privilege policies
Give the compute an IAM role and let the SDK fetch short-lived credentials. Write policies that name actions and resources, keep secrets in a secrets service, and watch…
- 20
Safe S3 access: presigned URLs, public buckets and leaked keys
A presigned URL is a bearer token, a public bucket is a data leak, and a key in an app is public. Check ownership on the server, keep Block Public Access on and use…
- 21
Lambda and SQS under load
Each Lambda environment handles one request and has its own connections, and SQS delivers at least once with a visibility timeout. Both break in quiet or busy periods…
- 22
Finding failures and cost surprises
With only CloudWatch you can still find a failing path with structured logs and Logs Insights, and you can find a cost jump with Cost Explorer, tags and anomaly…
- 23
Choosing the entry point and the compute
Choose by traffic shape, latency, run time, team skills and who is on call. API Gateway, an ALB and a function URL each fit different needs, and so do Lambda, Fargate…
- 24
Choosing the database and the region
Start from access patterns, consistency and scale, then pick the database. For Indian products also decide the region by latency, data rules and disaster recovery.
Your first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.