Microsoft GH-200 - GitHub Actions Exam
In the following workflow file, line 5 interprets lines 3 and 4 as Python. Which of the following is a valid option to complete line 5?
1 steps:
2 - run: |
3 import os
4 print(os.environ[ ' PATH ' ])
5
What are two reasons to keep an action in its own repository instead of bundling it with other application code?
(Each correct answer presents a complete solution. Choose two.)
As a DevOps engineer, you are developing a composite action. You have a step that needs to be executed against a subdirectory. Which code snippet should you use within the composite action to specify the directory?
What are the most significant advantages of adding documentation while distributing custom actions?
(Each answer presents a complete solution. Choose two.)
Which files are required for a Docker container action in addition to the source code? (Choose two.)
Which step is using the dbserver environment variable correctly?
You have a GitHub repository that contains a Node.js project and a local action named Action1. Multiple jobs in repository workflows call Action1. Action1 installs dependencies, runs tests, and returns a generated report path to the calling workflows.
You need to ensure that Action1 meets the following requirements:
• Encapsulates multiple workflow steps without packaging a separate runtime
• Exposes the report path produced by the test step
How should you complete the metadata file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

What is the most suitable action type for a custom action written in TypeScript?
What are the advantages of using a matrix strategy in a job definition? (Choose two.)
As a developer, how can you identify a composite action on GitHub?


