Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 376 of 481

Professional Cloud Developer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Developer Question 376

Select 3Google Cloud Platform

You are deploying a Kubernetes application on Google Kubernetes Engine (GKE) and want to integrate Kubernetes role-based access control (RBAC) with Google Cloud IAM to ensure that only specific Google Cloud users can access certain Kubernetes resources. What steps should you take to achieve this integration?

  1. A

    Bind Kubernetes RBAC roles to Google Cloud IAM roles using Kubernetes RoleBindings or ClusterRoleBindings.

  2. B

    Enable the Workload Identity feature on your GKE cluster to map Kubernetes service accounts to Google Cloud service accounts.

  3. C

    Use the gcloud CLI to directly map Google Cloud IAM roles to Kubernetes namespaces.

  4. D

    Configure Kubernetes RoleBindings or ClusterRoleBindings to associate Kubernetes roles with Google Cloud IAM users via their email addresses.

  5. E

    Enable Google Cloud’s Identity and Access Management (IAM) integration for your GKE cluster.

Show answer and explanation

Correct answers: B, D, E

Explanation

Integrating Kubernetes RBAC with Google Cloud IAM requires leveraging mechanisms like Workload Identity to map Kubernetes service accounts to Google Cloud service accounts and enabling IAM integration for the GKE cluster. Additionally, Kubernetes RoleBindings or ClusterRoleBindings are used to associate Kubernetes roles with IAM users via their email addresses. These steps ensure secure and seamless access control between Kubernetes and Google Cloud.

  • A. Incorrect.

    Kubernetes RBAC roles are not directly bound to Google Cloud IAM roles. Instead, you use mechanisms like Workload Identity and email-based associations to map access.

  • B. Correct.

    Enabling Workload Identity is a key step to map Kubernetes service accounts to Google Cloud service accounts, facilitating integration with IAM.

  • C. Incorrect.

    The gcloud CLI does not directly map IAM roles to Kubernetes namespaces. Instead, RoleBindings or ClusterRoleBindings must be used for access control within Kubernetes.

  • D. Correct.

    RoleBindings and ClusterRoleBindings can associate Kubernetes roles with Google Cloud IAM users by using their email addresses as subject identifiers.

  • E. Correct.

    Enabling Google Cloud IAM integration for GKE clusters is a necessary step to allow IAM policies to influence access to the Kubernetes API.

Timed practice exam

Take a Google Professional Cloud Developer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam