For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeGCP Associate Cloud Engineer (ACE)GCP Associate Cloud Engineer Practice Exam 6Question 26
    Medium1 markMultiple Choice
    Domain 3.3: Deploying Cloud Run and Cloud FunctionsCloud FunctionsEvent-DrivenCloud StorageServerless

    GCP ACE · Question 26 · Domain 3.3: Deploying Cloud Run and Cloud Functions

    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?

    Answer options:

    A.

    Deploy the script on a Compute Engine instance and use a cron job to poll the bucket every minute.

    B.

    Deploy the script to Cloud Run and configure Cloud Scheduler to trigger it.

    C.

    Deploy the script as a Cloud Function triggered by Cloud Storage events.

    D.

    Deploy the script to a GKE cluster and use a Kubernetes DaemonSet.

    How to approach this question

    Identify the requirement: execute code based on an event (file upload) with minimal management. This is the classic use case for Cloud Functions.

    Full Answer

    C.Deploy the script as a Cloud Function triggered by Cloud Storage events.✓ Correct
    Cloud Functions is an event-driven serverless compute platform. It is the perfect solution for running lightweight, single-purpose scripts in response to events within Google Cloud. You can configure a Cloud Function to be triggered automatically by Cloud Storage events (specifically, the `google.storage.object.finalize` event), meaning your Python script will run instantly whenever a new image is uploaded, without you having to manage any servers or write polling logic.

    Common mistakes

    Choosing Compute Engine with polling, which is an anti-pattern in cloud architecture.
    Question 25All questionsQuestion 27

    Practice the full GCP Associate Cloud Engineer Practice Exam 6

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01What is the primary purpose of a Google Cloud project?EasyQ02Your development team needs to manage Compute Engine instances in a specific project. They need t...MediumQ03You are automating the setup of a new Google Cloud project using a bash script. You need to enabl...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...MediumQ05Your finance team wants to perform granular analysis of your Google Cloud spending using SQL. The...Hard
    View all 50 questions →