Easy1 markMultiple Choice
Domain 5.2: Managing service accountsService AccountsCompute EngineIAMSecurity

GCP ACE · Question 46 · Domain 5.2: Managing service accounts

When you create a new Compute Engine instance without specifying a service account, it automatically uses the Compute Engine default service account.

What primitive IAM role is granted to this default service account by default?

Answer options:

A.

Viewer

B.

Editor

C.

Owner

D.

Compute Instance Admin

How to approach this question

Recall the default permissions of the default compute service account.

Full Answer

B.Editor✓ Correct
The Compute Engine default service account (`[PROJECT_NUMBER]-compute@developer.gserviceaccount.com`) is automatically created in your project and, by default, is granted the primitive `Editor` role. Because this grants broad access to modify almost any resource in the project, best practices dictate creating custom service accounts with least privilege instead of using the default one.

Common mistakes

Assuming Google defaults to least privilege (e.g., Viewer). Historically, to make things 'just work' for developers, the default was set to Editor.

Practice the full GCP Associate Cloud Engineer Practice Exam 7

50 questions · hints · full answers · grading

More questions from this exam