Valid GH-200 Dumps shared by EduDump.com for Helping Passing GH-200 Exam! EduDump.com now offer the newest GH-200 exam dumps, the EduDump.com GH-200 exam questions have been updated and answers have been corrected get the newest EduDump.com GH-200 dumps with Test Engine here:
You create a self-hosted runner labeled as runner1. You need to ensure that a GitHub Actions workflow job runs only on runner1. Which YAML statement should you use?
Correct Answer: C
To target a specific self-hosted runner, the job must use runs-on with labels that match that runner. A self-hosted runner normally has the self-hosted label plus default labels and any custom labels you assign. Since the runner is labeled runner1, the workflow should specify both self-hosted and runner1: runs-on: [self-hosted, runner1]. GitHub Actions will then route the job only to a self-hosted runner matching all specified labels. Option A targets a different custom label. Option B is malformed and also mixes a self-hosted label with a GitHub-hosted runner label. Option D targets any self-hosted runner, not specifically runner1. GitHub documents that an array of runs-on labels requires a runner matching all listed labels.