CLOUD-SECURITY-ENGINEER practice question 14 of 35
You plan to deploy your cloud infrastructure using a CI/CD cluster hosted on Compute Engine. You want to minimize the risk of its credentials being stolen by a third party. What should you do?
Full set: 317 questionsThe best practice for applications running on Compute Engine is to use a service account, not a user account. Service accounts are designed for non-human workloads. To minimize the risk of credential theft, you should prevent the creation of long-lived, user-managed service account keys. The constraints/iam.disableServiceAccountKeyCreation organization policy enforces this at scale. The CI/CD cluster can then use the more secure, automatically rotated credentials provided by the instance metadata server, eliminating the risk of static keys being leaked.
A. User accounts are for humans, not applications. Managing credentials in a self-hosted vault adds unnecessary complexity and risk compared to using attached service accounts.
B. A user account is the wrong identity type for a workload. Disabling service account creation prevents new service accounts but doesn't secure the one in use.
D. This policy relates to extending the lifetime of short-lived credentials, which is not the primary method for preventing the theft of long-lived static keys.
1. Google Cloud Documentation
"Best practices for working with service accounts"
Section: "Use service accounts for applications"
and Section: "Avoid using service account keys". It states
"We strongly recommend that you avoid using service account keys when possible... To further reduce risk
you can disable service account key creation".
2. Google Cloud Documentation
"Organization policy constraints"
Section: "IAM constraints". The description for iam.disableServiceAccountKeyCreation states it "Disables creation of external service account keys."
3. Google Cloud Documentation
"Authenticating workloads"
Section: "Best practices for workload authentication". It recommends using attached service accounts for workloads on Compute Engine.
Keep practicing
Take the free CLOUD-SECURITY-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CLOUD-SECURITY-ENGINEER practice questions
- Question 1You have created an OS image that is hardened per your organization’s security standards …
- Question 2An organization’s typical network and security review consists of analyzing application t…
- Question 3You work for a large organization where each business unit has thousands of users. You ne…
- Question 4Your team needs to configure their Google Cloud Platform (GCP) environment so they can ce…
- Question 5You are a security engineer at a finance company. Your organization plans to store data o…
- Question 6A customer needs an alternative to storing their plain text secrets in their source-code …
