An e-commerce organization uses Cloud Build and Cloud Deploy to execute automated continuous deployment pipelines for microservices backed by Cloud SQL. The cloud architecture team must secure the release pipeline, prevent state corruption during automated Infrastructure as Code (IaC) updates, and ensure application availability during database-backed release rollouts. Which TWO architectural and operational actions should the team implement?
- Configure Cloud Build to impersonate fine-grained target service accounts using dedicated IAM roles, and store Terraform state in a Cloud Storage backend with object versioning and state locking enabled.Cevap
- BAssign the primitive Owner role to the Cloud Build service account across all target Google Cloud projects to streamline resource deployment without permission failures.
- CGrant the Service Account Admin role directly to the Cloud Deploy runner service account so it can manage runtime identities across GKE clusters.
- Ensure database schema updates are backward-compatible with previous application code versions before executing progressive release rollouts.Cevap
- EStore Terraform state files in the local Cloud Build ephemeral workspace directory during pipeline runs to maximize pipeline execution velocity.
Cevap
The correct recommendations are configuring Cloud Build to use least-privilege service account impersonation with a versioned Cloud Storage backend for Terraform state, and enforcing backward-compatible database schema changes before progressive application deployments.
Automating release pipelines requires balancing infrastructure state safety, security, and application continuity. Impersonating targeted service accounts with fine-grained roles alongside a Cloud Storage backend featuring versioning and locking ensures secure, conflict-free IaC management. Additionally, designing database migrations to be backward-compatible protects active traffic during progressive release rollouts.
Adım Adım Çözüm
Anahtar Kavram
Automating Secure CI/CD Pipelines and Zero-Downtime Release Strategies