Lesson content
Read, practise, then check your understanding
Google Cloud Security Best Practices
Google Cloud security is built through organization governance, IAM, Organization Policy, encryption, Secret Manager, Cloud KMS, network controls, Security Command Center, audit logs, vulnerability management, and incident operations.
Core ideas
- Organization Policy applies preventive constraints across folders and projects.
- Security Command Center aggregates posture, misconfiguration, vulnerability, and threat findings according to tier and integrations.
- VPC Service Controls creates service perimeters to reduce data-exfiltration paths for supported APIs.
- Cloud KMS controls cryptographic keys, while Secret Manager stores and versions application secrets.
Design and operating model
Create a governed resource hierarchy, federate identity, prohibit unmanaged service-account keys, restrict locations and public exposure, centralize logs, encrypt sensitive data, scan artifacts, and enforce baselines through policy and infrastructure as code. Test containment and recovery.
Example
gcloud services enable \
secretmanager.googleapis.com \
cloudkms.googleapis.com
printf '%s' 'replace-in-training-only' | \
gcloud secrets create training-api-key \
--data-file=- \
--replication-policy=automatic
Run examples in a disposable training project. Replace project IDs, Regions, identities, resource names, sizes, and policies with reviewed values, and verify current Google Cloud CLI and service requirements before production use.
Production guidance
- Prefer short-lived federation and service-account impersonation over downloaded JSON keys.
- Protect organization administrators and break-glass identities with strong controls and monitoring.
- Prioritize exposed resources, privileged identities, sensitive datasets, and active attack paths.
The chapter quiz follows the lesson and checks both service vocabulary and architecture decisions.
Knowledge check
Answer every question correctly to complete this chapter.
0 of 10 checks passed
Your progress is saved on this device.