← All topics
Start ▶
Deployment and DevOps
Docker, Kubernetes, CI/CD and deployment strategies.
100 questions
Level:
No questions match — try other words or turn a level back on.
1
What is the difference between a Docker image and a container?
An image is an immutable template: an OS layer, a JRE, your jar. A container is a live process started from that image, with its own writable layer on top.
2
What do the FROM, WORKDIR, COPY, RUN and CMD instructions in a Dockerfile do?
FROM picks the base image, WORKDIR the working directory, COPY copies files into the image, RUN executes a command at build time, and CMD says what runs when the container starts.
3
How would you write the simplest Dockerfile to run a Spring Boot application in Docker?
Copy the finished fat jar onto a JRE image and start it with java -jar. The official eclipse-temurin JRE image is a good base.
4
Why is it recommended to base the image for a Java application on a JRE rather than a JDK?
A running application does not need the compiler or dev tools. A JRE image is much smaller, pulls faster, and has fewer packages in which a vulnerability could be found.
5
What do the two port numbers in docker run -p 8080:8080 mean?
The left one is the port on the host machine, the right one is the port inside the container. A request that arrives at the host's 8080 is forwarded to 8080 inside the container.
6
How do you pass settings to a Spring Boot application through environment variables?
Spring Boot reads env vars automatically: an uppercase name with underscores such as SPRING_DATASOURCE_URL maps to the spring.datasource.url property. An env var overrides the value in application.yml.
7
What is a Pod in Kubernetes and how does it differ from a container?
A Pod is the smallest unit Kubernetes manages. It holds one or more containers that share one IP, one network and common volumes.
8
Why use a Deployment instead of creating a Pod directly?
A Deployment keeps the desired number of replicas, brings up a new Pod when one crashes, and rolls out a new version step by step. If a standalone Pod dies, nobody restores it.
9
Why do you need a Service in Kubernetes? Can't you just use the Pod IP directly?
Pod IPs change when Pods die and come back. A Service gives a stable name and IP in front of them and spreads traffic across the ready Pods it finds by label.
10
Explain CI and CD in plain words.
CI means automatically building the code and running the tests on every push. CD means automatically delivering that verified result to environments: in continuous delivery, releasing to prod is one button, and in continuous deployment nobody touches anything.
11
How do you separate dev and prod settings using Spring profiles?
I create application-dev.yml and application-prod.yml for each environment and turn on the right profile through SPRING_PROFILES_ACTIVE. Shared settings stay in the main application.yml.
12
What is wrong with hard-coding a database password or an API key in the code?
A secret that gets into git stays in the history forever, and everyone with access to the repo can see it. On top of that, changing the password requires a rebuild and a redeploy.
13
If port 8080 is busy on a Linux server, how do you find which process holds it?
ss -ltnp | grep 8080 or lsof -i :8080 shows the PID and name of the process listening on the port. Then you check what that PID actually is.
14
How do kill and kill -9 affect a Java process?
Plain kill sends SIGTERM: the JVM runs its shutdown hooks and exits cleanly. kill -9 is SIGKILL: the process is killed immediately, with no cleanup at all.
15
How do you follow the logs of a running application in real time?
It depends on where it runs: tail -f for a plain file, journalctl -u name -f for a systemd service, docker logs -f in Docker, kubectl logs -f in Kubernetes.
16
What is the /actuator/health endpoint in Spring Boot Actuator for?
It tells external systems whether the application is alive and can accept requests. Load balancers, Kubernetes and monitoring use this endpoint to decide whether to send traffic to the app or restart it.
17
What does it mean to roll back after a deploy?
A rollback means returning the application to the last working version when the new one causes problems. The goal is to rescue users first and find the cause later, calmly.
18
What is the .dockerignore file for?
It excludes unneeded files from what is sent to the Docker daemon during docker build. The build gets faster, the image gets smaller, and things like .git or .env do not end up inside the image by accident.
19
What is the risk of deploying a Docker image with the latest tag?
latest is just a label stuck on whatever was pushed last, not a version. With it you cannot tell which code is running, rollback gets harder, and different nodes may end up running different images.
20
What happens to the files inside a container when it is removed, and how does a volume solve this problem?
The container's writable layer is deleted with it, and the files inside are lost. A volume is storage outside the container, and it survives when the container is replaced.
21
Why does an application started with this Dockerfile not shut down cleanly on SIGTERM?
A shell-form ENTRYPOINT runs the application under /bin/sh -c: PID 1 is the shell, and Java is its child. The shell does not forward SIGTERM to Java, so the grace period runs out and the process is killed with SIGKILL.
22
How does the Docker build cache work, and why is pom.xml copied separately before the source code?
Every instruction is its own layer, and Docker takes it from the cache if nothing has changed. When one layer changes, everything after it is rebuilt, so things that rarely change (dependencies) should come first.
23
How does the JVM decide how much heap to take inside a container, and what is better to use instead of -Xmx?
A modern JVM (Java 10+, 8u191+) sees the container's cgroup limit and by default sets the heap to a quarter of the memory limit. Instead of writing -Xmx by hand, it is more convenient to give a percentage with -XX:MaxRAMPercentage.
24
What is the difference between liveness and readiness probes in Kubernetes?
Readiness answers "can this pod receive traffic?": if it fails, the pod is taken out of the Service but not killed. Liveness checks "is the process alive?": if it fails, the kubelet restarts the container.
25
A Pod is stuck in CrashLoopBackOff. Which kubectl commands do you use to find the cause?
First I use kubectl describe pod to see the events and the reason for the last exit, then kubectl logs --previous to see the log of the crashed container. Most of the time the answer is in these two.
26
What is the difference between a ConfigMap and a Secret, and is a Secret really encrypted?
A ConfigMap is for ordinary settings, a Secret is for passwords and keys. But by default the value in a Secret is only base64-encoded, which is not encryption: anyone can read it with base64 -d.
27
If the same property is set in application.yml, in an env var and in a command-line argument, which one does Spring Boot take?
The command-line argument wins, then the env var, and last the application.yml inside the jar. The general rule: a source supplied from outside and "closer" to the running process overrides the one inside.
28
What is the risk of running the application as the root user inside a container?
If a vulnerability is found in the application, the attacker gets root inside the container, and if there is a container-escape vulnerability, reaching the host becomes easier. A Java service does not need root, a regular user is enough.
29
What problems do you see in this Dockerfile?
The image still contains the JDK and Maven, latest is used, the cache does not work because the code is copied before the dependencies, and the app runs as root in shell form.
30
The server's disk is full and the application cannot write. How do you find what is taking the space?
I use df -h to see which partition is full, then du -sh to find which folder is big. On Java servers the culprit is often unrotated logs, heap dumps or old Docker images.
31
What is a multi-stage Docker build, and how does it help a Java application?
One Dockerfile has several FROM stages: in the first, the jar is built with the JDK and Maven, and only the finished jar is copied into the last one. The result is a small, clean image and an identical build on any machine.
32
How do you turn on graceful shutdown in Spring Boot, and what does it actually do?
With server.shutdown=graceful, when SIGTERM arrives the web server stops accepting new requests and gives the current ones time to finish. The time is capped with spring.lifecycle.timeout-per-shutdown-phase.
33
What is the difference between resources.requests and resources.limits in Kubernetes?
requests is the guaranteed amount for the scheduler: a pod is placed only on a node that has that much free. limits is the upper bound: if CPU goes over the limit the pod is throttled, and if memory goes over the limit the container is killed with OOMKilled.
34
In what order are the pods replaced when this Deployment is updated?
In a rolling update with 4 replicas, Kubernetes creates at most 1 extra new pod at a time and never lets the number of ready pods drop below 4. The old pod is deleted only after the new pod passes readiness.
35
What is a blue-green deployment, and how does it differ from a rolling update?
In blue-green, the new version (green) is brought up fully next to the old one (blue), verified, and then all traffic is switched to it at once. A rolling update replaces pods one by one, and for a while both versions run mixed.
36
How does a canary release work, and why is it so often used together with metrics?
The new version first gets a small share of traffic (say 5%), you watch errors and latency, and if everything is fine the share is raised step by step. A canary without metrics is just a slow deploy.
37
How do you deploy a service that has a Flyway migration without downtime?
Every schema change must work with the old and the new code at the same time. Breaking changes (dropping or renaming a column) are split into several releases: first add, then move, and drop last.
38
Which stages would you put in a CI pipeline for a Java service? Give an example.
At minimum: build and unit tests, integration tests, static analysis, scanning dependencies and the image for vulnerabilities, and pushing a versioned image to the registry. Each stage should fail fast, with the expensive stages at the end.
39
What is a startup probe, and how does it help a slow-starting Spring Boot application?
Until the startup probe succeeds, the liveness and readiness checks do not start at all. That lets you keep liveness short and strict while giving the app a long time to start.
40
What is Spring Boot's layered jar feature, and how does it speed up Docker image updates?
A fat jar can be split into layers: dependencies, the Spring Boot loader, snapshot dependencies, and the application code. If you copy each as its own Docker layer, then when the code changes only a layer of a few hundred kilobytes is updated.
41
A container keeps getting OOMKilled, but on the heap graphs memory never went above half of the limit. Where do you look?
The container limit measures the memory of the whole process, not the heap. Thread stacks, metaspace, direct buffers, the JIT code cache and malloc arenas grow outside the heap, so you need Native Memory Tracking to find which one it is.
42
Even with graceful shutdown on, a few 502 errors show up during a deploy. Why, and how do you fix it?
When a pod is being deleted, SIGTERM and removal from the endpoints happen in parallel. By the time the app gets SIGTERM and closes connections, the load balancer and kube-proxy may still send it traffic. Usually waiting a few seconds in preStop closes this race condition.
43
How many cores does the JVM see in a container with a CPU limit, and how does this affect the GC and thread pools?
The JVM reads the cgroup CPU quota and computes availableProcessors() from it: with limits.cpu: 2 it sees 2 cores. GC threads, the ForkJoin common pool and the pool sizes of many libraries are derived from that, so a very small limit slows down the whole application.
44
When does adding a database check to the readiness probe do harm?
If all pods talk to one DB, during a short DB outage every pod becomes "not ready" at once, and the Service is left with no endpoints at all. The user gets a connection error instead of a clear one, and endpoints that could work without the cache or the DB go down too.
45
How do you change the DB password of a service running in prod without downtime?
You need a window in which two passwords work at once: first I create a new user or password in the DB, then move the applications to the new one step by step, and delete the old one when everything has moved.
46
How do you take a thread dump and a heap dump from a Java pod running on a distroless or minimal image?
If the image has no shell and no jcmd, I attach a temporary container with a JDK to the pod using kubectl debug: it shares the process namespace and takes the dump through jcmd. The other way is to take the dump from the application itself, for example through Actuator.
47
In which situations does a plain rollback not help, and what do you do then?
When the new version left a trace that cannot be undone: a migration that breaks the DB schema, messages in the new format sitting in a queue, data with a new structure written to the cache. In that case rolling the code back creates a new problem, and you have to do a forward fix.
48
What problems appear when a HorizontalPodAutoscaler scales a Java service on CPU?
A new JVM pod eats a lot of CPU while it starts and its JIT warms up, so the HPA may take this for load and add even more pods. Also, memory in Java almost never goes down, so scale-down based on memory does not work well.
49
How do you make a Java service's Docker image smaller and more secure?
A minimal base (distroless, or a slim/alpine variant of the JRE), a runtime built with jlink from only the needed modules, a non-root user, and a vulnerability scanner in CI. But every cut also takes away some of the convenience for diagnostics.
50
When load goes up, the log shows a "Too many open files" error. How do you find the cause?
The process has run out of its file descriptor limit: on Linux, sockets, files and pipes are all descriptors. First I check the limit and the current count, then look at what they are with lsof and work out whether there is a leak or the limit is simply small.
51
A Java service in a pod has pushed CPU to 100%. How do you find which thread is to blame?
With top -H -p <pid> I get the ID of the thread using the most CPU, convert it to hex, and match it against nid=0x... in the thread dump. That shows exactly which code is spinning.
52
A new pod has been in Pending for a long time. How do you find the cause and fix it?
Pending means the pod has not been placed on a node yet, or its containers have not started. In the Events section of kubectl describe pod, the scheduler states the reason plainly: not enough resources, a taint, affinity, or an unbound PVC.
53
The IP address of an external API changed, but the Java service still tries the old IP. How is the JVM's DNS cache involved?
The JVM caches DNS answers independently of the OS, according to networkaddress.cache.ttl: 30 seconds by default when there is no security manager, but someone may have set it to -1 (forever). On top of that, old connections in a pool never go back to DNS at all.
54
How do you run a Spring Boot jar as a systemd service on a plain Linux VM, and what do you watch in the unit file?
I write the unit to run under a dedicated user: a direct java -jar in ExecStart, Restart=on-failure, SuccessExitStatus=143 and LimitNOFILE. Logs go to journald, and settings and passwords come through EnvironmentFile.
55
A Java service in a container writes times off by 5 hours. What is the cause, and how should it be set up properly?
A container image is usually in UTC, and the JVM takes its default timezone from the OS. If the code uses LocalDateTime.now() without a zone, the result depends on the environment. The right way is Instant/UTC for storage and exchange, and an explicit ZoneId in business rules.
56
Why is it dangerous to check the database connection inside the liveness probe?
If the DB slows down or drops for a moment, all pods fail liveness at the same time and Kubernetes restarts them. A restart does not fix the DB, it only adds cold-start load and turns a small problem into a full outage.
57
A pod was evicted with "The node was low on resource: ephemeral-storage". What is this, and how do you prevent it in a Java service?
Ephemeral storage is the container's writable layer, emptyDir volumes and the container logs on the node. If the app writes a big file to /tmp, a heap dump, or a log file, the node disk fills up and the kubelet evicts pods. You need to set limits and control such writes.
58
You are running a daily report job built with Spring Boot as a Kubernetes CronJob. What should you pay attention to?
The application must exit on its own with an exit code when the work is done, two copies must not run at the same time (concurrencyPolicy: Forbid), and retries (backoffLimit) and the time limit (activeDeadlineSeconds) must be explicit. If the job is idempotent, a rerun is safe.
59
An image built on an Apple Silicon Mac crashed on the server with "exec format error". What happened, and how should it be built correctly?
The image was built for linux/arm64, while the server is linux/amd64. You need to build with buildx for an explicit platform, or a multi-arch image for both platforms. Best of all, build the image in CI, not on a laptop.
60
A value in a ConfigMap changed. Does a running Spring Boot application see the new value?
If it was given as an env variable, no, only when the pod is recreated. A file mounted as a volume is updated within a few minutes, but Spring does not re-read it on its own, so you need a reload mechanism or a restart.
61
What is the difference between alpine, distroless and a regular Debian/Ubuntu-based JRE when choosing a base image for a Java service?
Size (approx.) / Strength / Pain — eclipse-temurin:21-jre (Ubuntu): ~200 MiB / glibc, shell, the usual tools / more packages, more CVEs; eclipse-temurin:21-jre-alpine: ~100 MiB / small / musl, differences in DNS and native libs; distroless java: ~150 MiB / no shell, small attack surface / you cannot get inside with…
62
The pods are Running, but requests through the Service give "connection refused" or time out. How do you check?
First I check whether the Service has endpoints. If they are empty, the selector does not match the labels or the pods have not passed readiness. If the endpoints exist, I check targetPort, the address the app is listening on, and NetworkPolicy.
63
When a pod starts, the database is not ready yet and the application crashes. Should you wait with an init container, or should the app retry itself?
The main protection should be in the application itself: the DB drops during normal operation too, so the app should wait with a short retry or be able to come up even without the dependency. An init container covers only startup time and can add a new problem of its own.
64
How can you control ReadinessState from code in Spring Boot, and when is that useful?
With AvailabilityChangeEvent.publish(ctx, ReadinessState.REFUSING_TRAFFIC) a pod can take itself out of traffic. For example, during heavy internal work or when an important dependency is lost, without restarting the pod.
65
You moved Actuator to a separate management port. How does this affect Kubernetes probes and security?
With a separate management.server.port, it is easy to keep Actuator away from external traffic. But the probes stop checking the main port: even if the main Tomcat is stuck, the management port may still say "UP". So the probes should also be exposed on the main port.
66
You run integration tests with Testcontainers in your CI pipeline. What problems do you hit, and how do you solve them?
The main problems are no Docker on the CI runner or a Docker-in-Docker setup, re-pulling images on every build, and slow startup. The solutions: the Docker socket or a remote Docker, an image cache/mirror, and reusing containers across tests.
67
Who should run the Flyway migration: the application itself at startup, or a separate step in the deploy pipeline?
Running it at startup is simple, but it causes problems with several replicas, long migrations and the startup probe. In bigger services I make the migration a separate Job or pipeline step, and the app only checks the schema version.
68
The server shows a load average of 20, but top shows the CPU almost idle. What does this mean?
On Linux, load average counts not only the CPU queue but also tasks waiting for disk or network I/O in the uninterruptible (D) state. If the CPU is idle and the load is high, the disk or NFS is usually slow, so look at vmstat, iostat and threads in the D state.
69
An alert says the server disk is 100% full, but du finds no big file. What could it be?
Most likely a file that was deleted but is still held open by some process, usually a log. df counts that space as used, while du does not see the file. Find it with lsof +L1, then restart the process or truncate the file.
70
Tests in CI are sometimes red and sometimes green (flaky). How do you handle that, and what are the usual causes in Java tests?
Ignoring a flaky test with "it passes if you rerun it" kills trust in the pipeline. I identify it, move it to quarantine and give it an owner. In Java the causes are most often time, test order, shared state, async code and external resources.
71
Between blue-green and canary deployment, which do you pick and when?
Blue-green is two full environments and an instant switch: rollback is fast, but resources double and a bug hits all users at once. Canary shifts traffic gradually: the risk stays with a small share, but it needs good metrics and automation.
72
Every rolling update of a service with Kafka consumers causes a rebalance storm and lag shoots up. How do you reduce it?
Every time a pod leaves or joins, the consumer group rebalances, and with the eager protocol the whole group stops. The cooperative-sticky assignor, static membership (group.instance.id), proper graceful shutdown and matching rollout settings shorten these stops considerably.
73
The prod Kubernetes cluster is completely gone (a region outage, or a mistaken terraform destroy). What is your plan to restore the services, and how do you prepare for it in advance?
The plan starts with RPO/RTO: the stateless part comes up in a new cluster from the manifests in Git (GitOps), and the stateful part is restored from a backup or replica outside the cluster. Most important is practice: a backup that has never been restored is not a backup.
74
20 pods, each with a HikariCP pool of 20 connections. During a deploy or autoscaling, Postgres throws "too many clients". How do you fix it?
Connections grow with the pod count: 20×20=400, and more with the surge during a rolling update and with the HPA. You need to shrink the pool in each pod, add a pooler such as PgBouncer if necessary, and compute pod count, surge and pool size as one shared budget.
75
How do you compare AppCDS, CRaC and GraalVM native image for cutting a Java service's startup time?
AppCDS is low risk, a 20-40% gain, and needs no code changes. CRaC restores from a snapshot of a warmed-up process in a fraction of a second, but you have to manage closing and reopening resources. Native image gives millisecond startup and low memory, at the price of a long build, reflection limits, and lower peak throughput without a JIT.
76
What do you configure so your service does not go down during a node drain or a cluster upgrade?
A PodDisruptionBudget limits how many pods can go down at once; anti-affinity and topology spread distribute replicas across different nodes and zones. Without them, all three replicas may sit on one node and a drain takes them down at once.
77
A pod has HTTP requests, a Kafka consumer and @Scheduled jobs. How do you design graceful shutdown from start to finish?
The order: first leave the traffic (the preStop wait), then stop accepting new work, finish the current work, commit offsets, and close resources last. It all has to fit inside terminationGracePeriodSeconds, and every step must be idempotent.
78
How do you control the supply chain security of container images: who built it, what is inside, and whether it was tampered with?
I build images only inside CI, from a minimal base; I generate an SBOM and scan for CVEs; I sign the image (cosign, for example), and in the cluster I accept only signed images from the internal registry, enforced by an admission policy.
79
How do you give a CI pipeline access to the cloud and the registry? What do you use instead of static access keys?
Instead of keeping long-lived keys in CI secrets, I use OIDC federation: on every run the pipeline gets a short-lived token, and the cloud checks it by repo, branch and environment. Permissions are minimal and split by stage.
80
What system do you build to analyze a canary release automatically and roll it back on its own if needed?
I compare the canary and baseline pods' metrics over the same time window: error rate, p99 latency, saturation and a business metric. Argo Rollouts or Flagger manage the steps, and if a threshold is crossed, they send traffic back automatically.
81
A company has 60 Java microservices and 12 teams. How do you design the CI/CD platform for them?
I build a "golden path": shared, versioned pipeline templates and a standard Helm chart, where teams only supply parameters. The mandatory parts (tests, scanning, signing, promotion) live in the platform, the optional parts in the teams, so 60 pipelines do not turn into 60 different ones.
82
How do you choose between GitOps (Argo CD or Flux) and deploying straight from CI with kubectl/helm?
In GitOps the cluster state is pulled from Git: audit, drift correction and not giving CI cluster rights are its strengths. Push deploy is simpler, and controlling the sequence inside a pipeline is easy. With many clusters and many teams, GitOps usually wins.
83
How does moving to a monorepo affect CI/CD, and how do you keep build time under control in a Java monorepo with 100 modules?
A monorepo gives atomic changes and single versions, but if you build everything on every commit, CI dies. You need to build only the changed module and what depends on it, use a remote build cache, and deploy each service separately.
84
How do you organize the release process for a service that runs in three regions?
In waves: first the smallest region or one with internal traffic, with a canary inside it, then a "bake time" and automatic checks, then the next regions. The goal is that a bad release does not hit every region at once, that is, limiting the blast radius.
85
How do you build the dev, stage and prod environment strategy, and how do you solve the problem that staging "does not look like prod"?
I build environments from the same manifests and image, differing only in configuration. Instead of one shared staging, I use short-lived preview environments per PR, and for prod-specific bugs the main protection is not staging but canaries and feature flags.
86
Configuration lives in several places: application.yml, a ConfigMap, Config Server, a feature flag system, a secret store. How do you decide what belongs where?
By how fast it changes and who changes it: what changes with the code lives in the repo; what depends on the environment is in the deploy manifest; what must change quickly without a deploy is in the feature flag system; and anything secret is only in the secret store.
87
In a multi-team Kubernetes cluster, resource utilization is around 25%, but the nodes are "full". How do you analyze it, and what do you do?
This shows that requests were set much higher than actual usage: the scheduler places by requests. You need to bring each service's requests closer to its real p95 usage, use VPA recommendations, namespace quotas, and show teams their cost.
88
Management says "there are too many incidents after deploys, we will limit deploys to once a week". How do you respond?
Fewer deploys usually do not reduce risk, they make each release bigger and riskier. I would show the current state with DORA metrics and propose reducing risk through small changes, automated tests, canaries and fast rollback.
89
You have to make a breaking change in an internal service API that has 25 consumers. How do you plan and deploy it?
I do not ship a breaking change in one move: I add the new version side by side with the old one, watch the consumers through metrics, give them a migration deadline, and remove the old version only when traffic to it has dropped to zero.
90
How do you split deploy and operations responsibility between the platform team and product teams?
The platform team owns the cluster, pipeline templates, observability and security boundaries; the product team owns its service's code, configuration, alerts and on-call. The boundary should be a clear interface, through self-service rather than tickets.
91
How do you plan the migration of a large Java monolith running on VMs to Kubernetes?
First I put the monolith into a container without changing it, run it in parallel with the VMs, and move traffic over step by step. Splitting the architecture is a separate, later project. The main risks are state (files, sessions), memory settings, and operational habits.
92
One shared Kubernetes cluster or a separate cluster per team: how do you decide?
A shared cluster is cheap in resources and operations, but isolation rests on namespaces, RBAC, quotas and network policy. Separate clusters give strong isolation, but each needs upgrades and monitoring. Often the middle is chosen: several shared clusters split by environment and risk level.
93
How do you choose a secrets management architecture for the whole company: Vault, a cloud secret manager, Sealed Secrets or External Secrets?
The main question is where the source of truth is and who controls rotation. I usually make a central store (Vault or a cloud secret manager) the source and sync it into Kubernetes with External Secrets Operator; Sealed Secrets is for small, single-cluster cases.
94
What is the "build once, deploy many" principle, and what problems does breaking it cause?
The artifact (image) is built once, and exactly that digest moves through dev, stage and prod; only the configuration changes. If you rebuild for each environment, what passed the tests and what went to prod can be different things.
95
How do you organize a project to move 80 Java services from JDK 17 to JDK 21?
First I prepare the shared layers (base image, build plugins, shared libraries), then measure on a few pilot services, and roll out in waves through the golden path. Success is measured by runtime and memory metrics staying the same or improving.
96
A critical CVE is announced in the base image. How do you update 200 images within a day?
A process prepared in advance solves this: base images are centralized, it is known which base each image was built from, and a base update automatically triggers rebuild and deploy PRs. Without that, updating 200 images in one day is nearly impossible.
97
Run PostgreSQL and Kafka inside Kubernetes with an operator, or use a managed service: how do you decide?
The main question is whether the team has experience running these systems 24/7, backing them up, upgrading them and recovering them in an incident. If not, a managed service is almost always cheaper. Running inside Kubernetes makes sense when control, cost or on-prem requirements are strong.
98
A service's error budget ran out in the middle of the month. How should the release policy change, and how do you put that in place?
When the error budget runs out, feature releases stop or are strictly limited and the team switches to reliability work; only fixes and security patches go out. This policy must be agreed in writing with the product owner in advance, otherwise it will not work.
99
You are considering introducing a service mesh (Istio, Linkerd) for Java microservices. When is it worth it, and what hidden problems appear?
A mesh gives mTLS, traffic management and uniform telemetry without touching application code, which is useful in a polyglot, many-service system. The cost: extra latency and resources, harder debugging, startup/shutdown ordering with the sidecar, and duplication with retries inside the app.
100
A Kubernetes cluster has to be upgraded by several minor versions every year. Which strategy do you choose: an in-place upgrade, or standing up a new cluster and migrating?
An in-place upgrade is cheap and fast, but it cannot be reverted and a control plane mistake hits the whole cluster. Migrating to a new cluster (a blue-green cluster) is safer and gives you a rollback, but it requires GitOps, external DNS and stateful workloads to be ready.
Sign up — studied questions get marked and your progress is saved.