Medium1 markMultiple Choice

GCP PCA · Question 39 · Domain 2: Managing and Provisioning a Solution Infrastructure

You need to configure a VPC network for a multi-tier application. The web tier must be accessible from the internet, but the database tier must be completely isolated from inbound internet traffic. Both tiers need to communicate with each other. Which TWO configurations should you apply? (Select TWO)

Answer options:

A.

Place the web tier and database tier in separate subnets within the same Custom Mode VPC.

B.

Create two separate VPCs and connect them using Cloud VPN.

C.

Create firewall rules allowing ingress from the internet to the web tier, and ingress from the web tier to the database tier.

D.

Assign external IP addresses to the database tier but block traffic using Cloud Armor.

E.

Use an Auto Mode VPC to automatically isolate the tiers.

How to approach this question

Use a single Custom VPC with multiple subnets, and use firewall rules to control the flow between them.

Full Answer

Best practice for a multi-tier application is to use a single Custom Mode VPC (Option A) with separate subnets for each tier. By default, GCP VPCs block all inbound traffic. You must create specific firewall rules (Option C) to allow internet traffic to the web tier, and allow the web tier to talk to the database tier. The database VMs should not have external IPs.

Common mistakes

Choosing multiple VPCs (B). This adds unnecessary complexity. VPCs are global and subnets provide logical grouping.

Practice the full GCP Professional Cloud Architect Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam