D2: Serverless Deployment & Event Processing
Google Cloud Associate Cloud Engineer exam practice questions · 12 flashcards
Question
How do you deploy a container to Cloud Run?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Serverless Deployment & Event Processing practice questions and answers
- How do you deploy a container to Cloud Run?gcloud run deploy SERVICE --image=IMAGE --region=REGION.
- How do you deploy from source?gcloud run deploy --source . (builds with Cloud Build).
- What is Eventarc?Routes events from Google services, Pub/Sub and audit logs to Cloud Run, functions and other targets.
- How do you process Pub/Sub messages with Cloud Run?Use an Eventarc Pub/Sub trigger or a push subscription to the service URL.
- How do you react to Cloud Storage object changes?Eventarc trigger on events like google.cloud.storage.object.v1.finalized.
- How do you deploy a Cloud Run function with a Pub/Sub trigger?gcloud functions deploy NAME --trigger-topic=TOPIC (2nd gen/Cloud Run functions).
- How do you deploy a function triggered by bucket uploads?gcloud functions deploy NAME --trigger-bucket=BUCKET.
- What are audit-log-based Eventarc triggers?Triggers on Cloud Audit Log entries, covering many Google services.
- How do you make a Cloud Run service private?Require authentication (--no-allow-unauthenticated) and grant roles/run.invoker.
- Which identity invokes Cloud Run for Eventarc?A service account with roles/run.invoker.
- What does ingress setting control?Whether traffic is allowed from all, internal only, or internal + load balancer.
- What is the Pub/Sub delivery model?At-least-once; handlers should be idempotent.