ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား · 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.
Solutions Architect Associate သင်ခန်းစာကို ဖတ်ရန်
VPC
Application
Runtime interface endpoint
Model instances
S3 gateway endpoint
ECR interface endpoints
  1. 1The application calls the runtime interface endpoint.
  2. 2The call reaches the model instances in your subnets.
  3. 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.

အဆင့်ဆင့်

  1. 1The application calls the runtime interface endpoint.
  2. 2The call reaches the model instances in your subnets.
  3. 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
Which endpoint solves which need.

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

2 / 2

  • Write logs

    CloudWatch Logs interface endpoint
  • Block outbound calls

    Network isolation
Which endpoint solves which need.

ဘာလဲ

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.