Lesson 3 of 3 Monitoring GenAI Applications

Building Dashboards and Forensic Traceability for Generative AI

This lesson covers operational and business dashboards, compliance monitoring and traceability across logs, so the right people see monitoring data in a form they can act on and incidents can be reconstructed.

Learning outcomes

After completing this lesson, you will be able to:

  • Build operational dashboards.
  • Visualize business impact.
  • Monitor compliance and trace requests across logs.

Operational dashboards

Operators need to see the health of a generative AI application at a glance. CloudWatch dashboards combine, on one screen per application, model metrics such as invocations, latency percentiles, throttles, errors and tokens; application metrics such as the share of valid outputs, grounding failures and cache hit rate; retrieval metrics; and agent metrics, with the state of related alarms shown alongside.

Amazon Managed Grafana suits organisations that have standardised on Grafana and want to combine CloudWatch data with other sources, such as Prometheus metrics. CloudWatch generative AI observability adds prebuilt views for model invocations and agents, which reduce the work of building dashboards from scratch.

Business impact visualisations

Operational metrics show whether an application is working; executives and product owners also need to know whether it is worth what it costs. Business metrics answer that question: tickets resolved without escalation, time saved per document processed, conversion after assistant interactions, user satisfaction, cost per resolved request and adoption by department.

These metrics come from application events and user feedback stored in Amazon S3, queried with Amazon Athena and visualised in Amazon Quick Sight dashboards, often joined with cost data from AWS billing exports. Showing cost and quality side by side supports decisions such as whether a more expensive model is justified by better outcomes or whether a feature should be extended to more users.

The following diagram shows two dashboards for two audiences of a support assistant.

Two dashboards for two audiences. Application events about resolution, escalation and ratings land in S3 and feed a Quick Sight dashboard of resolution rate and cost per resolved ticket for leadership. Guardrail interventions and PII detections feed a CloudWatch compliance dashboard for the security team. Both link back to records through the request ID.
Business metrics come from application events, not from model metrics.
Scenario questions

Dashboards for each audience

Exam skills 4.3.3 · 5.1.8

Choose the dashboard tool for each audience.

Log in to try this activity Interactive activities are free with an account.

Compliance monitoring and forensic traceability

Compliance monitoring tracks guardrail interventions by policy, PII detections, prompt attack detections, use of unapproved models and logging coverage. Forensic traceability links every record of a request by a shared request ID: the API Gateway access log, X-Ray trace, application decision log, model invocation log and CloudTrail events. User interaction tracking records sessions, feedback, retries and abandonment, and model behaviour pattern tracking follows topic mix, refusal rates and tool usage over time. The following table maps audiences to views.

AudienceViewTooling
OperationsLatency, errors, throttles, tokens, alarmsCloudWatch dashboards; Managed Grafana
Product and businessOutcomes, satisfaction, adoption, cost per outcomeQuick Sight over Athena and S3
Compliance and securityGuardrail interventions, PII, unapproved usageCloudWatch dashboards; logs
InvestigatorsEnd-to-end reconstruction by request IDLogs Insights, X-Ray, CloudTrail, invocation logs

The following diagram shows the records joined by one request ID.

Forensic traceability through a shared request ID. The API Gateway access log, the X-Ray trace, the application decision log, the model invocation log and CloudTrail events all carry or can be joined on the same request ID, so one interaction can be reconstructed end to end.
The application must log the request ID for the join to work.
Select all that apply

A compliance monitoring view

Exam skills 4.3.3 · 3.3.4

Choose the measures that belong on a compliance monitoring dashboard for a GenAI application.

Log in to try this activity Interactive activities are free with an account.
Worked example

Proving value

Leadership asks whether a support assistant is worth its cost, and the security team wants weekly evidence of safety controls.

Application events (resolution, escalation, ratings) land in S3 and feed a Quick Sight dashboard that shows resolution rate and cost per resolved ticket; a CloudWatch compliance dashboard shows guardrail interventions and PII detections; both use the request ID to link back to logs for drill-down.

Check yourself

How can all records of one request be linked for a forensic investigation?

Show answer

With one request ID recorded in every log, trace and stored response.

Exam Tips

Remember for the exam

  • Operations: CloudWatch dashboards or Managed Grafana.
  • Business outcomes: Quick Sight over Athena and S3.
  • Link all records of a request with one request ID for forensics.
  • Track compliance signals such as guardrail interventions and PII detections.