Domain 3.3: Deploying Cloud Run and Cloud Functions
10 questions across 5 exams
Exams covering this topic
All questions (10)
You need to execute a lightweight piece of code every time a new file is uploaded to a specific Cloud Storage bucket. Which service is the MOST appropriate choice?
You are deploying a container image to Cloud Run. You want to ensure that unauthenticated users cannot access the service. How should you configure the deployment?
You are deploying a public-facing website using Cloud Run. You have the container image ready in Artifact Registry. You want to ensure that anyone on the internet can access the website without needing to authenticate. Which flag must you include in your gcloud run deploy command?
You are writing a Cloud Function that needs to process images automatically as soon as they are uploaded to a specific Cloud Storage bucket. Which trigger type should you configure for the Cloud Function?
You want to execute a Python script automatically every time a new image file is uploaded to a specific Cloud Storage bucket. The script will resize the image and save it to another bucket. You want to minimize operational overhead. Which GCP service should you use to run this script?
You have built a Docker container image for a web application and pushed it to Google Artifact Registry. You want to deploy this image to Cloud Run so that it can receive public HTTPS traffic. Which gcloud command should you use?
You are deploying a new public-facing website using Cloud Run. You want anyone on the internet to be able to access the website without needing to log in. How should you configure the authentication settings during deployment?
You are writing a Cloud Function that needs to process messages as soon as they are published to a Cloud Pub/Sub topic named `order-events`. How should you configure the Cloud Function to achieve this?
You have built a container image for a simple web API and pushed it to Artifact Registry. You want to deploy this image to Cloud Run so that it can receive HTTPS requests from the public internet. Which gcloud command should you use?
You are writing a Python script that needs to execute automatically every time a new image file is uploaded to a specific Cloud Storage bucket. The script will resize the image and save it to a different bucket. You want to deploy this with minimal infrastructure management. How should you deploy this script?
Practice these questions with detailed guidance
Full answers, grading, and explanations on why each answer is correct.
Expert