Compliance frameworks are predefined sets of rules that tell you exactly how to protect sensitive data. They turn vague security goals into specific, auditable requirements. If you are studying for the Google Professional Cloud Security Engineer exam, you must understand how to apply frameworks like GDPR, HIPAA, and PCI DSS inside Google Cloud, and how to use Security Command Center to continuously check that you follow the rules.
Jump to a section
A simple way to picture Compliance Frameworks and Auditing in GCP
You rent an apartment from a strict landlord. Before you move in, the landlord hands you a 16-page checklist covering every single thing in the flat: the smoke alarm battery must be less than 6 months old, the oven door must close with no gap wider than 1 millimetre, every window must open and close smoothly, and the seal around the shower tray must show no mould. Each rule comes from a national housing standard. This checklist is your compliance framework, like GDPR or HIPAA or PCI DSS. The landlord does not just hand you the rules, though. The landlord also sends an independent inspector every 3 months. The inspector walks through the flat with a tablet and ticks off each item: smoke alarm passes, oven door fails, shower seal passes. Every pass or fail gets a timestamp and a photo. The inspector uploads the entire report to a central system that the landlord and the tenant can both see. This report is the audit log. Now imagine you run a company that stores medical records in Google Cloud. Google Cloud gives you the compliance framework rules (like HIPAA requirements) and Security Command Center as the inspector. Security Command Centre continuously scans your cloud setup against those rules. It detects if you have left a patient database accessible to the public (a fail). It flags a virtual machine that is missing the latest security patch. It logs each finding with a timestamp and a severity score. You, the tenant (the cloud customer), must fix the fails and prove you did. Security Command Center keeps the proof. Without it, you would have to hire an expensive auditor to manually check everything, like a landlord without an inspection checklist.
Compliance frameworks are rulebooks written by governments, industries, or standards bodies. They define how organisations must handle specific types of data. For example, GDPR (General Data Protection Regulation) is a European law that controls how companies collect, store, and delete the personal data of EU citizens. HIPAA (Health Insurance Portability and Accountability Act) is a US law that sets rules for protecting medical records. PCI DSS (Payment Card Industry Data Security Standard) is a set of rules created by credit card companies that governs how you store, process, and transmit credit card numbers. Each framework has dozens or hundreds of specific controls. A control is a single requirement, like "encrypt all data at rest" or "log all access attempts to patient records". You cannot pass a compliance audit unless you implement every control that applies to your organisation.
Before cloud computing, companies had to prove compliance by showing auditors physical server rooms, printed logs, and paper policies. It was slow, expensive, and easy to make mistakes. Google Cloud changes this by offering built-in tools that automate compliance. The most important tool for auditing is Security Command Center (SCC). Security Command Center is a security and risk management platform that runs inside Google Cloud. It continuously scans your cloud resources, like virtual machines, storage buckets, and databases, against a set of security benchmarks and compliance frameworks. SCC detects misconfigurations, such as a storage bucket that allows anyone on the internet to read its contents, or a virtual machine that does not have the latest security patches. Each detection is called a finding. SCC groups findings by severity: critical, high, medium, or low. It also assigns a category, like "public bucket access" or "unpatched vulnerability". You can view all findings in a dashboard or export them to Cloud Logging for long-term storage.
To use SCC for compliance, you first enable it in your Google Cloud project. Then you turn on specific services inside SCC, such as Event Threat Detection, which watches for suspicious login attempts, or Container Threat Detection, which scans your containers for malware. You can also connect SCC to your compliance framework by activating the relevant compliance module. For example, Google Cloud offers a HIPAA compliance checklist inside SCC that lists every control you need to meet. SCC then checks your environment against that list and reports which controls pass or fail. This is called a compliance score. A score of 85% means you meet 85% of the required controls. The remaining 15% need manual action, like writing a policy document or training employees.
The second critical piece is audit logging. Cloud Audit Logs are a built-in feature of Google Cloud that records every action taken inside your project. Every time someone creates a virtual machine, deletes a storage bucket, or changes a firewall rule, Cloud Audit Logs records who did it, what they did, when they did it, and from where. There are three types of audit logs: Admin Activity logs track changes to configurations and metadata, like creating a new project. Data Access logs track reads and writes to customer data, like viewing a record in a database. System Event logs track automated actions by Google systems that affect your resources, like a VM being migrated to another host for maintenance. You must enable Data Access logs manually because they generate a lot of data. Without them, you cannot prove to an auditor that you know who accessed sensitive data.
Finally, you need to understand how Google Cloud itself is audited. Google Cloud undergoes independent third-party audits every year. It publishes the results as compliance reports, like SOC 1, SOC 2, SOC 3, ISO 27001, and FedRAMP. These reports prove that Google Cloud's internal controls meet global security standards. When you run workloads on Google Cloud, you inherit some of that compliance. For example, if HIPAA requires that the data centre has physical security, Google Cloud already passes that control, so you do not have to build a guarded fence. This is called the shared responsibility model. Google is responsible for the security of the cloud (the physical hardware, the network, the hypervisor). You are responsible for security in the cloud (your applications, your data, your user permissions). Compliance frameworks test both layers. You must show that you correctly configured your part inside Google Cloud. Security Command Center and Cloud Audit Logs are how you automate that proof.
Identify which compliance frameworks apply to your data
Examine the data your organisation handles. If you store medical records in the US, HIPAA applies. If you process credit card numbers, PCI DSS applies. If you handle personal data of EU residents, GDPR applies. Multiple frameworks can apply to the same dataset.
Enable Security Command Center in your Google Cloud project
Go to the SCC dashboard in the Google Cloud Console and activate it. You may need to enable specific services like Event Threat Detection or Container Threat Detection depending on your workload type.
Configure the compliance module that matches your framework
Inside SCC, find the compliance module for your framework, such as the HIPAA compliance checklist. This module adds the specific controls needed for that framework to the scanning rules.
Review the compliance score and fix failing controls
SCC shows you a compliance score. Each failing control has a description and a 'fix it' button or link to documentation. For example, if a storage bucket is public, you restrict its access. After fixing, SCC rescans automatically or you can trigger a manual rescan.
Enable Data Access audit logs for all sensitive data stores
Go to Cloud Audit Logs settings. Turn on Data Access logs for Cloud Storage, BigQuery, and Cloud SQL. This ensures every read and write to your sensitive data is recorded with timestamps and user identities.
Set up a secure log export that cannot be deleted
Create a dedicated Cloud Storage bucket with retention policies and object lock enabled. Configure a sink that copies all audit logs to this bucket. Auditors require logs that are immutable and stored separately from your operational data.
Consider a mid-sized health tech company called MedTrack that stores patient medical records in Google Cloud. MedTrack must comply with HIPAA because it handles Protected Health Information (PHI). PHI includes names, addresses, medical diagnoses, and insurance numbers. A HIPAA auditor visits once per year. If MedTrack fails the audit, it can face fines up to $50,000 per violation.
MedTrack's IT team of three people sets up Google Cloud the day before the auditor arrives. They spin up a Cloud SQL database and a Compute Engine virtual machine to run their patient portal. They think they are ready. However, they forgot two critical things. First, they accidentally left the Cloud Storage bucket containing backup patient records publicly readable. Second, they never enabled Cloud Audit Logs for Data Access, so they have no record of who read each patient's file. The HIPAA auditor arrives. The auditor asks to see the logs showing who accessed a specific patient record in the last month. MedTrack cannot produce them. The auditor also runs a simple tool and finds the public storage bucket. MedTrack fails the audit immediately.
Now imagine the same company using Security Command Center correctly. Before the auditor visits, MedTrack enables SCC and turns on the HIPAA compliance module. SCC scans their entire Google Cloud environment within minutes. It generates a compliance score of 72%. SCC shows specific failing controls:
- Storage bucket 'patient-backups' is publicly accessible. - Cloud SQL database does not have encryption at rest enabled. - Compute Engine VM is running an outdated operating system version. MedTrack's team fixes each issue. They set the bucket to private, enable encryption on the database, and patch the VM. SCC rescans and shows a compliance score of 96%. The day of the audit arrives. The auditor asks for the same evidence. MedTrack opens SCC and shows the auditor the compliance dashboard with a 96% score. The auditor asks for audit logs. MedTrack opens Cloud Audit Logs and filters by the specific patient record. They show the auditor every single access event: timestamp, user identity, IP address, and action taken. The auditor passes MedTrack with no violations.
The key daily tasks for an IT professional using these tools include:
Checking the Security Command Center dashboard every morning for new high-severity findings.
Investigating any finding labelled 'public bucket' or 'open firewall port' because those are immediate compliance violations under most frameworks.
Configuring Cloud Audit Logs export to a separate storage bucket that no one can delete, because the auditor will want logs that cannot be tampered with.
Setting up alerting in SCC so that when a finding appears, it sends a notification to the security team's chat channel.
Running a monthly compliance report from SCC and saving it to a folder for the annual audit.
The PCSE exam tests Compliance Frameworks and Auditing primarily through scenario-based multiple-choice questions. You will be given a short story about a company that must meet a specific framework, and you must choose the correct Google Cloud service or configuration to satisfy that requirement. The exam expects you to know which framework applies to which data type. For example, if the question mentions 'personal data of EU residents', the answer must involve GDPR. If it mentions 'credit card numbers', the answer must involve PCI DSS. If it mentions 'medical records', the answer must involve HIPAA. A common trap is that the exam presents a scenario where a company processes both EU personal data and credit card data. You must recognise that both frameworks apply and choose an answer that satisfies both, not just one.
The second major exam topic is Security Command Center features. Expect questions that ask you to identify what SCC can detect. The PCCE exam loves to test the difference between Event Threat Detection (which looks for suspicious activity patterns, like a user logging in from a new country) and Vulnerability Detection (which scans for missing patches or weak passwords). You must remember that SCC does NOT block attacks; it only detects and reports them. To block an attack, you need other services like Cloud Armor or IAM policies.
The third heavily tested area is Cloud Audit Logs. The exam will ask you to choose the correct log type for a given scenario. For example: - 'A security team needs to know who deleted a firewall rule last week.' Answer: Admin Activity logs are enabled by default and record configuration changes. - 'A security team needs to know which employee viewed a specific patient record on Tuesday.' Answer: Data Access logs must be enabled manually and record reads and writes to customer data. - 'A security team needs to know about automatic maintenance events that moved a VM.' Answer: System Event logs record Google-initiated actions.
Traps to avoid:
Assuming that enabling SCC automatically makes you compliant. It does not. SCC shows you what is wrong; you must still fix the problem.
Confusing compliance frameworks. Remember: GDPR = EU personal data, HIPAA = US medical data, PCI DSS = payment card data. The exam will mix these up in the scenario to test your recognition.
Forgetting that audit logs must be stored securely and immutably. An auditor will reject logs that can be deleted or modified.
Thinking that Google Cloud is fully responsible for all compliance. Remember the shared responsibility model. Google provides the framework and the tools, but you must configure your resources correctly.
Key definitions to memorise:
Control: a single requirement inside a compliance framework.
Finding: a single issue detected by Security Command Center.
Compliance score: a percentage showing how many controls your environment meets.
Admin Activity logs: configuration changes, enabled by default.
Data Access logs: data reads and writes, must be enabled.
System Event logs: Google-automated actions, not visible to customers by default.
Compliance frameworks (GDPR, HIPAA, PCI DSS) are rulebooks that tell you exactly how to protect specific types of sensitive data.
Security Command Center continuously scans your Google Cloud resources and reports misconfigurations that violate compliance rules.
Cloud Audit Logs record every action in your project: Admin Activity logs are on by default, Data Access logs must be turned on manually.
Google Cloud follows a shared responsibility model: Google secures the cloud infrastructure, you secure everything you build in it.
A compliance score in Security Command Center is a percentage showing how many controls your environment passes.
To pass a compliance audit, you must produce immutable logs that prove you followed every control in the framework.
These come up on the exam all the time. Here's how to tell them apart.
Compliance Framework (e.g. HIPAA)
Defines what rules must be followed (the what)
Created by external regulators or industry bodies
Does not change based on your setup; it is a fixed set of requirements
Security Command Center
Checks whether your cloud setup follows those rules (the checker)
Created by Google Cloud as a built-in tool
Adapts its scanning to the resources you have deployed
Admin Activity Logs
Record changes to configurations (who created a VM, who deleted a firewall rule)
Enabled by default in every Google Cloud project
Retained for 30 days unless exported
Data Access Logs
Record reads and writes to actual data (who viewed a patient record)
Must be manually enabled for each service
Generate much more data so they can increase storage costs
Shared Responsibility Model
Google secures physical data centres, networking, and hypervisors
Google provides compliance certifications for its infrastructure
Cannot be changed or misconfigured by the customer
Customer Responsibility
Customer secures user IAM permissions, application code, and data encryption
Customer must prove their own configurations meet framework controls
Fully under the customer's control, so mistakes cause compliance failures
Mistake
If I use Google Cloud, I am automatically compliant with HIPAA.
Correct
Google Cloud can be HIPAA compliant, but you must configure your own resources correctly. If you leave patient data in a public bucket, you violate HIPAA.
People assume because a cloud provider has certifications, those certifications cover the customer's workloads. The shared responsibility model is not intuitive to beginners.
Mistake
Security Command Center blocks attacks automatically.
Correct
SCC only detects and reports security issues. It does not block anything. You must use other tools like firewall rules or IAM policies to block attacks.
The name 'Command Center' sounds active and interventionist. Beginners assume it takes action, but it is only a monitoring and reporting platform.
Mistake
Cloud Audit Logs record everything by default, so I do not need to configure anything.
Correct
Only Admin Activity logs are enabled by default. Data Access logs, which record reads and writes of actual data, must be manually enabled.
People think 'audit logging' is one single monolithic log. In reality, Google Cloud has three distinct types, each with different default states.
Mistake
Compliance frameworks are optional if I am a small company.
Correct
Compliance frameworks are laws or binding industry standards. Having fewer employees does not exempt you from HIPAA if you handle medical records or GDPR if you process EU personal data.
Beginners often assume that regulations only apply to large corporations, but fines and penalties apply to any organisation that violates them.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
You might still need SCC because many compliance frameworks require using the cloud provider's native controls. SCC also integrates directly with Google Cloud's APIs, giving you deeper visibility than an external tool.
No. SCC can check technical configurations, but HIPAA also requires administrative controls like employee training and written policies. SCC gives you a score for the technical layer only.
Default retention is 30 days for Admin Activity logs and 30 days for Data Access logs. You must export them to Cloud Storage or BigQuery for longer storage to meet auditor requirements.
You cannot retroactively generate Data Access logs. You will fail the audit for that control point. This is why enabling them before the audit is critical.
Yes, PCI DSS specifically governs how you store, process, and transmit cardholder data. If you do not handle credit card numbers, PCI DSS does not apply to you.
Google Cloud is liable for its part, like physical security and hypervisor security. You are liable for your part, like user permissions and application code. Both sides can face consequences in an incident.
You've finished Compliance Frameworks and Auditing in GCP. Continue through the PCSE study guide to build a complete picture of the exam.
Done with this chapter?