Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 197 of 375

Associate Cloud Engineer. Free level, Google Cloud. Free question with the correct answer and a full explanation.

Google Associate Cloud Engineer Question 197

Select 3Google Cloud Platform

You are tasked with configuring a Google Kubernetes Engine (GKE) cluster to pull container images from a private Artifact Registry repository. Which of the following steps should you take to ensure the GKE nodes have the necessary permissions to access the Artifact Registry?

  1. A

    A. Enable the 'Artifact Registry' API in your Google Cloud project.

  2. B

    B. Assign the 'Artifact Registry Reader' role to the Google Kubernetes Engine service account.

  3. C

    C. Use a Kubernetes secret to store the Artifact Registry credentials and reference it in your deployment.

  4. D

    D. Configure the GKE cluster to use Workload Identity.

  5. E

    E. Create a custom IAM role with 'storage.objects.get' permission and assign it to the GKE nodes.

Show answer and explanation

Correct answers: A, B, D

Explanation

To configure GKE to access Artifact Registry, enabling the 'Artifact Registry' API and assigning the appropriate IAM roles are essential steps. Using Workload Identity is preferred for securely managing permissions without handling service account keys directly. Traditional methods like using Kubernetes secrets are not recommended when Workload Identity is available.

  • A. Correct.

    Enabling the 'Artifact Registry' API is necessary for using Artifact Registry services.

  • B. Correct.

    Assigning the 'Artifact Registry Reader' role to the GKE service account is required to grant read access to the Artifact Registry.

  • C. Incorrect.

    Using Kubernetes secrets for storing credentials is a traditional method, but not recommended for managing Artifact Registry access, especially with Workload Identity.

  • D. Correct.

    Configuring the GKE cluster to use Workload Identity allows for secure and manageable access to Artifact Registry without directly handling service account keys.

  • E. Incorrect.

    Creating a custom IAM role with 'storage.objects.get' is not sufficient as it does not cover the Artifact Registry API permissions, and it's not a standard practice.

Timed practice exam

Take a Google Associate Cloud Engineer 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