hardMultiple ChoiceObjective-mapped
Google ACE Practice Question: A public API receives global traffic but has been…
A public API receives global traffic but has been targeted by both volumetric DDoS attacks and SQL injection attempts in HTTP request parameters. Which single GCP service provides protection against both threats?
⚠ Common exam trap
Google Cloud often tests the distinction between network-layer security (VPC firewall rules) and application-layer security (Cloud Armor WAF), leading candidates to mistakenly choose VPC firewall rules because they think 'deny rules' can block attacks, but they cannot inspect HTTP payloads for SQL injection.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Cloud Armor security policies on the load balancer
Cloud Armor security policies, when attached to a Google Cloud HTTPS Load Balancer, provide both Layer 7 DDoS protection (via pre-configured WAF rules like 'modsecurity-crs' to block SQL injection) and volumetric DDoS defense (via rate limiting and adaptive protection). This makes it the single GCP service that directly addresses both threats mentioned in the question.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
VPC firewall rules with deny rules for known attacker IPs
Why it's wrong here
VPC firewall rules are static network filters that allow or deny traffic based on source IP, destination IP, protocol, and port; they cannot parse HTTP headers or body content to detect SQL injection. IP-based deny lists are ineffective against distributed DDoS, as attackers can spoof IPs or launch from thousands of unique sources, and overly strict rules can block legitimate users. Firewall rules lack the L7 intelligence and scaling needed for modern web application protection.
- ✗
Cloud NAT to hide backend IP addresses
Why it's wrong here
Cloud NAT only manages outbound connectivity from private VMs to the internet; it does not provide inbound protection for a public-facing load balancer. It neither inspects HTTP payloads for SQL injection nor absorbs large volumetric attacks. Hiding backend IPs behind a load balancer and NAT does not shield the public front-end from DDoS or L7 attacks, since the load balancer itself remains publicly reachable.
- ✓
Cloud Armor security policies on the load balancer
Why this is correct
Cloud Armor security policies attached to the external HTTP(S) load balancer deliver both volumetric DDoS mitigation at Google's global edge and layer 7 WAF rules, including preconfigured OWASP rules that detect and block SQLi payloads. Because it operates at the edge and inspects traffic before it reaches backends, it can filter attack traffic close to the source while allowing legitimate requests. This single service directly addresses both the DDoS flood and the SQL injection attempts described in the scenario.
- ✗
Identity-Aware Proxy (IAP) to require authentication before accessing the API
Why it's wrong here
Identity-Aware Proxy (IAP) enforces fine-grained, identity-based access control by requiring users to authenticate and pass context checks before reaching an application. It does not inspect request bodies or query strings for SQL injection patterns, nor does it have infrastructure to survive or filter distributed denial-of-service floods. IAP is a gate for who can access, not a filter for what content is malicious, so it leaves the API unprotected from both volumetric DDoS and SQLi.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Google Cloud
Google Cloud is a suite of cloud computing services offered by Google that provides infrastructure, platform, and software solutions over the internet.
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
About these practice questions
This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.