
Answer-first summary for fast verification
Answer: Use the undelete command to recover the deleted service account.
Option B is the correct answer because Google Cloud provides an undelete command that can recover a recently deleted service account (within 30 days of deletion). This approach restores the exact same service account with its original identity and permissions, allowing the application to resume normal operation immediately without any configuration changes or security compromises. Option A is insecure as it disables authentication entirely. Option C is incorrect because creating a new service account with the same name does not inherit the original permissions or identity. Option D requires modifying application configurations and permissions, which is slower and more complex than simply undeleting the original service account.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your team uses a service account to authenticate data transfers from a Compute Engine virtual machine instance to a specific Cloud Storage bucket. An engineer accidentally deletes the service account, which breaks the application. You need to restore application functionality as quickly as possible without compromising security.
What should you do?
A
Temporarily disable authentication on the Cloud Storage bucket.
B
Use the undelete command to recover the deleted service account.
C
Create a new service account with the same name as the deleted service account.
D
Update the permissions of another existing service account and supply those credentials to the applications.