Free Microsoft GH-200 Exam Braindumps (page: 2)

As a developer, you want to run a workflow from the Actions tab in GitHub.
Which YAML snippet should you use to match the interface in this image?



A)



B)



C)



D)

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): C

Explanation:

The first image shows a workflow trigger with an option for the test suite, and the chosen YAML configuration matches this interface. Specifically, the test suite input is defined with type: choice and includes the option value: functional, which aligns with the visible UI elements in the first image.



How many jobs will result from the following matrix configuration?

  1. 3 jobs
  2. 4 jobs
  3. 5 jobs
  4. 6 jobs

Answer(s): D

Explanation:

The matrix configuration specifies two variables: color and animal. The color variable has 2 values (green and pink), and the animal variable has 2 values (owl and magpie). This would result in 4 more combinations (color: blue and animal: owl; color: pink and animal: magpie).



As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)

  1. Use the actions/setup-docker action
  2. Authenticate to the GitHub Container Registry.
  3. Build the container image.
  4. Push the image to the GitHub Container Registry
  5. Pull the image from the GitHub Container Registry.

Answer(s): A,B,D

Explanation:

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.



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.)

  1. Encrypt the dataset.
  2. Leverage the actions/download-secret action in the workflow.
  3. Store the dataset in a GitHub encrypted secret.
  4. Store the encryption keys in a GitHub encrypted secret.
  5. Compress the dataset
  6. Commit the encrypted dataset to the same repository as the workflow
  7. Create a GitHub encrypted secret with the Large object option selected and upload the dataset.

Answer(s): 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.



Which statement is true about using default environment variables?

  1. The environment variables can be read in workflows using the ENV: variable_name syntax.
  2. The environment variables created should be prefixed with GITHUB_ to ensure they can be accessed in workflows
  3. The environment variables can be set in the defaults: sections of the workflow
  4. The GITHUB_WORKSPACE environment variable should be used to access files from within the runner.

Answer(s): 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.



Viewing page 2 of 16
Viewing questions 6 - 10 out of 72 questions



Post your Comments and Discuss Microsoft GH-200 exam prep with other Community members:

GH-200 Exam Discussions & Posts