Exams / GCP-CDL / D1 Trust and Security with Google Cloud
Trust and Security with Google Cloud (part 2 of 2)
- Exam domain: Trust and Security with Google Cloud
Resource hierarchy: inheritance and isolation
- A role granted at a folder is inherited by every project it contains, and a role granted at a project is inherited by every resource inside it — a folder-level grant therefore reaches the folder's resources too.
- Folders model organizational units (e.g. one per department) and act as isolation/administration boundaries; projects model environments (dev/test/prod) inside each folder, each with its own IAM and billing.
- A dedicated project per environment gives two things at once: resources don't access each other across projects by default (isolation), and a project is the primary cost-tracking unit (simple billing) — no separate billing account or network is needed just for isolation.
"Roles granted at the highest folder level will be inherited by projects or other folders that are contained in that parent" — Access control with IAM
"IAM roles granted at the project level are inherited by resources within that project." — Access control with IAM
"Folder resources can provide isolation boundaries between projects... can model different legal entities, departments, and teams within a company." — About the resource hierarchy
"The trust boundary: Projects serve as an isolation layer." / "The billing unit: Projects are the primary way that you track, organize, and separate costs across your organization." — Creating and managing projects
Security Command Center: the central posture/compliance tool
One product answers almost every "how do we find/fix X across our whole Google Cloud estate" exam question:
| Need | Answer |
|---|---|
| Find every VM with an out-of-date/vulnerable OS, agentlessly | Security Command Center (VM Manager OS findings) |
| Identify + remediate vulnerabilities and misconfigurations generally | Security Command Center |
| Report on / maintain compliance across the whole organization, multiple projects/folders | Security Command Center (security posture) |
| Get specific remediation recommendations tied to a risk/compliance violation | Security Command Center findings |
It is not Cloud Armor (DDoS/WAF), Cloud Storage, VPC networking, Cloud Logging (just stores logs) or Cloud Deployment Manager (provisioning) — those are each a different job.
"Automatically scan your cloud environment to identify cloud misconfigurations and software vulnerabilities that could lead to compromise—without having to install or manage agents." — Security Command Center
"The findings from this service have categories of OS_VULNERABILITY and SOFTWARE_VULNERABILITY." — Assess software vulnerabilities
"Apply your security controls to Google Cloud projects, folders, or organizations" — Security posture overview
"Recommended steps for remediating the vulnerability" — Compliance management
CIA triad and encryption at rest
| Principle | Means | Not to confuse with |
|---|---|---|
| Confidentiality | Only authorized people/processes can access or modify data | Availability |
| Integrity | Data is accurate, authentic, trustworthy | Compliance with a standard |
| Availability | Data/systems stay reliable and accessible to authorized users when needed | Confidentiality (restricting access) |
Even against the (unlikely) scenario of someone physically reaching the storage media, Google encrypts customer data at rest by default, so the data is unreadable without the keys — there is no "immediate deletion on intrusion" or "random scattering of data" mechanism; location is deliberately chosen, not random.
"Data confidentiality: Data can only be accessed or modified by authorized people or processes." / "Data availability: ...data still needs to be available and accessible to authorized people and processes when it's needed." — What is cloud data security?
"Encryption at rest is encryption that is used to help protect data that is stored on a disk (including solid-state drives) or backup media." — Default encryption at rest
Identity at scale: groups, federation, least privilege
- Grant IAM roles to a Google Group, never to individuals one by one, when access must mirror an organizational unit (a region's staff, a department, an LDAP/AD group): membership changes do the on/off-boarding automatically.
- Google Cloud Directory Sync (GCDS) keeps Google accounts/groups synced from an existing on-premises LDAP/Active Directory server — the tool for provisioning at scale from a frequently-changing directory, not Firebase/Identity Platform (those authenticate application end users, not provision enterprise accounts).
- Identity Platform is the customer-identity (CIAM) service for public-facing web/mobile apps: it manages end-user sign-in (including passwords) and supplies the identity info apps use to authorize access.
- Least privilege: grant each principal only the minimum permissions its job needs, at the smallest scope — distinct from zero trust (no implicit trust by network location) and "secure by default" (safe out-of-the-box settings).
"A named collection of human or machine users with Google Accounts." — IAM principals overview
"With Google Cloud Directory Sync (GCDS), you can synchronize the data in your Google Account with your Microsoft Active Directory or LDAP server." — GCDS
"It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook, Twitter, and any provider" — Identity Platform authentication
"Grant roles at the smallest scope needed." — Using IAM securely
Workload identity: service accounts
A Compute Engine VM calls other Google Cloud APIs (e.g. BigQuery) using the credentials of its attached service account — grant the IAM role the workload needs to that service account, not to the instance group (a scaling/management construct), the whole project (too broad), or the VM resource itself.
"A user-managed service account can be attached to a Compute Engine instance to provide credentials to applications running on the instance." — Service accounts
Networking: private connectivity and DDoS protection
| Need | Use |
|---|---|
| Highly sensitive data must never cross the public internet, processed on both sides | Dedicated/Partner Interconnect |
| Private, secure, low-latency access to a large volume of on-prem data from Google Cloud | Hybrid connectivity (Interconnect/VPN) to the VPC |
| Reach Google's public-IP services directly from on-prem (not your VPC's internal IPs) | Direct Peering (not the same thing) |
| Protect applications/infrastructure from DDoS (L3/4 volumetric or L7) | Google Cloud Armor |
"Traffic between your networks doesn't traverse the public internet." — Interconnect overview
"When established, Direct Peering provides a direct path from your on-premises network to Google services, including Google Cloud products that can be exposed through one or more public IP addresses." — Direct Peering
"Google Cloud Armor helps protect your infrastructure and applications from Layer 3/Layer 4 network or protocol-based volumetric distributed denial-of-service (DDoS) attacks, volumetric Layer 7 attacks, and other targeted application attacks." — Cloud Armor
Growing containerized workloads: GKE
GKE combines Kubernetes network policies (Pod-level firewall rules controlling exactly which Pods/Services may talk to each other) with configurable autoscaling (min/max replicas, CPU/utilization target) — the combination App Engine, Cloud Run, and plain Compute Engine VMs don't offer together.
"Network policies create Pod-level firewall rules that determine which Pods and Services can access one another inside your cluster." — GKE network policy
"When you use kubectl autoscale, you specify a maximum and minimum number of replicas for your application, as well as a CPU utilization target." — Scaling apps
Data residency, sovereignty, and global compliance
- Data sovereignty: data is governed by the laws of the country/region where it physically resides, regardless of who owns it — a jurisdictional concept, not a right of access, not a privacy right by itself, and not an encryption mandate.
- Global compliance for a multinational means meeting every relevant jurisdiction's regulations (where the org and its customers are located) — there is no single standard that overrides local law, and the home-office country's rules don't cover everyone else.
- To serve customers worldwide, fast, while a mandated region keeps its data local: pick a public cloud provider that guarantees data residency in the required region but still serves globally — not a provider confined to one geography, and not a private cloud.
- Encrypting PII is a concrete technical control supporting global privacy compliance (GDPR/CCPA-style regimes).
- A data governance program (ownership, standards, access/usage controls, lifecycle policies) is what simultaneously increases data value, controls cost, and strengthens compliance for databases moved to the cloud — narrower actions (deleting old data, one migration, a monthly report) only cover a slice of that.
"Data sovereignty is a multifaceted concept, which asserts that data is subject to the laws and governance of the country/region where the data is physically located regardless of who owns or manages the data." — Sovereign cloud data controls
"The laws and regulations that apply to your organization's physical locations" — Meet regulatory compliance and privacy needs
"Encrypting PII helps organizations prevent identity theft and ensures compliance with global privacy laws." — What is data encryption?
"Data governance includes the processes and policies that ensure data is in the proper condition to support business initiatives and operations." / "Data governance determines roles, responsibilities, and standards for data usage." — What is data governance?
Threats, mitigation, and the limits of a one-time fix
- Malware (including spyware) is built to run covertly — it can steal or damage information without the user ever noticing. That's the key difference from ransomware, which typically announces itself by locking data and demanding payment.
- A single security-system upgrade is not "done": long-term security needs an actively maintained program — ongoing expert-driven monitoring and adaptation as threats evolve — not a bigger one-time purchase, longer retention, or waiting on a future product.
- Avoiding vendor lock-in when adopting cloud: build on open standards/open-source technology (e.g. Kubernetes-based multicloud) for portability — not a specific database service, an SLA, or "scalable infrastructure" in the abstract, which are unrelated cloud benefits, not lock-in mitigations.
- The fastest way to integrate PII detection into an app (e.g. flagging passports/credit cards in uploaded photos for manual review) is a pre-trained API like Cloud Vision — no model training needed, unlike AutoML or custom training; BigQuery ML is for structured/tabular data, not images.
- Google commits not to use customer data for ads/ads-profiling — a concrete privacy commitment, distinct from availability testing, data migration policy, or key-management claims.
"VirusTotal is a malware database and visualization solution that provides you with a better understanding of how malware operates within your enterprise." — Mitigating ransomware attacks
"Multicloud solutions, built on top of open source technologies like Kubernetes, provide the flexibility and portability to migrate, build, and optimize applications across multiple clouds and computing environments." — What is multicloud?
"Powered by Google's pretrained computer vision ML models, Cloud Vision API is a readily available API (REST and RPC) that allows developers to easily integrate common vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content." — Cloud Vision
"We do not process your customer data to create ads profiles or improve Google Ads products." — Google Cloud Privacy
Exam traps
- "Policy applied at a folder": inherited by every project and the resources inside those projects; it doesn't skip down to resources only, and doesn't leak sideways to unrelated folders.
- "Fully isolate dev from prod, keep billing simple": a separate project, not a tag (no isolation), a separate network alone (no billing/IAM isolation), or a separate billing account (extra overhead, unneeded).
- "Segregate each department, each with dev/test/prod": one folder per department, one project per environment inside it — never a folder inside a project, and Cloud Identity domains map to the organization, not to departments.
- SaaS: customer is responsible only for its own data and customer-facing content; operability, data-center servers and the network stay the provider's.
- Fully moving to the cloud doesn't remove the need for the customer's own incident response plan, and never shifts physical data-center security onto the customer or an unnamed third party.
- Security Command Center is the one-stop shop for vulnerability/misconfiguration detection, OS patch status (via VM Manager), org-wide compliance posture, and remediation recommendations — Cloud Armor, Cloud Storage, VPC, Cloud Logging and Deployment Manager each do something else.
- CIA triad: "restrict to authorized users" = confidentiality; "stays accurate/trustworthy" = integrity; "stays reliable and accessible when needed" = availability. Don't swap them, and don't confuse any of them with "meets industry standards" (compliance).
- "Unlikely physical access to infrastructure": default encryption at rest protects the data; Google doesn't instantly delete data on intrusion, use "unbreakable quantum storage," or scatter data randomly.
- Grant IAM roles to a Google Group to mirror an LDAP/AD-group access model or regional staff — not to each user individually, and not to a service account (that's a workload identity, not a human-access model).
- GCDS syncs accounts/groups from LDAP/AD; Firebase Authentication and Identity Platform's REST APIs authenticate app end users, they don't provision enterprise directory accounts.
- Identity Platform = CIAM for public apps (password/federated sign-in + authorization data) — not VPNs, firewall rules, or Private Google Access (all networking, unrelated to end-user identity).
- Compute Engine workload calling BigQuery: grant the role to its attached service account, not the instance group, the instance resource, or the whole project.
- "Never over the public internet, both sides process the data": Dedicated/Partner Interconnect; a standard Cloud VPN tunnel is encrypted but still crosses the public internet.
- "Private, low-latency access to a lot of on-prem data": hybrid connectivity (Interconnect/VPN) to the VPC, not Direct Peering (reaches only Google's public-IP services, not your internal VPC resources), not Storage Transfer Service or Transfer Appliance (one-off data movement, not ongoing access).
- "Protect against DDoS": Cloud Armor; Cloud Build, Cloud VPN and Security Command Center each do something else.
- "Growing containerized app needs fine-grained traffic control + fine-grained scaling": GKE (network policies + HPA-style autoscaling), not App Engine, Cloud Run, or plain VMs.
- Data sovereignty ≠ a government's right to access the data, ≠ an individual privacy right, ≠ a mandate to encrypt — it's about which jurisdiction's laws apply.
- Multinational compliance: meet every relevant region's regulations, not one "winning" standard and not just the head office's country.
- "Serve the world fast, keep data in a mandated region": a public cloud provider with a regional residency guarantee, not a provider confined to one region and not a private cloud.
- "Fastest to integrate" + image/PII detection: pre-trained API (Cloud Vision), never AutoML/custom training (both require training first) or BigQuery ML (tabular data only).
- Vendor lock-in mitigation: open standards/open source (portability); a database service, an SLA, or "scalable infrastructure" are unrelated cloud properties.
- "Steals/damages data without the user ever knowing": malware (covert); ransomware typically announces itself.
- A security upgrade six months ago isn't enough on its own: long-term security needs an ongoing, expert-driven program, not a bigger one-time purchase or waiting for a future release.
- Increasing data's value + cost control + compliance together, for cloud databases: a data governance program, not deletion, a NoSQL migration, or a monthly report alone.
Docs
- Access control with IAM (resource hierarchy)
- About the resource hierarchy
- Creating and managing projects
- Shared responsibility, shared fate
- Manage incidents and problems
- Security Command Center
- Assess software vulnerabilities
- Security posture overview
- Compliance management
- What is cloud data security?
- Default encryption at rest
- IAM principals overview
- Google Cloud Directory Sync
- Identity Platform authentication
- Using IAM securely
- Service accounts
- Interconnect overview
- Direct Peering
- Cloud Armor
- GKE network policy
- GKE scaling apps
- Sovereign cloud data controls
- Meet regulatory compliance and privacy needs
- What is data encryption?
- What is data governance?
- Mitigating ransomware attacks
- What is multicloud?
- Cloud Vision
- Google Cloud Privacy