ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 148 - Professional Cloud DevOps Engineer discussion

Report
Export

You are designing a new Google Cloud organization for a client. Your client is concerned with the risks associated with long-lived credentials created in Google Cloud. You need to design a solution to completely eliminate the risks associated with the use of JSON service account keys while minimizing operational overhead. What should you do?

A.
Use custom versions of predefined roles to exclude all iam.serviceAccountKeys. * service account role permissions.
Answers
A.
Use custom versions of predefined roles to exclude all iam.serviceAccountKeys. * service account role permissions.
B.
Apply the constraints/iam.disableserviceAccountKeycreation constraint to the organization.
Answers
B.
Apply the constraints/iam.disableserviceAccountKeycreation constraint to the organization.
C.
Apply the constraints/iam.disableServiceAccountKeyUp10ad constraint to the organization.
Answers
C.
Apply the constraints/iam.disableServiceAccountKeyUp10ad constraint to the organization.
D.
Grant the roles/ iam.serviceAccountKeyAdmin IAM role to organization administrators only.
Answers
D.
Grant the roles/ iam.serviceAccountKeyAdmin IAM role to organization administrators only.
Suggested answer: B

Explanation:

The correct answer is B) Apply the constraints/iam.disableServiceAccountKeyCreation constraint to the organization.

According to the Google Cloud documentation, the constraints/iam.disableServiceAccountKeyCreation constraint is an organization policy constraint that prevents the creation of user-managed service account keys1. User-managed service account keys are long-lived credentials that can be downloaded as JSON or P12 files and used to authenticate as a service account2. These keys pose severe security risks if they are leaked, stolen, or misused by unauthorized entities34. By applying this constraint to the organization, you can completely eliminate the risks associated with the use of JSON service account keys and enforce a more secure alternative for authentication, such as Workload Identity or short-lived access tokens12. This also minimizes operational overhead by avoiding the need to manage, rotate, or revoke user-managed service account keys.

The other options are incorrect because they do not completely eliminate the risks associated with the use of JSON service account keys. Option A is incorrect because it only restricts the IAM permissions to create, list, get, delete, or sign service account keys, but it does not prevent existing keys from being used or leaked. Option C is incorrect because it only disables the upload of user-managed service account keys, but it does not prevent the creation or download of such keys. Option D is incorrect because it only limits the IAM role that can create and manage service account keys, but it does not prevent the keys from being distributed or exposed to unauthorized entities.

Disable user-managed service account key creation, Disable user-managed service account key creation. Service accounts, User-managed service accounts. Help keep your Google Cloud service account keys safe, Help keep your Google Cloud service account keys safe. Stop Downloading Google Cloud Service Account Keys!, Stop Downloading Google Cloud Service Account Keys! [Service Account Keys], Service Account Keys. [Disable user-managed service account key upload], Disable user-managed service account key upload. [Granting roles to service accounts], Granting roles to service accounts.

asked 18/09/2024
Bjorn-Rune Ness Lind
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first