TestNav Technical Troubleshooting 1 — Questions and Answers
Question 1: What is a Pod in Kubernetes?
- The smallest deployable unit that can contain one or more containers (Correct answer)
- A physical server
- A network switch
- A database table
Correct answer: The smallest deployable unit that can contain one or more containers
A Pod is Kubernetes' atomic deployment unit, wrapping one or more containers that share storage, networking, and a specification for how to run.
Question 2: What is a Kubernetes Deployment?
- A resource that manages ReplicaSets and provides declarative updates for Pods (Correct answer)
- A one-time job
- A storage class
- A network policy
Correct answer: A resource that manages ReplicaSets and provides declarative updates for Pods
Deployments manage the rollout, scaling, and updating of Pod replicas, enabling rolling updates, rollbacks, and declarative state management.
Question 3: What is a ConfigMap?
- An object storing non-confidential configuration data as key-value pairs (Correct answer)
- A password vault
- A routing table
- A log file
Correct answer: An object storing non-confidential configuration data as key-value pairs
ConfigMaps store configuration data separately from application code, allowing configuration changes without rebuilding container images.
Question 4: How does Kubernetes handle service discovery?
- Through Services that provide stable DNS names and IP addresses for Pods (Correct answer)
- Manual IP configuration
- External DNS only
- No service discovery mechanism
Correct answer: Through Services that provide stable DNS names and IP addresses for Pods
Kubernetes Services provide stable network endpoints with DNS names, automatically routing traffic to healthy Pods regardless of their changing IP addresses.
Question 5: What is a Persistent Volume (PV)?
- A storage resource in the cluster provisioned independently of Pod lifecycle (Correct answer)
- Temporary container storage
- A type of ConfigMap
- A network drive
Correct answer: A storage resource in the cluster provisioned independently of Pod lifecycle
PVs are storage resources that exist beyond Pod lifecycle, ensuring data persistence even when Pods are destroyed and recreated.
Question 6: What does 'kubectl get pods' show?
- A list of all Pods and their status in the current namespace (Correct answer)
- Server hardware info
- Network configuration
- User accounts
Correct answer: A list of all Pods and their status in the current namespace
This command displays all Pods in the current namespace with their name, ready status, current state, restarts, and age.
What is a Pod in Kubernetes?