How to Secure a GCP Web App with Firewalls, WAF, and IDS?
Short answer
A Use Cloud Firewall to restrict access, Cloud Armor to block web attacks, and Cloud IDS to monitor internal traffic anomalies.
Question
Key Takeaways
Tests your knowledge of mapping specific GCP security services to distinct traffic vectors (external restriction, web-layer protection, and internal monitoring) while avoiding the trap of misassigning WAF or firewall capabilities.
This guide explains how to implement a defense-in-depth strategy for sensitive GCP web applications using Cloud Firewall, Cloud Armor, and Cloud IDS. It establishes why option A is the correct configuration for restricting access, blocking web threats, and monitoring internal traffic.
Common mistake: Option C is frequently chosen due to confusion between IAP and Cloud Armor; however, IAP controls application-level access rather than blocking automated web attacks, and Cloud Armor cannot monitor internal VPC traffic.
Expert Analysis
Why the Answer Is Correct
Option A correctly aligns each required security control with its designated GCP service. Cloud Firewall enforces network-level restrictions by permitting only allow-listed traffic. Google Cloud Armor acts as a managed web application firewall at the load balancer edge to block vulnerabilities like SQL injection. Cloud IDS inspects encrypted and unencrypted traffic across the VPC to identify internal anomalies.
Why the Other Options Are Wrong
Option B incorrectly assigns DNSSEC to web attack mitigation, when it only secures DNS resolution. Option C misplaces Cloud Armor as an internal traffic monitor and confuses IAP’s identity enforcement with broad web-layer protection. Option D swaps responsibilities by assigning web attack detection to Cloud IDS and internal monitoring to Cloud Armor, which are fundamentally mismatched capabilities.
Community Comment Notes
Learners consistently validate option A by mapping the scenario requirements to service functions. As Pime13 noted, the solution works because "protects against common web-based attacks such as DDoS and SQL injection by using predefined rules" while the firewall handles access control. The consensus highlights that mastering these distinct service boundaries prevents configuration overlap during the exam.
Official Reference
- https://cloud.google.com/security-automation/docs/firewall-rules-overview
- https://cloud.google.com/network-intelligence-center/ids/docs/about-cloud-ids
These links open the official vendor documentation in a new tab.
Exam Strategy
Always map each requirement in the scenario directly to a single GCP service before evaluating options. Remember that Cloud Firewall handles network-layer restrictions, Cloud Armor is strictly a web application firewall (WAF) at the load balancer, and Cloud IDS inspects both ingress and internal east-west traffic for anomalies.
Frequently Asked Questions
Why can't Cloud Armor monitor internal traffic?
Does DNSSEC replace web application firewall rules?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
Pime13 👍 1 Answered AHere's why: Cloud Firewall: By configuring the firewall to permit only allow-listed traffic, you can restrict incoming traffic to only trusted sources, enhancing security. Google Cloud Armor: This service provides protection against common web-based attacks such as DDoS and SQL injection by using predefined rules. Cloud Intrusion Detection System (IDS): Deploying IDS helps in monitoring internal traffic for any anomalies, ensuring that any suspicious activity within the VPC is detected and addressed promptly. This combination of services provides a comprehensive security posture for your sensitive web application, addressing both external and internal threats.
-
yokoyan 👍 2 Answered AI think it's A.
-
MoAk 👍 1 Answered AA is good.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.