Services Español / Service accounts

Service accounts for Google Cloud certification exams

A service account is an identity for an application or workload rather than a person. Questions on it are about which account a workload runs as, what roles it holds and how to avoid long-lived keys.

In 219 practice questions across 13 practice banks

Professional Cloud Security Engineer VPC Service Controls

Your company’s storage team manages all product images within a specific Google Cloud project. To maintain control, you must isolate access to Cloud Storage for this project, allowing the storage team to manage restrictions at the project level. They must be restricted to using corporate computers. What should you do?

  1. IAM grants cannot express 'corporate device' context — allow policies have no posture field.

  2. Firewall blocks do not evaluate user device posture — they filter packets, not identity claims.

  3. The access level with a device policy applied at project level matches the requirements.

  4. An org-wide perimeter with IP rules does not verify managed devices.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

Key concepts for practice

  • Attach a user-managed service account to the resource (VM, Cloud Run service, GKE workload) instead of creating key files.
  • Grant the smallest role that works, and avoid the default Compute Engine service account for production workloads.
  • Service account impersonation and Workload Identity Federation replace downloadable keys for access from code, CI systems and other clouds.
  • A service account is both an identity and a resource: who may act as it is controlled separately from what it can do.