4 questions across 2 exams
You are deploying a new application to Cloud Run. The application is packaged in a container image located in Artifact Registry. You want the application to be publicly accessible over HTTPS. Which gcloud command should you use?
You are writing a Cloud Function in Node.js that needs to execute every time a new file is uploaded to a specific Cloud Storage bucket. How should you configure the trigger for this Cloud Function?
You have a container image stored in Artifact Registry at `us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest`. 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 is uploaded to a specific Cloud Storage bucket. The script will resize the image and save it to another bucket. How should you deploy this script?
Full answers, grading, and explanations on why each answer is correct.