DVA-C02 Deployment Practice Question
A developer is deploying a microservices architecture on Amazon ECS. The services need to communicate with each other securely. The developer wants to use service discovery and ensure that traffic between services is encrypted. Which combination of services should the developer use?
⚠ Common exam trap
It's easy for candidates to confuse TLS termination at a load balancer (which only encrypts traffic from client to ALB) with mutual TLS between services, or assume DNS-based discovery alone (like Route 53) provides encryption, when it does not.
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 AWS Cloud Map for service discovery and AWS App Mesh with mutual TLS
AWS Cloud Map provides service discovery by registering ECS service instances with DNS-based or API-based resolution, enabling dynamic routing between microservices. AWS App Mesh with mutual TLS (mTLS) encrypts traffic between services and enforces identity-based authentication, ensuring end-to-end encryption and secure communication. This combination directly addresses the requirements for service discovery and encrypted traffic.
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 AWS Cloud Map for service discovery and AWS App Mesh with mutual TLS
Why this is correct
AWS Cloud Map provides robust service discovery, allowing microservices to dynamically locate each other using either DNS queries or an API. When combined with AWS App Mesh, a service mesh solution, it enables advanced traffic management and security features. App Mesh facilitates mutual TLS (mTLS) between services by injecting Envoy proxies, ensuring that both the client and server services authenticate each other with certificates, thus securing inter-service communication at the transport layer without requiring application code changes. This combination is the most suitable for secure, dynamic microservice interactions.
- ✗
Use Amazon API Gateway and AWS Lambda
Why it's wrong here
Amazon API Gateway is designed to act as a "front door" for applications, exposing external HTTP/S endpoints to clients, not for internal service-to-service communication. AWS Lambda provides serverless compute for executing functions. While Lambda functions can be invoked internally, routing all inter-service communication through API Gateway introduces unnecessary latency, increased costs, and architectural complexity compared to direct service-to-service communication patterns. It is not optimized for the high-volume, low-latency, and secure internal communication typically required in a microservices environment.
- ✗
Use Amazon Route 53 private hosted zones and enable DNSSEC
Why it's wrong here
Amazon Route 53 private hosted zones can provide internal DNS resolution for microservices, assisting with basic service discovery within a VPC. However, enabling DNSSEC (DNS Security Extensions) only authenticates DNS responses, protecting against DNS spoofing and cache poisoning. DNSSEC does not encrypt the actual data traffic flowing between services or provide mutual authentication at the transport layer. Therefore, it fails to meet the crucial requirement for mutual TLS, which secures the communication channel itself by verifying both client and server identities.
- ✗
Use an Application Load Balancer for each service and enable TLS termination
Why it's wrong here
Application Load Balancers (ALBs) are primarily designed for distributing external client traffic across multiple targets and can terminate TLS connections from clients. Deploying an ALB for each internal microservice for inter-service communication is an inefficient and overly complex architectural pattern. This approach introduces significant operational overhead and cost, as each ALB requires management and incurs charges. Furthermore, while ALBs handle client-to-load balancer TLS, they do not inherently provide mutual TLS for authenticating and encrypting the service-to-service communication beyond the load balancer itself.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DVA-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 DVA-C02 exam.