CS FundamentalsHardProduct-company DevOps interview
A database cluster needs each replica to keep a stable network name (db-0, db-1, db-2) and its own persistent volume across restarts. Which Kubernetes workload type fits, rather than a Deployment?
- A. StatefulSet
- B. DaemonSet
- C. Job
- D. ReplicaSet
Correct answer: A. StatefulSet
StatefulSets give pods ordered, stable identities and per-pod persistent volume claims. Deployments treat pods as interchangeable; DaemonSets run one pod per node.
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
- In GitOps, how does a change reach a Kubernetes cluster?
- A team stops patching running servers in place and instead builds a new machine image for every change, replacing old servers entirely…
- How many of these statements about cyclomatic complexity are correct? 1. Adding a straight-line statement to a function never changes…
- A team applies the Open/Closed principle so aggressively that every class has an interface, a factory and plug-in points 'in case'…
- Two functions contain the same three lines of code, but one computes a GST rate and the other a delivery charge that happens to use the…
- A class Report depends on ReportFormatter, and ReportFormatter depends on Report to read its data, creating a cyclic dependency between…