Kubernetes and Cloud Native Associate (KCNA) Practice Questions

Kubernetes and Cloud Native Associate (KCNA) exam preparation

Kubernetes and Cloud Native Associate (KCNA) practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 90 minutes.

Kubernetes and Cloud Native Associate (KCNA) free question 8 / 10 · Domain 3: Cloud Native Application Delivery

Which statement about a Deployment's spec.progressDeadlineSeconds matches the Kubernetes documentation?

  1. The deadline keeps counting while the rollout is paused, so resuming leads to a timeout
  2. After the deadline, Kubernetes rolls the Deployment back to the previous revision
  3. After the deadline, the controller stops switching to the new ReplicaSet and does not retry
  4. After the deadline, the status shows ProgressDeadlineExceeded, and the controller keeps retrying
Show the answer and explanation

Answer: D

Why this is correct
The Deployment page describes progressDeadlineSeconds as the number of seconds to wait for the Deployment to progress before the system reports that it has failed progressing. That surfaces as a condition with type Progressing, status "False", and reason ProgressDeadlineExceeded in the status of the resource. The page then states that the Deployment controller will keep retrying the Deployment, and that the field defaults to 600. A note adds that Kubernetes takes no action on a stalled Deployment other than reporting the condition, and that the check is skipped while a rollout is paused. The condition helps you spot rollouts blocked by problems such as image pull failures or insufficient quota.

Why the other options are wrong
"After the deadline, Kubernetes rolls the Deployment back to the previous revision" … The page says Kubernetes takes no action on a stalled Deployment other than to report a status condition with reason ProgressDeadlineExceeded. Higher-level orchestrators may use that to roll back, but Kubernetes does not.
"After the deadline, the controller stops switching to the new ReplicaSet and does not retry" … The page says the Deployment controller will keep retrying the Deployment. The condition reports that progress has failed; it does not mean the controller gave up.
"The deadline keeps counting while the rollout is paused, so resuming leads to a timeout" … The page says that if you pause a Deployment rollout, Kubernetes does not check progress against your specified deadline, so you can pause in the middle of a rollout and resume without triggering the condition.

The deadline reports, it does not act
Missing the deadline sets a status condition and nothing else: no automatic rollback and no giving up. It does not run while paused.

Go to the Kubernetes and Cloud Native Associate (KCNA) practice app (10 free questions; purchase unlocks all questions)

See the full practice set