QuestionQ68

VerifiedConfiguring, implementing and managing a cloud network security solution

Your organization is introducing a security policy to control how firewall rules govern flows between virtual machines (VMs). Following Google-recommended practices, you need to configure a firewall rule that strictly controls traffic between VM A and VM B.

Ensure that communication can flow only from VM A to VM B within the VPC, with no other communication paths permitted. No other firewall rules exist in the VPC. Which firewall rule should you configure to allow only this communication path?

Explanation

An ingress allow rule must target VM B, because VM B is receiving the connection, and must restrict the source to VM A. Using service accounts identifies the VMs by workload identity and is the recommended, more precise approach than network tags. VPC firewall rules are stateful, so connection tracking permits response traffic for an allowed VM A-to-VM B connection; with no other rules, the implied deny-ingress rule prevents other inbound paths.

Learn more

Community Discussion

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