ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 99 - Professional Cloud Developer discussion

Report
Export

You are writing a Compute Engine hosted application in project A that needs to securely authenticate to a Cloud Pub/Sub topic in project B.

What should you do?

A.
Configure the instances with a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
Answers
A.
Configure the instances with a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
B.
Configure the instances with a service account owned by project A. Add the service account as a publisher on the topic.
Answers
B.
Configure the instances with a service account owned by project A. Add the service account as a publisher on the topic.
C.
Configure Application Default Credentials to use the private key of a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
Answers
C.
Configure Application Default Credentials to use the private key of a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
D.
Configure Application Default Credentials to use the private key of a service account owned by project A. Add the service account as a publisher on the topic
Answers
D.
Configure Application Default Credentials to use the private key of a service account owned by project A. Add the service account as a publisher on the topic
Suggested answer: B

Explanation:

https://cloud.google.com/pubsub/docs/access-control

'For example, suppose a service account in Cloud Project A wants to publish messages to a topic in Cloud Project B. You could accomplish this by granting the service account Edit permission in Cloud Project B'

asked 18/09/2024
Kanta Prasad
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first