AI-Assisted Operations: Kiro, AWS DevOps Agent and AWS Security Agent
Overview
AWS has added agentic AI tools that help operators investigate incidents, write infrastructure and review security. The current SOA-C03 exam guide names Kiro, AWS DevOps Agent and AWS Security Agent in its skills and in-scope services, so the exam may ask what each one does and how it fits next to Systems Manager, CloudWatch and EventBridge. These products are new and evolve quickly, so verify details in the current AWS documentation before relying on specifics.
Think of them as junior colleagues who work around the clock. The DevOps Agent is the on-call engineer who starts investigating the moment an alarm fires, Kiro is the pair-programmer who helps you write and review the automation, and the Security Agent is the reviewer who looks for vulnerabilities before and after release. A good manager still sets the boundaries: least-privilege access, approvals, and audit trails.
The core exam idea stays the same: automate remediation using AWS services (CloudWatch, EventBridge, Lambda, Systems Manager Automation) and keep humans in control of risky changes.
Key Concepts
- Kiro is an agentic development environment and CLI that turns prompts into specifications, code, infrastructure templates and tests and can use MCP tools; operators use it to draft CloudFormation/CDK, runbooks and automation.
- AWS DevOps Agent is an autonomous operations agent that investigates incidents: it correlates metrics, logs, traces, deployments and topology across accounts and suggests or drives mitigation.
- AWS Security Agent is an AI agent for application security: it reviews designs and code and performs on-demand penetration testing, producing findings with remediation guidance.
- These agents complement, not replace, CloudWatch alarms, EventBridge rules and Systems Manager Automation runbooks, which remain the deterministic execution layer.
- Agent access is governed by IAM roles with least privilege, read-only investigation by default, and approval steps before changes.
- Agent actions and API calls appear in CloudTrail, so audit and compliance requirements still apply.
- A common pattern: alarm -> EventBridge -> agent investigates and posts findings to a ticket or chat -> approved fix runs as an SSM Automation runbook.
- Evaluate AI suggestions like any change: review, test in non-production, deploy through CI/CD and CloudFormation, and monitor outcomes.
Detailed Notes
Where each tool fits
| Tool | Primary job | Typical operator use | Exam-relevant link |
|---|---|---|---|
| Kiro | AI-assisted authoring: specs, code, tests, IaC | Draft a CloudFormation template or Lambda remediation, generate runbook YAML, refactor scripts | Skill 1.2.1 (automate remediation), Domain 3 IaC |
| AWS DevOps Agent | Autonomous incident triage and root-cause investigation | Investigate a CloudWatch alarm: correlate recent deployments, logs, metrics, traces and topology | Skills 1.2.1 and 3.2.2 (event-driven automation) |
| AWS Security Agent | AI-driven security review and penetration testing | Review a design or PR for vulnerabilities, run a pen test on a staging app | Skill 4.2.5 (reports and remediation of findings) |
| Amazon Q Developer | Conversational help in console and IDE | Explain errors, suggest CLI commands | Complementary |
Event-driven pattern with an agent in the loop
{
"source": ["aws.cloudwatch"],
"detail-type": ["CloudWatch Alarm State Change"],
"detail": { "state": { "value": ["ALARM"] }, "alarmName": [{ "prefix": "prod-" }] }
}
- The alarm fires and EventBridge matches the pattern above.
- Targets fan out: an SNS notification for humans, and a trigger (webhook or integration) for the investigation agent.
- The agent gathers evidence from CloudWatch, CloudTrail, deployments and Config, and produces a summary with probable cause.
- A human approves a mitigation; an SSM Automation runbook executes it with a scoped role.
- Results and timeline are recorded in the incident ticket for the post-incident review.
Deterministic automation remains the core
schemaVersion: '0.3'
description: Restart a service on instances tagged by the investigation
assumeRole: '{{ AutomationAssumeRole }}'
parameters:
AutomationAssumeRole: { type: String }
InstanceId: { type: String }
mainSteps:
- name: restart
action: aws:runCommand
inputs:
DocumentName: AWS-RunShellScript
InstanceIds: ['{{ InstanceId }}']
Parameters: { commands: ['systemctl restart app'] }
Whether a human, Kiro or the DevOps Agent proposes the fix, the change executes through tested, version-controlled automation with a defined role, not through ad hoc credentials.
Guardrails for agent use
| Control | Implementation |
|---|---|
| Least privilege | Agent role with read-only permissions (CloudWatch, Logs, Config, CloudTrail lookup); separate role for mutations |
| Approval | Human-in-the-loop for production changes; SSM Change Manager or ticket approval |
| Boundaries | SCPs and permission boundaries; restrict Regions and services |
| Data protection | Do not expose secrets in prompts; use Secrets Manager and redaction |
| Auditability | CloudTrail, Config and agent session history retained |
| Validation | Run suggested IaC through cfn-lint, change sets, and non-prod stacks |
How to prepare for exam questions
Expect scenario wording such as "reduce the time to identify the root cause of production incidents across accounts" (DevOps Agent), "generate and review infrastructure code with AI assistance" (Kiro) or "automatically test an application for vulnerabilities" (Security Agent). For execution of the fix the answer remains Systems Manager Automation, Lambda or EventBridge. Because these services are recent, rely on the official guide and service documentation for current capabilities.
Real World Example
Scenario – faster incident response. A SaaS company receives a 3 a.m. alarm: latency on the orders API. The DevOps Agent is wired to the alarm through EventBridge. Within minutes it reports that latency began right after a deployment 20 minutes earlier, that the new version issues N+1 queries, and that the database CPU correlates with the change.
The on-call engineer reads the summary, approves rolling back through the existing CodeDeploy/CloudFormation workflow and records the timeline automatically. Next morning the team uses Kiro to draft an additional alarm, a runbook and a regression test, and runs the Security Agent against staging to check the change for new vulnerabilities before re-release.
Architecture Diagram
- 1A CloudWatch alarm enters the ALARM state.
- 2EventBridge routes the event to notification targets and the investigation agent.
- 3The agent correlates metrics, logs, traces and deployments and proposes a cause and fix.
- 4A human approves, and a Systems Manager Automation runbook performs the change.
- 5CloudTrail and the incident record capture the full audit trail.
Best Practices
- ✓Give agents read-only, least-privilege roles for investigation and use a separate approved path for changes.
- ✓Keep Systems Manager Automation runbooks and CloudFormation as the executable, versioned source of truth.
- ✓Require human approval for production-impacting remediation.
- ✓Review AI-generated IaC with linting, change sets and non-production tests before deploying.
- ✓Retain CloudTrail and incident timelines for audit and post-incident reviews, and never paste secrets into prompts.
Common Interview Questions
Exam Tips
SOA-C03 focus
- AI agent investigating incidents and correlating telemetry -> AWS DevOps Agent; AI-assisted code/IaC authoring -> Kiro; AI security testing -> AWS Security Agent.
- Execution of remediation stays with Systems Manager Automation, Lambda and EventBridge.
- Agent permissions follow least privilege and activity is audited in CloudTrail.
- Because these tools are new, expect conceptual questions about purpose rather than command syntax.
Chapter quiz
Advanced Observability and AI-Assisted Operations · 10 questions
1.A platform team runs Prometheus exporters on EKS and wants a managed, scalable store that supports PromQL and remote write without operating servers. Which service should they use?
2.Operations wants a single dashboard combining AMP metrics, CloudWatch metrics and X-Ray traces, with sign-in through the corporate identity provider. Which solution fits?
3.Samples are not appearing in an AMP workspace from a collector running in a private subnet without NAT. Which of the following is MOST likely missing?
4.A microservices application has intermittent slow responses, and each service's average latency looks normal. Which tool BEST identifies the slow downstream call?
5.A Lambda function does not show up in X-Ray even though other services do. Active tracing is enabled on the function. What should the operator verify?
6.The business wants to be alerted before customers notice that the login flow is broken, even at night when traffic is low. Which feature meets this?
7.A Bedrock-powered application receives ThrottlingException during peak hours. Which combination of actions is MOST appropriate?
8.Security requires an audit of which IAM principals invoked foundation models in Bedrock. Which service provides this?
9.A team enabling Bedrock model invocation logging is concerned that prompts contain customer data. Which step is MOST important?
10.An organization wants an autonomous AI agent to investigate production incidents by correlating metrics, logs, deployments and topology, while keeping remediation under human approval. Which approach is BEST?
0 of 10 answered
Finished this lesson?
0 of 46 lessons done · 0% of the course

