GitHub GitHub Actions - GitHub Actions Exam
Page: 1 / 20
Total 99 questions
Question #1 (Topic: Exam A)
Which statement is true regarding the ability to delete a workflow run?
A. Pending workflow runs may be deleted.
B. Completed workflow runs may be deleted.
C. Admin access is required to delete a workflow run.
D. Workflow runs must be older than 30 days to be deleted.
Answer: B
Question #2 (Topic: Exam A)
Which command can you include in your workflow file to set the output parameter for an action?
A. echo "::debug::action_color=purple"
B. echo "action_color=purple" >> $GITHUB_OUTPUT
C. echo "action_color=purple" >> $GITHUB_ENV
D. echo "::add-mask::$ACTION_COLOR"
Answer: B
Question #3 (Topic: Exam A)
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
A. Use the actions/setup-docker action
B. Authenticate to the GitHub Container Registry.
C. Build the container image.
D. Push the image to the GitHub Container Registry
E. Pull the image from the GitHub Container Registry.
Answer: ABD
Question #4 (Topic: Exam A)
As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)
A. Encrypt the dataset.
B. Leverage the actions/download-secret action in the workflow.
C. Store the dataset in a GitHub encrypted secret.
D. Store the encryption keys in a GitHub encrypted secret.
E. Compress the dataset
F. Commit the encrypted dataset to the same repository as the workflow
G. Create a GitHub encrypted secret with the Large object option selected and upload the dataset.
Answer: ACD
Question #5 (Topic: Exam A)
Which statement is true about using default environment variables?
A. The environment variables can be read in workflows using the ENV: variable_name syntax.
B. The environment variables created should be prefixed with GITHUB_ to ensure they can be accessed in workflows
C. The environment variables can be set in the defaults: sections of the workflow
D. The GITHUB_WORKSPACE environment variable should be used to access files from within the runner.
Answer: D