Courseiva
Question 1,209 of 1,660
Design for New SolutionsmediumMultiple ChoiceObjective-mapped

SAP-C02 Design for New Solutions Practice Question

A company is designing a microservices architecture on AWS. Each service needs its own DynamoDB table, and services must be fully isolated. Which networking design ensures that services can only communicate through APIs and not directly to each other's databases?

⚠ Common exam trap

Candidates often assume a single VPC with security groups or subnets is sufficient for isolation, but they overlook that network-level isolation requires separate VPCs to prevent any direct routing between services, which is a key nuance in the SAP-C02 exam for microservices architectures.

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

Create a separate VPC for each service, with VPC peering only between the API gateway and each service VPC.

Creating a separate VPC for each service enforces full network isolation, and using VPC peering only between the API Gateway and each service VPC ensures that services can only communicate through APIs. This design prevents any direct network-level access between service databases, as there is no peering or routing between the service VPCs themselves, aligning with the microservices principle of strict 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.

  • Place all services in a single VPC with security groups to control traffic.

    Why it's wrong here

    Security groups are stateful and could be misconfigured, allowing direct database access.

  • Use a transit VPC with VPN connections to each service's VPC.

    Why it's wrong here

    This still allows potential direct communication between service VPCs if not carefully routed.

  • Create a separate VPC for each service, with VPC peering only between the API gateway and each service VPC.

    Why this is correct

    This ensures each service's database is isolated and only accessible via the API.

  • Use a single VPC with public and private subnets; place databases in private subnets and services in public subnets.

    Why it's wrong here

    Routing can still allow direct communication between services and databases.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services 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 SAP-C02 exam.