nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #74

You manage an application that runs in Google Kubernetes Engine (GKE) and uses the blue/green deployment methodology. Extracts of the Kubernetes manifests are shown below: The Deployment app-green was

The correct answer is D. Change the selector on the Service app-svc to app: my-app, version: blue.. In a blue/green setup, the Kubernetes Service routes traffic using label selectors. When app-green (new version) is causing failures, the fastest mitigation is to update the Service selector back to app: my-app, version: blue, redirecting all traffic to the stable blue Deployment

Submitted by tunde_lagos· Apr 18, 2026Managing a service incident

Question

You manage an application that runs in Google Kubernetes Engine (GKE) and uses the blue/green deployment methodology. Extracts of the Kubernetes manifests are shown below: The Deployment app-green was updated to use the new version of the application. During post- deployment monitoring, you notice that the majority of user requests are failing. You did not observe this behavior in the testing environment. You need to mitigate the incident impact on users and enable the developers to troubleshoot the issue. What should you do?

Exhibit

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER question #74 exhibit

Options

  • AUpdate the Deployment app-blue to use the new version of the application.
  • BUpdate the Deployment app-green to use the previous version of the application.
  • CChange the selector on the Service app-svc to app: my-app.
  • DChange the selector on the Service app-svc to app: my-app, version: blue.

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    7% (3)
  • C
    5% (2)
  • D
    85% (35)

Explanation

In a blue/green setup, the Kubernetes Service routes traffic using label selectors. When app-green (new version) is causing failures, the fastest mitigation is to update the Service selector back to app: my-app, version: blue, redirecting all traffic to the stable blue Deployment. This is the rollback action in blue/green - the blue Deployment is still running and healthy. Option B (reverting the green Deployment) takes longer and is riskier. Options A and C do not correctly restore traffic to the known-good blue version.

Topics

#Kubernetes#Blue/Green Deployment#Incident Response#Service Rollback

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice