Google Cloud Professional Cloud Security Engineer — Question 155

You control network traffic for a folder in your Google Cloud environment. Your folder includes multiple projects and Virtual Private Cloud (VPC) networks. You want to enforce on the folder level that egress connections are limited only to IP range 10.58.5.0/24 and only from the VPC network “dev-vpc”. You want to minimize implementation and maintenance effort.

What should you do?

Answer options

Correct answer: C

Explanation

Option C is correct because it effectively implements a hierarchical firewall policy at the folder level, ensuring that egress connections are strictly controlled according to the specified requirements. Options A and B introduce unnecessary complexity and do not meet the requirement of limiting egress connections effectively. Option D allows egress from all source addresses in 'dev-vpc', which does not enforce the desired restriction.