A financial software firm uses Google Cloud Deploy to automate releases across multiple staging and production Kubernetes clusters. To meet strict regulatory auditing standards, all deployment target definitions and pipeline release manifests must be immutably tracked and automatically applied without manual interventions. However, an operator recently modified target cluster endpoints directly using the gcloud CLI to resolve an emergency outage, causing subsequent automated pipeline runs to fail due to state inconsistency. Which architectural practice should the Cloud Architect implement to eliminate configuration drift and ensure compliant pipeline provisioning?
- Define Cloud Deploy pipelines and targets declaratively in version-controlled YAML manifests managed by Terraform, applying changes exclusively through an automated CI/CD pipeline while restricting direct write IAM permissions.Cevap
- BAllow developers to run imperative gcloud deploy update commands during emergencies, relying on post-incident manual sync procedures to update target configurations.
- CGrant the deployment pipeline runner service account the Owner primitive IAM role at the project level to automatically overwrite any conflicting manual changes during execution.
- DMaintain deployment target state files on local unversioned disk storage attached to build worker nodes to reduce provisioning latency.
Cevap
Define Cloud Deploy pipelines and target resources declaratively using version-controlled manifests managed via Infrastructure as Code (Terraform) in an automated pipeline, revoking manual write permissions.
Managing Cloud Deploy pipelines and targets declaratively through version-controlled Infrastructure as Code (such as Terraform) ensures all infrastructure changes are peer-reviewed, reproducible, and auditable. Revoking direct write access from human operators prevents imperative CLI drift and maintains continuous deployment reliability.
Adım Adım Çözüm
Anahtar Kavram
Continuous Deployment Infrastructure Automation and Drift Prevention
Tahmini Süre:2m 0s