QuestionQ104

VerifiedConfiguring access and security

You administer IAM policies for your organization’s Google Cloud project. A new operations team requires the ability to start, stop, and reset existing Compute Engine VM instances in this project for basic troubleshooting. Because of strict security requirements, the operations team must not be able to delete any instances or change networking or configuration settings. You need to give team members only the minimum required permissions. What should you do?

Explanation

A custom IAM role containing only compute.instances.start, compute.instances.stop, and compute.instances.reset grants precisely the VM lifecycle actions required while withholding permissions to delete instances or modify their configuration and networking. The predefined Compute Instance Admin (v1) role includes broad instance-management permissions, including deletion and configuration changes, so it does not satisfy least privilege.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!