Courseiva
PCSEChapter 6 of 16Objective 3.1

Data Classification and Protection Strategies

Data classification and protection strategies organise your digital information into categories (like Public, Internal, Confidential) and then apply the right locks, keys, and scanning tools to each category. This matters for the PCSE exam because Google Cloud expects you to design systems that automatically tag data, detect sensitive content like credit card numbers, and encrypt files so that even if a hacker steals them, they see gibberish.

12 min read
Intermediate
Updated Jul 23, 2026
Reviewed by Johnson Ajibi· Senior Network & Security Engineer · MSc IT Security

A simple way to picture Data Classification and Protection Strategies

The Filing Cabinet Colour Code Analogy

When a new employee arrives at a busy law firm, the office manager first hands them a stack of documents to sort. Because the firm handles millions of papers, a chaotic pile would lead to lost files and legal disasters. This chaos forces the manager to create a strict colour-coding system before any paper is stored.

The manager tags sensitive client contracts with red labels, meaning only senior partners can open the red drawer. Routine expense reports get yellow labels, accessible to any staff member. Financial statements with private account numbers get blue labels, requiring two keys to unlock the blue drawer. The firm also uses a cross-cut shredder for any red-labelled paper that is no longer needed, ensuring it cannot be read even if someone retrieves it from the bin.

Just as the law firm’s colour code tells everyone exactly how to handle each paper, classify its sensitivity, and choose the correct lock or shredder, data classification in Google Cloud assigns labels to data (like “public,” “internal,” “confidential,” “restricted”) and then triggers specific protections. A red-labelled file automatically gets encrypted with a stronger key and is never downloaded to an employee’s laptop. The yellow file can be shared widely but is still scanned for accidental credit card numbers. The analogy maps precisely because it covers sorting, labelling, access rules, and destruction policies — exactly the four pillars of a data protection strategy.

How It Actually Works

Data classification is the process of organising data into groups based on how sensitive it is and how much harm would be caused if it leaked. Think of it as putting a label on every file, database row, and email that says “Public,” “Internal,” “Confidential,” or “Restricted.” Once data has a label, you can decide what protection to apply. A “Public” marketing brochure might need no encryption, but a “Restricted” patient health record must be encrypted at rest (when stored) and in transit (when sent over a network).

Google Cloud provides several tools for this. The first is Cloud DLP (Data Loss Prevention). Cloud DLP scans your data for sensitive patterns — things like credit card numbers, passport IDs, Social Security numbers, or API keys. Once it finds them, it can do three things: it can redact them (remove them), mask them (show only the last four digits), or tokenise them (replace the sensitive value with a random token that still works in your system but is useless to an attacker). For example, if you have a database column called “customer_email,” Cloud DLP can detect that every value looks like an email address, then automatically replace each email with a random string like “abc123@token.com” so that the original addresses are never exposed in your logs or analytics datasets.

The second major tool is Cloud KMS (Key Management Service). Cloud KMS is a centralised place where you create, store, and control cryptographic keys. A key is a long string of random numbers and letters that acts like a password to scramble your data. When you encrypt a file, you run it through an algorithm (like AES-256) with a key, and the output is unreadable without that same key. Cloud KMS lets you define which keys are used for which data. You can give a key to one team but not another. You can set a key to automatically expire after 30 days. You can also use “customer-managed encryption keys” (CMEK), meaning Google does not control the key — you do. If you need even more control, you can bring your own encryption key (CSEK) and manage it outside Google Cloud entirely.

Why does this matter? Before the cloud, companies stored files in a filing cabinet and relied on the building security guard. If someone walked out with a paper file, nobody knew. In the cloud, data moves across many services — from a database to a data warehouse to an analytics dashboard — and a single mistake (like copying a database row into a log file) can expose millions of customer records. Classification and encryption ensure that even if a mistake happens, the data is still protected.

Protection strategies also involve defining retention rules and deletion policies. You cannot protect what you never delete. Google Cloud’s DLP and KMS work alongside services like Cloud Storage Object Lifecycle Management, which can automatically delete objects after a set period. A complete strategy tells the system:

Identify all data sources (databases, file shares, email, logs).

Scan each source for sensitive content with Cloud DLP.

Classify the data (Public, Internal, Confidential, Restricted).

Apply encryption using Cloud KMS with the appropriate key for each classification level.

Set access policies (IAM roles) so only authorised people can decrypt or see the data.

Define when and how data is destroyed (secure deletion by overwriting the storage blocks).

Monitor and audit all access to detect unauthorised attempts.

The PCSE exam expects you to know the difference between encryption at rest, encryption in transit, and encryption in use (where data is processed while still encrypted — a newer concept). You also need to know that not all data needs the strongest encryption: classifying data first saves money because stronger encryption uses more compute resources. You should be able to choose between Cloud DLP’s techniques (redaction, masking, tokenisation) for a given scenario, and explain when to use CMEK instead of CSEK or google-managed keys.

Flowchart showing the process from data source through DLP inspection, classification labelling, and encryption key selection to final data protection.

Walk-Through

1

Discover and map your data estate

Use Cloud Asset Inventory and Cloud DLP discovery scans to find all data stores in your project — Cloud Storage buckets, Cloud SQL databases, BigQuery tables, and logs. This step is crucial because you cannot protect data you do not know exists.

2

Run a DLP inspection job on each data source

Configure a Cloud DLP inspection job with relevant infoTypes (e.g., CREDIT_CARD_NUMBER, US_SSN, EMAIL_ADDRESS). The job scans every row or object and produces a findings report showing where sensitive data lives and how many occurrences were found. This gives you a baseline classification.

3

Assign classification labels using findings

Based on the DLP inspection results, label each data source using Google Cloud Data Catalog tags. For example, a bucket with no findings gets the 'Public' label; a database with PHI findings gets 'Confidential' or 'Restricted'. The label drives what protection is applied next.

4

Select and apply encryption

For each classification level, decide on the encryption key type: Google-managed for Public data, CMEK for Confidential, CSEK for Restricted. Create the keys in Cloud KMS, configure key rotation (e.g., every 90 days), and enable encryption on the storage service (Cloud SQL, Cloud Storage, BigQuery).

5

Configure IAM permissions for decryption

Create IAM roles and assign the Cloud KMS CryptoKey Decrypter permission only to service accounts or users that absolutely need to decrypt the data. For Confidential data, give access to the application service account but not to developers. For Restricted data, require approval workflow before granting decryption.

6

Set de-identification and lifecycle policies

Create a DLP de-identification template that automatically masks or tokenises sensitive data in logs and exports. Then set object lifecycle rules in Cloud Storage to archive or delete data after a specified retention period, locking the policy to prevent tampering.

7

Monitor and repeat

Schedule DLP scans to run weekly on all data sources. Send findings to Cloud Logging and set up alerts for new sensitive data appearing in previously clean locations. Review key rotation logs and IAM access every month. Adjust classification labels as new data types are discovered.

What This Looks Like on the Job

A medium-sized healthcare SaaS company, MediTrack, stores patient appointment records, billing information, and internal employee emails in Google Cloud. They are preparing for a HIPAA (healthcare privacy law) audit and need to prove they protect “protected health information” (PHI). The IT security lead, Priya, follows this step-by-step procedure to build a data classification and protection strategy.

First, Priya maps data flows. She lists every service that holds data: a Cloud SQL database for patient records, a Cloud Storage bucket for scanned documents, and BigQuery tables for analytics. She also includes logs that might accidentally capture PHI. She uses “Cloud Asset Inventory” to discover all resources in the project.

Second, she runs Cloud DLP inspection jobs on each source. She creates a DLP job configuration that includes built-in infoTypes for medical record numbers (MRN) and health insurance IDs. The job scans 100,000 rows in Cloud SQL. It finds 400 rows that contain MRN patterns. Cloud DLP also finds 12 rows with credit card numbers in a notes column where they should not be.

Third, Priya classifies the data based on DLP results. She labels the Cloud SQL database “Confidential — PHI” using a data labelling tool called Google Cloud Data Catalog. She ensures that any new table created in the project is automatically inspected by a DLP job.

Fourth, she encrypts the data at rest. The Cloud SQL database already uses Google-managed encryption keys by default. But for the “Confidential” classification, Priya creates a CMEK in Cloud KMS, rotates it every 90 days, and restricts access to the key to only two senior engineers. She also enables encryption in transit by forcing all database connections to use TLS 1.3.

Fifth, she sets access controls. She creates IAM (Identity and Access Management) roles that grant “Cloud KMS CryptoKey Decrypter” only to the application’s service account, not to any human. She writes a DLP de-identification template that automatically redacts phone numbers and patient names from any log export, ensuring logs never contain PHI.

Sixth, she configures lifecycle policies. The Cloud Storage bucket holding scanned documents automatically moves objects older than one year to “Archive storage” class (lower cost, longer retrieval time) and deletes them after seven years, using a bucket lock that prevents anyone from shortening the retention period.

Finally, she runs weekly DLP scans and sends findings to Cloud Logging, with an alert if any new sensitive data is found in a previously clean bucket. The company passes the HIPAA audit because they can demonstrate: classification labels, encryption with customer-managed keys, automated DLP scanning, and strict access logging.

What does Priya actually do day-to-day? She tweaks DLP templates when new types of sensitive data appear (like new credit card formats). She monitors key rotation schedules in Cloud KMS. She reviews IAM policy changes to ensure no unauthorised person has decryption permission. She also creates reports for the compliance officer showing how many records are classified at each level and what percentage have encryption enabled.

How PCSE Actually Tests This

The PCSE exam tests objective 3.1 with specific scenario-based questions where you must choose the correct combination of classification label, encryption method, and DLP action. You will see multiple-choice questions that present a business requirement — like “A company needs to store customer transaction data that must be readable only by the finance team, but also must be searchable by a third-party auditor without exposing full credit card numbers” — and you must pick the right answer from options that mix up DLP techniques (redaction vs masking vs tokenisation) and encryption keys (Google-managed vs CMEK vs CSEK).

Key exam traps to watch for:

Confusing “encryption at rest” with “encryption in transit.” A question might describe data being stored in Cloud SQL and then queried over the internet — the exam will ask you what needs to be enabled for “at rest” vs “in transit.” Always read if the question specifies storage or network.

Assuming Cloud DLP can only detect credit card numbers. Cloud DLP can detect over 150 types of sensitive data, including API keys, passwords, medical codes, and geographic coordinates. The exam may ask you to pick an “inspection template” that covers all required infoTypes for a given regulation (like GDPR or HIPAA).

Mixing up CMEK and CSEK. CMEK means you create and manage the key in Cloud KMS, but Google still hosts the key. CSEK means you provide the actual key material yourself, and Google never stores it — you must resupply it on every action. The exam loves to ask which gives the customer “most control.” The answer is CSEK, but it also adds the most operational burden.

Forgetting that classification is prerequisite to protection. A question might give you a scenario where a company encrypts everything with the strongest key — the correct answer is often “first classify the data, then apply different encryption levels.” Over-encrypting can cause performance problems and increase cost.

Misunderstanding tokenisation vs masking. Masking shows part of the data (like the last four digits of a credit card) to authorised viewers. Tokenisation replaces the entire value with a random token — the original data is stored in a separate, secure mapping table. The exam asks when to use each: use masking for scenarios where human review needs partial context (like customer support seeing last four digits); use tokenisation when you need to keep analytics unique IDs without exposing real data.

Specific exam topics you must know cold:

The four classification labels in Google Cloud’s recommended taxonomy: Public, Internal, Confidential, Restricted.

The three DLP actions: Redact, Mask, Tokenise.

The three key management levels: Google-managed keys (default), Customer-managed keys (CMEK in Cloud KMS), Customer-supplied encryption keys (CSEK).

How to restrict decryption access using IAM roles (roles/cloudkms.cryptoKeyDecrypter).

The difference between encryption at rest (AES-256 by default) and encryption in transit (TLS).

What a “data loss prevention job” is and what a “de-identification template” does.

How data classification integrates with VPC Service Controls for perimeter security.

Question types: you will see about 6-8 questions on this objective. Two or three will be straight recall (“Which DLP action replaces a value with an irreversible random string?”). The rest will be complex scenarios that combine encryption, DLP, and IAM. The correct answer pattern always starts with classification: the best answer will mention labelling data before deciding on encryption. If an option suggests encrypting everything with a single key without classifying, it is almost certainly wrong.

Key Takeaways

Data classification must happen before protection; you cannot decide which encryption key to use until you know how sensitive the data is.

Cloud DLP offers three actions for detected sensitive data: redact (remove), mask (show partial), and tokenise (replace with a random string).

Customer-managed encryption keys (CMEK) are managed by you in Cloud KMS but stored by Google; customer-supplied encryption keys (CSEK) are known only to you and Google cannot access them.

Encryption at rest protects stored data; encryption in transit protects data moving over a network; both are enabled by default in Google Cloud but can be customised.

Cloud DLP can be scheduled to run automatically on new data, ensuring that sensitive information is detected and handled even as your datasets grow.

IAM roles like roles/cloudkms.cryptoKeyDecrypter control who can use an encryption key to decrypt data — never grant this role to users who do not need it.

A de-identification template in Cloud DLP lets you configure exactly which infoTypes to find and what action to take, making scanning repeatable and auditable.

Google Cloud’s default data classification uses four labels: Public, Internal, Confidential, Restricted.

Tokenisation preserves the referential integrity of data (e.g., same original value always produces the same token), which is useful for analytics without exposing raw data.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Encryption at rest

Protects data stored on disk in Cloud Storage, BigQuery, or SQL databases

Uses AES-256 algorithm by default in Google Cloud

Must be enabled separately for each service if overriding defaults

Encryption in transit

Protects data moving over a network between services or to/from users

Uses TLS 1.2 or 1.3 protocol by default in Google Cloud

Automatically applied to all Google Cloud API calls and load-balanced traffic

Customer-managed encryption keys (CMEK)

Key is created and managed in Cloud KMS but stored by Google

You control key rotation, versioning, and IAM access

Google can still provide key material for recovery if needed

Customer-supplied encryption keys (CSEK)

Key material is provided by you and never stored by Google

You must supply the key on every API call or operation

If you lose the key, data is permanently unrecoverable

DLP Masking

Shows a portion of the original value (e.g., last four digits)

Reversible by authorised users with higher permissions

Preserves some readability for customer support scenarios

DLP Tokenisation

Replaces the entire value with a random token string

Reversible only via a secure mapping table

Ideal for analytics that require unique identifiers without exposing original data

Public data classification

No encryption key management needed; defaults are fine

Accessible to all authenticated users by default

No DLP scanning required; low risk if leaked

Restricted data classification

Requires CMEK or CSEK with strict IAM controls

Access granted only to specific, audited service accounts

DLP scanning mandatory; de-identification templates applied in logs

Watch Out for These

Mistake

All data in Google Cloud is encrypted by default, so I never need to think about encryption.

Correct

Google Cloud automatically encrypts data at rest and in transit by default using Google-managed keys, but you may need customer-managed keys (CMEK) or customer-supplied keys (CSEK) for compliance, and you still need to classify data to decide which encryption level to apply. Default encryption does not solve access control or data loss prevention.

Beginners hear ‘encrypted by default’ and assume no further action is needed, but compliance frameworks like HIPAA or PCI DSS require you to manage your own keys and prove you control access.

Mistake

Cloud DLP only scans for credit card numbers and Social Security numbers.

Correct

Cloud DLP can detect over 150 different infoTypes, including passport numbers, medical record numbers, API keys, AWS secret keys, driving licence numbers, and even custom patterns you define yourself.

The tool’s name ‘Data Loss Prevention’ sounds like it is just for financial data, so beginners underestimate its breadth and miss questions that involve health data or custom sensitive patterns.

Mistake

Tokenisation and masking are the same thing.

Correct

Masking shows a portion of the data (e.g., '****-****-****-1234') and is reversible only for authorised viewers. Tokenisation replaces the entire value with a random token and stores the original in a separate secure table — it is irreversible without access to that mapping table.

Both techniques obscure data, so beginners conflate them, but the exam tests when to choose one over the other based on whether partial visibility is needed.

Mistake

If I encrypt data with CSEK, Google can still access the key to help me decrypt.

Correct

With customer-supplied encryption keys (CSEK), you provide the key material and Google never stores it. If you lose the key, data becomes permanently unrecoverable. Google cannot decrypt it for you.

The phrase ‘customer-supplied’ sounds like you are just providing a key for Google to manage, but in reality Google has zero access to that key — a distinction that trips up candidates who do not read the documentation carefully.

Mistake

Data classification is optional; I can just encrypt everything with the strongest key and be safe.

Correct

Data classification is essential because over-encrypting everything with the strongest key increases cost, reduces performance, and can break searchability and analytics. Classification lets you apply the appropriate protection level to each data category.

Beginners think ‘more encryption = better security,’ but real-world systems need to balance security with usability and cost. The exam penalises answers that ignore classification in favour of blanket encryption.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

Is data in Google Cloud encrypted by default, or do I have to turn it on?

All data stored in Google Cloud is encrypted at rest by default using AES-256, and all data in transit is encrypted with TLS by default. You do not have to turn it on, but you can override it with your own keys if required for compliance.

What is the difference between Cloud DLP redaction, masking, and tokenisation?

Redaction removes the sensitive value entirely. Masking shows only a portion, like the last four digits of a credit card. Tokenisation replaces the entire value with a random token that is stored in a secure mapping table — it is reversible only through the table.

When should I use customer-managed encryption keys (CMEK) instead of Google-managed keys?

Use CMEK when your compliance framework (like HIPAA or PCI DSS) requires you to manage and rotate your own encryption keys, or when you need to control who has access to the key via IAM. Google-managed keys are fine for most general use cases.

Can Cloud DLP detect custom patterns, like internal project codes or employee IDs?

Yes. You can define custom infoTypes using regex patterns or dictionary lists. Cloud DLP can then inspect and de-identify those custom patterns alongside the built-in infoTypes.

What is the difference between encryption at rest and encryption in transit?

Encryption at rest protects data when it is stored on disk or SSD — for example, in Cloud SQL or Cloud Storage. Encryption in transit protects data while it travels over a network, for example, from your application to the database or between Google Cloud regions.

If I lose my customer-supplied encryption key (CSEK), can Google recover my data?

No. Google never stores your CSEK. If you lose the key, the data is permanently unrecoverable. That is why CSEK is only recommended when you have a secure, offline key management process.

Do I need to classify data manually, or can Google Cloud do it automatically?

Google Cloud provides tools that help with automatic classification. Cloud DLP can inspect data and suggest classification labels based on detected sensitive content. You can then apply labels automatically using Cloud Data Catalog and set policies that enforce protections based on those labels.

Terms Worth Knowing

Keep going

You've finished Data Classification and Protection Strategies. Continue through the PCSE study guide to build a complete picture of the exam.

Done with this chapter?