Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You've developed a Python function to resize images for your web application portal. This function should execute automatically whenever a new object is uploaded to a Cloud Storage bucket. What's the best approach to achieve this?
A
Set up Google Kubernetes Engine to run your application and use Pub/Sub with a CRON job for triggering.
B
Deploy your Python code as a Cloud Function and set the Cloud Storage bucket as the trigger resource.
C
Utilize App Engine for running the Python code and configure Cloud Scheduler along with Pub/Sub to trigger it.
D
Implement a batch job using Dataflow, configuring the bucket as the data source.