QuestionQ27

Author and manage workflows

How can a deployment workflow reduce the risk that multiple workflow runs deploy to the same cloud environment at the same time? (Each correct answer represents part of the solution. Choose two.)

Choose two
  • A Reference the mutex in the task performing the deployment.
  • B Set the concurrency in the deploymentjob to 1.
  • C Specify a target environment in the deploymentjob.
  • D Specify a concurrency scope in the workflow.
  • E Configure the mutex setting in the environment.
  • F Pass the mutex into the deployment job.
Explanation

GitHub Actions concurrency groups limit execution so that only one workflow run or job in the same group runs at a time, preventing overlapping deployments. A deployment job can reference a named target environment, which establishes the deployment target and applies that environment’s configured rules and controls. Control the concurrency of workflows and jobs and Deploying to a specific environment document these workflow capabilities.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!