Question

Difficulty: MediumManaging Cloud Projects and Resource Hierarchy

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?

  1. Execute `gcloud projects undelete analytics-prod-102` within the 30-day recovery window.Answer
  2. B
    Create 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.
  3. C
    Assign the primitive Owner role to the project service account to automatically trigger resource state restoration.
  4. D
    Unlink the project ID from its existing billing account and re-associate it with a new billing account to reset the project lifecycle status.

Answer

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.

Step-by-Step Solution

1
Identify the current lifecycle state of the shut-down project.
Confirm that the project was shut down less than 30 days ago and is currently in the `DELETE_REQUESTED` state.
Google Cloud holds deleted projects in a soft-deleted state for 30 days before permanent purging.
2
Execute the restoration command using the Google Cloud CLI.
Run `gcloud projects undelete analytics-prod-102`.
The `gcloud projects undelete` command reverses the shutdown process and restores the project and its resources to active status.

Key Concept

Project Lifecycle Management and Restoration
Rate this question