Secure ML and AI Workloads and Endpoints
Unlock the complete study guide.
Bundled into the existing AWS Certified Machine Learning Engineer - Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- AWS security topics for ML and AI workloads
- Execution roles: the permissions a job actually uses
- Why a request stays denied after you add an allow
- Amazon Bedrock inference actions for streaming and nonstreaming calls
- Credentials in foundation model applications
- Encryption at rest and between training instances
- Private endpoints for inference and artifact traffic
- Controlling what job and model containers can reach
- Guardrails filters: what each catches and misses
- Applying a guardrail: what is evaluated, and when
- Screening code, container images and stored data
- Audit evidence: CloudTrail, AWS Config and invocation logs
- Common mistakes in securing ML and AI workloads
AWS security topics for ML and AI workloads compared
| Aspect | Identity and access management | Data protection | Infrastructure security | Amazon Bedrock Guardrails | Vulnerability management and sensitive data discovery | Logging and monitoring |
|---|---|---|---|---|---|---|
| Question it answers | Who can be authenticated and authorized to act on resources, and with which role or credential? | How is data protected at rest and in transit, and which KMS key and key permissions apply? | Which network paths can traffic take? | Which undesirable content in user inputs or model responses is detected and filtered? | Which code and container images have software vulnerabilities, and which stored data is sensitive? | What happened, and who did it? |
| Main AWS controls | Execution roles, iam:PassRole, permissions boundaries, Bedrock API keys, Secrets Manager | Customer managed KMS keys for ML storage volumes and job output, SSE-KMS, inter-container traffic encryption | Subnets, security groups, interface and gateway VPC endpoints, network isolation | Amazon Bedrock Guardrails filters, ApplyGuardrail | Amazon Inspector Code Security and CI/CD scans, ECR enhanced scanning, Macie | CloudTrail management and data events, AWS Config, Bedrock model invocation logging |
| What it cannot do | Open a network path or screen content | Replace data permissions: reading an SSE-KMS object needs S3 read and kms:Decrypt | Authorize a request; policies still decide | Inspect tool arguments, tool results or tool definitions | Stop a harmful request at inference time | Prevent the action it records |
| Typical wrong substitute | Granting the submitting user more S3 access | Encrypting the training volume to protect traffic between instances | VPC peering in place of a bucket policy grant | A word list standing in for a whole denied topic | A clean push-time scan treated as permanent proof | A management-events-only trail for knowledge base retrievals |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- https://docs.aws.amazon.com/vpc/latest/privatelink/concepts.html
- https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain4.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/security.html
- https://docs.aws.amazon.com/inspector/latest/user/what-is-inspector.html
- https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-incident-response.html
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain3.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/train-encrypt.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html
- https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonSageMakerFullAccess.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html
- https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html
- https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys.html
- https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html
- https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/interface-vpc-endpoint.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-interface-endpoints.html
- https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic_policy-eval-denyallow.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/process-vpc.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/mkt-algo-model-internet-free.html
- https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-prompt-attack.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-tiers.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-use-converse-api.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html
- https://docs.aws.amazon.com/inspector/latest/user/code-security-assessments.html
- https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html
- https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/codeguru-reviewer-availability-change.html
- https://docs.aws.amazon.com/inspector/latest/user/scanning-cicd.html
- https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
- https://docs.aws.amazon.com/macie/latest/user/data-classification.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/logging-using-cloudtrail.html
- https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/model-invocation-logging.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html