概念 · 基于 SAA-C03
SageMaker endpoints in a VPC
Subnets, security groups and VPC endpoints keep ML traffic off the internet.
本课尚未翻译,暂以英文显示。
你在Solutions Architect Associate中已学过
- A gateway endpoint gives private access to S3 for free. An interface endpoint, built on PrivateLink, reaches most other services.
- An endpoint policy limits what passes through.
- 1The application calls the runtime interface endpoint.
- 2The call reaches the model instances in your subnets.
- 3The instances read model files through the S3 gateway endpoint.
分步说明
- 1The application calls the runtime interface endpoint.
- 2The call reaches the model instances in your subnets.
- 3The instances read model files through the S3 gateway endpoint.
Private paths from an application to the model, and from the model to S3 and ECR.
Call the endpoint privately
- Interface endpoint sagemaker.runtime
Create or describe resources
- Interface endpoint sagemaker.api
Read data and model files
- S3 gateway endpoint
Pull the container image
- ecr.api and ecr.dkr, plus S3 gateway
Write logs
- CloudWatch Logs interface endpoint
Block outbound calls
- Network isolation
| You need to | Use |
|---|---|
| Call the endpoint privately | Interface endpoint sagemaker.runtime |
| Create or describe resources | Interface endpoint sagemaker.api |
| Read data and model files | S3 gateway endpoint |
| Pull the container image | ecr.api and ecr.dkr, plus S3 gateway |
| Write logs | CloudWatch Logs interface endpoint |
| Block outbound calls | Network isolation |
1 / 2
Call the endpoint privately
- Interface endpoint sagemaker.runtime
Create or describe resources
- Interface endpoint sagemaker.api
Read data and model files
- S3 gateway endpoint
Pull the container image
- ecr.api and ecr.dkr, plus S3 gateway
| You need to | Use |
|---|---|
| Call the endpoint privately | Interface endpoint sagemaker.runtime |
| Create or describe resources | Interface endpoint sagemaker.api |
| Read data and model files | S3 gateway endpoint |
| Pull the container image | ecr.api and ecr.dkr, plus S3 gateway |
2 / 2
Write logs
- CloudWatch Logs interface endpoint
Block outbound calls
- Network isolation
| You need to | Use |
|---|---|
| Write logs | CloudWatch Logs interface endpoint |
| Block outbound calls | Network isolation |
是什么
Add a VpcConfig, with subnets and security groups, to a model, a training job or a processing job. SageMaker AI then puts network interfaces for the containers in your subnets, so the security groups and routes you set apply. Use subnets in more than one Availability Zone. Serverless endpoints do not support a VpcConfig.
是什么
Without a route to the internet, the containers still need AWS services. Create interface endpoints for the SageMaker AI Runtime (com.amazonaws.region.sagemaker.runtime) so applications can call the endpoint privately, and for the SageMaker AI API (sagemaker.api) for control calls. Create a gateway endpoint for S3 for model and data files. Pulling an image needs the ECR interface endpoints (ecr.api and ecr.dkr) plus the S3 gateway endpoint, because image layers are stored in S3. Add a CloudWatch Logs interface endpoint so logs get out.
是什么
Network isolation (EnableNetworkIsolation) goes further. The container cannot make any outbound network call, even inside the VPC. It suits untrusted model code. It also stops the container from downloading anything at start, so everything must be in the image and the model artifacts.
要记住
- VpcConfig: subnets and security groups for models, training and processing jobs.
- Runtime interface endpoint for invocations. API interface endpoint for control calls.
- S3 gateway endpoint for data and model files.
- ECR needs ecr.api, ecr.dkr and the S3 gateway endpoint. Logs need a CloudWatch Logs endpoint.
要记住
- Network isolation blocks all outbound calls from the container.
- Serverless endpoints have no VPC configuration.
考试中
- “Private subnet applications call a SageMaker AI endpoint with no internet” points to the SageMaker Runtime interface endpoint.
- “Training in a VPC without internet fails while pulling data or the image” points to the S3 gateway endpoint and ECR interface endpoints.
- “The container must not reach any network” points to network isolation.
本任务内容 · 3.2
- Provisioned vs on-demand resources
- IaC for ML: CloudFormation, CDK and Service Catalog
- Containers for ML: images, ECR and own containers
- ECS, EKS and Batch for ML workloads
- SageMaker endpoints in a VPC
- Auto scaling endpoints and choosing metrics
- Scaling GPU and LLM workloads
Knowledge Bases
- Retrieval pipelines
- Agent state and memory management
- Agentic workflow infrastructure