An automotive auction platform is establishing an automated testing procedure to validate new microservices infrastructure on Google Cloud before deploying to production. The automated pipeline provisions isolated, ephemeral staging environments using Terraform, executes automated stress and load tests, and tears down resources. During automated validation runs for major releases, test pipeline executions repeatedly fail due to API quota errors when attempting to launch high-density Compute Engine instances. Additionally, security audits revealed that the CI/CD service account was granted broad administrative privileges to manage service accounts. Which solution should the cloud architect implement to ensure reliable validation procedures while adhering to Google Cloud best practices?
- Implement automated pre-flight checks in the validation pipeline to audit and request regional resource quotas prior to provisioning, and grant the deployment service account the Service Account User role (roles/iam.serviceAccountUser) on specific runtime service accounts.Cevap
- BGrant the deployment pipeline service account the Service Account Admin role across the organization to automatically bypass regional resource limits during automated load testing procedures.
- CStore Terraform state files on the local disk of the temporary CI/CD runner to avoid Cloud Storage quota limits and decrease environment creation times during stress test validation.
- DRemove fine-grained IAM permissions from the validation service account and rely exclusively on VPC Service Controls perimeters to prevent unauthorized resource provisioning during test execution.