Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

Ultimate access to all questions.


Your front-end is an App Engine application that needs to publish messages to Pub/Sub, but the Pub/Sub API hasn't been enabled yet. What's the quickest method to enable this API?




Explanation:

The correct approach is to enable the API via the Google Cloud Console, as it's the most straightforward method. This involves navigating to the GCP Console API Library, selecting your project, finding the Pub/Sub API, and clicking 'ENABLE'.

  • Option A is incorrect because assigning the Pub/Sub Admin role to a service account doesn't grant the ability to enable APIs.
  • Option B is incorrect because APIs do not enable themselves upon first use; they must be explicitly enabled.
  • Option C is incorrect because all applications, including those in App Engine, require the relevant APIs to be enabled before they can be used.