GitHub GitHub-Actions - GitHub Actions Certificate Exam
As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script?
Which scopes are available to define custom environment variables within a workflow file? (Choose three.)
You are reaching your organization's storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached?
In which scenarios could the GITHUB_TOKEN be used? (Choose two.)
How should you install the bats NPM package in your workflow?
A)
B)
C)
D)
Which statement is true about using default environment variables?
Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contains a different value for use in a workflow that is scoped to a specific repository named MyRepo. How should you store the secret to access your specific version within your workflow?
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
As a developer, your self-hosted runner sometimes looses connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?