CS FundamentalsHardProduct-company DevOps interview
A Kubernetes pod takes 60 seconds to warm its cache after start-up. During that time it should get no traffic but must not be restarted. Which probe handles this?
- A. Liveness probe, which restarts the container if it fails
- B. Readiness probe, which removes the pod from service endpoints until it reports ready
- C. Startup probe only, which routes traffic
- D. None; Kubernetes always waits 60 seconds
Correct answer: B. Readiness probe, which removes the pod from service endpoints until it reports ready
Readiness controls whether the pod receives traffic; liveness controls whether it is restarted. Using liveness here would restart a slow-starting pod in a loop; a startup probe can additionally delay liveness checks.
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 CI workflow uses a build matrix of 3 operating systems x 4 language versions, with 2 specific combinations excluded. How many jobs run…
- Which pairing of security testing approaches is correct?
- A team uses Terraform. Someone changes a security-group rule by hand in the cloud console. What is this called, and what happens at the…
- How many of these are among the four DORA key metrics of software delivery performance: (1) deployment frequency, (2) lead time for…
- A blue-green deployment keeps two identical production environments and switches the router from blue (old) to green (new). Which…
- A database server is upgraded from 8 to 32 vCPUs to handle more load, while a stateless web tier grows from 4 to 12 identical instances…