nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #192

You're developing the incident response plan for your company. You need to define the access strategy that your DevOps team will use when reviewing and investigating a deployment issue in your…

The correct answer is D. Create a service account, and grant it limited list/view permissions. Give the Service Account. To provide the DevOps team with least-privilege access only during deployment issues, you should create a service account with limited list/view permissions and use the Service Account User role with IAM Conditions for just-in-time access.

Submitted by carlos_mx· Apr 18, 2026Configuring access within a cloud solution environment

Question

You're developing the incident response plan for your company. You need to define the access strategy that your DevOps team will use when reviewing and investigating a deployment issue in your Google Cloud environment. There are two main requirements: - Least-privilege access must be enforced at all times. - The DevOps team must be able to access the required resources only during the deployment issue. How should you grant access while following Google-recommended best practices?

Options

  • AAssign the Project Viewer Identity and Access Management (IAM) role to the DevOps team.
  • BCreate a custom IAM role with limited list/view permissions, and assign it to the DevOps team.
  • CCreate a service account, and grant it the Project Owner IAM role. Give the Service Account User
  • DCreate a service account, and grant it limited list/view permissions. Give the Service Account

How the community answered

(64 responses)
  • A
    9% (6)
  • B
    5% (3)
  • C
    14% (9)
  • D
    72% (46)

Why each option

To provide the DevOps team with least-privilege access only during deployment issues, you should create a service account with limited list/view permissions and use the Service Account User role with IAM Conditions for just-in-time access.

AAssign the Project Viewer Identity and Access Management (IAM) role to the DevOps team.

Assigning the Project Viewer role directly to the DevOps team grants continuous access, violating the "only during the deployment issue" requirement.

BCreate a custom IAM role with limited list/view permissions, and assign it to the DevOps team.

While creating a custom IAM role with limited permissions aligns with least privilege, assigning it directly to the DevOps team still grants continuous access, not temporary access for incident response.

CCreate a service account, and grant it the Project Owner IAM role. Give the Service Account User

Granting the Project Owner IAM role to any service account or user directly violates the least-privilege principle, providing overly broad permissions.

DCreate a service account, and grant it limited list/view permissions. Give the Service AccountCorrect

Creating a service account with limited list/view permissions ensures that the *potential* maximum privilege of that service account adheres to the least-privilege principle. By granting the `Service Account User` role to the DevOps team and applying IAM Conditions, you can enable just-in-time (JIT) access, allowing them to impersonate the service account and gain its permissions only for a specific, limited duration (e.g., during an incident). This meets both requirements of least privilege and temporary access.

Concept tested: Just-in-time access with IAM Conditions and Service Accounts

Source: https://cloud.google.com/iam/docs/conditions-overview

Topics

#IAM#Service Accounts#Least Privilege#Temporary Access

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice