Cloud+ Kubernetes Pods Services and Deployments Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. A pod restart policy of 'Always' means the kubelet restarts containers even after successful completion. True or False?

Explanation

With `restartPolicy: Always`, the kubelet restarts a container whenever it terminates, whether it exited successfully or failed. It continues doing so for the Pod’s lifetime, with increasing delays between repeated restarts. This differs from `OnFailure`, which restarts only after a nonzero exit, and `Never`, which does not restart the container.

Submit
Please wait...
About This Quiz
Cloud+ Kubernetes Pods Services and Deployments Quiz - Quiz

This quiz evaluates your understanding of Kubernetes core concepts including pods, services, and deployments. Master the fundamentals of containerized application orchestration, resource management, and networking in Kubernetes clusters. Essential for cloud engineers preparing for CompTIA Cloud+ certification and those building production-grade cloud infrastructure.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which object manages pod lifecycle and provides declarative updates for Deployments?

Explanation

A ReplicaSet maintains a desired number of matching Pods, creating replacements when Pods fail or are deleted. Deployments use ReplicaSets to manage their Pods and support declarative updates, such as rolling out a new version. StatefulSets, DaemonSets, and Jobs are designed for different workload patterns.

Submit

3. A Deployment maintains a history of previous ReplicaSets to enable rollback. True or False?

Explanation

True. A Deployment keeps a revision history of its previous ReplicaSets, allowing you to roll back to an earlier version when needed. The number of old ReplicaSets retained is controlled by the Deployment’s revision history limit.

Submit

4. In a multi-container pod, containers share the same network namespace. What does this enable?

Explanation

Containers in a pod share one network namespace, including the same IP address and port space. This allows them to communicate directly using `localhost`, while requiring each container’s services to use distinct ports to avoid conflicts.

Submit

5. A Service selector must match pod labels exactly for traffic routing. True or False?

Explanation

A Service routes traffic to Pods whose labels satisfy its selector. Each key-value pair specified in the selector must match the corresponding Pod label exactly; Pods may have additional labels that the selector does not specify. Therefore, the statement is True.

Submit

6. Which Deployment field specifies the maximum number of pods that can be unavailable during an update?

Explanation

In a Kubernetes Deployment, `maxUnavailable` sets the maximum number of desired pods that may be unavailable while a rolling update is in progress. It helps control how much capacity can be temporarily lost. By contrast, `maxSurge` limits how many extra pods can be created during the update.

Submit

7. What does the 'imagePullPolicy' field in a pod spec control?

Explanation

The `imagePullPolicy` setting determines when Kubernetes’ kubelet checks for and pulls a container image—for example, always pulling it or using a locally cached image when available.

Submit

8. A pod's IP address is stable across pod restarts within the cluster. True or False?

Explanation

A Pod’s IP address is assigned for that Pod’s lifetime. If the Pod is deleted and recreated after a restart or failure, Kubernetes may assign it a different IP address. Applications should use a stable Service address rather than rely on a Pod’s IP.

Submit

9. Labels in Kubernetes are used to organize and select objects. Which field uses labels to select pods?

Explanation

The `selector` field uses label key-value pairs to identify and select matching pods. Kubernetes resources such as Services and Deployments use selectors to target the pods they manage or route traffic to. Annotations store descriptive metadata, namespaces group resources, and affinity rules influence pod scheduling.

Submit

10. What is the default restart policy for a pod?

Explanation

Kubernetes defaults a Pod’s `restartPolicy` to `Always`. This means the kubelet restarts a container whenever it terminates, whether it exits successfully or with an error, helping keep the Pod’s intended workload running. The policy can be explicitly set to `OnFailure` or `Never` when different behavior is needed.

Submit

11. What is the smallest deployable unit in Kubernetes?

Explanation

A Pod is Kubernetes’ smallest deployable unit. It groups one or more closely related containers that share network access and storage, and are scheduled together on the same node.

Submit

12. Which deployment strategy gradually replaces old pods with new ones?

Explanation

A Rolling Update replaces old pods with new ones in stages, rather than stopping all old pods at once. This helps keep the application available during deployment while the new version is introduced gradually.

Submit

13. What does a Deployment's spec.replicas field define?

Explanation

The `spec.replicas` field specifies how many pod replicas a Deployment should maintain. Kubernetes works to match the actual number of running pods to this desired count, creating or removing pods as needed.

Submit

14. A LoadBalancer Service automatically provisions an external load balancer. In which cloud environments is this fully supported?

Explanation

A `LoadBalancer` Service relies on cloud-provider integration to create and configure an external load balancer. This functionality is supported by AWS, Azure, GCP, and other compatible cloud environments. On-premises clusters generally need an additional load-balancer implementation.

Submit

15. ClusterIP is the default Service type and provides internal cluster networking. True or False?

Explanation

True. A ClusterIP Service is Kubernetes’ default Service type. It assigns an internal IP address that allows applications within the cluster to communicate with the Service, but it does not expose the Service directly outside the cluster.

Submit

16. Which Service type exposes pods on each node at a static port?

Explanation

NodePort exposes a Service on a fixed port across every node in the Kubernetes cluster. Traffic sent to that port on any node is forwarded to the Service’s pods, making them reachable from outside the cluster.

Submit

17. What is the primary purpose of a Kubernetes Service?

Explanation

A Kubernetes Service provides a consistent network endpoint for a group of pods. Because pods can be replaced or their IP addresses can change, the Service routes traffic to the currently available pods, often distributing requests among them. This lets clients access workloads reliably without tracking individual pod addresses.

Submit

18. A Deployment provides rolling updates and rollback capabilities. True or False?

Explanation

A Deployment manages application replicas and updates them gradually, replacing old Pods with new ones while maintaining availability. It also records rollout history, allowing you to undo a rollout and restore a previous version if an update causes problems.

Submit

19. Which Kubernetes object manages a set of replicated pods and ensures desired state?

Explanation

A ReplicaSet maintains a specified number of identical pod replicas. It creates or removes pods as needed to match the desired count, helping ensure the application remains available if pods fail.

Submit

20. A pod can contain multiple containers. What is a primary use case for this design?

Explanation

A pod is designed to group containers that work closely together. They share the same network namespace, allowing them to communicate over localhost and share the pod’s IP address and ports.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A pod restart policy of 'Always' means the kubelet restarts containers...
Which object manages pod lifecycle and provides declarative updates...
A Deployment maintains a history of previous ReplicaSets to enable...
In a multi-container pod, containers share the same network namespace....
A Service selector must match pod labels exactly for traffic routing....
Which Deployment field specifies the maximum number of pods that can...
What does the 'imagePullPolicy' field in a pod spec control?
A pod's IP address is stable across pod restarts within the cluster....
Labels in Kubernetes are used to organize and select objects. Which...
What is the default restart policy for a pod?
What is the smallest deployable unit in Kubernetes?
Which deployment strategy gradually replaces old pods with new ones?
What does a Deployment's spec.replicas field define?
A LoadBalancer Service automatically provisions an external load...
ClusterIP is the default Service type and provides internal cluster...
Which Service type exposes pods on each node at a static port?
What is the primary purpose of a Kubernetes Service?
A Deployment provides rolling updates and rollback capabilities. True...
Which Kubernetes object manages a set of replicated pods and ensures...
A pod can contain multiple containers. What is a primary use case for...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!