Question 1
Topic: Architecture and Technologies
Skill tested: Evaluates Kubernetes workload-controller selection for stable replica count and self-healing.
A retail platform runs a stateless API that must maintain six identical replicas across node failures. Operators need declarative updates and automatic replacement when a Pod becomes unavailable. The application does not require stable Pod identities, ordered startup, or persistent per-replica storage. The team currently creates Pods directly from a manifest and has had to recreate them manually after node maintenance. Which Kubernetes object is the most appropriate controller for this workload?
A Deployment is the appropriate higher-level controller for a stateless replicated application. It maintains the desired replica count through its ReplicaSet and provides declarative update and rollback behavior, addressing the team's replacement and release needs. A directly managed ReplicaSet can maintain replicas but lacks the Deployment's standard rollout management. A StatefulSet is intended for workloads needing stable identities or storage association, neither of which is required. A DaemonSet targets eligible nodes rather than a specified six-replica count.