Reusable Workflows & Composite Actions — Concept Check
Questions on Reusable Workflows & Composite Actions. Reusable workflows let you define a pipeline once and call it from multiple repos. Composite actions bundle multiple steps into a single reusable unit — eliminating duplication across workflows.
Questions in this quiz
8 questions on Reusable Workflows & Composite Actions — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A team wants to standardize their CI/CD pipeline across multiple repositories using GitHub Actions. Which mechanism should they use?
- ASelf-hosted Runners
- BComposite Actions
- CGitHub-hosted Runners
- DReusable Workflows
2.A developer needs to share a sequence of steps for setting up a Node.js project across multiple workflows. Which GitHub Actions feature should they use?
- ASelf-hosted Runners
- BGitHub-hosted Runners
- CComposite Actions
- DReusable Workflows
3.You have a workflow that builds and pushes Docker images. To make it reusable, which trigger must be added?
- Apush
- Bworkflow_call
- Cpull_request
- Dschedule
4.A developer mistakenly believes that Composite Actions can standardize entire CI/CD pipelines across repositories. What is the correct understanding?
- AComposite Actions can standardize entire pipelines across repositories.
- BComposite Actions are for sharing steps within a single job, not entire pipelines.
- CComposite Actions are not related to GitHub Actions.
- DComposite Actions are used only for self-hosted runners.
5.A company wants to enforce consistent CI/CD practices across all teams. Which GitHub Actions feature should they use?
- AGitHub-hosted Runners
- BSelf-hosted Runners
- CComposite Actions
- DReusable Workflows
6.A developer needs access to a private network during a CI job. Which type of runner should they use?
- AReusable Workflows
- BGitHub-hosted Runners
- CSelf-hosted Runners
- DComposite Actions
7.A team uses a composite action to set up a Node.js environment. They notice that the cache is not being restored. What might be the cause?
- AComposite Actions do not support caching.
- BGitHub Actions do not support caching.
- CThe cache key is incorrect or the cache does not exist.
- DNode.js version mismatch causes cache issues.
8.What is a common use case for Composite Actions in GitHub Actions?
- AScaling runners automatically
- BRunning workflows on specific hardware
- CSharing a sequence of steps within a single job
- DStandardizing entire CI/CD pipelines across repos