An Associate Cloud Engineer accidentally initiated the shutdown of a Google Cloud project named `analytics-prod-102` using the Cloud Console. The project contained several critical cloud resources. The team needs to immediately restore the project to an active state, and less than 7 days have elapsed since the shutdown request. Which command or procedure should be used to restore the project?
- Execute `gcloud projects undelete analytics-prod-102` within the 30-day recovery window.Cevap
- BCreate a new folder in the resource hierarchy with the exact same name and rely on IAM policy inheritance from the Organization to recreate the resources.
- CAssign the primitive Owner role to the project service account to automatically trigger resource state restoration.
- DUnlink the project ID from its existing billing account and re-associate it with a new billing account to reset the project lifecycle status.
Cevap
Execute the command `gcloud projects undelete analytics-prod-102` before the 30-day soft-deletion recovery window expires.
When a Google Cloud project is shut down, it is marked for deletion and enters a 30-day grace period. During this time, the project can be recovered along with its resources by executing the `gcloud projects undelete [PROJECT_ID]` command.
Adım Adım Çözüm
Anahtar Kavram
Project Lifecycle Management and Restoration