Exams / GCP-CDL / D1 Trust and Security with Google Cloud
Trust and Security with Google Cloud (part 1)
- Exam domain: Trust and Security with Google Cloud
Encryption by default
Google Cloud encrypts customer content at rest and in transit, automatically, with no customer configuration:
"Google Cloud encrypts all customer content stored at rest and in transit between our facilities, without any action required from the customer, using one or more encryption mechanisms." — Encryption for Cloud Security
- Default (Google-managed) encryption needs nothing from the customer.
- Cloud KMS lets the customer supply or manage its own keys (CMEK/CSEK) on top of the default layer — an option, not a requirement for baseline protection.
- Cloud DLP (Sensitive Data Protection) is a separate product: it finds and de-identifies PII (mask, redact, tokenize); it does not provide the platform's baseline encryption.
Data ownership and portability
The customer owns its data, end to end:
"We start from the fundamental premise that as a Google Cloud customer, you own your customer data." — Google Cloud Privacy Resource Center
Customers can export or move data out of Google Cloud using normal product capabilities (console, APIs, client libraries), plus a dedicated exit program with free data transfer for a full migration off the platform:
"Google Cloud is dedicated to offering customers transparent and flexible methods for managing and moving their data." — Data Portability and Switching Procedures
No outbound-transfer toggle or support ticket is required for ordinary data export.
Compliance assurance
Google Cloud backs its security/privacy claims with independent, third-party verification rather than self-certifying:
"We also regularly undergo independent verification—achieving certifications, attestations, and audit reports to help demonstrate compliance." — Google Cloud Compliance Resource Center
| Need | Tool |
|---|---|
| Browse/request certificates (ISO/IEC 27001, SOC reports, self-assessments), on demand | Compliance Reports Manager |
| Security posture, findings, vulnerabilities | Security Command Center (different product) |
"Compliance reports manager provides you with easy, on-demand access to these critical compliance resources, at no additional cost." — Compliance Reports Manager
Resource hierarchy as a policy boundary
- Folders group a team's or department's projects and act as an IAM/org-policy inheritance point.
- IAM allow policies and organization policies set on a folder are inherited by every project beneath it.
- A policy set at the organization root is inherited by every current and future folder/project — the only way to guarantee a constraint (e.g., "no external IPs on VMs") covers resources that don't exist yet.
- Billing reports can be grouped by folder/organization, so folders preserve cost visibility while isolating teams.
"Note: Allow policies are additive and inherited down the hierarchy." — Access control for folders with IAM
"Access control policies (such as Identity and Access Management (IAM) roles) and organization policies applied at this level are inherited by every resource in the organization." — About the resource hierarchy
IAM roles
| Role type | Scope | Exam signal |
|---|---|---|
| Basic (primitive): Owner, Editor, Viewer | Broad, project-wide | "Don't use basic roles unless you have no alternative or are using them in a test environment." Never the "efficient"/"least privilege" answer. |
| Predefined, by job function | Scoped to a service or job function | The fast, recommended way to grant department/role-appropriate access |
| Custom | Hand-picked permissions | Maximum precision, more maintenance |
"Identity and Access Management (IAM) offers predefined roles that are designed for specific job functions. These roles contain all of the permissions typically required to access the services that are relevant to a certain job function." — Predefined roles for job functions
Your own IT/IAM administrators — not Google — define who on your team may access your Google Cloud data:
"Typically, your IAM administrator is responsible for controlling access to resources. Your administrator can give you permissions to access a single resource or all the resources in a project, folder, or organization." — Authorization and access control
Network security: keeping workloads off the public internet
| Need | Use |
|---|---|
| VM with no external IP must still reach Google APIs (BigQuery, Cloud Storage, …) | Private Google Access (subnet setting) |
| VM with no external IP needs outbound internet access | Cloud NAT |
| Private connection to on-premises, set up fast, over the internet | Cloud VPN (IPsec tunnel) |
| Private, dedicated, higher-bandwidth connection to on-premises | Cloud Interconnect (slower to provision) |
| Control which traffic enters/leaves the network | Firewall rules |
"VM instances that only have internal IP addresses (no external IP addresses) can use Private Google Access. They can reach the external IP addresses of Google APIs and services." — Private Google Access
"HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on-premises network to your VPC network through an IPsec VPN connection." — Cloud VPN overview
To guarantee no VM, anywhere, ever gets an external IP — including in folders/projects that don't exist yet — set the compute.vmExternalIpAccess organization-policy constraint at the organization root node, not on existing folders or projects (those wouldn't cover future ones).
Zero trust and transformational security
A tactical cloud migration tends to keep perimeter-based thinking ("inside the network = trusted"). A transformational one adopts zero trust: no user, device or network location is inherently trusted, and every request is verified, across multiple layered controls (defense in depth) — not three blunt roles (owner/editor/viewer) and a trusted perimeter.
"The zero-trust model shifts the security focus from perimeter-based security to an approach where no user or device is considered to be inherently trustworthy. Instead, every access request must be verified, regardless of its origin." — Implement zero trust
Storage and observability basics
- Cloud Storage: managed object storage for unstructured data (files, images, video); IAM-controlled secure sharing; bucket location is explicitly chosen, never random.
- Cloud SQL / Cloud Spanner: relational databases — wrong answer whenever the data is unstructured files.
- BigQuery: analytics warehouse, not general file storage.
- Cloud Logging: centralizes and makes searchable logs from workloads, including containers, through Logs Explorer — the tool to search across multiple containers for an issue.
- Cloud Trace: request latency across services (not log search). Cloud Monitoring: metrics, dashboards, alerting (not log search).
- Cloud Data Loss Prevention: detects and de-identifies PII (mask/redact/tokenize) to reduce the risk of handling sensitive data — distinct from Cloud Armor (WAF/DDoS) and Secret Manager (secrets storage).
Cost model and SLAs
- Cloud is OpEx, pay-as-you-go: no upfront capital investment, including for security capabilities — but configuration responsibility is still shared, and no provider "guarantees" security.
- An organization moving to the cloud must itself adapt its spending/governance to variable, consumption-based costs; the provider still manages the underlying network infrastructure.
- An SLA breach (e.g., missed 99.99% availability) typically earns the customer a service credit/refund — the real business risk is lost customers from the downtime itself, not data loss or automatic SLA renegotiation.
Exam traps
- "Encrypted by default" / "no action required": default encryption at rest and in transit; never Security Command Center or Cloud DLP (those are separate products).
- IaaS: provider owns physical security only; customer owns guest OS, software, data-access policy. PaaS → customer still always owns data-access policy, even though the provider now owns OS/platform/network too.
- "Owns hardware maintenance / capacity": always the provider. "Owns architecture / deployment automation / fixing app security bugs" → always the customer.
- "Policy must cover folders/projects created in the future": organization root node, not "all existing" folders or projects.
- Folders = IAM/org-policy inheritance boundary for a team, and a cost-reporting grouping — not a separate organization, and not a single giant project.
- "Fast and efficient way to tailor access per department": predefined job-function roles, not basic roles, not per-employee least-privilege crafting, not one shared service account.
- "Confirm identity" = authentication. "Decide what they can do" = authorization. Don't swap them.
- SSO + Active Directory as authoritative source: disabling the AD account blocks sign-in; removing IAM bindings or 2FA does not achieve the same lifecycle tie-in.
- "No external IP, but must reach BigQuery/Cloud Storage": Private Google Access, not Cloud NAT (NAT implies general internet egress) and not IAP (that's for app-level access control).
- "Set up private connectivity fast": Cloud VPN (IPsec, no new circuit); Cloud Interconnect is private/dedicated but slower to provision.
- Zero trust / "transformational" security: no implicit trust by network location, verify every request, layered controls — not perimeter trust, not just owner/editor/viewer.
- SLA miss: service credit/refund and risk of losing customers; not a proportional fee hike, not an automatic shutdown, not guaranteed data loss.
- Data ownership and portability: the customer owns the data and can move it out any time through normal capabilities (plus a dedicated exit/transfer program) — no special console toggle or support ticket needed.
- "Access to data documentation/certificates (ISO 27001, SOC)": Compliance Reports Manager, not Security Command Center or Network Intelligence Center.
Docs
- Default encryption at rest
- Encryption for Cloud Security
- AWS Shared Responsibility Model
- Google Cloud Privacy Resource Center
- Data Portability and Switching Procedures
- Google Cloud Compliance Resource Center
- Compliance Reports Manager
- Organize resources (folders)
- Access control for folders with IAM
- About the resource hierarchy
- Billing reports by project hierarchy
- Predefined roles for job functions
- Choose which type of role to use
- Authorization and access control
- Supporting compliance by restricting customer personnel data access
- Federate Google Cloud with Active Directory
- Configure single sign-on with Active Directory
- Private Google Access
- Cloud VPN overview
- Choosing a Network Connectivity product
- Organization policy constraints
- Implement zero trust
- Cloud Storage overview
- Cloud Storage bucket locations
- Cloud Logging documentation
- De-identifying sensitive data (Cloud DLP)
Social engineering
Phishing is the standard social-engineering attack: a deceptive message (often impersonating a trusted sender, like an ISP or bank) tricks the victim into giving up credentials or sensitive data. It is distinct from technical attacks like SQL injection or DDoS, and from ransomware (which encrypts data for extortion).