A compliance program does not begin with a tool list.
It begins with a control catalogue from a regulator or an industry framework, translates each control into one or more technical requirements, and then binds each requirement to specific Google Cloud configuration that an auditor can inspect. The Cloud Security Engineer owns the second and third steps.
The output is a requirements matrix that names the compute platform, the data classification, the network reachability, and the storage retention for every workload that falls in scope, then attaches a Google Cloud control surface to each row.
Key points
The starting point is workload classification.
Every workload that processes regulated data sits in one of four lanes:
- in scope and primary (the workload directly handles regulated records)
- in scope and connected (the workload does not handle records but shares an account, project, or network with one that does)
- out of scope but segmented (the workload is provably isolated through VPC Service Controls and IAM perimeters)
- out of scope and unrelated
PCI DSS calls these the cardholder data environment, the connected systems, the segmented systems, and the unrelated systems.
HIPAA applies the same lattice to electronic protected health information.
The classification drives the entire requirements matrix because the controls demanded of an in-scope and primary workload are stricter than the controls demanded of a connected system, and segmentation is itself a technical control that has to be designed, not declared.
Compute requirements
Compute requirements break down by hardware attestation, runtime confidentiality, patching cadence, and tenancy. Frameworks that require attested boot, such as FedRAMP Moderate and High and DoD IL4 and IL5, are satisfied by Shielded VM and Confidential VM. Shielded VM provides secure boot, virtual trusted platform module (vTPM) measurements, and integrity monitoring. Confidential VM extends that with encrypted-in-use memory through AMD SEV-SNP on the N2D and C3D families or Intel TDX on the C3 family. Frameworks that require workload isolation from co-tenants, such as some sovereignty profiles, are satisfied by sole-tenant nodes, which guarantee that the underlying physical host is reserved for a single project. GKE Autopilot raises a subtle compliance question: the customer cannot install host-level agents because Google manages the nodes, so any control that mandates a host intrusion-detection system has to be either satisfied by GKE Standard (where node-level agents are possible) or by Container Threat Detection in Security Command Center (which inspects from outside the workload).
# Create a Confidential VM with Shielded boot, OS Login, and CMEK on the boot disk.
gcloud compute instances create regulated-vm-01 \
--zone=europe-west3-a \
--machine-type=n2d-standard-4 \
--confidential-compute \
--maintenance-policy=TERMINATE \
--shielded-secure-boot \
--shielded-vtpm \
--shielded-integrity-monitoring \
--metadata=enable-oslogin=TRUE,disable-legacy-endpoints=true,block-project-ssh-keys=true \
--image-family=ubuntu-2204-lts \
--image-project=ubuntu-os-cloud \
--boot-disk-kms-key=projects/regulated-keys-prj/locations/europe-west3/keyRings/compute/cryptoKeys/boot \
--no-address \
--service-account=regulated-runtime-sa@regulated-prj.iam.gserviceaccount.com \
--scopes=cloud-platform
Data requirements
Data requirements branch by sensitivity tier and by residency. Sensitivity drives key custody: software-backed CMEK is appropriate for confidential business data, Cloud HSM (FIPS 140-2 Level 3) is required for cardholder data and most PHI workloads, and Cloud EKM is required when the regulator demands that the encryption key live outside Google's administrative boundary. Cloud EKM has two transport options: EKM over the public internet and EKM over VPC. The latter is required when the regulator forbids any plaintext key material from traversing the public internet at any point. Residency drives location selection: data must be stored in a regional bucket or dataset whose location is named in the regulator's list of permitted regions. For BigQuery, the regulator's list of regions is enforced through dataset-level location, since BigQuery is a regional service and copying data into a multi-region requires a destination outside the regulated boundary.
Network requirements
Network requirements branch by reachability and inspection. The default rule for a regulated workload is no public IP on any VM, no external Load Balancer in front of an in-scope service, and all egress to Google APIs routed through restricted.googleapis.com. The compute.vmExternalIpAccess organization policy enforces the first rule. A VPC Service Controls service perimeter enforces the second and third. The next layer is east-west segmentation: in-scope projects sit inside their own VPC Service Controls perimeter with explicit ingress and egress rules, and Cloud Next Generation Firewall hierarchical policies pin allowlists between subnets and tags. For frameworks that require deep packet inspection, Cloud NGFW Enterprise with Threat Intelligence and IPS-style signatures activates on the firewall endpoint that the perimeter network advertises.
Storage requirements
Storage requirements split by retention and by tamper-evidence. Cloud Storage Bucket Lock with a locked retention policy is the supported pattern for write-once-read-many evidence retention. Once a retention policy is locked, the retention period can only be increased, never decreased or removed, and objects under retention cannot be deleted or modified before the retention clock expires. This is the control that satisfies SEC Rule 17a-4(f) and FINRA Rule 4511 for broker-dealers, and it is also what makes Cloud Storage a defensible long-term sink for Cloud Audit Logs. BigQuery storage requirements include table-level expiration, time-travel retention for restoration, and dataset-level CMEK so that the encryption key custody matches the data sensitivity.
# Terraform module wiring the compute, data, network, and storage requirements for a single regulated workload.
resource "google_storage_bucket" "regulated_evidence" {
name = "regulated-evidence-prj-evidence"
location = "EUROPE-WEST3"
storage_class = "STANDARD"
uniform_bucket_level_access = true
public_access_prevention = "enforced"
versioning { enabled = true }
retention_policy {
retention_period = 220752000 # seven years in seconds
is_locked = true
}
encryption {
default_kms_key_name = google_kms_crypto_key.bucket_cmek.id
}
logging {
log_bucket = "regulated-evidence-prj-access-logs"
}
}
resource "google_compute_subnetwork" "regulated_subnet" {
name = "regulated-subnet-frankfurt"
ip_cidr_range = "10.30.0.0/22"
region = "europe-west3"
network = google_compute_network.regulated_vpc.id
private_ip_google_access = true
log_config {
aggregation_interval = "INTERVAL_5_SEC"
flow_sampling = 1.0
metadata = "INCLUDE_ALL_METADATA"
}
}
Decision anchor: compute, data, network, storage at requirements time
Choose Confidential VM with Cloud HSM-backed CMEK and a VPC Service Controls perimeter when the framework names FIPS 140-2 Level 3 or a memory-confidentiality control. Choose Shielded VM with software-backed CMEK and standard VPC controls when the framework only requires attested boot and encryption in transit and at rest. Choose Cloud EKM over VPC when the framework forbids Google administrative access to the key material at any phase. Choose GKE Standard over GKE Autopilot when host-level agents are mandated. Choose sole-tenant nodes when physical tenancy isolation is a written control.
💡 Exam Trap: GKE Autopilot satisfies most container compliance requirements but does not allow host-level intrusion detection agents because Google manages the nodes. When a question names a regulator that explicitly requires a host IDS agent (and not just a control of equivalent effect), GKE Standard with Container-Optimized OS is the answer, not GKE Autopilot.
💡 Exam Trap: Cloud HSM and Cloud EKM are not interchangeable. Cloud HSM is FIPS 140-2 Level 3 inside Google's perimeter; Cloud EKM moves the key custody outside Google entirely. A framework that says "Google must not be able to access the key material under any circumstance" is asking for Cloud EKM, not Cloud HSM. A framework that says "keys must be stored in a FIPS 140-2 Level 3 HSM" is satisfied by Cloud HSM and does not require EKM.
⚠️ Anti-Pattern: Treating "encryption at rest" as a single requirement and selecting Google default encryption for every workload. Default encryption uses Google-managed keys, and a regulator that demands key custody, key rotation evidence, or key destruction proof cannot accept that. The requirements matrix has to record the encryption tier per workload (default, CMEK software, CMEK Cloud HSM, EKM over VPC, EKM over public internet) and the choice has to be traceable to the control catalogue entry that drove it.
📊 Limit: Cloud Storage Bucket Lock retention policies, once locked, can only be increased. A locked retention policy of seven years can be raised to ten, but it cannot be lowered, and no object subject to it can be deleted until the retention clock expires. Plan retention periods at the low end of the regulatory window and extend as needed.
🎯 Scenario: A payment processor onboards a new merchant under PCI DSS. The Cloud Security Engineer is asked which Google Cloud controls satisfy Requirement 3.5 (protection of cryptographic keys used to protect stored cardholder data). The answer is a Cloud HSM-backed CryptoKey on a Cloud KMS key ring in a regional location, with automatic rotation set to ninety days,
roles/cloudkms.cryptoKeyEncrypterDecryptergranted only to a workload identity bound to the payment service, separation of duties between the key administrator and the key user roles, and an organization policyconstraints/cloudkms.allowedProtectionLevelsrestricting the project toHSMso that a software-only key cannot be created by mistake.
The requirements matrix produced by this section is the artifact the engineer carries through the next four sections. Every later control is justified by a row in that matrix, and every audit finding traces back to a row that was either missing or misimplemented. ---
