ASSOCIATE-CLOUD-ENGINEER · Question #196
You are working with a user to set up an application in a new VPC behind a firewall. The user is concerned about data egress. You want to configure the fewest open egress ports. What should you do?
The correct answer is A. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows. Every VPC network has two implied firewall rules. These rules exist, but are not shown in the Implied allow egress rule. An egress rule whose action is allow, destination is 0.0.0.0/0, and priority is the lowest possible (65535) lets any instance send traffic to any…
Question
Options
- ASet up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows
- BSet up a high-priority (1000) rule that pairs both ingress and egress ports.
- CSet up a high-priority (1000) rule that blocks all egress and a low-priority (65534) rule that allows
- DSet up a high-priority (1000) rule to allow the appropriate ports.
How the community answered
(51 responses)- A59% (30)
- B6% (3)
- C24% (12)
- D12% (6)
Explanation
Every VPC network has two implied firewall rules. These rules exist, but are not shown in the Implied allow egress rule. An egress rule whose action is allow, destination is 0.0.0.0/0, and priority is the lowest possible (65535) lets any instance send traffic to any destination, except for traffic blocked by Google Cloud. A higher priority firewall rule may restrict outbound access. Internet access is allowed if no other firewall rules deny outbound traffic and if the instance has an external IP address or uses a Cloud NAT instance. For more information, see Internet access Implied deny ingress rule. An ingress rule whose action is deny, source is 0.0.0.0/0, and priority is the lowest possible (65535) protects all instances by blocking incoming connections to them. A higher priority rule might allow incoming access. The default network includes some additional rules that override this one, allowing certain types of incoming connections. https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules
Topics
Community Discussion
No community discussion yet for this question.