Declarative and imperative management · Question 11 of 12

A team scales a Deployment to 8 replicas with kubectl scale. The manifest in the repository says replicas: 3. Later the pipeline applies the manifest with kubectl apply -f (without --server-side). What happens?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • B The Deployment drops back to 3 replicas

Explanation

For fields that are in the manifest, apply sets the value from the file again. If an HPA is supposed to scale, you leave replicas out of the manifest.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications