nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #115

You have an application deployed on Kubernetes Engine using a Deployment named echo- deployment. The deployment is exposed using a Service called echo-service. You need to perform an update to the app

The correct answer is A. Use kubectl set image deployment/echo-deployment <new-image>. Deployment ensures that only a certain number of Pods are down while they are being updated. By default, it ensures that at least 75% of the desired number of Pods are up (25% max Deployment also ensures that only a certain number of Pods are created above the desired number of P

Submitted by mateo_ar· Mar 30, 2026Managing implementation

Question

You have an application deployed on Kubernetes Engine using a Deployment named echo- deployment. The deployment is exposed using a Service called echo-service. You need to perform an update to the application with minimal downtime to the application. What should you do?

Options

  • AUse kubectl set image deployment/echo-deployment <new-image>
  • BUse the rolling update functionality of the Instance Group behind the Kubernetes cluster
  • CUpdate the deployment yaml file with the new container image.
  • DUpdate the service yaml file which the new container image.

How the community answered

(57 responses)
  • A
    89% (51)
  • B
    2% (1)
  • C
    4% (2)
  • D
    5% (3)

Explanation

Deployment ensures that only a certain number of Pods are down while they are being updated. By default, it ensures that at least 75% of the desired number of Pods are up (25% max Deployment also ensures that only a certain number of Pods are created above the desired number of Pods. By default, it ensures that at most 125% of the desired number of Pods are up (25% max surge). https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment

Topics

#Kubernetes#rolling update#kubectl#zero-downtime deployment

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice