FREE CKA Workloads and Scheduling Questions and Answers

0%

Which Kubernetes object is used to ensure that a specific number of replicas of a Pod are running at any time?

Correct! Wrong!

A ReplicaSet ensures that a specific number of replicas of a Pod are running at all times. While Deployment manages ReplicaSets and provides additional features like rolling updates, StatefulSet is used for stateful applications, and DaemonSet ensures one Pod per node.

How do you prevent a Pod from being scheduled on specific nodes?

Correct! Wrong!

You can taint a node with a specific key-value pair and effect, and then only Pods with the appropriate tolerations can be scheduled on those nodes.

What happens when you scale a Deployment to zero replicas?

Correct! Wrong!

Scaling a Deployment to zero replicas terminates all Pods managed by the Deployment, but the Deployment itself and its associated ReplicaSet remain intact. This allows you to scale up the Deployment later if needed.

Which type of workload should you use for a Pod that must run on every node in a Kubernetes cluster?

Correct! Wrong!

A DaemonSet ensures that a Pod runs on every node in the cluster (or a subset of nodes based on selectors). This is commonly used for logging, monitoring, or networking agents. The other objects do not guarantee Pods on every node.

How can you ensure that a Pod is scheduled on a node with specific hardware requirements (e.g., GPUs)?

Correct! Wrong!

A node selector is used in the Pod specification to specify key-value pairs that must match the labels of the desired node.

Premium Tests $49/mo
FREE February-2025