AWS Certified Developer – Associate
CloudWatch Application Signals, investigations and EMF: DVA-C03
According to the Amazon CloudWatch User Guide, Application Signals collects standard metrics and traces and draws an application map without custom code. CloudWatch investigations is a generative AI assistant that surfaces related telemetry and root-cause hypotheses. Transaction Search ingests 100 percent of spans as structured logs in the aws/spans log group.
What does Application Signals give you?
Application Signals automatically collects metrics and traces from applications and shows call volume, availability, latency, faults and errors. You do not write custom code or build dashboards. It also discovers the application's topology and shows it as a map of services and dependencies.
It supports Java, Python, Node.js and .NET applications and is supported and tested on Amazon EKS, Amazon ECS and Amazon EC2. On EKS clusters it discovers service and cluster names automatically. On other architectures you supply the service and environment names. You can create service-level objectives (SLOs) on its metrics. Using it incurs charges.
What is a CloudWatch investigation?
CloudWatch investigations scans your system's telemetry and surfaces metrics, logs, deployment events and root-cause hypotheses related to an issue. An investigation analyzes the resources associated with an alarm, a metric or a Logs Insights query. It can draw on CloudTrail change events, AWS Health events and X-Ray trace data.
It works without setup. It then uses the signed-in user's permissions and creates no resources. In that mode an investigation is linked to the user's session, other users cannot view or continue it, and it runs once and completes.
Configuring the feature creates an investigation group, one per account. After that, investigations are available to all users in the account with the required permissions and continue until resolved. You can add CloudTrail event history so that issues are associated with change events, add X-Ray and Application Signals data, and run a Systems Manager Automation runbook that an investigation suggests.
Transaction Search, embedded metric format and Contributor Insights
Transaction Search ingests 100 percent of the spans sent to X-Ray as structured logs in a log group called aws/spans, and indexes a percentage of them as trace summaries in X-Ray. Because the spans are logs, CloudWatch Logs features apply: metric filters to extract custom metrics, subscription filters and data masking for personally identifiable information.
The embedded metric format (EMF) publishes custom metrics asynchronously by writing structured log events. CloudWatch extracts the metrics and keeps the detailed log event for Logs Insights queries. A log event must not contain more than 100 MetricDefinition objects in total. If it does, CloudWatch extracts no metrics from it. AWS now recommends OpenTelemetry metrics for most new workloads and describes EMF as most useful on Lambda or where EMF instrumentation already exists.
Contributor Insights analyzes log data and builds time series about contributors: the top-N contributors, the total number of unique contributors and their usage. A rule names the log fields that define a contributor, such as an IP address. All rules analyze incoming data in real time, and you are charged for each log event that matches a rule.
Where the exam catches people
- Believing Application Signals is the tool that proposes root causes for an alarm: it collects standard metrics and a map. CloudWatch investigations produces the hypotheses.
- Believing IAM permissions alone let a colleague continue your investigation: before the feature is configured, an investigation is linked to your session. Configuring it creates the shared investigation group.
- Believing a metric from every span needs a 100 percent X-Ray sampling rule and an X-Ray group: Transaction Search puts all spans in
aws/spans, where a metric filter applies. - Believing an EMF log event with more than 100 metric definitions publishes the first 100: CloudWatch extracts none of them. Split the definitions across log events.
- Believing a metric filter gives a ranking of top clients: Contributor Insights rules produce top-N contributors and the count of unique contributors.