Bgcloud run create myapp --image=gcr.io/myproj/app:v2 --region=us-central1
Cgcloud run deploy --image=gcr.io/myproj/app:v2 --region=us-central1
Dgcloud run deploy myapp --image=gcr.io/myproj/app:v2 --region=us-central1
Step-by-Step Solution
Solution:
Step 1: Understand updating a Cloud Run service
To update an existing service and keep its URL, use 'gcloud run deploy' with the same service name.
Step 2: Check options for correct update command
gcloud run deploy myapp --image=gcr.io/myproj/app:v2 --region=us-central1 uses 'deploy' with service name and new image, which updates the service. Options A, B, and D are incorrect commands or missing service name.
Final Answer:
gcloud run deploy myapp --image=gcr.io/myproj/app:v2 --region=us-central1 -> Option D
Quick Check:
Deploy with same service name updates app [OK]
Quick Trick:Use 'deploy' with same service name to update [OK]
Common Mistakes:
Using 'create' instead of 'deploy' to update
Omitting service name
Using wrong gcloud commands
Master "Cloud Run" in GCP
9 interactive learning modes - each teaches the same concept differently