nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #89

You want to deploy an application on Cloud Run that processes messages from a Cloud Pub/Sub topic. You want to follow Google-recommended practices. What should you do?

The correct answer is C. 1. Create a service account.. You can use Pub/Sub to push messages to the endpoint of your Cloud Run service, where the messages are subsequently delivered to containers as HTTP requests. You cannot use Pub/Sub pull subscriptions because Cloud Run only allocates CPU during the processing of a request. https:/

Submitted by naveen.iyer· Mar 30, 2026Deploying and implementing a cloud solution

Question

You want to deploy an application on Cloud Run that processes messages from a Cloud Pub/Sub topic. You want to follow Google-recommended practices. What should you do?

Options

  • A
    1. Create a Cloud Function that uses a Cloud Pub/Sub trigger on that topic.
  • B
    1. Grant the Pub/Sub Subscriber role to the service account used by Cloud Run.
  • C
    1. Create a service account.
  • D
    1. Deploy your application on Cloud Run on GKE with the connectivity set to Internal.

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    84% (21)
  • D
    8% (2)

Explanation

You can use Pub/Sub to push messages to the endpoint of your Cloud Run service, where the messages are subsequently delivered to containers as HTTP requests. You cannot use Pub/Sub pull subscriptions because Cloud Run only allocates CPU during the processing of a request. https://cloud.google.com/run/docs/tutorials/pubsub#integrating-pubsub

Topics

#Cloud Run#Pub/Sub push subscription#service accounts#event-driven architecture

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice