CLOUD-DIGITAL-LEADER · Question #105
You are working with a user to set up an application in a new VPC behind a firewall and it is no- ticed that the user is concerned about data egress. Therefore, to provide assistance you want to…
The correct answer is B. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows. In GCP firewall rules, a lower priority number means higher precedence (priority 1000 is evaluated before 65534). To minimize egress exposure, the correct approach is: set a low-priority (65534) rule that blocks ALL egress by default, and then set a high-priority (1000) rule…
Question
You are working with a user to set up an application in a new VPC behind a firewall and it is no- ticed that the user is concerned about data egress. Therefore, to provide assistance you want to con-figure the fewest open egress ports. Which of the following statement is correct?
Options
- ASet up a high-priority (1000) rule that blocks all egress and a low-priority (65534) rule that allows
- BSet up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows
- CSet up a high-priority (1000) rule to allow the appropriate ports.
- DSet up a high-priority (1000) rule that pairs both ingress and egress ports.
How the community answered
(33 responses)- A6% (2)
- B82% (27)
- C9% (3)
- D3% (1)
Explanation
In GCP firewall rules, a lower priority number means higher precedence (priority 1000 is evaluated before 65534). To minimize egress exposure, the correct approach is: set a low-priority (65534) rule that blocks ALL egress by default, and then set a high-priority (1000) rule that explicitly allows only the specific required ports. This deny-by-default model ensures that only whitelisted ports are open. Option A reverses the logic - a high-priority block would override the allow rule, preventing all traffic. Option C only allows ports without blocking others by default, leaving unspecified ports open.
Topics
Community Discussion
No community discussion yet for this question.