View Full Microsoft GH-200 Exam Dumps and Practice Test Dumps
Question 81
Which GitHub Actions feature exposes data from a completed step?
- Step outputs
- Runner labels
- Repository variables
- Environment rules
Correct Answer: 1
Explanation:
Step outputs allow one step in a GitHub Actions job to provide generated information to later steps. A step can be assigned an id, produce an output, and then expose that value through the steps context. This is useful when one command calculates information that another command needs, such as a generated version, file path, or deployment identifier. Step outputs remain within the job. If information must be transferred between separate jobs, job outputs should be used instead. This distinction helps workflow authors design clear data flows and avoid unnecessarily duplicating calculations.
Question 82
Which GitHub Actions feature executes commands inside a container?
- container
- docker-runner
- image-job
- service-only
Correct Answer: 1
Explanation:
The container configuration allows a GitHub Actions job to execute its steps inside a specified Docker container. This can provide a consistent software environment with predefined tools, libraries, and runtime versions. Containerized jobs are useful when the default runner environment does not provide the required dependencies or when teams want greater control over execution consistency. GitHub Actions can also define service containers for supporting applications such as databases. The job container and service containers serve different purposes, with the job container executing workflow steps while services provide additional processes needed during testing or builds.
Question 83
Which GitHub Actions feature provides dependent services for a job?
- Sidecar jobs
- Service containers
- Auxiliary workflows
- Linked runners
Correct Answer: 2
Explanation:
Service containers provide additional containerized services that a GitHub Actions job can use during execution. Common examples include databases, caches, message brokers, or other supporting services required by integration tests. The service runs alongside the main job and can be accessed according to the configured networking and port settings. Service containers are particularly useful because they allow workflows to create temporary test infrastructure automatically rather than depending on permanently running external systems. They can be combined with containerized jobs or standard runner environments depending on the workflow’s requirements.
Question 84
Which setting specifies a custom Docker image for a job?
- container.image
- docker.image
- runner.image
- job.image
Correct Answer: 1
Explanation:
The container.image property specifies the Docker image used to run a GitHub Actions job inside a container. The image can contain the runtime, libraries, and command-line tools required by the workflow. Using a defined image helps produce consistent execution environments across workflow runs. Additional container settings can configure credentials, environment variables, ports, and volumes when supported. This approach is useful when a project needs a specialized environment that differs from the standard GitHub-hosted runner. The selected image should be maintained and secured like any other software dependency used in automation.
Question 85
Which GitHub Actions feature lets jobs use different operating systems?
- Runner matrix
- Platform strategy
- OS matrix
- Matrix configuration
Correct Answer: 4
Explanation:
A matrix configuration can define different operating-system values for a GitHub Actions job. The workflow can then use those values with the runs-on property so that separate job executions run on different platforms. This is useful for testing software that must work across Linux, Windows, and macOS environments. Instead of writing separate jobs with nearly identical steps, a matrix can represent the supported combinations in one definition. Matrix-based testing also makes it easier to expand platform coverage later. Each generated job remains independently visible in the workflow run.
Question 86
Which GitHub Actions property identifies the runner for a job?
- runs-on
- uses-on
- execute-on
- hosted-on
Correct Answer: 1
Explanation:
The runs-on property determines the runner environment where a GitHub Actions job executes. It can reference GitHub-hosted runner labels such as operating-system environments or labels assigned to self-hosted runners. When a matrix is used, runs-on can also reference a matrix value to dynamically select different platforms. Correct runner selection is important because software availability, operating-system behavior, architecture, and installed tools can differ between environments. For self-hosted infrastructure, labels provide a way to direct jobs toward runners that meet particular hardware or software requirements.
Question 87
Which GitHub feature organizes self-hosted runners for controlled access?
- Runner groups
- Runner folders
- Host collections
- Agent clusters
Correct Answer: 3
Explanation:
Runner groups organize self-hosted runners and help control which repositories or organizations can use those runners. They are useful when an organization operates multiple self-hosted machines with different trust levels, capabilities, or workloads. Administrators can place suitable runners into groups and configure repository access according to organizational requirements. This provides more control than simply registering every runner for broad use. Runner groups are especially valuable when sensitive deployment infrastructure should be separated from general-purpose build runners. Proper access configuration helps prevent workflows from using infrastructure that they are not authorized to access.
Question 88
Which label directs a workflow toward a specific self-hosted runner type?
- host-type
- runner-label
- machine-tag
- self-hosted
Correct Answer: 4
Explanation:
The self-hosted label is commonly combined with additional custom labels in runs-on to target an appropriate self-hosted runner. For example, a workflow can require both the self-hosted label and a custom label representing an operating system, architecture, or specialized capability. GitHub selects a runner that satisfies the required labels. This mechanism allows organizations to maintain heterogeneous runner fleets without hardcoding individual machine identities into workflows. Custom labels should accurately describe runner capabilities so jobs are scheduled onto environments capable of completing their required tasks.
Question 89
Which GitHub Actions option prevents excessive workflow runtime?
- timeout-minutes
- runtime-cap
- execution-window
- maximum-runtime
Correct Answer: 1
Explanation:
The timeout-minutes setting limits how long a GitHub Actions job or step can execute. A timeout is useful for preventing stalled builds, tests, or deployment commands from consuming runner resources indefinitely. When the configured limit is reached, GitHub Actions stops the associated execution. Different workflow stages may need different limits because a quick validation step can reasonably have a shorter timeout than a large build or integration test. Appropriate timeout values improve resource management while still allowing legitimate operations enough time to complete.
Question 90
Which GitHub Actions feature conditionally skips selected matrix combinations?
- include
- exclude
- filter
- remove
Correct Answer: 2
Explanation:
The exclude matrix option removes specific combinations from a generated matrix. This is helpful when most combinations are valid but certain combinations are unnecessary, unsupported, or unsuitable for a particular workflow. For example, a project may test several runtime versions across multiple platforms but exclude one combination that the software does not support. Matrix exclusion reduces wasted runner time while keeping the overall workflow definition compact. It can be combined with include when additional special cases must be added. Careful matrix design helps maintain meaningful coverage without executing irrelevant jobs.
Question 91
Which GitHub Actions setting adds an extra matrix configuration?
- include
- append
- additional
- extend
Correct Answer: 1
Explanation:
The include option modifies or adds matrix combinations in GitHub Actions. It is useful when a workflow needs special values that are not represented by the basic Cartesian product of the matrix dimensions. For example, an additional configuration can introduce an environment-specific value or a special runtime setting. include can also add properties to matching combinations. This makes matrix strategies flexible without requiring multiple nearly identical jobs. When combined with exclude, workflow authors can create precise sets of supported configurations while avoiding unnecessary execution.
Question 92
Which GitHub Actions feature shares generated files between jobs?
- Artifacts
- Variables
- Labels
- Contexts
Correct Answer: 1
Explanation:
Artifacts allow GitHub Actions workflows to preserve and transfer files generated during execution. A build job can upload compiled files, reports, test results, or other outputs, and a later job can download those artifacts. This is particularly useful when jobs run on separate runners and therefore do not automatically share their local file systems. Artifacts provide a structured way to retain workflow outputs beyond the immediate execution environment. They are different from caches, which primarily improve performance by reusing reusable dependency data. Choosing artifacts or caches depends on whether preservation or acceleration is the primary requirement.
Question 93
Which GitHub Actions feature reuses previously downloaded dependencies?
- Caching
- Artifacts
- Releases
- Environments
Correct Answer: 2
Explanation:
Caching is designed to improve workflow performance by reusing files from previous runs. Dependency caches can prevent repeated downloads of packages and other reusable data. A cache key determines whether an existing cache can be restored, and keys can incorporate information such as operating-system details or dependency lockfile hashes. Unlike artifacts, caches are not intended to serve as permanent workflow outputs. Effective caching can significantly reduce repeated installation time, particularly in projects with large dependency trees. Cache configuration should account for dependency changes so stale data is not unnecessarily reused.
Question 94
Which GitHub Actions context contains information about the triggering event?
- event
- github
- trigger
- activity
Correct Answer: 2
Explanation:
The github context contains information about the workflow execution and the GitHub event that triggered it. It can provide details about the repository, actor, reference, commit, event name, and related data. Workflows can use this information to make decisions based on how or where execution started. For example, conditions can distinguish between a push and a pull request event. The context helps make automation dynamic instead of requiring separate hardcoded workflows for every event scenario. Developers should still validate event-specific fields because available information varies depending on the triggering event.
Question 95
Which GitHub Actions mechanism passes a value from one job to another?
- Job outputs
- Step variables
- Runner metadata
- Shell aliases
Correct Answer: 1
Explanation:
Job outputs provide a structured way to pass generated values between GitHub Actions jobs. A producing job can map a step output to a job output, and a dependent job can access that value through the needs context. This is useful for values such as generated version numbers, deployment targets, or dynamically calculated configuration. Because jobs may execute on different runners, relying on local files or shell variables is not sufficient for transferring information between them. Job outputs provide a clear interface between workflow stages and support more modular automation designs.
Question 96
Which GitHub Actions feature enables encrypted repository credentials?
- Secrets
- Topics
- Labels
- Variables
Correct Answer: 1
Explanation:
GitHub Actions secrets provide protected storage for sensitive values used by workflows. Examples include API credentials, access tokens, private keys, and passwords. Secrets can be configured at appropriate repository, organization, or environment scopes and referenced through the secrets context. They should not be confused with ordinary configuration variables, which are intended for non-sensitive values. Workflow permissions should also be minimized so that automation receives only the access it actually needs. Proper secret management reduces the likelihood that credentials will be exposed directly in workflow files or ordinary repository configuration.
Question 97
Which GitHub feature can require successful checks before merging?
- Repository topics
- Branch protection rules
- GitHub Discussions
- Issue forms
Correct Answer: 2
Explanation:
Branch protection rules can require specified status checks to pass before a pull request can be merged into a protected branch. These checks can represent automated builds, tests, security scans, or other validation processes. Required checks help establish consistent quality gates around important branches. Branch protection can also be combined with review requirements and other restrictions. The exact checks selected should correspond to the repository’s development process. If a required check is incorrectly configured or renamed, it may prevent legitimate pull requests from merging until the protection configuration is updated.
Question 98
Which GitHub Actions event enables scheduled workflow execution?
- calendar
- schedule
- timer
- cron-run
Correct Answer: 2
Explanation:
The schedule event allows a GitHub Actions workflow to run automatically according to a POSIX cron expression. Scheduled workflows are useful for recurring maintenance, dependency checks, periodic reports, or other automation that does not depend on repository changes. The schedule is defined within the workflow’s event configuration. Timing should be selected carefully when workflows consume significant runner resources or interact with external systems. Scheduled execution can also be combined with other supported triggers when a workflow needs both periodic and event-driven behavior.
Question 99
Which GitHub Actions feature allows input values for manual runs?
- Workflow inputs
- Runner parameters
- Job arguments
- Repository prompts
Correct Answer: 3
Explanation:
Manual workflow execution can accept defined inputs when a workflow uses the appropriate dispatch configuration. Inputs allow users to provide parameters when starting a workflow, such as an environment name, release version, or operational choice. The workflow can then reference those values during execution. Input definitions can specify details such as descriptions and whether a value is required. This makes manual automation more flexible than hardcoding every possible scenario. Sensitive information should still be handled through secrets rather than ordinary workflow inputs.
Question 100
Which GitHub Actions feature centralizes repeated workflow logic?
- Reusable workflows
- Repository labels
- Commit templates
- Issue milestones
Correct Answer: 4
Explanation:
Reusable workflows allow common GitHub Actions automation to be defined once and called from other workflows. They can expose inputs, secrets, and outputs, creating a standardized interface for shared automation. Organizations can use reusable workflows for recurring processes such as testing, compliance validation, package publishing, or deployment. Centralizing common logic reduces duplication and makes maintenance easier because improvements can be made to the shared workflow rather than copied into many repositories. Access and permissions should be configured carefully when reusable workflows perform sensitive operations or interact with protected environments.