Operating, Monitoring, and Securing ML and AI Solutions
Monitoring models, controlling cost and performance, and protecting data, endpoints and credentials.
4.1任务
Monitor ML and AI model inference and performance.
你应当能够: Watch models and workflows in production: drift, anomalies, A/B tests, foundation model quality and agent behavior.
4.1任务
Monitor ML and AI model inference and performance.
你应当能够: Watch models and workflows in production: drift, anomalies, A/B tests, foundation model quality and agent behavior.
4.1 Monitor ML and AI model inference and performance.
- CloudWatch generative AI observability and Bedrock metricsBedrock sends runtime metrics to CloudWatch on its own. Invocation logs need setup, and the dashboards read both.基于 AIF-C01
- Monitoring FM quality in productionInfrastructure metrics cannot tell if answers are good. Sample live traffic, score it, and alarm on the scores.
- Monitoring workflows for errors and anomaliesRoute failures and odd metrics from pipelines, jobs and endpoints to the people who fix them.基于 SAA-C03
- Agent monitoring and AgentCore ObservabilityTraces show each reasoning step and tool call, so you can find loops, failing tools and handoffs that went wrong.
4.2任务
Optimize and manage ML and AI infrastructure costs and performance.
你应当能够: Keep infrastructure fast and affordable: instance families, dashboards, quotas, cost tools, purchasing options and token costs.
4.2任务
Optimize and manage ML and AI infrastructure costs and performance.
你应当能够: Keep infrastructure fast and affordable: instance families, dashboards, quotas, cost tools, purchasing options and token costs.
4.2 Optimize and manage ML and AI infrastructure costs and performance.
- CloudWatch metrics and dashboards for MLKnow which endpoint and training metrics exist, where they live, and how to turn them into dashboards and alarms.基于 SAA-C03
- Logs and tracing to troubleshoot ML systemsRead the signal first: logs for container errors, traces for slow hops, CloudTrail for denied or failed API calls.基于 SAA-C03
- Capacity, quotas and throttlingQuotas cap how much you can run, throttling caps how fast you can call, and capacity errors mean the Region has none to give.基于 SAA-C03
- Cost tools, tags and spending limitsTag everything, activate the tags, then watch spend with Cost Explorer and Budgets. Use inference profiles to split Bedrock costs.基于 SAA-C03
- Purchasing options for ML infrastructureSteady use earns a Savings Plan, interruptible training earns Spot, and a must-have capacity needs a reservation.基于 SAA-C03
- FM inference costs and token monitoringWork out cost from tokens, choose the model tier and buying mode by traffic shape, and count tokens by tag.基于 AIF-C01
4.2 Optimize and manage ML and AI infrastructure costs and performance.
4.3任务
Secure ML and AI workloads and model endpoints.
你应当能够: Secure ML and AI systems: least privilege, IAM, encryption, VPC isolation, auditing, credentials and guardrails.
4.3任务
Secure ML and AI workloads and model endpoints.
你应当能够: Secure ML and AI systems: least privilege, IAM, encryption, VPC isolation, auditing, credentials and guardrails.
- Scanning code and images in CI/CDScan code, dependencies and container images in the pipeline, and stop the release when findings are too severe.基于 AIF-C01
- Least privilege for ML artifactsGive each role the smallest S3 prefix, key, registry and data permission it needs, and use tags to scale the rules.基于 SAA-C03
4.3 Secure ML and AI workloads and model endpoints.
- IAM roles for SageMaker and ML workloadsTwo identities are involved: the person or app who calls the API, and the execution role SageMaker assumes. PassRole joins them.基于 SAA-C03
- Bedrock access controlIAM decides which models and profiles a caller may invoke. SCPs and a guardrail condition enforce the rules for everyone.基于 AIF-C01
- Credential types for BedrockProduction uses IAM roles. A Bedrock API key is a bearer token: short-term for tools, long-term for trying things out.
- Auditing, logging and compliance for MLCloudTrail answers who did what, Config answers whether a setting is compliant, and model documents show how a model was built.基于 SAA-C03
- Troubleshooting ML security issuesWork out whether a failure is a permission or a network path, then read the error and the CloudTrail event.
- Isolating ML systems with VPCsRun ML in private subnets, reach AWS services through endpoints, and turn on network isolation where code must not call out.基于 SAA-C03
4.3 Secure ML and AI workloads and model endpoints.
- Encryption and data protection for MLEncrypt data at rest with KMS in each place ML touches it, encrypt traffic in transit, and keep secrets out of code.基于 SAA-C03
- AI and ML security risksKnow the attacks by name, what each damages, and the control that stops it.基于 AIF-C01
Amazon Bedrock GuardrailsSet content filter strengths, topics, words, PII handling and grounding thresholds, and call the guardrail on any model.基于 AIF-C01