Limited-Time Summer Sale 25% Discount Offer - Apply Coupon Code: Save25
Certs Blitz
See all results for ""
Home Exams
CRISC ISACA CISSP ISC2 200-301 Cisco SY0-701 CompTIA AZ-104 Microsoft AI-900 Microsoft AIGP IAPP 1Z0-1067-26 Oracle View All Exams →
Sign in Create account
GitHub-Actions EXAM PREPARATION

Prepare Smarter for the GitHub-Actions Exam

Build your exam confidence with flexible preparation resources designed around the latest GitHub-Actions exam objectives. Practice at your own pace using PDF questions, online exam simulations, or desktop practice software.

Download Exam View Entire Exam
Page: 1 / 1
Question #1 (Topic: Demo Questions)

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

Correct Answer: A, B, D
Question #2 (Topic: Demo Questions)

As a developer, you have a 10-MB data set that is required in a specific workflow. Which stepsshould 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.

Correct Answer: A, C, D
Explanation:

First, the dataset should be encrypted before being stored. This ensures that the data is protected when stored in a repository. The encrypted dataset can be stored in a GitHub secret, ensuring it is securely kept and not exposed publicly. The encryption key needed to decrypt the dataset should also be stored in a GitHub secret to maintain security during the workflow, allowing access only when needed.

Question #3 (Topic: Demo Questions)

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

Correct Answer: D
Explanation:

GITHUB_WORKSPACE is a default environment variable in GitHub Actions that points to the directory on the runner where your repository is checked out. This variable allows you to access files within your repository during the workflow. 

Question #4 (Topic: Demo Questions)

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

A.

ENV_ACTOR

B.

GITHUB_WORKFLOW_ACTOR

C.

GITHUB_ACTOR

D.

GITHUB_USER

Correct Answer: C
Explanation:

The GITHUB_ACTOR environment variable indicates the name of the person or app that initiated the workflow. This variable is automatically provided by GitHub in the workflow and can be used to identify the user or application triggering the workflow.

Question #5 (Topic: Demo Questions)

Which workflow commands send information from the runner? (Choose two.)

A.

reading from environment variables

B.

setting a debug message

C.

populating variables in a Dockerfile

D.

setting output parameters

Correct Answer: B, D
Explanation:

Setting a debug message using ::debug:: command sends a message to the logs, helping with troubleshooting and providing insight into the workflow run.

Setting output parameters using ::set-output sends data from a job step to subsequent steps or jobs, which can be used later in the workflow.

Download Exam
Page: 1 / 1
Next Page