Courseiva
Design for New SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Design for New Solutions Practice Question

A company is designing a microservices architecture on Amazon ECS with Fargate. They want to ensure that services can communicate with each other but are isolated from the internet. What is the MOST secure way to achieve this?

⚠ Common exam trap

It's easy for candidates to confuse VPC peering or PrivateLink as solutions for internal service communication, but these are designed for cross-VPC or external service access, not for secure, internet-isolated inter-service discovery within a single VPC.

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

Place all ECS services in private subnets and use AWS Cloud Map for service discovery.

Placing ECS services in private subnets ensures they have no direct internet access, while AWS Cloud Map provides a secure, DNS-based service discovery mechanism that allows services to communicate internally using private IP addresses. This design eliminates exposure to the internet and leverages AWS's native service discovery for dynamic microservices.

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 VPC peering to connect the subnets of each service.

    Why it's wrong here

    VPC peering connects VPCs, but does not provide service discovery.

  • Use AWS PrivateLink to create VPC endpoints for each service.

    Why it's wrong here

    PrivateLink is used to access services across VPCs, not for internal service discovery.

  • Place services in public subnets and use security groups to restrict inbound traffic.

    Why it's wrong here

    Public subnets expose services to the internet, increasing risk.

  • Place all ECS services in private subnets and use AWS Cloud Map for service discovery.

    Why this is correct

    Private subnets ensure no internet exposure; Cloud Map provides DNS-based service discovery.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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 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.