ASSOCIATE-CLOUD-ENGINEER · Question #30
Your company has a 3-tier solution running on Compute Engine. The configuration of the current infrastructure is shown below. Each tier has a service account that is associated with all instances with
The correct answer is B. 1. Create an ingress firewall rule with the following settings:. The question requires configuring Google Compute Engine firewall rules to allow specific ingress communication on TCP port 8080 between three application tiers, using service accounts for identification.
Question
Exhibit
Options
- A
- Create an ingress firewall rule with the following settings:
- B
- Create an ingress firewall rule with the following settings:
- C
- Create an ingress firewall rule with the following settings:
- D
- Create an egress firewall rule with the following settings:
How the community answered
(46 responses)- A7% (3)
- B48% (22)
- C30% (14)
- D15% (7)
Why each option
The question requires configuring Google Compute Engine firewall rules to allow specific ingress communication on TCP port 8080 between three application tiers, using service accounts for identification.
This option would likely have incorrect target/source combinations or port settings compared to the specific communication requirements.
To allow Tier #1 to communicate with Tier #2, an ingress firewall rule must target Tier #2 instances (via their service account) with Tier #1 instances (via their service account) as the source. Similarly, to allow Tier #2 to communicate with Tier #3, another ingress rule must target Tier #3 instances with Tier #2 instances as the source, both specified for TCP port 8080.
This option would likely have incorrect target/source combinations or port settings, failing to match the explicit communication flow needed.
Egress firewall rules control outgoing traffic, but the requirement is to allow *incoming* communication to Tier #2 and Tier #3, making ingress rules the correct approach.
Concept tested: Compute Engine ingress firewall rules with service accounts
Source: https://cloud.google.com/vpc/docs/firewalls
Topics
Community Discussion
No community discussion yet for this question.
