easyMultiple ChoiceObjective-mapped
Google ACE Practice Question: A team needs to run a simple containerized script…
A team needs to run a simple containerized script that processes a batch of files once per night and exits when done — no HTTP endpoint needed. Which GCP service is most appropriate?
⚠ Common exam trap
Google Cloud often tests the distinction between Cloud Run Services (HTTP-driven, always-on) and Cloud Run Jobs (batch, run-to-completion), leading candidates to incorrectly choose Cloud Run Services for batch workloads due to familiarity with the 'Cloud Run' name.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Cloud Run Jobs triggered by Cloud Scheduler
Cloud Run Jobs is the correct choice because it is designed for batch workloads that run to completion, with no requirement for an HTTP endpoint. It can handle long-running tasks (up to 24 hours) and can be triggered by Cloud Scheduler for nightly execution, making it ideal for processing files once per night.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Cloud Run Services with a timeout set to 24 hours
Why it's wrong here
Cloud Run Services are designed for HTTP request/response workloads, not batch processing. Setting a timeout of 24 hours is not allowed—the maximum configurable timeout for a Cloud Run service request is far lower (typically 60 minutes or less). Even if a timeout were permitted, services scale to zero between requests and are billed per request, making them unsuitable for a nightly job that must run to completion without an incoming HTTP trigger.
- ✓
Cloud Run Jobs triggered by Cloud Scheduler
Why this is correct
Cloud Run Jobs execute a container to completion in response to an explicit execution request, making them ideal for a nightly batch script. You can configure the job with a command, environment variables, a timeout (up to 24 hours or more), and the number of parallel tasks, and the job exits with a success/failure exit code. Cloud Scheduler can trigger the job via Pub/Sub or a direct API call using IAM authentication, providing a serverless cron that runs each night without maintaining an HTTP server.
- ✗
Cloud Functions with a 540-second maximum timeout
Why it's wrong here
Cloud Functions are event-driven and stateless, with a maximum timeout of 540 seconds in 1st gen or 3600 seconds in 2nd gen. While 540 seconds might seem sufficient for simple tasks, a nightly batch that processes many files can easily exceed this limit, and batch workloads require explicit exit codes, retry logic, and container-level lifecycle management. Cloud Functions also do not support the same custom runtime control and task parallelism that a dedicated job execution environment provides, so they are not the right choice for a scheduled batch script that runs to completion.
- ✗
App Engine Standard with a background service
Why it's wrong here
App Engine Standard is built for HTTP-serving applications and enforces a strict sandbox that terminates background work when the request handler returns. You cannot run a separate long-running background service inside App Engine Standard without triggering a request, and even then the maximum request timeout is limited (typically 10 minutes for automatic scaling or 60 minutes for manual scaling). A nightly batch script that processes files independently is not a request/response pattern, so App Engine Standard would require awkward workarounds and would not reliably finish the entire job.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Cloud Run
Cloud Run is a fully managed compute platform from Google Cloud that lets you run containerized applications in a serverless environment, automatically scaling from zero to thousands of requests.
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
About these practice questions
Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.