Operating, Monitoring, and Securing ML and AI Solutions
Monitoring models, controlling cost and performance, and protecting data, endpoints and credentials.
4.1Task
Monitor ML and AI model inference and performance.
You should be able to: Watch models and workflows in production: drift, anomalies, A/B tests, foundation model quality and agent behavior.
4.1Task
Monitor ML and AI model inference and performance.
You should be able to: Watch models and workflows in production: drift, anomalies, A/B tests, foundation model quality and agent behavior.
Amazon SageMaker Model MonitorCapture endpoint traffic, compare it with a baseline on a schedule, and alarm on violations.Builds on AIF-C01
- Detecting data distribution shiftTell covariate, label and concept shift apart, and pick a test that compares live data with the training baseline.
- CloudWatch generative AI observability and Bedrock metricsBedrock sends runtime metrics to CloudWatch on its own. Invocation logs need setup, and the dashboards read both.Builds on AIF-C01
- Monitoring FM quality in productionInfrastructure metrics cannot tell if answers are good. Sample live traffic, score it, and alarm on the scores.
4.1 Monitor ML and AI model inference and performance.
- Monitoring workflows for errors and anomaliesRoute failures and odd metrics from pipelines, jobs and endpoints to the people who fix them.Builds on 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.2Task
Optimize and manage ML and AI infrastructure costs and performance.
You should be able to: Keep infrastructure fast and affordable: instance families, dashboards, quotas, cost tools, purchasing options and token costs.
4.2Task
Optimize and manage ML and AI infrastructure costs and performance.
You should be able to: 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.Builds on 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.Builds on 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.Builds on 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.Builds on SAA-C03
- Purchasing options for ML infrastructureSteady use earns a Savings Plan, interruptible training earns Spot, and a must-have capacity needs a reservation.Builds on 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.Builds on AIF-C01
4.2 Optimize and manage ML and AI infrastructure costs and performance.
4.3Task
Secure ML and AI workloads and model endpoints.
You should be able to: Secure ML and AI systems: least privilege, IAM, encryption, VPC isolation, auditing, credentials and guardrails.
4.3Task
Secure ML and AI workloads and model endpoints.
You should be able to: 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.Builds on 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.Builds on SAA-C03
- 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.Builds on SAA-C03
- Bedrock access controlIAM decides which models and profiles a caller may invoke. SCPs and a guardrail condition enforce the rules for everyone.Builds on AIF-C01
4.3 Secure ML and AI workloads and model endpoints.
- 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.Builds on 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.Builds on SAA-C03
- 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.Builds on SAA-C03
- AI and ML security risksKnow the attacks by name, what each damages, and the control that stops it.Builds on AIF-C01
4.3 Secure ML and AI workloads and model endpoints.