Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Associate Cloud Engineer topic 1 question 31 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 31
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • A. Enable the Cloud Pub/Sub API in the API Library on the GCP Console.
  • B. Rely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses it.
  • C. Use Deployment Manager to deploy your application. Rely on the automatic enablement of all APIs used by the application being deployed.
  • D. 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ESP_SAP
Highly Voted 3 years, 8 months ago
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 . https://cloud.google.com/pubsub/docs/quickstart-console
upvoted 32 times
...
Bharathy
Highly Voted 3 years, 11 months ago
We 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
upvoted 24 times
...
Romio2023
Most Recent 4 months, 3 weeks ago
hello test
upvoted 1 times
...
Captain1212
7 months, 3 weeks ago
Yes A, is more correct as first you need to enable the API itself
upvoted 1 times
...
bidyut123
10 months, 3 weeks ago
Selected Answer: A
ANSWER SHOULD BE A.
upvoted 2 times
...
Buruguduystunstugudunstuy
1 year, 2 months ago
Selected Answer: A
Answer A is correct. Enable the Cloud Pub/Sub API in the API Library on the GCP Console. Since the Cloud Pub/Sub API is currently disabled, the first step is to enable it. This can be done through the API Library on the GCP Console. Once the API is enabled, the service account can be used to authenticate the App Engine application to the Cloud Pub/Sub API. Answer B is incorrect because there is no automatic enablement of APIs when a service account accesses them. The API needs to be enabled manually in the API Library or through the command-line interface. Answer C is incorrect because enabling APIs through Deployment Manager requires that the APIs be enabled in the project before Deployment Manager can use them. Answer D is incorrect because granting the App Engine Default service account the Cloud Pub/Sub Admin role could be a security risk, and it is not necessary to enable the API.
upvoted 8 times
...
AzureDP900
1 year, 10 months ago
A is right
upvoted 1 times
...
sedado77
1 year, 10 months ago
Selected Answer: A
Yup its A
upvoted 3 times
...
haroldbenites
1 year, 11 months ago
go for A
upvoted 1 times
...
haroldbenites
1 year, 11 months ago
Go for A
upvoted 1 times
...
Schladde
1 year, 11 months ago
Selected Answer: A
A is correct, although there are options to activate APIs programmatically (gcloud, curl) https://cloud.google.com/service-usage/docs/enable-disable B and C are incorrect because "rely on ..." is never a good option D could be possible, but to much permissions are given to the app
upvoted 2 times
...
gielda211
2 years ago
Selected Answer: A
A is correct
upvoted 1 times
...
flashlight01
2 years, 1 month ago
Selected Answer: A
Enable the Cloud Pub/Sub API in the API Library on the GCP Console.
upvoted 1 times
...
obeythefist
2 years, 1 month ago
This question seems to be asking "Can you automatically enable the API or do you have to do it manually?" and I think the answer is that there's no automatic enablement of the API.
upvoted 2 times
...
shawnkkk
2 years, 5 months ago
A. Enable the Cloud Pub/Sub API in the API Library on the GCP Console.
upvoted 2 times
...
vishnukumartr
2 years, 5 months ago
A. Enable the Cloud Pub/Sub API in the API Library on the GCP Console.
upvoted 1 times
...
Jaira1256
2 years, 5 months ago
A is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...