Soru

Zorluk: KolayProvisioning Storage and Database Systems

A DevOps engineer is provisioning a Google Cloud Storage bucket to serve as a centralized remote backend for Infrastructure as Code (IaC) deployment state. The team requires a mechanism to recover previous state file revisions in case an automated pipeline introduces state corruption or accidental overwrites. Which configuration should be enabled on the Cloud Storage bucket to satisfy this requirement?

  1. Enable Object Versioning on the Cloud Storage bucket.Cevap
  2. B
    Store the state files in an unversioned local directory on the deployment runner.
  3. C
    Configure Customer-Supplied Encryption Keys (CSEK) on the bucket.
  4. D
    Provision a multi-region Cloud Spanner database instance to store raw state files.

Cevap

Enable Object Versioning on the Cloud Storage bucket.
Enabling Object Versioning on a Google Cloud Storage bucket maintains a complete historical record of object modifications. If an automated IaC pipeline applies a breaking change or corrupts the state file, administrators can retrieve and restore prior object versions directly.

Adım Adım Çözüm

1
Identify the operational requirement for managing Infrastructure as Code (IaC) state files.
The requirement calls for preventing data loss and restoring previous file revisions when overwrites occur.
Automated pipeline runs can overwrite remote state files during deployment failures.
2
Select the appropriate Cloud Storage feature for revision control.
Object Versioning maintains multiple historical variants of objects within the same bucket.
If a state file becomes corrupted, Object Versioning allows instant rollback to the last known good state revision.

Anahtar Kavram

Cloud Storage Object Versioning for IaC State Protection
Tahmini Süre:1m 0s
Bu soruyu puanla