Google Cloud Associate Cloud Engineer — Question 73

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?

Answer options

Correct answer: C

Explanation

Option C is correct because it follows the recommended practice of using a service account to manage permissions and allows Cloud Pub/Sub to push messages directly to your Cloud Run application. Option A is incorrect as it introduces an unnecessary Cloud Function layer. Option B requires pulling messages rather than using push, which is less efficient. Option D complicates the architecture by involving GKE, which is not needed for this use case.