GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice question 23 of 35

HipLocal is configuring their access controls. Which firewall configuration should they implement?

Full set: 265 questions
Answer options
A: Block all traffic on port 443.
B: Allow all traffic into the network.
C: Allow traffic on port 443 for a specific tag. Correct answer
D: Allow all traffic on port 443 into the network.
Correct Answer:
C. Allow traffic on port 443 for a specific tag.
Explanation

The most secure and appropriate configuration follows the principle of least privilege, which dictates that only the minimum necessary access should be granted. Allowing traffic on port 443 (HTTPS) specifically for resources with a certain network tag (e.g., web-server) ensures that only the intended virtual machine instances can receive this traffic. This practice minimizes the attack surface by preventing other resources within the network, such as database servers or backend processing nodes, from being exposed to external web traffic. Using tags is the standard Google Cloud method for applying granular firewall rules to specific groups of instances.

Why Incorrect

A. Blocking port 443 would prevent secure web traffic (HTTPS), which is a fundamental requirement for almost any modern web application.
B. Allowing all traffic into the network is a severe security risk that violates the principle of least privilege and exposes all resources unnecessarily.
D. Allowing all traffic on port 443 to the entire network is overly permissive and exposes non-web-facing instances to potential attacks.

References

1. Google Cloud Documentation, VPC firewall rules: "Firewall rules let you allow or deny traffic to and from your virtual machine (VM) instances... Each rule applies to a set of instances that are identified by network tags..." This document explicitly states that tags are the mechanism for targeting specific instances. (Source: Google Cloud, "VPC firewall rules overview", Section: "Network tags").

2. Google Cloud Documentation, Using firewall rules: "To apply a firewall rule to specific instances, you use target tags... For example, you can tag your web server instances with web and then refer to this tag in an ingress firewall rule that allows HTTP or HTTPS traffic." This provides a direct example supporting the correct answer. (Source: Google Cloud, "Using firewall rules", Section: "Targets and IP sources").

3. Stanford University, CS 193S - Scalable Web Services: Lecture notes on networking emphasize the importance of security groups and firewalls to restrict access. "Best practice: only open ports that you need to... Be specific about source IPs." This aligns with the principle of using targeted rules rather than broad "allow all" rules. (Source: Stanford University, CS 193S, Lecture 9: Networking, Slide 25, "Security Groups").

Scroll to Top