Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Data in transit

SCS-C03 · Lesson 17 of 22 · 2:34:34

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: load balancer security policies and TLS versions, aws:SecureTransport for S3, gateway and interface VPC endpoints with endpoint policies, AWS PrivateLink endpoint services, private access for people with Client VPN and Verified Access, and encryption between resources with Nitro instances, EMR security configurations, SageMaker AI inter-container encryption, and service meshes. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Every hop, encrypted

Patient data moves all the time at AnyCompany Health: from phones to load balancers, from servers to S3, and between the nodes of analytics and training clusters. Each hop must be encrypted, and some of them should never touch the internet. This lesson covers how to require TLS, how to reach services privately, how people and partners connect, and how to encrypt traffic between resources.

Requiring TLS

An HTTPS or TLS listener on a load balancer uses a security policy, which sets the TLS versions and the ciphers that clients can use. In the console, the default policy for an Application Load Balancer supports TLS 1.3 and TLS 1.2, with hybrid post-quantum key exchange, while the AWS CLI and CloudFormation default to an older policy from 2016, so set the policy explicitly in your templates. That security policy applies to the connections of clients, and traffic to the targets is encrypted only when the target group uses HTTPS. For S3, a bucket policy that denies every request where aws:SecureTransport is false refuses plain HTTP. And a CloudWatch alarm on CloudTrail events with no TLS version tells you when someone still tries HTTP.

Private access to services

Instances in private subnets can reach AWS services without the internet, through VPC endpoints. A gateway endpoint, for S3 and DynamoDB only, adds a route to the route tables that you choose, at no additional charge, but it serves only that VPC. An interface endpoint, powered by AWS PrivateLink, places network interfaces with private IP addresses in your subnets, protected by security groups, and private DNS resolves the usual service name to them, so it can also serve your data center over Direct Connect or VPN. An endpoint policy limits what can pass through the endpoint, without replacing identity-based or resource-based policies. And a bucket policy with the condition aws:SourceVpce can accept requests only when they come through your endpoint.

Private access for people and partners

For people, AWS Client VPN is a managed VPN that users reach with an OpenVPN client, with Active Directory, federated, or certificate-based authentication, and every connection is encrypted with TLS. AWS Verified Access goes further for web applications: no VPN at all, and every request is checked against identity and device trust before it reaches the application. To share one of your own services with other VPCs or accounts, you create an endpoint service behind a Network Load Balancer, and consumers connect through interface endpoints, after you accept their request. Traffic stays on the AWS network, and only that service is exposed, not the rest of your VPC.

Encryption between resources

Inside AWS, some layers are encrypted for you: traffic between Regions and between Availability Zones is encrypted at the physical layer. On many Nitro instance types, traffic between instances is encrypted automatically, with 256-bit authenticated encryption and no impact on performance, when both instances are in the same Region, in the same VPC or in peered VPCs, and no load balancer or transit gateway sits in between. For Amazon EMR, a security configuration turns on encryption in transit, including inter-node traffic, with TLS certificates that you provide, for the open-source applications of the cluster. In SageMaker AI, inter-container traffic encryption protects data between the nodes of a distributed training job, with a longer training time and a higher cost. And in Amazon EKS, Nitro instances encrypt traffic between nodes, while a service mesh with mutual TLS encrypts traffic from pod to pod on any instance type.

Recap

Let's recap. Load balancer security policies set the TLS versions, and aws:SecureTransport makes S3 refuse plain HTTP. Gateway endpoints serve S3 and DynamoDB inside one VPC, while interface endpoints, powered by PrivateLink, also serve your data center, and endpoint policies limit both. Client VPN and Verified Access give people private access, and endpoint services share one service with other VPCs. And Nitro instances, EMR security configurations, SageMaker AI inter-container encryption, and service meshes encrypt traffic between resources.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Servers in the data center of AnyCompany Health must upload files to S3 over Direct Connect, with private IP addresses, without crossing the internet. Which design meets this?

    • A gateway endpoint for S3 in the VPC
    • An S3 interface endpoint, over Direct Connect
    • A NAT gateway in a public subnet
    • A bucket policy that requires secure transport
    Show the answer

    An S3 interface endpoint, over Direct Connect

    An interface endpoint has private IP addresses that the data center can reach over Direct Connect. “A gateway endpoint for S3 in the VPC” would only serve the VPC itself, not your data center. “A NAT gateway in a public subnet” would send the traffic through an internet gateway, to the public endpoint of S3. And “A bucket policy that requires secure transport” would require TLS, without changing the path.

  2. A partner pharmacy runs an app in its own VPC, and must call one internal API of AnyCompany Health. The partner must reach only that API, never the rest of the VPC, and the traffic must stay off the internet. What should the team build?

    • VPC peering between the two VPCs
    • AWS Client VPN for the partner app
    • A public API with an IP allow list
    • A PrivateLink endpoint service
    Show the answer

    A PrivateLink endpoint service

    The API becomes an endpoint service behind a Network Load Balancer, and the partner connects through an interface endpoint, which exposes only that service. “VPC peering between the two VPCs” would connect the two networks, not one service. “AWS Client VPN for the partner app” would also connect networks, and it is meant for people. And “A public API with an IP allow list” would put the API on the internet.

  3. An auditor asks how data is encrypted between the EC2 instances of an analytics app. They are Nitro types that support encryption in transit, in the same VPC, but all their traffic goes through a Network Load Balancer. What should the security engineer say?

    • Use TLS, because the load balancer is in the path
    • Nothing more: Nitro already encrypts all of this traffic
    • Turn on MACsec on the instances
    • Move the instances into peered VPCs
    Show the answer

    Use TLS, because the load balancer is in the path

    The automatic Nitro encryption applies only when no load balancer or transit gateway sits in between, so the application must use TLS. “Nothing more: Nitro already encrypts all of this traffic” is wrong for that same reason. “Turn on MACsec on the instances” is for Direct Connect links, not for instances. And “Move the instances into peered VPCs” would not help, because the traffic would still go through the load balancer.