SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company runs a containerized microservices application on Amazon ECS with Fargate launch type. The application experiences intermittent latency spikes. The team wants to capture network traffic between containers for troubleshooting. Which solution should they implement?
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
✓
Enable VPC Flow Logs on the ENIs attached to the ECS tasks.
Using Amazon ECS task networking with VPC and enabling VPC Flow Logs captures network traffic metadata. Option A is wrong because AWS X-Ray captures application-level traces, not network packets. Option B is wrong because CloudWatch Logs agent captures logs, not network traffic. Option C is wrong because ECS Exec allows shell access but not traffic capture.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable AWS X-Ray tracing on the ECS tasks.
Why it's wrong here
X-Ray traces application requests, not network packets.
- ✗
Configure the awslogs driver to send container logs to CloudWatch Logs.
Why it's wrong here
Logs are not network traffic.
- ✗
Use Amazon ECS Exec to access containers and run tcpdump.
Why it's wrong here
Requires manual intervention and does not provide continuous capture.
- ✓
Enable VPC Flow Logs on the ENIs attached to the ECS tasks.
Why this is correct
Flow Logs capture IP traffic metadata.
Go deeper
Related to this question
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 →
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.