0
0
GCPcloud~20 mins

Revision management in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Run Revision Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Cloud Run Revision Behavior

You deploy a new revision of a Cloud Run service. What happens to the previous revision?

AThe previous revision is automatically scaled down to zero and removed after 24 hours.
BThe previous revision is deleted immediately to save resources.
CThe previous revision is archived and cannot be accessed anymore.
DThe previous revision remains available and can receive traffic if configured.
Attempts:
2 left
💡 Hint

Think about how Cloud Run manages traffic between revisions.

Configuration
intermediate
2:00remaining
Traffic Splitting Between Revisions in Cloud Run

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?

A{"traffic": [{"revisionName": "rev-1", "percent": 70}, {"revisionName": "rev-2", "percent": 30}]}
B{"traffic": [{"revisionName": "rev-2", "percent": 70}, {"revisionName": "rev-1", "percent": 30}]}
C{"traffic": [{"revisionName": "rev-2", "percent": 30}, {"revisionName": "rev-1", "percent": 70}]}
D{"traffic": [{"revisionName": "rev-1", "percent": 30}, {"revisionName": "rev-2", "percent": 70}]}
Attempts:
2 left
💡 Hint

Latest revision is usually the one you want to get 70% traffic.

Architecture
advanced
2:00remaining
Designing a Rollback Strategy Using Cloud Run Revisions

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?

AKeep previous revisions and use traffic splitting to route 100% traffic back to the stable revision.
BManually edit the service to rename the previous revision as the latest.
CUse Cloud Build triggers to automatically rollback on failure.
DDelete the latest revision and redeploy the previous revision from source code.
Attempts:
2 left
💡 Hint

Think about how Cloud Run manages revisions and traffic routing.

security
advanced
2:00remaining
Security Implications of Retaining Old Revisions in Cloud Run

What is a potential security risk of keeping multiple old revisions active in Cloud Run?

AOld revisions consume all available CPU resources causing denial of service.
BOld revisions automatically expose admin credentials to all users.
COld revisions may have outdated code with vulnerabilities accessible if traffic is routed to them.
DOld revisions disable HTTPS causing unencrypted traffic.
Attempts:
2 left
💡 Hint

Consider what happens if old code has security flaws.

Best Practice
expert
2:00remaining
Managing Revision Limits and Cleanup in Cloud Run

Cloud Run retains up to 1000 revisions per service. What is the best practice to manage revision cleanup to avoid hitting this limit?

AManually delete old revisions regularly using gcloud or console to keep the count low.
BIgnore the limit as Cloud Run automatically deletes oldest revisions when limit is reached.
CConfigure Cloud Run to auto-delete revisions older than 7 days via service settings.
DDisable revision retention so only the latest revision is kept automatically.
Attempts:
2 left
💡 Hint

Check how Cloud Run handles revision limits and what control you have.