← Quay lại

Câu 232 · Professional Cloud DevOps Engineer

Câu 232

Professional Cloud DevOps Engineer

You are designing a CI/CD pipeline to deploy a containerized application from your GitHub repository to Artifact Registry. The build process needs to trigger whenever a new tag is created. The build must be approved by the [email protected] Google group. You need to avoid using static credentials or federating with any other system to meet your company’s security requirements. How should you set up the CI/CD pipeline?
  1. A. 1. Create a GitHub trigger in Cloud Build to execute a build whenever a new tag is created.
    2. Create a Cloud Build approval.
    3. Grant the roles/cloudbuild.builds.approver role to the [email protected] Google group, and grant the roles/artifactregistry.writer role to the service account used by the trigger.
  2. B. 1. Use GitHub Actions to create a workflow to containerize the application and push the container to Artifact Registry when a new tag is created.
    2. Create a GitHub team with the same members as the [email protected] Google group, and add the team as a mandatory approval.
    3. On the Google Cloud project, create a service account and a service account key.
    4. Use the key on the workflow to authenticate with Google Cloud.
    5. Grant the roles/artifactregistry.writer role to the service account.
  3. C. 1. Create an SSH key and add it as a deploy key on GitHub.
    2. Create a Cloud Build trigger that uses the SSH key to pull the repository.
    3. Create a Cloud Build approval.
    4. Grant the roles/cloudbuild.builds.editor role to the [email protected] Google group, and grant the roles/artifactregistry.writer role to the service account used by the trigger.
  4. D. 1. Use GitHub Actions to create a workflow to containerize the application and push the container to Artifact Registry when a new tag is created.
    2. Create a GitHub team with the same members as the [email protected] Google group, and add the team as a mandatory approval.
    3. Create a workload identity pool on Google Cloud to authorize the identity of the GitHub workflow.
    4. Grant the roles/artifactregistry.writer role to the workload identity pool authorized entity.

Làm câu này trên web →