Google PCA Designing for Security and Compliance Practice Question
An engineer is configuring Cloud Armor security policies for an HTTPS Load Balancer. They want to block requests from a specific IP range but allow all other traffic. What is the correct way to configure this?
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
✓
Create a rule with priority 100 to deny the IP range, and a rule with priority 1000 to allow all traffic
Cloud Armor security policies use rules with a 'deny' action for blocking and 'allow' for permitting. Rules are evaluated in order of priority, with lower numbers having higher priority.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a rule with priority 1000 to allow all traffic, and a rule with priority 100 to deny the IP range
Why it's wrong here
The deny rule should have higher priority (lower number) to block before the allow rule.
- ✗
Create a single rule with the IP range and action 'deny'
Why it's wrong here
A single rule only blocks the IP range; all other traffic is implicitly denied unless there is an allow rule.
- ✓
Create a rule with priority 100 to deny the IP range, and a rule with priority 1000 to allow all traffic
Why this is correct
The deny rule with lower priority number is evaluated first, blocking the IP range, then the allow rule permits everything else.
- ✗
Create a rule with priority 1000 to deny the IP range, and no allow rule
Why it's wrong here
Without an allow rule, all traffic is denied by default, which is not the requirement.
Go deeper
Related to this question
Learn chapter
Introduction to Google Cloud Platform
Key term
Cloud Armor
Cloud Armor is a Google Cloud web application firewall (WAF) service that protects applications and websites from attacks like DDoS and SQL injection using customizable security rules.
Key term
Load balancer
A load balancer is a device or software that distributes incoming network traffic across multiple servers so no single server gets overwhelmed.
About these practice questions
Courseiva writes every PCA question from scratch — 955 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 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.