exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 104 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 104
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

A third-party application needs to have a service account key to work properly. When you try to export the key from your cloud project, you receive an error: “The organization policy constraint iam.disableServiceAccounKeyCreation is enforced.” You need to make the third-party application work while following Google-recommended security practices.

What should you do?

  • A. Enable the default service account key, and download the key.
  • B. Remove the iam.disableServiceAccountKeyCreation policy at the organization level, and create a key.
  • C. Disable the service account key creation policy at the project's folder, and download the default key.
  • D. Add a rule to set the iam.disableServiceAccountKeyCreation policy to off in your project, and create a key.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bhunias
Highly Voted 5 months, 2 weeks ago
Selected Answer: D
(D) is better choice, exemption of policy at Org level is always riskier than to exempt it at project level (B). But, for answer (D) - I'm assuming here rule means assigning tag.
upvoted 5 times
...
kitaharazyl
Most Recent 1 month, 2 weeks ago
Selected Answer: D
A. Enabling the default service account key would bypass security controls and isn't recommended. B. Removing the policy at the organization level would weaken security across the entire organization, which is excessive for solving a single application's needs. C. Disabling the policy at the folder level would affect all projects in that folder, creating unnecessary security exposure. D. Adding a rule to set the policy to "off" specifically for your project is the most targeted approach. This maintains the security policy for the rest of the organization while enabling just what you need for this specific project. Therefore, the correct answer is D: Add a rule to set the iam.disableServiceAccountKeyCreation policy to off in your project, and create a key.
upvoted 1 times
...
JonathanSJ
2 months, 2 weeks ago
Selected Answer: B
I will go for B. when an organization policy constraint—such as iam.disableServiceAccountKeyCreation—is enforced at the organization level, lower-level policies (at the folder or project level) cannot override that enforcement. This means that adding a rule at the project level (Option D) to set iam.disableServiceAccountKeyCreation to off will have no effect because the enforced organization-level policy takes precedence.
upvoted 1 times
...
xhilmi
4 months, 4 weeks ago
Selected Answer: D
To address the error caused by the organization policy constraint "iam.disableServiceAccountKeyCreation," and to enable the third-party application to work while adhering to Google-recommended security practices, the recommended action is (Option D). By adding a rule to set the "iam.disableServiceAccountKeyCreation" policy to "off" specifically in your project, you can override the organization-level constraint temporarily for your project. This allows you to create the necessary service account key for the third-party application without compromising the organization-wide security policy. This targeted adjustment ensures that the key creation is enabled only for the project in question, maintaining security standards across the broader organization.
upvoted 4 times
...
Andrei_Z
5 months, 2 weeks ago
Selected Answer: D
The correct answer is D. Using service account keys is against best practices so if needed you only enable it only on one project.
upvoted 2 times
...
syslog
6 months ago
I think D is better, you can disable the Org Policy only on the project in which the key is.
upvoted 4 times
...
mshafa
6 months ago
Correct answer is B If the iam.disableServiceAccountCreation constraint is applied, attempting to enable these services will fail because their default service accounts cannot be created. To resolve this issue: Temporarily remove the iam.disableServiceAccountCreation constraint. Enable the desired services. Create any other desired service accounts. Finally, re-apply the constraint. https://cloud.google.com/resource-manager/docs/organization-policy/restricting-service-accounts#disable_service_account_key_creation
upvoted 3 times
...
Jason_Cloud_at
6 months, 1 week ago
Selected Answer: B
Right answer
upvoted 3 times
...
ManishKS
7 months ago
COrrect Answer is B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago