0
0
GCPcloud~5 mins

Firewall rules concept in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a firewall rule in Google Cloud Platform?
A firewall rule in GCP controls the traffic allowed to and from virtual machine instances by specifying which connections are permitted or denied based on IP addresses, ports, and protocols.
Click to reveal answer
beginner
What are the main components of a GCP firewall rule?
The main components are: direction (ingress or egress), priority (order of evaluation), action (allow or deny), targets (which instances the rule applies to), source or destination IP ranges, protocols, and ports.
Click to reveal answer
intermediate
How does priority affect firewall rules in GCP?
Priority is a number where lower values have higher priority. GCP evaluates rules from lowest to highest priority and applies the first matching rule to the traffic.
Click to reveal answer
beginner
What is the difference between ingress and egress firewall rules?
Ingress rules control incoming traffic to instances, while egress rules control outgoing traffic from instances.
Click to reveal answer
intermediate
Why is it important to specify targets in firewall rules?
Specifying targets ensures that the firewall rule applies only to certain VM instances or groups, helping to limit exposure and improve security.
Click to reveal answer
In GCP firewall rules, what does a lower priority number mean?
AOnly applies to egress rules
BLower priority, evaluated last
CNo effect on evaluation order
DHigher priority, evaluated first
Which direction does an ingress firewall rule control?
AOutgoing traffic from VM instances
BIncoming traffic to VM instances
CTraffic between VPC networks
DTraffic to Google APIs only
What action can a firewall rule perform in GCP?
ARedirect traffic
BOnly allow traffic
CAllow or deny traffic
DOnly deny traffic
Why should you specify IP ranges in a firewall rule?
ATo define which traffic sources or destinations are affected
BTo speed up network traffic
CTo encrypt data in transit
DTo assign IP addresses to VMs
What happens if no firewall rule matches the ingress traffic in GCP?
ATraffic is denied by default
BTraffic is allowed by default
CTraffic is logged but allowed
DTraffic is redirected to a default route
Explain how firewall rules control traffic in Google Cloud Platform.
Think about how rules decide which traffic is allowed or blocked.
You got /6 concepts.
    Describe the importance of priority and targets in GCP firewall rules.
    Consider how rules are applied and to which resources.
    You got /4 concepts.