A healthcare technology organization is conducting an architecture audit of its continuous integration and continuous delivery (CI/CD) pipelines. The pipelines utilize Google Cloud Build to run automated security scans, build container images stored in Artifact Registry, and execute Terraform templates to provision Google Kubernetes Engine (GKE) clusters. An analysis reveals that the pipeline builds currently execute using the default Compute Engine service account, developers manually update infrastructure configurations via the Google Cloud Console, and build steps encounter state conflicts due to unmanaged local state files. Which TWO architectural and security modifications should the organization implement to remediate these issues while adhering to Google Cloud best practices?
- Configure Cloud Build triggers to execute using a user-managed service account bound to specific fine-grained IAM roles, and configure a Cloud Storage backend with object versioning for Terraform state storage.Answer
- Restrict manual Console modifications by enforcing Organization Policies, and mandate that all infrastructure state modifications be applied exclusively through automated Cloud Build pipeline triggers.Answer
- CAssign the primitive Owner role (roles/owner) to the default Cloud Build service account to ensure all GKE cluster API operations execute without permission errors.
- DGrant developers the Service Account Admin role (roles/iam.serviceAccountAdmin) so they can dynamically modify pipeline permissions during deployment runs.
- EStore Terraform state files in the ephemeral Cloud Build execution workspace storage to maximize pipeline execution performance across build runs.