D3: Protecting Compute Instance Metadata
Google Cloud Professional Cloud Security Engineer exam practice questions · 10 flashcards
Question
What is instance metadata?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Protecting Compute Instance Metadata practice questions and answers
- What is instance metadata?Key-value data and credentials served by the metadata server (169.254.169.254).
- Why not store secrets in metadata?Any process on the VM or users with metadata access can read it.
- Risk of SSRF with metadata?Attackers may fetch SA tokens from the metadata server.
- How to block project-wide SSH keys?block-project-ssh-keys=TRUE.
- Better alternative to metadata SSH keys?OS Login.
- GKE metadata protection?Workload Identity Federation for GKE uses the GKE metadata server, hiding node credentials.
- What is Shielded VM?Secure boot, vTPM and integrity monitoring.
- Who can modify metadata?Users with compute.instances.setMetadata permissions; restrict them.
- Startup scripts risk?Contain sensitive data visible in metadata; use Secret Manager instead.
- Legacy metadata endpoints?Disabled; only v1 with Metadata-Flavor header.