exam questions

Exam Professional Cloud Security Engineer All Questions

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

Exam Professional Cloud Security Engineer topic 1 question 24 discussion

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

A company's application is deployed with a user-managed Service Account key. You want to use Google-recommended practices to rotate the key.
What should you do?

  • A. Open Cloud Shell and run gcloud iam service-accounts enable-auto-rotate --iam-account=IAM_ACCOUNT.
  • B. Open Cloud Shell and run gcloud iam service-accounts keys rotate --iam-account=IAM_ACCOUNT --key=NEW_KEY.
  • C. Create a new key, and use the new key in the application. Delete the old key from the Service Account.
  • D. Create a new key, and use the new key in the application. Store the old key on the system as a backup key.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
mdc
Highly Voted 3 years, 4 months ago
C is correct. As explained, You can rotate a key by creating a new key, updating applications to use the new key, and deleting the old key. Use the serviceAccount.keys.create() method and serviceAccount.keys.delete() method together to automate the rotation. https://cloud.google.com/iam/docs/creating-managing-service-account-keys#deleting_service_account_keys
upvoted 11 times
...
aliounegdiop
Most Recent 1 year, 1 month ago
B is correct. for C creating a new key and deleting the old one from the Service Account, is not recommended. Deleting the old key without replacing it could prevent your application from authenticating and accessing resources.
upvoted 1 times
aliounegdiop
1 year, 1 month ago
my bad it should D. having a backup key in cae of problem with the new key
upvoted 1 times
eeghai7thioyaiR4
6 months ago
If you keep the old key active, then your rotate is worthless (because anyone could still use the old key) C is the solution: rotate and destroy the previous key
upvoted 3 times
...
...
...
[Removed]
1 year, 3 months ago
Selected Answer: C
"C" appears to be the most accurate. https://cloud.google.com/iam/docs/key-rotation#process
upvoted 3 times
...
[Removed]
1 year, 3 months ago
"C" appears to be the most accurate. https://cloud.google.com/iam/docs/key-rotation
upvoted 2 times
[Removed]
1 year, 3 months ago
Specifically: https://cloud.google.com/iam/docs/key-rotation#process
upvoted 1 times
...
...
megalucio
1 year, 3 months ago
Selected Answer: C
C it is the ans
upvoted 1 times
...
amanshin
1 year, 3 months ago
The correct answer is C. Create a new key, and use the new key in the application. Delete the old key from the Service Account. Google recommends that you rotate user-managed service account keys every 90 days or less. This helps to reduce the risk of unauthorized access to your resources if the key is compromised.
upvoted 1 times
...
gcpengineer
1 year, 5 months ago
Selected Answer: C
C is the ans
upvoted 1 times
gcpengineer
1 year, 5 months ago
https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys#rotate-keys
upvoted 1 times
...
...
aashissh
1 year, 6 months ago
Selected Answer: D
The recommended practice to rotate a user-managed Service Account key in GCP is to create a new key and use it in the application while keeping the old key for a specified period as a backup key. This helps to ensure that the application's service account always has a valid key and that there is no service disruption during the key rotation process. Therefore, the correct answer is option D.
upvoted 3 times
...
GCP72
2 years, 1 month ago
Selected Answer: C
The correct answer is C
upvoted 2 times
...
absipat
2 years, 4 months ago
c of course
upvoted 1 times
...
DebasishLowes
3 years, 7 months ago
Ans : C
upvoted 2 times
...
[Removed]
3 years, 12 months ago
Ans - C https://cloud.google.com/iam/docs/understanding-service-accounts#managing_service_account_keys
upvoted 4 times
...
ArizonaClassics
4 years, 2 months ago
C is the right choice for me
upvoted 4 times
...
aiwaai
4 years, 2 months ago
Correct Answer: C
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