You deploy a new revision of a Cloud Run service. What happens to the previous revision?
Think about how Cloud Run manages traffic between revisions.
Cloud Run keeps previous revisions available so you can route traffic to them if needed. They are not deleted automatically.
You want to split traffic 70% to the latest revision and 30% to the previous revision in Cloud Run. Which configuration snippet correctly sets this?
Latest revision is usually the one you want to get 70% traffic.
The configuration must assign 70% to the latest revision (rev-2) and 30% to the previous (rev-1). The order in the array does not matter but the percentages must match.
You want to design a system that can quickly rollback to a previous stable version of your Cloud Run service if the latest deployment fails. Which approach best supports this?
Think about how Cloud Run manages revisions and traffic routing.
Cloud Run allows you to keep previous revisions and route traffic to them instantly without redeploying. This enables fast rollback by shifting traffic back.
What is a potential security risk of keeping multiple old revisions active in Cloud Run?
Consider what happens if old code has security flaws.
Keeping old revisions active means they can still receive traffic. If they have security flaws, attackers might exploit them if routed traffic reaches them.
Cloud Run retains up to 1000 revisions per service. What is the best practice to manage revision cleanup to avoid hitting this limit?
Check how Cloud Run handles revision limits and what control you have.
Cloud Run does not auto-delete old revisions automatically. You must manually delete old revisions to avoid hitting the limit and potential deployment failures.