Courseiva
Implementing VPC InstanceseasyMultiple ChoiceObjective-mapped

PCNE Implementing VPC Instances Practice Question

A developer wants to allow HTTP (port 80) traffic from the internet to a set of Compute Engine instances that have a tag "web-server". Which firewall rule should they create?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Ingress rule: source 0.0.0.0/0, target tag "web-server", tcp:80

An ingress firewall rule with source range 0.0.0.0/0, target tag "web-server", and protocol/port tcp:80 allows HTTP traffic from the internet to the tagged instances.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Egress rule: source 0.0.0.0/0, target tag "web-server", tcp:80

    Why it's wrong here

    Egress rules control outbound traffic; ingress is needed for incoming connections.

  • Ingress rule: source 0.0.0.0/0, target tag "web-server", tcp:80

    Why this is correct

    This correctly allows inbound HTTP from anywhere to instances with the web-server tag.

  • Egress rule: destination 0.0.0.0/0, target tag "web-server", tcp:80

    Why it's wrong here

    This would allow outbound traffic from instances, not inbound HTTP.

  • Ingress rule: source 0.0.0.0/0, target service account "web-server", tcp:80

    Why it's wrong here

    Tags are used, not service accounts, to target instances.

About these practice questions

One of 961 original PCNE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCNE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCNE exam.