
Explanation:
A is correct because the Cloud Pub/Sub API must be enabled before App Engine can utilize it. Activating the API in the GCP Console's API Library grants the necessary permissions and access to the service account JSON key used for authentication. B is incorrect as the API does not enable itself automatically upon access by a service account. Manual activation is required. C is incorrect because deploying with Deployment Manager does not auto-enable all necessary APIs; each must be activated individually. D is incorrect because even with the App Engine Default service account and the correct role, the API must still be manually activated. Attempting to enable the API on the first connection without prior activation may lead to issues. Note: The App Engine default service account inherently has the Editor role in the project, allowing it default access to Pub/Sub.
Ultimate access to all questions.
Your team is developing a messaging app and is in the process of modernizing it to use microservices. As part of this effort, you plan to integrate Pub/Sub from your App Engine application. However, you've discovered that the Cloud Pub/Sub API is currently disabled. You have a service account JSON key for authentication, but API calls to Pub/Sub are failing. What is the necessary step to resolve this issue?
A
Activate the Cloud Pub/Sub API in the API Library via the GCP Console.
B
The Cloud Pub/Sub API will automatically enable itself when accessed by the Service Account.
C
D
No comments yet.