Skip to content

Author and manage workflows Questions

Practice questions for Author and manage workflows topic in GitHub Actions. 48 questions covering this domain.

48 questions12 easy24 medium12 hard
Q1
medium

Which statement about the `schedule` event is correct?

Q2
easy

Which trigger must a workflow declare so that another workflow can call it as a reusable workflow?

Q3
easy

Where must a GitHub Actions workflow file be stored for GitHub to detect and run it?

Q4
medium

A manually triggered workflow defines an input of type boolean named `perform_deploy`. Which expression preserves it as a Boolean value?

Q5
medium

A workflow uses both branch filters and path filters on the `push` event. When will the workflow run?

Q6
medium

A step needs to pass a computed value to later steps in the same job as a step output. Which environment file should the step write to?

Q7
hard

Workflow A calls reusable workflow B, and workflow B calls reusable workflow C. A secret is passed from A to B, but C cannot read it. Why?

Q8
hard

A workflow definition expands a matrix into 400 jobs. What should the author expect?

Q9
medium

A repository receives many pushes to the same branch, and the team wants each new run to cancel the older in-progress run for that branch. Which workf...

Q10
medium

A team uses a matrix for `os: [ubuntu, windows]` and `node: [18, 20]`, but they also need one extra job for `macos` with Node 20. Which matrix feature...

Q11
easy

A deploy job must wait until a test job succeeds. Which keyword should be added to the deploy job?

Q12
hard

An engineer adds `workflow_dispatch` to a workflow on a feature branch and expects to run it from the GitHub web UI, but the Run workflow button does ...

Q13
medium

A push workflow should run for files under app/ except app/docs/. What syntax pattern supports this in one event definition?

Q14
medium

A step should run only when workflow variable DAY_OF_WEEK equals Monday. In the if condition, which reference should be used?

Q15
medium

A workflow has two cron schedules and one job should run only for the overnight schedule. Which value should the author inspect to determine which cro...

Q16
medium

A script step inside a job container fails because it uses bash-specific syntax. What is the most likely cause?

Q17
hard

A job runs directly on ubuntu-latest and starts a Redis service container. The step must connect to Redis from the runner process. What is required?

Q18
hard

A reusable workflow needs to expose a value produced by one step to its caller. Which mapping chain is required?

Q19
easy

A workflow defines both push and fork as triggers. Which statement is correct about when it runs?

Q20
medium

You want a push workflow to run for branches under releases/ except branches ending in -alpha. What is the supported approach?

Sign in to see all 48 questions

Create a free account to browse all questions — completely free during our launch phase.