PCNE Implementing VPC Instances Practice Question
An engineer needs to configure Cloud Armor to block requests from a specific IP address (10.1.2.3) while allowing all other traffic. They create a security policy with a deny rule for that IP and an allow rule for all traffic. What priority should the deny rule have relative to the allow rule?
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
✓
The deny rule must have a lower priority number than the allow rule
In Cloud Armor, rules are evaluated from lowest to highest priority (lower number = higher priority). The deny rule must have a lower priority number than the allow rule to be evaluated first and block the IP before the allow rule applies. Typically, the allow-all rule has highest priority (e.g., 2147483647).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Both rules must have the same priority
Why it's wrong here
Same priority causes unpredictable behavior; they should have different priorities.
- ✓
The deny rule must have a lower priority number than the allow rule
Why this is correct
Correct. Lower priority number means higher precedence, so the deny rule is evaluated first.
- ✗
Priority does not matter for deny rules
Why it's wrong here
Priority matters for all rules.
- ✗
The deny rule must have a higher priority number than the allow rule
Why it's wrong here
Higher priority number means lower precedence; the allow rule would override the deny.
Go deeper
Related to this question
About these practice questions
This PCNE question is part of Courseiva's 961-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 PCNE 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 PCNE exam.