Data at rest vs. data in transit vs. data in use: Learn where encryption stops and when to use TLS, least privilege, and masking in this Security+ guide.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn the difference between data at rest, data in transit, and data in use, and how to spot where encryption stops protecting your data. This beginner-friendly Security+ guide explains when to use disk encryption, HTTPS/TLS, least privilege, and data masking.
Chapters: 0:00 Intro 0:12 What is data at rest, and when does encryption protect it? 1:01 What is data in transit, and where does HTTPS protection end? 1:45 What is data in use, and how do you protect it? 2:38 Can one payroll record be in all three data states at once? 3:31 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
At rest means stored, in transit means moving between endpoints, and in use means being viewed or processed. Different copies of the same record can be in all three states at once.
Encrypt each stored copy separately. Full-disk encryption protects a powered-off laptop, not an open spreadsheet. Downloads, exports, and backups don’t automatically inherit the original’s protection.
Check where TLS ends. HTTPS protects traffic along one connection. If TLS ends at a load balancer, verify that the separate connection to the application is encrypted too.
Limit who can read data in use. Use least privilege to restrict access and masking to hide unnecessary values. Masking doesn’t replace authorization.
👉 Try Pluralsight to apply these concepts in guided labs and use assessments and practice exams to focus your Security+ prep.
The difference between data at rest, data in transit, and data in use is what’s happening to a particular copy: it’s being stored, sent, or accessed and processed. The same information can be in all three states at once. A payroll record can sit in an encrypted database while an application reads it and sends a payslip to a browser.
That’s why “Is it encrypted?” isn’t enough. To know what’s protected, ask which copy is encrypted, where it becomes readable, and who can read it.
Data at rest vs. data in transit vs. data in use
FAQ
Quick answers to the questions people usually ask about this topic.
Is data in RAM always considered data in use?
Not necessarily. If an application is reading or processing a copy in RAM, that copy is in use. But data can also be buffered in RAM while it’s being sent. Classify the copy by what’s happening to it, not simply by whether it’s in memory or on disk.
Does transparent data encryption (TDE) protect CSV exports from a database?
No. TDE protects database files at rest, but a CSV created from query results is a separate copy. Check who can create and read exports, where they’re saved, and what encryption protects them there.
Does HTTPS protect traffic from a load balancer to a backend server?
Not automatically. If the load balancer terminates the browser’s TLS connection, that connection ends there. The load balancer can establish a separate TLS connection to the backend, but you need to verify that it’s configured to use TLS and authenticate the backend.
Can masking hide sensitive data on screen but leave it exposed in logs or exports?
Yes. A support screen might show only the last four digits of a card number while a log or export still contains the full value. Apply access controls to the underlying data, avoid logging sensitive values, and verify what each export actually includes.
Can an application process encrypted data without decrypting it first?
Yes, for certain workloads. Homomorphic encryption lets a system perform computations on ciphertext. That differs from confidential computing, which can isolate a workload while it processes readable data. With either approach, you still need to control who can access the results.
How can I practice choosing the right data protection control for Security+ scenarios?
Try a scenario with several copies of the same record: a database entry, a browser download, and a saved file. For each copy, identify its state, who can read it, and which control addresses the risk. If you want feedback and more practice, try Pluralsight for guided labs, assessments, and practice exams that can help you decide what to study next.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this course.
Data state
What’s happening?
Example
Controls that address the risk
At rest
A copy is stored.
A spreadsheet on a laptop or a backup in cloud storage.
Disk, file, database, or backup encryption, plus access controls.
In transit
Data is moving between endpoints.
A browser downloads a payslip over HTTPS.
Authenticated, encrypted connections such as TLS, SSH, or an IPsec tunnel.
In use
A person or process is viewing, editing, querying, or processing data.
An application reads salary data to generate a payslip.
Least privilege, data masking, process isolation, and audit logging.
Encryption doesn’t determine the state. An encrypted backup is at rest while stored and in transit while being uploaded. Likewise, a stored file remains at rest even if the application has opened a separate copy in memory.
Data at rest: What does disk encryption protect?
Data at rest is stored on a device or service, such as a laptop drive, database, USB drive, or cloud backup. Encryption uses a key to turn readable data (plaintext) into encrypted data (ciphertext).
Full-disk encryption helps prevent someone from reading the drive of a lost or stolen, powered-off laptop. But once you sign in and open a spreadsheet, it won’t hide the values on your screen. The stored copy and the open copy face different risks.
The same distinction applies to databases. Transparent data encryption (TDE) can protect database files on disk while letting the running database decrypt data as needed. It doesn’t stop an account with permission to query those records. File or field encryption can protect data more selectively, but you still need to control who can decrypt it.
Check each stored copy separately. An export, snapshot, backup, or downloaded file doesn’t automatically inherit the original’s protection. Check who can access each copy and who can use its decryption keys. Recovery matters too: an encrypted backup won’t help if you’ve lost the key needed to restore it.
Data in transit: Where does HTTPS protection end?
Data in transit, also called data in motion, is moving between endpoints. That includes traffic between services on a company’s internal network, not just traffic crossing the public internet.
HTTPS uses Transport Layer Security (TLS) to protect web traffic from being read or altered along the connection. In a typical HTTPS connection, the client uses the server’s certificate to authenticate the server.
The important question is where TLS terminates. If a load balancer ends the TLS connection, it decrypts the traffic there. The browser-to-load-balancer connection may be protected even if the separate connection from the load balancer to the application isn’t. A VPN has a similar boundary: it protects traffic within the tunnel, not automatically beyond it.
HTTPS also doesn’t protect a file after you save it. Once the download lands on your drive, it’s a new at-rest copy that depends on your device’s storage and access controls.
Data in use: How do least privilege and masking help?
Data in use is being viewed, edited, queried, or processed. Most applications need readable values for ordinary tasks. An encrypted payroll database can still return a readable salary to an account allowed to query it, and an HTTPS connection doesn’t stop the receiving application from displaying it.
Use controls that address what happens once the data is readable:
Least privilege gives people and software only the access they need. A payroll process may need salary fields, but an unrelated reporting process may not.
Data masking limits what a user sees. A support agent might see only the last four digits of a card number. Masking doesn’t encrypt the original value or replace authorization.
Process isolation limits what other software can access while an application handles sensitive data.
Audit logging helps detect inappropriate access. Logs themselves need protection, especially if an application writes sensitive values to them.
Specialized approaches protect some workloads during processing. Confidential computing can isolate a workload in a hardware-backed trusted execution environment, where the workload can operate on readable data. Homomorphic encryption takes a different approach: it allows computation on ciphertext without first decrypting the inputs. Neither approach replaces rules about who should receive the results.
How one payroll record moves through all three data states
Follow a salary value from the payroll database to an employee’s saved payslip:
At rest in the database: The payroll record is stored in encrypted database files.
In use on the server: The application reads the salary and uses it to generate the payslip. Permissions govern which accounts can read that value.
In transit to the browser: The payslip travels over HTTPS. TLS protects it along that connection.
In use in the browser: The employee opens the payslip. The browser displays it, and HTTPS can’t prevent someone nearby from seeing the screen.
At rest on the device: The employee saves the payslip. The downloaded copy depends on the device’s storage and access controls, not the database encryption or the earlier HTTPS connection.
The original record never had to leave the database. Its encrypted copy can remain protected even if the downloaded payslip is saved somewhere it shouldn’t be.
How to match each data state to a Security+ control
Start with the scenario, not the word encryption. A stolen, powered-off laptop points to full-disk encryption because the concern is offline access to stored data. Traffic that could be read or altered between services points to TLS or another authenticated, encrypted connection. An employee who can see salary fields they don’t need points to least privilege and, where appropriate, masking, not stronger disk encryption.
If a scenario mentions more than one state, map each copy and connection separately. Find where the data is stored, where an encrypted connection ends, and which users or processes can read the data. That’s how you spot a gap even when the system already uses encryption.
Practice matching security controls to real scenarios
If you’re ready to put these concepts to work, Pluralsight offers guided security labs with feedback, assessments to help you spot gaps, and practice exams to focus your certification prep.
👉 Try Pluralsight to practice in guided security labs and find out what to study next.
Affiliate notice: Some links may earn a commission. Thanks for your support.
What Is Data Classification in Cybersecurity? (Explained Clearly) - CompTIA Security+Next
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn understanding into hands-on confidence
You've built the foundations. Pluralsight adds opportunities to practice in guided security labs, get feedback, and check your knowledge with assessments and practice exams, so your next step is more than another video.
đź› Put concepts to workBuild practical skills with guided security labs and feedback.
🎯Find your weak spotsUse assessments to focus on what needs more work.
📝Check your understandingUse practice exams to guide your certification preparation.
đź§Give study sessions directionOrganize further learning with curated paths and progress tracking.