Courseiva
Design for security and compliancemediumMultiple ChoiceObjective-mapped

Google PCA Design for security and compliance Practice Question

A financial services company runs a multi-tier application on Compute Engine. They need to restrict network access so that only the web tier can communicate with the application tier, and only the application tier can access the database tier. All VMs are in the same VPC network. What is the most secure way to implement this?

⚠ Common exam trap

Test-takers frequently confuse IAM conditions or service accounts with network-layer access control, or they overcomplicate the solution by suggesting separate VPC networks when the simplest and most secure method within a single VPC is using firewall rules with target tags.

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

Use VPC firewall rules with target tags to allow traffic between specific tiers.

VPC firewall rules with target tags allow you to precisely control ingress and egress traffic between VM instances based on their assigned tags. By tagging web tier VMs with a tag like 'web-tier' and application tier VMs with 'app-tier', you can create a firewall rule that allows traffic from 'web-tier' to 'app-tier' on the required port (e.g., TCP 8080) and another rule allowing traffic from 'app-tier' to 'db-tier' on the database port (e.g., TCP 3306). This approach enforces the principle of least privilege within a single VPC network without introducing unnecessary complexity or breaking network isolation.

Answer analysis

Option-by-option breakdown

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

  • Use Identity-Aware Proxy (IAP) to manage network access between tiers.

    Why it's wrong here

    IAP is for user access to instances, not for inter-tier traffic control.

  • Use VPC firewall rules with target tags to allow traffic between specific tiers.

    Why this is correct

    VPC firewall rules with tags are the simplest and most secure way to enforce network segmentation within a VPC.

  • Create separate VPC networks for each tier and use VPC peering.

    Why it's wrong here

    This adds complexity and is unnecessary; VPC firewall rules within a single network can achieve the goal.

  • Assign a unique service account to each tier and use IAM conditions to restrict traffic.

    Why it's wrong here

    Service accounts are used for authentication, not network-level traffic control.

About these practice questions

One of 955 original PCA 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 PCA 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 PCA exam.