Easy1 markMultiple Choice
Domain 3.3: Deploying Cloud Run and Cloud FunctionsDomain 3.3Cloud FunctionsEvent-driven

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

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?

Answer options:

A.

Compute Engine

B.

Cloud Functions

C.

Cloud Run

D.

App Engine

How to approach this question

Identify the serverless service designed for event-driven, single-purpose functions.

Full Answer

B.Cloud Functions✓ Correct
Cloud Functions is a lightweight, event-driven, serverless compute service. It is the perfect fit for executing single-purpose scripts (like image resizing) in response to GCP events, such as a file being uploaded to a Cloud Storage bucket.

Common mistakes

Choosing Compute Engine, which introduces unnecessary infrastructure management.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam