Skip to content

Chapter 9 of 11

Google Cloud Security Best Practices

Apply hierarchy, identity, policy, network, data, detection, and recovery controls.

44 minutes 10 quick checksBy Subha Prasad
Lesson 9 of 11Course navigation

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.

Which statement correctly describes Security Command Center?
Which term matches this explanation: Google Cloud's security posture and threat-finding platform.
Which statement correctly describes Cloud KMS?
Which term matches this explanation: A managed service for creating and controlling cryptographic keys.
Which statement correctly describes Secret Manager?
Which term matches this explanation: A managed store for versioned application secrets.
Which statement correctly describes VPC Service Controls?
Which term matches this explanation: A service perimeter control that reduces data-exfiltration risk for supported services.
Which statement correctly describes workload identity federation?
Which term matches this explanation: Exchanging external identity assertions for short-lived Google Cloud access without service-account keys.

0 of 10 checks passed

Your progress is saved on this device.