Certopolis

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.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company runs several Java services on an Amazon EKS cluster. The operations team wants standard metrics such as call volume, availability, latency, faults, and errors for each service, and a map of how the services depend on each other. The developers do not want to write custom instrumentation code or build dashboards. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Troubleshooting and Optimization building.

    Not that one: B is right. In the game your Troubleshooting and Optimization building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    It also discovers the application's topology and shows it as a map of services and dependencies. On Amazon EKS it discovers the names of services and clusters automatically.

    Written from docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Application-Monitoring-Sections.html

  2. A developer is paged by an Amazon CloudWatch alarm on an API's rising 5XX error count. The developer wants a generative AI assistant to look across the related metrics, logs, deployment events, and traces, and to propose likely causes for the errors. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Troubleshooting and Optimization building.

    Not that one: A is right. In the game your Troubleshooting and Optimization building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    It works with the signed-in user's permissions and creates no resources, so it can be used during an incident without preparation.

    Written from docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Investigations.html

  3. A company's services send OpenTelemetry spans to AWS X-Ray, and each span records a payment.status attribute. A developer needs an Amazon CloudWatch metric that counts failed payments from every span rather than from a sample. Customer email addresses that appear in span attributes must also be masked wherever the span data is stored. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Troubleshooting and Optimization building.

    Not that one: C is right. In the game your Troubleshooting and Optimization building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Because the spans are then ordinary CloudWatch Logs data, CloudWatch Logs features apply to them: a metric filter can extract a count of failed payments from every span, and data masking can protect personal data such as email addresses.

    Written from docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Transaction-Search.html

Ask for something