CS FundamentalsVery hardProduct-company DevOps interview
A Kubernetes Deployment has 10 replicas and a rolling-update strategy with maxSurge = 25% and maxUnavailable = 25%. Kubernetes rounds maxSurge up and maxUnavailable down. During the rollout, what are the most pods that can exist and the fewest that must stay available?
- A. 13 pods at most, at least 8 available
- B. 12 pods at most, at least 7 available
- C. 13 pods at most, at least 7 available
- D. 12 pods at most, at least 8 available
Correct answer: A. 13 pods at most, at least 8 available
25% of 10 = 2.5: maxSurge rounds up to 3 (10 + 3 = 13 pods) and maxUnavailable rounds down to 2 (10 - 2 = 8 available). Rounding the other way gives the distractors; the asymmetry errs on the side of availability.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A team wants to rename the column custname to customername in a live database with zero downtime while old and new app versions run side…
- A Dockerfile ends with ENTRYPOINT ["python", "app.py"] and CMD ["--port", "80"]. The container is started with docker run myimg --port…
- A Go service's Docker image is 900 MB because it includes the compiler and build tools. Which change gives a small image containing only…
- An engineer runs docker exec into a running container, edits a config file, and later the container is removed and recreated from the same…
- A pipeline builds the application separately for each environment (dev, QA, prod) from the same commit. Which principle does this break…
- According to the Twelve-Factor App methodology, where should a service keep its database URL and API keys that differ between staging and…