Automating Root Cause Analysis Using Amazon Bedrock Agents
bmw · Automotive · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Cloud incident root-cause analysis
BMW needed to speed up root-cause analysis for connected-vehicle digital services spanning many components, teams, regions, and AWS observability sources.
Constraints:
- BMW connected services serve more than 23 million vehicles
- incidents can involve interdependent mobile apps, backend-for-frontend services, internal APIs, MQTT, and networking
- engineers must inspect architecture, logs, metrics, and control-plane changes
- the agent must propose hypotheses while keeping an on-call engineer in control
- root causes need enough evidence for junior engineers to act
Architecture
BMW built an Amazon Bedrock ReAct agent for RCA. An on-call engineer provides an incident description. The agent uses custom Lambda-backed tools over C4/Structurizr architecture diagrams, CloudWatch Logs Insights, CloudWatch metrics, and CloudTrail control-plane events. Guided by ReAct reasoning, it gathers evidence, revises hypotheses, correlates logs/metrics/configuration changes, and presents likely root causes and follow-up investigation paths to the engineer.
Diagram confidence: explicit (topology described by the source).
flowchart LR on-call-engineer-interface[On-call engineer interface] --> amazon-bedrock-react-agent[Amazon Bedrock ReAct agent] amazon-bedrock-react-agent --> architecture-tool[Architecture tool] amazon-bedrock-react-agent --> logs-tool[Logs tool] amazon-bedrock-react-agent --> metrics-tool[Metrics tool] amazon-bedrock-react-agent --> infrastructure-tool[Infrastructure tool] architecture-tool --> amazon-bedrock-react-agent logs-tool --> amazon-bedrock-react-agent metrics-tool --> amazon-bedrock-react-agent infrastructure-tool --> amazon-bedrock-react-agent
Components
| Component | Role | Interacts with |
|---|---|---|
On-call engineer interface |
Provides the incident description and directs follow-up investigation. | Amazon Bedrock ReAct agent |
Amazon Bedrock ReAct agent |
Iteratively reasons about incidents, selects tools, and ranks root-cause hypotheses. | On-call engineer interface, Architecture tool, Logs tool, Metrics tool, Infrastructure tool |
Architecture tool |
Uses C4/Structurizr diagrams to understand component relationships and dependencies. | Amazon Bedrock ReAct agent |
Logs tool |
Uses CloudWatch Logs Insights to find errors, patterns, and anomalies. | Amazon Bedrock ReAct agent |
Metrics tool |
Uses CloudWatch metrics to identify anomalies in latency, error rates, resource use, and invocations. | Amazon Bedrock ReAct agent |
Infrastructure tool |
Uses CloudTrail to detect control-plane changes and misconfigurations. | Amazon Bedrock ReAct agent |
Data flow
The incident description enters the Bedrock ReAct agent. The agent queries architecture diagrams to identify impacted components, calls log/metric/infrastructure tools against relevant systems, reevaluates evidence after each tool call, ranks hypotheses, and returns likely causes to the on-call engineer for resolution or further direction.
4 supporting quotes
Why this architecture
RCA is a tool-selection and hypothesis-revision problem, so ReAct fits better than a static workflow. The architecture tool narrows the search space, logs/metrics/infrastructure tools collect concrete evidence, and the engineer-facing interface keeps humans in the decision loop. Tool modularity lets BMW adapt RCA to its multi-regional connected-vehicle infrastructure.
3 supporting quotes
Models used: Amazon Bedrock Agents · ReAct agent framework
Scale
- BMW has more than 154,000 employees.“The BMW Group—headquartered in Munich, Germany—is a vehicle manufacturer with more than 154,000 employees, and 30 production and assembly facilities worldwide as well as research and development locations across 17 countries.”article, stated
- BMW has 30 production and assembly facilities and R&D locations across 17 countries.“30 production and assembly facilities worldwide as well as research and development locations across 17 countries.”article, stated
- BMW Connected Company operates digital services for more than 23 million connected vehicles.“BMW Connected Company is a division within BMW responsible for developing and operating premium digital services for BMW’s connected fleet, which currently numbers more than 23 million vehicles worldwide.”article, stated
- The agent identified root causes in 85% of test cases.“The solution has demonstrated measurable success, with the agent identifying root causes in 85% of test cases and providing detailed insights in the remainder, greatly expediting engineers’ investigations.”article, stated
- The example investigation took minutes instead of hours.“The entire process—from incident detection to resolution—took minutes, compared to the hours it could have taken with traditional RCA methods.”article, stated
Alternatives considered (roads not taken)
Manual RCA by engineers
Rejected because: Manual RCA requires checking many systems, teams, logs, and hypotheses across interdependent services.
Predefined RCA workflows
Rejected because: ReAct can adapt to the specific incident using real-time inputs and iterative tool calls.
Blind log/metric search
Rejected because: Architecture diagrams help the agent target relevant dependencies before querying telemetry.
Patterns
tool-use-orchestration (agent-architecture)
The Bedrock agent chooses among architecture, log, metric, and infrastructure tools during RCA.
observability-tracing (operations)
The agent queries CloudWatch logs/metrics, CloudTrail events, and cross-account observability data.
human-in-the-loop-gate (workflow)
The agent proposes hypotheses to an on-call engineer, who resolves the incident or directs further investigation.
agent-memory (context)
Architecture diagrams give the agent a reusable model of component dependencies and workflows.
Tradeoffs
Use ReAct rather than fixed workflows
Chose iterative reasoning and tool invocation over predefined RCA runbooks only.
Rationale: Incidents differ enough that the agent needs to adapt its investigation path.
Keep engineers in control
Chose hypothesis proposal plus engineer follow-up over fully autonomous remediation.
Rationale: The article describes the agent helping diagnosis while engineers resolve or redirect.
Use modular Lambda tools
Chose specialized architecture/log/metric/infrastructure tools over one monolithic RCA prompt.
Rationale: Tool modules make RCA precise and tailored to BMW's infrastructure.
Gotchas (what bit them)
RCA across interdependent services requires backtracking.
Root cause: Multiple teams and components can fail together, so initial hypotheses may be wrong.
Resolution: The ReAct agent iteratively gathers evidence and reevaluates hypotheses.
A root cause can sit in control-plane changes rather than app code.
Root cause: The example incident was caused by a security group change blocking network traffic.
Resolution: The infrastructure tool uses CloudTrail data to catch configuration changes.
Evaluation
BMW evaluated the RCA agent on representative proof-of-concept use cases and measured root-cause identification accuracy and diagnosis-time reduction.
Metrics: root-cause identification rate · diagnosis time · detailed insights in non-right-root-cause cases · junior engineer enablement
Outcomes
- The agent identified root causes in 85% of test cases.
- The example diagnosis took minutes rather than hours.
- BMW reports that junior engineers can diagnose issues more effectively.
- The agent improves system understanding with real-time insights.
BMW Connected Company operates digital services for over 23 million connected vehicles across complex, multi-regional infrastructure.