GitHub Foundations — Question 27
How can a workflow deploy mitigate the risk of multiple workflow runs that are deploying to a single cloud environment simultaneously? (Each correct answer presents part of the solution. Choose two.)
Answer options
- 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.
Correct answer: C, D
Explanation
Option C is correct because specifying a target environment in the deployment job ensures that the job is directed to the appropriate location, while option D is correct as defining a concurrency scope in the workflow helps manage how many instances can run simultaneously. Options A, B, E, and F are not directly related to mitigating simultaneous deployments in a shared environment.