Professional Cloud Security Engineer free question 5 / 10 · Domain 3: Ensuring data protection
You destroyed one version of a Secret Manager secret that has delayed destruction configured. What is the state of the version during the grace period?
- The version is destroyed at once, and a copy of its metadata can be restored
- The version is disabled, and its destruction can be canceled until the deadline
- The version is copied to a new version number, and the old number is then deleted
- The version stays enabled, and normal access continues until the deadline passes
Show the answer and explanation
Answer: B
Why this is correct
The documentation on delaying the destruction of secret versions says that when you destroy a version of a secret that has delayed destruction enabled, the version is disabled and cannot be used, and it is destroyed at the end of the configured period. A user with the Secret Manager Admin role can cancel the scheduled destruction and restore the version by enabling or disabling the version. The version cannot be used during the grace period, but the destruction can be canceled until the deadline.
Why the other options are wrong
"The version is copied to a new version number, and the old number is then deleted" … The page says the version itself is disabled and scheduled for destruction, and that an administrator can cancel the destruction and restore that same version by enabling or disabling it. The page describes no copy to a new version number.
"The version is destroyed at once, and a copy of its metadata can be restored" … The purpose of a grace period is to avoid an immediate and irreversible destruction of the secret value.
"The version stays enabled, and normal access continues until the deadline passes" … The version is not kept available while it waits. It is disabled during the grace period.
Key point
Plan for the grace period in operations. The page says that destroying a version sends a SECRET_VERSION_DESTROY_SCHEDULED notification to the Pub/Sub topics configured on the secret, so a mistaken destroy can be noticed before the deadline.