Your organization is implementing separation of duties in a Google Cloud project. A group of developers must deploy new code, but cannot have permission to change network firewall rules. What should you do?
- AAssign the network administrator IAM role to all developers. Tell developers not to change firewall settings.
- BUse Access Context Manager to create conditions that allow only authorized administrators to change firewall rules based on attributes such as IP address or device security posture.
- CCreate and assign two custom IAM roles. Assign the deployer role to control Compute Engine and deployment-related permissions. Assign the network administrator role to manage firewall permissions. (correct answer)
- DGrant the editor IAM role to the developer group. Explicitly negate any firewall modification permissions by using IAM deny policies.
Reveal answer & explanationHide answer
The correct answer is C. Option C: Create and assign two custom IAM roles. Assign the deployer role to control Compute Engine and deployment-related permissions. Assign the network administrator role to manage firewall permissions.
Explanation
Compute Engine provides configurable virtual machines when you need full control of the OS. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.