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.
Question
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)- A9% (6)
- B5% (3)
- C14% (9)
- D72% (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.
Assigning the Project Viewer role directly to the DevOps team grants continuous access, violating the "only during the deployment issue" requirement.
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.
Granting the Project Owner IAM role to any service account or user directly violates the least-privilege principle, providing overly broad permissions.
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
Community Discussion
No community discussion yet for this question.