Easy1 markMultiple Choice
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?
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
Q01You have recently joined a new team and need to set up a new Google Cloud project for a developme...EasyQ02Your company uses Google Workspace. You need to grant a new developer, Alice, the ability to view...MediumQ03You have created a new GCP project and want to deploy a Compute Engine instance. However, when yo...MediumQ04Your startup has a strict monthly cloud budget of $500. You want to be notified via email when yo...EasyQ05Your finance team wants to analyze Google Cloud costs using standard SQL and build custom dashboa...Medium
Expert