
Answer-first summary for fast verification
Answer: Add tags to each tier and set up firewall rules to allow the desired traffic flow
The correct answer is D. By adding tags to each tier (web, API, and database) and setting up firewall rules, you can control the flow of traffic as required. Tags can be used to identify the instances in each tier, and firewall rules can be set up to allow traffic from the web tier to the API tier and from the API tier to the database tier while preventing traffic from directly flowing between the web tier and the database tier. This method leverages GCP's Firewall functionality to manage network traffic effectively within the same network.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your organization has a 3-tier web application deployed in the same Virtual Private Cloud (VPC) network on Google Cloud Platform (GCP). The application consists of a web tier, an API tier, and a database tier. Each tier can independently scale in response to varying workloads. The design requires that network traffic flows from the web tier to the API tier and then to the database tier while ensuring that no direct traffic flows from the web tier to the database tier. How should you configure the network to meet these requirements?
A
Add each tier to a different subnetwork
B
Set up software based firewalls on individual VMs
C
Add tags to each tier and set up routes to allow the desired traffic flow
D
Add tags to each tier and set up firewall rules to allow the desired traffic flow
No comments yet.