Topic 1 Question 77
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?
Configure the instances with a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
Configure the instances with a service account owned by project A. Add the service account as a publisher on the topic.
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.
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
ユーザの投票
コメント(5)
I vote for B.
👍 13donchick2020/12/21why not D?
👍 3JuanitoNN2021/12/02https://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"
B is the answer
👍 2syu31svc2021/07/10
シャッフルモード