# Encryption in Transit

Encryption in transit protects data with cryptography while it moves between systems, applications, or networks.

Cloud concept. Updated 2026-10-29. Page: https://blowstack.com/tools/cloud-concepts-hub/encryption-in-transit

> Encryption in transit prevents observers on a network path from reading protected data and, with correctly configured secure protocols, helps detect tampering and authenticate communicating endpoints. In cloud architectures, it applies to internet traffic, internal service communication, and hybrid or multi-cloud connections, independently of encryption at rest.

Practice exams covering Encryption in Transit: [ANS-C01 AWS Certified Advanced Networking - Specialty](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty), [AIF-C01 AWS Certified AI Practitioner](https://blowstack.com/practice-exams/aws-certified-ai-practitioner), [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [SOA-C03 AWS Certified CloudOps Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-cloudops-engineer-associate), [DEA-C01 AWS Certified Data Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate), [DVA-C02 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate), [DOP-C02 AWS Certified DevOps Engineer - Professional](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional), [SCS-C03 AWS Certified Security - Specialty](https://blowstack.com/practice-exams/aws-certified-security-specialty), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate).

## 6 key aspects of Encryption in Transit

Effective encryption in transit requires secure protocols, authenticated peers, explicit protection boundaries, and ongoing operational validation.

1. **Confidentiality, integrity, and authentication**: Use secure protocols that protect payload confidentiality and detect modification, together with appropriate peer authentication. Encryption without validating the intended peer can leave traffic vulnerable to interception.
2. **Explicit protection boundaries**: Document where each TLS session, VPN tunnel, or encrypted link begins and ends. Re-encrypt subsequent segments when required, and recognize that termination points can access plaintext.
3. **Private connectivity is not encryption**: Dedicated circuits and private network paths reduce exposure but do not inherently encrypt application traffic. Treat connectivity, encryption, and access control as separate design decisions.
4. **Application, network, and link protection**: TLS protects application connections, IPsec protects traffic between tunnel endpoints, and MACsec protects supported Layer 2 links. Select the mechanism according to the required boundary rather than treating these technologies as interchangeable.
5. **Certificate and protocol lifecycle**: Track certificate expiration, automate renewal where supported, and maintain appropriate trust stores and TLS policies. Test certificate deployment and hostname validation rather than assuming certificate issuance completes the configuration.
6. **Independent protection for stored data**: Encryption at rest does not protect data crossing a network, and transport encryption does not protect stored copies. Configure and verify both controls where the workload requires them.

## Cloud services for Encryption in Transit

AWS Site-to-Site VPN encrypts network traffic between gateway endpoints, while AWS Client VPN protects remote-client connections. Direct Connect supplies dedicated connectivity, with MACsec available on supported connections, but broader protection can still require IPsec or application TLS. Elastic Load Balancing provides application-facing TLS termination or passthrough options, and AWS Certificate Manager manages certificates for supported integrations. Amazon S3 supports HTTPS and policy-based enforcement of secure transport. Together, these services address different segments of a data path; engineers must verify that no required segment becomes unencrypted after a gateway or proxy terminates a connection.

- **[AWS Site-to-Site VPN](https://blowstack.com/tools/cloud-services-hub/aws-site-to-site-vpn)**: Uses IPsec tunnels to encrypt traffic between an on-premises or other supported customer gateway and AWS. It can also participate in supported VPN-over-Direct-Connect designs when dedicated connectivity requires network-layer encryption.
- **[AWS Direct Connect](https://blowstack.com/tools/cloud-services-hub/aws-direct-connect)**: Provides dedicated network connectivity to AWS without encryption by default. Supported connections offer MACsec for the customer-router-to-Direct-Connect-device link; application TLS or an appropriate IPsec overlay can protect broader paths.
- **[AWS Client VPN](https://blowstack.com/tools/cloud-services-hub/aws-client-vpn)**: Provides TLS-based VPN connectivity for remote clients accessing AWS and connected networks. Its encrypted tunnel ends at the VPN service, so application-level encryption may still be needed for traffic beyond that boundary.
- **[Amazon S3](https://blowstack.com/tools/cloud-services-hub/amazon-s3)**: Supports HTTPS for encrypted object transfers. Bucket policies can deny requests that do not use secure transport through the aws:SecureTransport condition, with appropriate handling of AWS service principals where needed; server-side object encryption is a separate at-rest control.

## Encryption in Transit exam questions

Real practice exam questions on Encryption in Transit, with the correct answer and its explanation.

### Question 1 (AIF-C01)

**Question:**

A company runs an AI application and a self-hosted model inference server on separate Amazon EC2 instances in private subnets. The application currently sends confidential prompts to the inference server over HTTP. A security review requires that network observers cannot read or alter the prompts without detection and that the application verifies it is communicating with the intended inference server. Which change meets these requirements?

**Correct answer:** Configure HTTPS using TLS 1.2 or later and require the application to validate the server certificate's trust chain, expiration, and hostname.

**Explanation:** TLS protects prompts against network eavesdropping and undetected modification. Validating the server certificate also helps confirm that the application is connecting to the intended inference server.

### Question 2 (SOA-C03)

**Question:**

A company exposes an upload API through Amazon CloudFront with a custom HTTPS origin. The distribution currently accepts both HTTP and HTTPS viewer requests. An audit finds that some clients submit uploads over HTTP even though the API documentation specifies HTTPS.

A new requirement states that CloudFront must reject HTTP viewer requests without redirecting them or forwarding them to the origin. HTTPS requests must continue to work. The origin connection is already configured to use HTTPS only.

Which change should a CloudOps engineer make?

**Correct answer:** Set the Viewer Protocol Policy to HTTPS Only for every cache behavior that serves the API.

**Explanation:** HTTPS Only causes CloudFront to reject HTTP viewer requests with HTTP 403 rather than redirecting or forwarding them to the origin. HTTPS viewer requests remain supported, and the existing origin policy protects the separate origin connection.

### Question 3 (SCS-C03)

**Question:**

A financial company replicates transaction records from an on-premises application to an application running on Amazon EC2. Traffic uses a dedicated AWS Direct Connect connection with MACsec enabled between the company's edge router and the Direct Connect device. The replication protocol currently sends records in plaintext.

An audit requires cryptographic protection continuously from the on-premises application process to the EC2 application process. Network devices and intermediate services must not have access to plaintext records. The company can change application connection settings but must retain the existing network path.

Which change meets these requirements?

**Correct answer:** Configure the replication client to use TLS directly to the EC2 application, validate the server certificate's trust chain and hostname, and require encrypted connections on the application listener.

**Explanation:** TLS established directly between the replication client and the EC2 application protects records across the entire required path without exposing plaintext to intermediate network devices or services. Certificate validation authenticates the intended server, and requiring encrypted connections prevents plaintext fallback.

### Question 4 (CLF-C02)

**Question:**

A financial company sends confidential records from its data center to an application in AWS through an existing AWS Direct Connect connection. The application currently uses an unencrypted protocol. A security review requires that the records be unreadable to anyone intercepting traffic along the connection. Which change meets this requirement while retaining the existing connection?

**Correct answer:** Configure the sending application and receiving application to use TLS, with the sender validating the receiver's certificate.

**Explanation:** TLS encrypts the records during transmission, and certificate validation helps authenticate the receiving endpoint. Direct Connect provides dedicated connectivity but does not encrypt traffic by default.

### Question 5 (DEA-C01)

**Question:**

A healthcare company is migrating partner file uploads to an Amazon S3 data lake through AWS Transfer Family. The partners' existing FTP clients can upgrade FTP sessions to use TLS but cannot use SSH-based protocols or encrypt files before uploading them. A security policy requires TLS 1.2 or later for both credentials and file contents during transmission. Clients must also verify the identity of the receiving endpoint. The company cannot deploy VPN connections or replace the partner clients. Which solution meets these requirements?

**Correct answer:** Configure a Transfer Family FTPS endpoint with an AWS Certificate Manager certificate and a security policy that permits only TLS 1.2 or later. Configure partner clients to validate the certificate and hostname and require TLS protection for both control and data connections.

**Explanation:** FTPS supports the clients' explicit TLS upgrade capability. The certificate enables endpoint authentication, the security policy excludes older TLS versions, and protecting both control and data connections encrypts credentials and file contents in transit.

### Question 6 (DOP-C02)

**Question:**

A company stores deployment artifacts in an Amazon S3 bucket. A security audit confirms that the bucket policy already rejects HTTP requests from non-service principals. However, authenticated clients can still retrieve artifacts over HTTPS by using TLS versions earlier than TLS 1.2.

Existing identity-based policies grant application roles access to the artifacts. AWS services also deliver objects directly to the bucket as service principals. Network-related condition keys, including s3:TlsVersion, can be absent from these service-to-service requests.

A DevOps engineer must reject requests that use TLS versions earlier than TLS 1.2 without changing existing permission grants or disrupting authorized AWS service deliveries. Which additional bucket policy statement meets these requirements?

**Correct answer:** Add a Deny statement for Principal "*", Action "s3:*", and both the bucket and object ARNs, with NumericLessThan on s3:TlsVersion set to 1.2 and Bool on aws:PrincipalIsAWSService set to false.

**Explanation:** The explicit deny overrides existing allows when a non-service principal uses a TLS version earlier than 1.2. The service-principal condition exempts direct AWS service requests from this deny, avoiding disruption when network context is unavailable. The existing HTTP restriction remains in effect, and authorized clients using TLS 1.2 or later retain their existing permissions.

### Question 7 (DVA-C02)

**Question:**

A developer is deploying an HTTPS application on multiple Amazon EC2 instances behind a load balancer. Security requirements state that the TLS session established by each client must terminate on an EC2 instance, and the load balancer must not decrypt application traffic. The application on each instance already has a server certificate and accepts TLS connections on port 443. Which configuration meets these requirements?

**Correct answer:** Configure a Network Load Balancer with a TCP listener on port 443 and a TCP target group on port 443.

**Explanation:** The TCP listener forwards the TLS traffic without terminating or decrypting it. The EC2 application performs the TLS handshake with the client and terminates the TLS session. The TCP target group does not make the application traffic plaintext; it carries the TLS-encrypted bytes.

### Question 8 (ANS-C01)

**Question:**

A company uses an Application Load Balancer (ALB) with an HTTPS listener and an HTTPS target group to serve an application on EC2 instances. During a security assessment, an engineer replaces one target's certificate with a self-signed certificate whose issuer is not trusted by the company's clients. Requests through the ALB continue to succeed. The company's policy requires a publicly trusted certificate on the client-facing endpoint and encryption on both network segments, but does not require certificate-based authentication of backend targets. The application must retain ALB path-based routing. Which response should the network engineer recommend?

**Correct answer:** Keep the HTTPS listener and HTTPS target group. Verify the client-facing certificate and collect configuration and connection evidence showing TLS on both segments. Document that configuring these controls is the customer's responsibility and that ALB does not validate target certificates.

**Explanation:** An ALB establishes TLS connections to HTTPS targets but does not validate their certificates. Self-signed target certificates can therefore provide backend encryption without a trusted certificate chain. This meets the stated policy, which does not require backend certificate authentication. The customer remains responsible for selecting the listener and target protocols and demonstrating that the workload meets its encryption requirements.

### Question 9 (SAA-C03)

**Question:**

A company uses an existing 10 Gbps dedicated AWS Direct Connect connection with a private virtual interface. The company's router is colocated at the Direct Connect location. A security audit requires all traffic on the Ethernet link between this router and the AWS Direct Connect device to be encrypted. The link must stop forwarding traffic if encryption cannot be established.

The connection's AWS device and the company's router support IEEE 802.1AE encryption. All required router hardware and licenses are already installed. Encryption outside this Ethernet link is handled separately. Adding an AWS Site-to-Site VPN connection would introduce additional recurring charges.

Which solution meets the audit requirements with the LOWEST additional recurring connectivity cost?

**Correct answer:** Configure MACsec on the existing connection and router. Set the Direct Connect connection's encryption mode to must_encrypt.

**Explanation:** MACsec encrypts the Layer 2 link between the company router and the Direct Connect device. The must_encrypt mode prevents the connection from forwarding unencrypted traffic if encryption cannot be established. AWS does not charge an additional fee for MACsec, and the required customer hardware and licenses are already available.

## Practice Encryption in Transit in a full exam

Questions on Encryption in Transit in each practice exam, with every answer option and an explanation for each:

- [SAA-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate): 12 questions
- [ANS-C01](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty): 11 questions
- [CLF-C02](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner): 7 questions
- [DOP-C02](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional): 6 questions
- [SOA-C03](https://blowstack.com/practice-exams/aws-certified-cloudops-engineer-associate): 5 questions
- [DEA-C01](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate): 4 questions
- [SCS-C03](https://blowstack.com/practice-exams/aws-certified-security-specialty): 3 questions
- [DVA-C02](https://blowstack.com/practice-exams/aws-certified-developer-associate): 3 questions
- [AIF-C01](https://blowstack.com/practice-exams/aws-certified-ai-practitioner): 1 question

## What is Encryption in Transit

Encryption in transit protects data while it travels between endpoints, such as a browser and an application, an application and a database, or an on-premises network and a cloud network. Secure protocols combine encryption with integrity protection and endpoint authentication to defend against interception and modification. This differs from encryption at rest, which protects stored data on disks, databases, and object storage. A workload commonly needs both: encrypting a database volume does not encrypt a client's database connection.

Transport Layer Security, or TLS, is widely used to protect application traffic. HTTPS is HTTP carried over TLS; database clients and other application protocols can also use TLS. Clients should validate the server certificate's trust chain, expiration, and hostname rather than merely establish an encrypted session. Mutual TLS additionally authenticates the client using a certificate. Use supported modern protocol versions, normally TLS 1.2 or TLS 1.3, with security policies appropriate to the workload.

The protection boundary depends on where encryption starts and terminates. For example, an HTTPS connection from a browser to a load balancer protects that segment only. If the load balancer forwards requests to application servers using HTTP, the backend segment is unencrypted. Configuring HTTPS to the targets creates a separate encrypted connection; it does not automatically provide the same certificate-validation behavior as a browser. Check the specific proxy or load balancer's backend authentication capabilities. A TLS-terminating intermediary can access plaintext, so this architecture is not equivalent to encryption that remains intact between the original client and final application.

Hybrid connectivity requires separating private connectivity from cryptographic protection. AWS Site-to-Site VPN uses IPsec to encrypt traffic between a customer gateway device and an AWS VPN endpoint, commonly across the internet. AWS Direct Connect provides dedicated connectivity but does not encrypt traffic by default. When confidentiality is required, use application TLS, an appropriate IPsec VPN design over Direct Connect, or MACsec where supported. These mechanisms protect different portions of the path and can be combined.

MACsec provides Layer 2 encryption on supported Direct Connect connections between the customer router and the Direct Connect device. It is not end-to-end encryption from an on-premises application to a cloud workload, and availability depends on connection capabilities and location. For hybrid or multi-cloud designs, identify every provider, carrier, gateway, and termination point rather than assuming that one encrypted link protects the entire route. VPN gateways decrypt tunnel traffic before forwarding it, so application TLS can remain valuable beyond the tunnel boundary.

Operational trade-offs include cryptographic processing, handshake latency, certificate lifecycle management, and reduced visibility for network inspection. VPN encapsulation can also reduce the effective maximum transmission unit, causing fragmentation or stalled transfers if path MTU discovery is blocked. Troubleshooting should distinguish certificate or protocol negotiation failures from routing, firewall, DNS, and tunnel problems. Test the intended hostname and inspect negotiated protocols, certificate chains, and actual backend connection settings.

Private subnets, security groups, private endpoints, and dedicated circuits constrain connectivity but do not themselves guarantee encryption. Likewise, an encrypted connection does not authorize the caller or protect plaintext at a compromised endpoint. Under the shared responsibility model, cloud providers offer secure protocols and managed capabilities, while customers remain responsible for selecting suitable configurations, enforcing secure access, and validating every required traffic segment.

## Learn Encryption in Transit in lessons

12 short lessons on Encryption in Transit in 7 certification courses.

- AIF-C01: Encryption at Rest vs. Encryption in Transit (Premium), https://app.blowstack.com/lessons/encryption-at-rest-vs-encryption-in-transit-aif-c01
- SOA-C03: Encryption in Transit: Configuring TLS-protected connections (Premium), https://app.blowstack.com/lessons/encryption-in-transit-configuring-tls-protected-connections-soa-c03
- SCS-C03: Encryption in Transit: protection boundaries across hybrid networks (Premium), https://app.blowstack.com/lessons/encryption-in-transit-protection-boundaries-across-hybrid-networks-scs-c03
- CLF-C02: Encryption in Transit: protecting a network path (Premium), https://app.blowstack.com/lessons/encryption-in-transit-protecting-a-network-path-clf-c02
- DEA-C01: Client-Side Encryption vs Encryption in Transit (Premium), https://app.blowstack.com/lessons/client-side-encryption-vs-encryption-in-transit-dea-c01
- DOP-C02: Encryption in Transit: enforcing TLS across application and telemetry paths (Premium), https://app.blowstack.com/lessons/encryption-in-transit-enforcing-tls-across-application-and-telemetry-paths-dop-c02
