Skip to content

Secure and optimize automation Questions

Practice questions for Secure and optimize automation topic in GitHub Actions. 28 questions covering this domain.

28 questions8 easy17 medium3 hard
Q1
hard

A team wants a deployment workflow to exchange GitHub identity for a cloud access token without storing any cloud secret in the repository. What must ...

Q2
medium

A caller workflow wants a reusable workflow to use one of the caller's secrets. What must the caller do?

Q3
easy

What do artifact attestations help software consumers verify?

Q4
medium

A workflow runs for a pull request from a forked repository. Which credential behavior should the maintainer expect?

Q5
easy

Why do GitHub Actions workflows use OpenID Connect with cloud providers?

Q6
medium

What is the most secure way to reference a third-party action in a workflow?

Q7
medium

A workflow author wants to run a step only when a secret exists. What should they do?

Q8
easy

What does setting permissions: {} in a workflow do to GITHUB_TOKEN scopes?

Q9
medium

A security team wants cloud trust policies to evaluate repository metadata such as business unit. What GitHub Actions OIDC feature supports that?

Q10
medium

A workflow from a forked repository needs broader token access. What can the permissions key usually do?

Q11
medium

Which pair matches GitHub's default OIDC issuer and default audience?

Q12
easy

Why is storing access tokens inside cached files a bad practice?

Q13
medium

A workflow sets permissions so that issues is write and pull-requests is write. What happens to other available permissions?

Q14
medium

How long can GITHUB_TOKEN remain valid for a single job?

Q15
medium

A workflow author writes a step condition that compares secrets.DEPLOY_KEY to a blank string, and GitHub rejects the expression. What is the supported...

Q16
medium

Two jobs in the same run both try to upload to an artifact named build-output by using upload-artifact v4. The second upload fails. Why?

Q17
hard

A repository keeps saving caches under the same key, but updated dependencies do not replace the old cache, and some older caches later disappear afte...

Q18
easy

A workflow is triggered by a Dependabot pull request. What credentials should the job expect?

Q19
medium

A workflow tries to exchange GitHub identity for a cloud token by using OIDC, but the login action reports that no ID token is available. What permiss...

Q20
easy

A workflow sets permissions so that issues is write and pull-requests is write. What happens to permissions that are not listed?

Sign in to see all 28 questions

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