Compare / Cloud Armor vs VPC firewall rules

Cloud Armor vs VPC firewall rules

Both filter traffic, at different points. VPC firewall rules allow or deny connections to and from VM instances inside a VPC. Cloud Armor protects applications behind external load balancers, at the edge, with Layer 7 rules and DDoS protection.

In 25 practice questions across 5 practice banks

Professional Cloud Security Engineer Private Connectivity

Your company has deployed an artificial intelligence model in a central project. This model has a lot of sensitive intellectual property and must be kept strictly isolated from the internet. You must expose the model endpoint only to a defined list of projects in your organization. What should you do?

  1. The internal load balancer plus PSC with a consumer-project allowlist is the designed pattern.

  2. Private Google Access reaches Google APIs — it does not expose your model endpoint.

  3. Shared VPC networking does not restrict which projects may reach the endpoint to a defined list.

  4. An external load balancer would expose the model to the internet — the opposite of the requirement.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

At a glance

Cloud ArmorVPC firewall rules
Where it appliesExternal (and some internal) load balancer backendsVM network interfaces in a VPC
LayerLayers 3 to 7: IPs, geography, headers, WAF rulesLayers 3 and 4: IP ranges, protocols, ports
ThreatsDDoS, OWASP Top 10 attacks, bots, abusive clientsUnwanted connections between networks and hosts
TargetingSecurity policies attached to backend servicesNetwork tags or service accounts

Choose Cloud Armor when

  • You need to block SQL injection, cross-site scripting or other web attacks.
  • You want to allow or deny traffic by country or apply rate limits.
  • The application sits behind an external Application Load Balancer.

Choose VPC firewall rules when

  • You control which instances can talk to each other inside the VPC.
  • You restrict ports and protocols reaching VMs, including internal traffic.
  • You allow load balancer health checks to reach backends.

Exam tip

Web attacks and edge DDoS mean Cloud Armor; host-to-host and port rules mean firewall rules. They are complementary: production designs usually use both.

Practice banks covering this comparison

Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.