An Amazon ECS service on AWS Fargate has Container Insights enabled, but its application stdout and stderr are missing from CloudWatch Logs. What should the architect configure to collect these streams directly?
Show the answer
Correct answerD. An awslogs log configuration in the task definition
AWhy not this: A CPU alarm evaluates resource metrics and does not configure application log collection.
BWhy not this: Subscription filters forward events already in CloudWatch Logs; they do not collect container output.
CWhy not this: Metric filters extract metrics from existing logs rather than deliver missing application streams.
DWhy this is right: The awslogs log driver routes container stdout and stderr to the configured CloudWatch Logs destination.
The awslogs log driver sends container stdout and stderr to CloudWatch Logs when configured in the task definition with appropriate permissions. Container Insights performance collection does not replace application log routing, and subscription filters only forward logs already ingested.