Google Cloud Professional Cloud Security Engineer — Question 142

You define central security controls in your Google Cloud environment. For one of the folders in your organization, you set an organizational policy to deny the assignment of external IP addresses to VMs. Two days later, you receive an alert about a new VM with an external IP address under that folder.

What could have caused this alert?

Answer options

Correct answer: C

Explanation

The correct answer is C because if a project-level policy is set to 'allow', it can override the folder-level restriction, permitting the creation of VMs with external IP addresses. Option A is incorrect because the policy would apply to new resources, not previously reserved IPs. Option B is not valid as the policy must be actively enforced, and option D suggests an organizational setting that doesn't apply here since the project level takes precedence.