GitHub GitHub Actions - GitHub Actions Exam

Question #6 (Topic: Exam A)
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?
A. run: echo "::set-env name=FOO::bar" B. run: echo "FOO=bar" >> $GITHUB_ENV C. run: echo ${{ $FOO=bar }} D. run: export FOO=bar
Answer: B
Question #7 (Topic: Exam A)
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?
A. via the .github repository owned by the organization B. via repositories owned by the organization C. via the GitHub Marketplace D. via a repository owned by a third party
Answer: B
Question #8 (Topic: Exam A)
As a developer, how can you identify a JavaScript action on GitHub?
A. The actions repository name includes the keyword "JavaScript." B. The action's repository includes a js.yml file in the .github/workflows directory. C. The action.yml metadata file references a package.json file. D. The action,yml metadata file has the runs.using value set to node16.
Answer: D
Question #9 (Topic: Exam A)
In which scenarios could the GITHUB_TOKEN be used? (Choose two.)
A. to leverage a self-hosted runner B. to create a repository secret C. to publish to GitHub Packages D. to create issues in the repo E. to read from the file system on the runner F. to add a member to an organization
Answer: CD
Question #10 (Topic: Exam A)
As a developer, you need to use GitHub Actions to deploy a microservice that requires runtime access to a secure token. This token is used by a variety of other microservices managed by different teams in different repos. To minimize management overhead and ensure the token is secure, which mechanisms should you use to store and access the token? (Choose two.)
A. Store the token in a configuration file in a private repository. Use GitHub Actions to deploy the configuration file to the runtime environment. B. Store the token as a GitHub encrypted secret in the same repo as the code. Create a reusable custom GitHub Action to access the token by the microservice at runtime. C. Use a corporate non-GitHub secret store (e.g., HashiCorp Vault) to store the token. During deployment, use GitHub Actions to store the secret in an environment variable that can be accessed at runtime. D. Store the token as a GitHub encrypted secret in the same repo as the code. During deployment, use GitHub Actions to store the secret in an environment variable that can be accessed at runtime. E. Store the token as an organizational-level encrypted secret in GitHub. During deployment, use GitHub Actions to store the secret in an environment variable that can be accessed at runtime.
Answer: CE
Download Exam
Page: 2 / 20
Total 99 questions