A global logistics provider is establishing an automated testing and validation procedure for a critical order-processing engine deployed on Google Cloud. The deployment pipeline uses Infrastructure as Code (IaC) to provision regional GKE clusters and virtual networking resources. The lead architect must ensure the testing procedure automatically validates infrastructure availability constraints and state safety without compromising cluster security or least privilege access. Which TWO validation practices should be incorporated into the automated deployment procedure? (Select 2 answers)
- Include an automated pre-flight step in the deployment pipeline that queries Google Cloud Quotas APIs to verify regional resource quotas prior to executing IaC provisioning.Cevap
- BTemporarily disable control plane authorized networks on private Google Kubernetes Engine (GKE) clusters during validation runs so external pipeline runners can execute cluster administration commands.
- Configure the IaC deployment pipeline to store state files in a remote Cloud Storage bucket with Object Versioning and state locking enabled.Cevap
- DGrant the Service Account Admin role (roles/iam.serviceAccountAdmin) to the CI/CD pipeline service account so it can attach service accounts to compute instances during resource testing.
Cevap
The correct validation practices are to include an automated pre-flight quota check against Google Cloud Quotas APIs prior to provisioning resources, and to store IaC state files in a remote Cloud Storage bucket with Object Versioning and state locking enabled.
Automating quota verification using Cloud Quotas APIs prevents deployment failures from unrequested quota limits, while using Cloud Storage with versioning and state locking protects IaC state integrity during testing runs.
Adım Adım Çözüm
Anahtar Kavram
Developing automated testing procedures for infrastructure provisioning, quota validation, and state isolation in GCP CI/CD pipelines.