GCP Associate Cloud Engineer Practice Question

An e-commerce company has built a stateless container that writes each order message to a Cloud SQL database. The operations team must deploy the image to Cloud Run so that it automatically scales up on traffic from the orders Pub/Sub topic, retries failed messages until they succeed, and processes only one message at a time in each container instance to avoid transaction conflicts. Which deployment strategy meets these requirements while requiring the least custom code and operational overhead?

  • Deploy the image to Cloud Run, create a pull subscription, and implement a background thread in the container that polls Pub/Sub; keep the default concurrency setting.

  • Deploy the image as a second-generation Cloud Function triggered by the topic and limit max instances to 1.

  • Deploy the image to Cloud Run with an Eventarc Pub/Sub trigger, set the service's maximum concurrency to 1, and rely on Cloud Run's automatic retry on non-2xx responses.

  • Run the container in a GKE Deployment and schedule a CronJob that periodically pulls and processes messages from the Pub/Sub topic one at a time.

GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot