GCP ACE · Question 26 · Domain 3.3: Deploying and implementing Cloud Run and Cloud Functions
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?
Answer options:
Deploy it on a Compute Engine VM and use a cron job to poll the bucket every minute.
Deploy it as a Cloud Function triggered by Cloud Storage events.
Deploy it to Cloud Run and configure an HTTP load balancer to route traffic from the bucket.
Deploy it to App Engine and use Cloud Scheduler to trigger the script.
50 questions · hints · full answers · grading