サービス · Management and Governance
AWS CloudTrail
Records API calls in your account: the audit trail of who did what, when, including calls to Amazon Bedrock.
このレッスンはまだ翻訳されていないため、英語で表示しています。
- 1A user or role calls Amazon Bedrock.
- 2AWS CloudTrail records the call.
- 3The record is kept in a stored trail for audits.
流れ
- 1A user or role calls Amazon Bedrock.
- 2AWS CloudTrail records the call.
- 3The record is kept in a stored trail for audits.
CloudTrail records each call to the service.
Records
- CloudTrail
- API calls
- CloudWatch
- Metrics and logs
- Model invocation logging
- Prompts and answers
Answers
- CloudTrail
- Who did what?
- CloudWatch
- How is it running?
- Model invocation logging
- What was said?
Prompt text
- CloudTrail
- No
- CloudWatch
- Only if logged to it
- Model invocation logging
- Yes, once turned on
| Compare | CloudTrail | CloudWatch | Model invocation logging |
|---|---|---|---|
| Records | API calls | Metrics and logs | Prompts and answers |
| Answers | Who did what? | How is it running? | What was said? |
| Prompt text | No | Only if logged to it | Yes, once turned on |
1 / 2
Records
- CloudTrail
- API calls
- CloudWatch
- Metrics and logs
- Model invocation logging
- Prompts and answers
Answers
- CloudTrail
- Who did what?
- CloudWatch
- How is it running?
- Model invocation logging
- What was said?
| Compare | CloudTrail | CloudWatch | Model invocation logging |
|---|---|---|---|
| Records | API calls | Metrics and logs | Prompts and answers |
| Answers | Who did what? | How is it running? | What was said? |
2 / 2
Prompt text
- CloudTrail
- No
- CloudWatch
- Only if logged to it
- Model invocation logging
- Yes, once turned on
| Compare | CloudTrail | CloudWatch | Model invocation logging |
|---|---|---|---|
| Prompt text | No | Only if logged to it | Yes, once turned on |
概要
AWS CloudTrail records the API calls made in your AWS account. Each record says who made the call, what they asked for, when, and from where. It covers calls made in the console, the command line and code. Management events, such as changing a setting, are recorded by default: the event history in the console shows the last 90 days. Keep a trail to go back further.
For AI, CloudTrail is the audit trail. It shows who invoked a model, who changed a guardrail and who used an encryption key. You can keep the records in Amazon S3 for as long as your rules require.
概要
CloudTrail records that a call happened. It does not store the text of prompts and answers. Amazon Bedrock model invocation logging does that, and it is off until you turn it on. It can send the text to Amazon CloudWatch Logs or Amazon S3. Amazon CloudWatch is for performance and alarms.
覚えること
- CloudTrail logs API calls: who, what, when and from where. Denied calls are recorded too.
- It is the audit trail for AI activity, such as model invocation and guardrail changes.
- Management events are recorded by default. Event history shows the last 90 days.
- Store a trail in Amazon S3 for long-term retention.
覚えること
- Prompt and answer text comes from Bedrock model invocation logging, which is off until you turn it on.
- CloudTrail is for audit. CloudWatch is for monitoring.
試験では
- “Find out who invoked a foundation model yesterday” points to AWS CloudTrail.
- “Record the text of prompts and responses” points to model invocation logging, not CloudTrail.
- “Audit trail of API activity” always points to AWS CloudTrail.
混同しやすいもの
Amazon CloudWatchCollects metrics and logs and raises alarms, so you can monitor how your AI services are used.
AWS ConfigRecords how your AWS resources are configured and checks them against rules, to prove compliance.
AWS Audit ManagerCollects audit evidence automatically and builds reports against a compliance framework. Closed to new accounts.