nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #69

You want to send and consume Cloud Pub/Sub messages from your App Engine application. The Cloud Pub/Sub API is currently disabled. You will use a service account to authenticate your application to…

The correct answer is A. Enable the Cloud Pub/Sub API in the API Library on the GCP Console. Note: If you are new to Pub/Sub, we recommend that you start with the interactive tutorial. Before you begin Set up a Cloud Console project. Set up a project Create or select a project. Enable the Pub/Sub API for that project. You can view and manage these resources at any time…

Submitted by noor.lb· Mar 30, 2026Setting up a cloud solution environment

Question

You want to send and consume Cloud Pub/Sub messages from your App Engine application. The Cloud Pub/Sub API is currently disabled. You will use a service account to authenticate your application to the API. You want to make sure your application can use Cloud Pub/Sub. What should you do?

Options

  • AEnable the Cloud Pub/Sub API in the API Library on the GCP Console.
  • BRely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses
  • CUse Deployment Manager to deploy your application.
  • DGrant the App Engine Default service account the role of Cloud Pub/Sub Admin.

How the community answered

(60 responses)
  • A
    87% (52)
  • B
    8% (5)
  • C
    2% (1)
  • D
    3% (2)

Explanation

Note: If you are new to Pub/Sub, we recommend that you start with the interactive tutorial. Before you begin Set up a Cloud Console project. Set up a project Create or select a project. Enable the Pub/Sub API for that project. You can view and manage these resources at any time in the Cloud Console. Install and initialize the Cloud SDK. Note: You can run the gcloud tool in the Cloud Console without installing the Cloud SDK. To run the gcloud tool in the Cloud Console, use Cloud Shell . https://cloud.google.com/pubsub/docs/quickstart-console

Topics

#Cloud Pub/Sub#API enablement#App Engine#service accounts

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice