Courseiva

Google PCA Design for security and compliance Practice Question

A company is using Cloud Load Balancing to expose a web application. They want to protect against common web attacks like SQL injection and cross-site scripting. Which Google Cloud service should they configure?

⚠ Common exam trap

A common mix-up: candidates confuse network-layer security (VPC Firewall rules) with application-layer security (Cloud Armor), leading candidates to pick VPC Firewall rules because they sound like a general security measure.

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

Cloud Armor is the correct service because it provides Web Application Firewall (WAF) capabilities that can inspect HTTP/HTTPS traffic and filter out common web attacks such as SQL injection and cross-site scripting (XSS). It integrates directly with Cloud Load Balancing to apply pre-configured or custom rules at the edge, blocking malicious requests before they reach the backend.

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

    Why it's wrong here

    VPC firewall rules filter by IP address, protocol and port at layer 3/4; they cannot inspect HTTP request bodies for SQL injection or cross-site scripting, which Cloud Armor's WAF rules do. It is tempting because firewall rules are the usual network security control, and they would be correct for restricting traffic by source range.

  • ✗

    Identity-Aware Proxy

    Why it's wrong here

    Identity-Aware Proxy enforces identity-based access to backends; it does not inspect HTTP payloads for SQL injection or cross-site scripting, which Cloud Armor's WAF rules do. It is tempting because IAP also sits in front of load-balanced applications, and it would be correct when the requirement is authenticating users rather than filtering attack traffic.

  • ✓

    Cloud Armor

    Why this is correct

    Cloud Armor is Google Cloud's edge security service, providing WAF rules that filter SQL injection and cross-site scripting at the external load balancer. Attaching a security policy to the load balancer's backend service satisfies the requirement to block common web attacks.

  • ✗

    Cloud CDN

    Why it's wrong here

    Cloud CDN caches static content at edge locations; it performs no request inspection, so SQL injection and cross-site scripting payloads reach the backend unfiltered. It is tempting because CDN is configured on the same load balancer, and it would be correct when the requirement is reducing latency for cacheable content.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

One of 807 original PCA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCA 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 PCA exam.