You are creating an ingress Cloud Firewall rule for the VMs in the "web" network tag. The rule must permit only HTTPS traffic and allow ICMP pings from any source, while blocking all other protocols. In the Google Cloud console you reach the Protocols and ports field. Which single entry correctly expresses this requirement?
In a Cloud Firewall rule, the Protocols and ports field accepts one or more comma-separated items in the form PROTOCOL[:PORT[-PORT]]. To allow HTTPS you specify tcp:443. ICMP has no ports, so it is listed simply as icmp. Combining them with a comma meets the requirement to allow both HTTPS and ICMP while excluding all other protocols. Other syntaxes-such as separating with semicolons, using an equals sign, or naming the rule-are not valid and would cause the rule to be mis-parsed or ignored.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is ICMP and why doesn't it have ports like TCP or UDP?
Open an interactive chat with Bash
Why do we use tcp:443 for HTTPS traffic in firewall rules?
Open an interactive chat with Bash
Why is the syntax tcp:443,icmp the correct way to specify protocols and ports in GCP firewall rules?
Open an interactive chat with Bash
What is a Cloud Firewall in GCP?
Open an interactive chat with Bash
Why is ICMP handled differently from TCP/UDP in Firewall rules?
Open an interactive chat with Bash
How do Protocol and Ports work in GCP Firewall rules?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .