Topic 1 Question 31
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?
Enable the Cloud Pub/Sub API in the API Library on the GCP Console.
Rely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses it.
Use Deployment Manager to deploy your application. Rely on the automatic enablement of all APIs used by the application being deployed.
Grant the App Engine Default service account the role of Cloud Pub/Sub Admin. Have your application enable the API on the first connection to Cloud Pub/ Sub.
ユーザの投票
コメント(17)
Correct Answer is (A)
Quickstart: using the Google Cloud Console This page shows you how to perform basic tasks in Pub/Sub using the Google Cloud 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
Click to:
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 .
👍 28ESP_SAP2020/08/22We need to enable the pub/sub API, if we are going to use it in your project... then APP engine can able to access it with required ServiceAccount
👍 23Bharathy2020/05/21Does anyone has latest questions & answers. Also if you guide me the reading material/blog/portal to pass this exam.
👍 4Kaushik_Mallick2021/07/18
シャッフルモード