nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #25

PROFESSIONAL-CLOUD-DEVELOPER Question #25: Real Exam Question with Answer & Explanation

The correct answer is B: Configure the instances with a service account owned by project A. Add the service account as a. 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.

Implementing Security

Question

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?

Options

  • AConfigure the instances with a service account owned by project B. Add the service account as a
  • BConfigure the instances with a service account owned by project A. Add the service account as a
  • CConfigure Application Default Credentials to use the private key of a service account owned by
  • DConfigure Application Default Credentials to use the private key of a service account owned by

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.

Topics

#Service Accounts#IAM#Cross-Project Access#Compute Engine

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions