Bird
0
0

You need to revert your Cloud Run service prod-service to a previous revision prod-service-00004 without downtime. Which approach is best?

hard📝 Application Q8 of 15
GCP - Cloud Run
You need to revert your Cloud Run service prod-service to a previous revision prod-service-00004 without downtime. Which approach is best?
AStop the service and redeploy <code>prod-service-00004</code> manually
BDelete all newer revisions and redeploy <code>prod-service-00004</code>
CDeploy a new revision with the same image as <code>prod-service-00004</code> and delete the old revision
DUpdate traffic routing to send 100% traffic to <code>prod-service-00004</code> using <code>gcloud run services update-traffic</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand rollback without downtime

    To rollback safely, you should route traffic to the previous revision without deleting or stopping the service.
  2. Step 2: Use traffic management

    The gcloud run services update-traffic command allows you to shift traffic to a specific revision.
  3. Step 3: Apply 100% traffic to the desired revision

    Setting 100% traffic to prod-service-00004 effectively rolls back the service.
  4. Final Answer:

    Update traffic routing to send 100% traffic to prod-service-00004 -> Option D
  5. Quick Check:

    Deleting revisions or stopping service causes downtime. [OK]
Quick Trick: Use traffic update to rollback without downtime [OK]
Common Mistakes:
  • Deleting revisions causing downtime
  • Stopping service before rollback
  • Redeploying instead of routing traffic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes