Course menuMLA-C02

Exams / MLA-C02 / Study guide / Network isolation and encryption

Network isolation and encryption: MLA-C02 study notes and practice questions

What to know about Network isolation and encryption for the MLA-C02 exam, from the Operating, Monitoring, and Securing ML and AI Solutions domain (24% of the exam guide), then 2 free questions to test it. Part of the MLA-C02 study guide.

Last verified against current AWS documentation ·How we write our questions

What to know for the exam

These questions describe security requirements (no internet, customer managed keys, encrypted traffic) and ask which settings meet them.

Network controls

Control Effect
VPC config on jobs and endpoints Places ENIs in your private subnets with your security groups
Network isolation Blocks all outbound network calls from the training or model container; SageMaker AI still handles input data and artifacts
VPC endpoints (PrivateLink) Private access to SageMaker API, Runtime, Bedrock, Bedrock Runtime, S3 (gateway), ECR, STS, CloudWatch Logs and KMS
Endpoint and bucket policies Restrict access to specific VPC endpoints with aws:SourceVpce
Studio VPC-only mode Studio traffic goes through your VPC rather than the internet

Encryption settings on SageMaker AI

  • VolumeKmsKeyId encrypts the ML storage volumes attached to training, processing and hosting instances.
  • Output KmsKeyId encrypts model artifacts written to S3.
  • Inter-container traffic encryption protects data between instances in distributed training (it can slow training).
  • Data in transit to APIs uses TLS.
  • Notebooks, Feature Store, Model Monitor outputs and Bedrock custom models and knowledge bases all accept customer managed keys.

Bedrock specifics

  • Bedrock doesn’t use prompts or outputs to train its base models, and model providers don’t see your data.
  • Use PrivateLink so apps in a VPC reach Bedrock privately.
  • Custom models, knowledge bases, agents and logs can be encrypted with your KMS keys.

Enforcing it

IAM condition keys can deny creating jobs without VPC config, network isolation or KMS keys, so teams can’t skip them.

Common traps

  • Inbound security group rules to stop a container calling out. Use network isolation.
  • Downloading data inside an isolated container. Network isolation blocks it; use input channels.
  • Encrypting artifacts but not instance volumes when the rule says all storage.

Try the 2 practice questions

A dental chain trains a patient-risk model with a SageMaker AI training job on a bring-your-own container. The security team requires that the training container have no outbound network access during training, so that patient data cannot leave the job, and the input data is still provided to the job through its S3 input channels.

The team wants the isolation enforced by the SageMaker AI job setting, not by hoping the container code makes no calls.

Which setting should the team enable?

Choose one answer.

  1. A. Attach a security group to the training job that denies all inbound traffic, since the container only needs outbound calls.
  2. B. Remove the S3 input channels, and have the container download the data from a private internal API so that the job has fewer network paths.
  3. C. Set the training job's network isolation option, so the container cannot make outbound calls, while SageMaker AI still copies inputs and uploads artifacts.
  4. D. Disable the training job's logs in CloudWatch, since logs are the main way data can leave a training container.
Show the answer and explanation

Answer: C

  • A. Wrong: The option restricts inbound traffic, but the stem is about outbound calls from the container. Security groups alone do not enforce the no-outbound setting described.
  • B. Wrong: The stem requires the data to come through the S3 input channels, and downloading from inside the container adds the outbound access the team wants to block. The option works against the requirement.
  • C. Right: Correct. Network isolation blocks the container from outbound calls, and SageMaker AI itself still downloads the input channel data and uploads the model artifacts. The restriction is enforced by the job setting. Learn more: Run training and inference containers in internet-free mode (opens in a new tab)
  • D. Wrong: Logs are not the main path for data to leave the container, and disabling them does not enforce network isolation. The option also removes the team's visibility into the job.

Explanation

Network isolation on a SageMaker AI training job blocks the container's outbound network calls, while SageMaker AI still downloads the input data and uploads the artifacts. Inbound security groups, downloading data from inside the container and disabling logs do not enforce this outbound restriction.

Study

Question 2

Harder · choose 3 ·Link to this question (question 2)

A regional bank runs a distributed SageMaker AI training job for a fraud model across several GPU instances in a private VPC. Its security policy requires the training volumes and the model output in S3 to be encrypted with customer managed AWS KMS keys, and the traffic between the training containers to be encrypted.

The team wants these controls set on the training job itself, using the training job configuration, with no changes to the training code.

Which combination of settings meets these requirements? (Choose three.)

Choose three answers.

  1. A. Set the training job's volume KMS key (VolumeKmsKeyId) to the customer managed key, so that the storage volumes attached to each training instance are encrypted with it.
  2. B. Set the training job's output KMS key (KmsKeyId in the output configuration) to the customer managed key, so that the model artifacts written to S3 are encrypted with it.
  3. C. Enable S3 versioning on the output bucket, which encrypts every object version with the customer managed key automatically.
  4. D. Turn on the default encryption of the account's EBS volumes, so that the training instance storage is encrypted with the AWS managed key.
  5. E. Turn on network isolation for the training job, which blocks the containers' outbound calls and encrypts the traffic between the training containers.
  6. F. Enable inter-container traffic encryption on the training job, and allow the required IPsec traffic in the VPC security group used by the job.
Show the answer and explanation

Answers: A, B, F

  • A. Right: Correct. VolumeKmsKeyId in the job's resource configuration names the KMS key that encrypts the storage volumes attached to the training instances. This meets the volume requirement in the job configuration. Learn more: ResourceConfig (VolumeKmsKeyId) (opens in a new tab)
  • B. Right: Correct. The KmsKeyId in the output data configuration is the key SageMaker AI uses to encrypt the model artifacts at rest in S3. The key policy must allow the job's execution role. Learn more: OutputDataConfig (KmsKeyId) (opens in a new tab)
  • C. Wrong: Versioning keeps previous object versions and does not select an encryption key for the artifacts. The option does not meet the KMS requirement.
  • D. Wrong: The stem asks for the customer managed key, and the AWS managed key does not meet the requirement. The option does not set the key on the training job.
  • E. Wrong: Network isolation blocks outbound network calls from the containers, but it does not encrypt the traffic between them. Inter-container traffic encryption is a separate training job setting.
  • F. Right: Correct. The EnableInterContainerTrafficEncryption setting encrypts data sent between the compute instances of a distributed training job. The job's security group must allow the UDP port 500 and ESP traffic that the encryption uses. Learn more: Protect communications between instances in a distributed training job (opens in a new tab)

Explanation

On the training job, VolumeKmsKeyId encrypts the attached instance storage and the output KmsKeyId encrypts the model artifacts in S3 with the customer managed key, while inter-container traffic encryption protects data moving between instances. Versioning, account-level encryption with the AWS managed key and network isolation do not meet the customer managed key or traffic encryption requirements.

Study

Want more on Network isolation and encryption? The 5 full-length practice sets have 10 more Network isolation and encryption questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets

Study Network isolation and encryption

More Operating, Monitoring, and Securing ML and AI Solutions topics