A cloud operations team needs to grant a newly assigned infrastructure technician permissions to create, stop, and restart Compute Engine virtual machine instances within project `proj-finance-workloads-992`, as well as view system logs in Cloud Logging. Following Google Cloud security best practices and adhering strictly to the principle of least privilege, which TWO IAM predefined roles should be assigned to the technician at the project level? (Select TWO.)
- Compute Instance Admin (v1) (roles/compute.instanceAdmin.v1)Answer
- Logs Viewer (roles/logging.viewer)Answer
- CEditor (roles/editor)
- DCompute Admin (roles/compute.admin) bound at the Organization level
Answer
Assign the Compute Instance Admin (v1) role and the Logs Viewer role at the project scope.
Combining the Compute Instance Admin (v1) role and the Logs Viewer role at the project level provides the technician with exact permissions needed to manage Compute Engine VM lifecycle operations and inspect log entries while adhering to least privilege.
Step-by-Step Solution
Key Concept
Principle of Least Privilege and Resource Hierarchy Scoping in GCP IAM