GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice question 23 of 35
HipLocal is configuring their access controls. Which firewall configuration should they implement?
Full set: 265 questionsThe 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.
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.
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").
Keep practicing
Take the free GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice questions
- Question 1You have an application controlled by a managed instance group. When you deploy a new ver…
- Question 2Your service adds text to images that it reads from Cloud Storage. During busy times of t…
- Question 3You have been tasked with planning the migration of your company’s application from on-pr…
- Question 4You plan to make a simple HTML application available on the internet. This site keeps inf…
- Question 5HipLocal's APIs are showing occasional failures, but they cannot find a pattern. They wan…
- Question 6Your company has created an application that uploads a report to a Cloud Storage bucket. …
