D4: Creating Service Accounts
Google Cloud Associate Cloud Engineer exam practice questions · 11 flashcards
Question
What is a service account?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Creating Service Accounts practice questions and answers
- What is a service account?A non-human identity used by applications and workloads.
- Service account email format?NAME@PROJECT_ID.iam.gserviceaccount.com.
- How do you create a service account?gcloud iam service-accounts create NAME --display-name=...
- What are default service accounts?Created when some services are enabled, e.g. Compute Engine default SA (PROJECT_NUMBER-compute@developer.gserviceaccount.com).
- Why avoid default service accounts?They can have broad roles (historically Editor).
- Which org policy stops automatic Editor grants to default SAs?iam.automaticIamGrantsForDefaultServiceAccounts.
- What are Google-managed service accounts (service agents)?Accounts Google uses to act on your resources, e.g. service-PROJECT_NUMBER@...gserviceaccount.com.
- Should you delete service agents?No; services may break.
- How do you disable a service account?gcloud iam service-accounts disable SA_EMAIL.
- How do you list service accounts?gcloud iam service-accounts list.
- Best practice: one SA per what?Per application/workload, with only needed roles.