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
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?
-
The internal load balancer plus PSC with a consumer-project allowlist is the designed pattern.
-
Private Google Access reaches Google APIs — it does not expose your model endpoint.
-
Shared VPC networking does not restrict which projects may reach the endpoint to a defined list.
-
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 freeAt a glance
| Cloud Armor | VPC firewall rules | |
|---|---|---|
| Where it applies | External (and some internal) load balancer backends | VM network interfaces in a VPC |
| Layer | Layers 3 to 7: IPs, geography, headers, WAF rules | Layers 3 and 4: IP ranges, protocols, ports |
| Threats | DDoS, OWASP Top 10 attacks, bots, abusive clients | Unwanted connections between networks and hosts |
| Targeting | Security policies attached to backend services | Network 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.
More comparisons
- BigQuery vs Bigtable
- Dataflow vs Dataproc
- Spanner vs Cloud SQL
- Cloud Run vs GKE
- Cloud Composer vs Workflows
- Firestore vs Bigtable
- Cloud SQL for PostgreSQL vs AlloyDB
- Shared VPC vs VPC Network Peering
- Cloud VPN vs Cloud Interconnect
- Cloud Storage classes: Standard, Nearline, Coldline or Archive?
- Cloud Run functions vs Cloud Run services
- Memorystore vs Firestore
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- App Engine vs Cloud Run
- Google-managed keys vs Customer-managed keys (CMEK)
- Identity-Aware Proxy vs VPN
- Compute Engine vs GKE
- Spanner vs Bigtable
- BigQuery vs Cloud SQL
- Firestore vs Cloud SQL
- Dataproc vs BigQuery
- GKE Autopilot vs Standard: which mode to choose?
- Vertex AI vs BigQuery ML
- VPC Service Controls vs IAM
- Private Google Access vs Cloud NAT