PROFESSIONAL-CLOUD-NETWORK-ENGINEER · Question #50
You created a new VPC network named Dev with a single subnet. You added a firewall rule for the network Dev to allow HTTP traffic only and enabled logging. When you try to log in to an instance in…
The correct answer is D. Create a new firewall rule with priority 65500 to deny all traffic, and enable logs. Since we have implicit ingress and the denial rule is not being logged, we create a “deny all” rule with priority 65534 to capture anything that gets denied. https://cloud.google.com/vpc/docs/firewall-rules-logging…
Question
Options
- ACheck the VPC flow logs for the instance.
- BTry connecting to the instance via SSH, and check the logs.
- CCreate a new firewall rule to allow traffic from port 22, and enable logs.
- DCreate a new firewall rule with priority 65500 to deny all traffic, and enable logs.
How the community answered
(33 responses)- A3% (1)
- B12% (4)
- C6% (2)
- D79% (26)
Explanation
Since we have implicit ingress and the denial rule is not being logged, we create a “deny all” rule with priority 65534 to capture anything that gets denied. https://cloud.google.com/vpc/docs/firewall-rules-logging https://cloud.google.com/blog/products/identity-security/google-cloud-firewall-rules-logging-how- and-why-you-should-use-it
Topics
Community Discussion
No community discussion yet for this question.