The quiz simulates GitHub Actions Certification questions, and facilitates aspirants to practice before the actual certification exam. You can study GitHub Actions here before taking this quiz.
Total questions: 30
Time: 50 minutes
Passing score: 70%
START QUIZ
#1. Your open-source publicly available repository contains a workflow with a `pull_request` event trigger. How can you require approval for workflow runs triggered from forks of your repository?
#2. Which of the following default environment variables contains the name of the person or app that initiated the workflow run?
#3. When should you use `caching`?
#4. When should you use `artifacts`? (Select two.)
Select all that apply:
#5. If a workflow runs on a `feature-a` branch, can it restore `caches` created in the default `main` branch?
#6. To access an `artifact` that was created in another, previously triggered workflow run you can:
#7. What should you use to store coverage reports or screenshots generated during a workflow that runs automated testing for a repository?
#8. In job `deploy`, if you want to access binaries (containing your application) that were created in job `build` you should
#9. A job called `job2` is using artifacts created in `job1`. Therefore, it's important to make sure `job1` finishes before `job2` starts looking for the artifacts. How should you create that dependency?
#10. Which is true about `Starter Workflows` ? (Select three.)
Select all that apply:
#11. Secrets and configuration variables can be scoped to: (Select three.)
Select all that apply:
#12. For any action published in GitHub Marketplace, you can often use it in multiple versions, which approach is the most stable and secure?
#13. Which of these is a proper way of setting an output parameter `PET` with a value of `DOG` in a `step`.
#14. What Github-hosted runner types are available to use? (Select three.)
Select all that apply:
#15. What are the possible types of an input variable for a manually triggered workflow? (Select five.)
Select all that apply:
#16. To stop a workflow from running temporarily without modifying the source code you should?
#17. You want to create a reusable workflow `CI` that runs some quality checks, linting and tests on code changes. What event should trigger the `CI` workflow define to allow reusing it in other workflows?
#18. What are the valid use cases for using **defaults**? (Select two.)
Select all that apply:
#19. If job B requires job A to be finished you have to:
#20. In a workflow with multiple jobs, if job A fails then:
#21. When using the `pull_request` and `pull_request_target` events, how do you configure the workflow to run only when targeting the `prod` branch?
#22. Fill in the blank: When using `push` event trigger filters you can use patterns to target multiple branches
#23. Which event allows you to manually trigger a workflow from the GitHub UI?
#24. Which statement is correct regarding passing permissions to reusable workflows?
#25. What are the different permission levels you can assign to `GITHUB_TOKEN` in the `permissions` block?
#26. Which of these is not a valid event that could trigger a workflow?
#27. Which is true about workflows? (Select three.)
Select all that apply:
#28. Which components are required for a workflow? (Select two.)
Select all that apply:
#29. Which event is triggered by a webhook action from outside of the repository?
#30. You can use `permissions` to modify the `GITHUB_TOKEN` permissions on: (Select two.)
Select all that apply:
Finish
Post Views: 9