View Full Microsoft GH-200 Exam Dumps and Practice Test Dumps
Question 261
Which GitHub Actions feature allows a workflow to call an action by repository reference?
- environment
- strategy
- permissions
- uses
Correct Answer: 4
Explanation:
The uses keyword invokes an action identified by a repository reference and version or revision. This allows workflows to consume reusable automation rather than implementing every operation with shell commands. Actions can perform tasks such as checking out source code, configuring development tools, uploading artifacts, or interacting with external services. The environment setting associates jobs with deployment environments, strategy controls execution variations, and permissions defines token access. Using uses therefore provides a standardized way to incorporate existing action implementations into GitHub Actions workflows.
Question 262
Which GitHub feature lets maintainers restrict who may dismiss pull request reviews?
- Repository topics
- Branch protection settings
- Release configuration
- Issue templates
Correct Answer: 2
Explanation:
Branch protection settings can control requirements surrounding pull request reviews, including restrictions related to dismissing approved reviews. These controls help repositories preserve review integrity on important branches. Depending on the configuration, administrators can establish rules around required approvals, review dismissal, status checks, and other merge conditions. Repository topics categorize repositories, release configuration manages version publication settings, and issue templates structure issue submissions. Branch protection is therefore the appropriate area for configuring governance over pull request review requirements.
Question 263
Which GitHub Actions expression returns a JSON representation of a value?
- fromJSON()
- contains()
- toJSON()
- join()
Correct Answer: 3
Explanation:
The toJSON() expression function converts a value into JSON representation. This can be useful when workflow logic needs to inspect or expose structured context information or pass data in a JSON-compatible form. fromJSON() performs the reverse operation by interpreting JSON data, contains() checks whether a value includes another value, and join() combines elements into a string. Understanding these expression functions is important when workflows need to manipulate structured information rather than simple text values.
Question 264
Which GitHub Actions trigger can respond when a tag is pushed?
- push
- workflow_call
- issues
- discussion
Correct Answer: 1
Explanation:
The push event can trigger workflows when commits or tags are pushed to a repository. Workflow configuration can further restrict the event to selected branches or tags. This is useful for automation such as creating releases, building versioned packages, or running validation whenever a particular tag is created. workflow_call is intended for reusable workflow invocation, while issues and discussion respond to their respective GitHub activities. The push event therefore provides the mechanism for reacting to tag push activity.
Question 265
Which GitHub feature lets administrators define organization-wide repository rules?
- Issue forms
- Repository insights
- Organization rulesets
- Release assets
Correct Answer: 3
Explanation:
Organization rulesets allow administrators to define rules that can apply across repositories within an organization. They can be used to establish consistent controls around branches, tags, and repository workflows according to supported configurations. This provides a centralized governance mechanism instead of configuring every repository independently. Issue forms structure submitted issues, repository Insights provides activity information, and release assets contain files associated with releases. Organization-level rulesets are therefore useful when teams need consistent repository governance across multiple projects.
Question 266
Which GitHub Actions feature can assign different configuration values to matrix combinations?
- include
- checkout
- concurrency
- permissions
Correct Answer: 1
Explanation:
The include property can add or extend matrix combinations with additional values. This is useful when different combinations require specific configuration, such as assigning a particular deployment target or runtime setting to one matrix entry. Instead of creating separate jobs for every variation, workflow authors can enrich selected matrix combinations through include. checkout retrieves repository content, concurrency controls overlapping executions, and permissions manages token access. Matrix inclusion therefore provides flexible customization for individual workflow variants.
Question 267
Which GitHub capability enables automated dependency update pull requests?
- Code scanning
- Dependabot
- Secret scanning
- Commit signing
Correct Answer: 2
Explanation:
Dependabot can create pull requests for dependency updates when version-update functionality is configured for the repository. This automation helps maintainers keep libraries and packages current while allowing proposed updates to pass through the normal review and validation process. Code scanning analyzes source code, secret scanning searches for exposed credentials, and commit signing provides verification information about commits. Dependabot therefore focuses on dependency maintenance and can integrate dependency changes into the repository’s pull request workflow.
Question 268
Which GitHub Actions option identifies the GitHub-hosted runner operating system?
- github.actor
- github.repository
- runner.os
- github.ref
Correct Answer: 3
Explanation:
The runner.os property identifies the operating system of the runner executing the current job. Workflow scripts can use this information when commands or file-handling behavior need to differ between operating systems. github.actor identifies the user or application associated with the event, github.repository identifies the repository, and github.ref identifies the Git reference involved in the workflow event. Runner information is therefore useful when workflows need platform-aware conditional logic.
Question 269
Which GitHub feature lets maintainers restrict tag creation or updates?
- Project fields
- Issue labels
- Wiki pages
- Tag rules
Correct Answer: 4
Explanation:
Repository rules can be configured to govern tag operations, helping organizations control which tags may be created, updated, or deleted. This is particularly useful when tags represent releases or other important points in repository history. Project fields organize planning data, issue labels categorize work, and Wiki pages provide documentation. Tag-related rules therefore provide governance over version markers and other important references in Git repositories.
Question 270
Which GitHub Actions feature can prevent two deployments to the same target from overlapping?
- Job outputs
- Concurrency groups
- Step summaries
- Matrix values
Correct Answer: 2
Explanation:
Concurrency groups allow workflow runs or jobs to share a named execution group. When configured for deployment workflows, this can prevent multiple deployments targeting the same environment from running simultaneously. The configuration can also use cancellation behavior when appropriate. Job outputs transfer generated values between jobs, step summaries present information about execution, and matrix values define job variations. Concurrency groups are therefore useful for protecting deployment targets from overlapping automation.
Question 271
Which GitHub feature can automatically request reviews from designated teams?
- CODEOWNERS
- Repository topics
- Release tags
- Project views
Correct Answer: 1
Explanation:
CODEOWNERS can designate users or teams as responsible for particular paths within a repository. When changes affect those paths, GitHub can automatically request reviews from the relevant owners, depending on repository configuration. This helps route pull requests to people familiar with the affected components. Repository topics categorize repositories, release tags identify versions, and project views organize work information. CODEOWNERS therefore provides path-based review assignment and ownership management.
Question 272
Which GitHub Actions feature exposes a completed job’s generated value to another job?
- Step environment
- Workflow variable
- Job output
- Runner property
Correct Answer: 3
Explanation:
Job outputs allow information produced during one job to become available to another job that depends on it. A producing job can map a step output to a job-level output, and a downstream job can access the value through the needs context. This pattern is useful for passing generated version identifiers, calculated deployment names, or other dynamic values between workflow stages. Step environment variables are generally scoped differently, workflow variables provide configuration, and runner properties describe execution infrastructure. Job outputs specifically support structured cross-job data transfer.
Question 273
Which GitHub feature allows a pull request to be merged only after required checks succeed?
- Repository topics
- Protected branch rules
- Release notes
- Discussion categories
Correct Answer: 2
Explanation:
Protected branch rules can require specified status checks to pass before a pull request can be merged. This helps teams enforce automated validation for important branches. Required checks might include builds, tests, security analysis, or other repository workflows. Repository topics organize repository metadata, release notes describe published changes, and Discussion categories organize conversations. Protected branch rules therefore provide the governance mechanism for making successful automated validation a prerequisite for merging.
Question 274
Which GitHub Actions feature allows different jobs to share a downloaded artifact?
- upload-artifact
- cache
- download-artifact
- setup-node
Correct Answer: 3
Explanation:
The download-artifact action retrieves artifacts previously uploaded by a workflow. This is useful when one job produces a build output and another job needs that output for testing, packaging, deployment, or analysis. The producing job commonly uses upload-artifact first, while downstream jobs retrieve the stored files with download-artifact. Caching serves a different purpose by reusing data to improve workflow performance, and setup actions configure development environments. Artifact download therefore supports transferring preserved workflow outputs between execution stages.
Question 275
Which GitHub security feature detects vulnerable open-source dependencies?
- Dependabot alerts
- Project automation
- GitHub Wiki
- Release management
Correct Answer: 1
Explanation:
Dependabot alerts identify known vulnerabilities affecting dependencies used by a repository. GitHub uses dependency information and available vulnerability data to determine when installed packages may be affected. Maintainers can then investigate available updates or other mitigation options. Project automation manages work, GitHub Wiki supports documentation, and release management handles software version publication. Dependabot alerts therefore address dependency-related security exposure rather than general project organization or release administration.
Question 276
Which GitHub Actions setting allows a job to use a custom workspace directory?
- shell
- permissions
- working-directory
- retention-days
Correct Answer: 3
Explanation:
The working-directory setting specifies the directory in which a run command executes. This is useful when a repository contains multiple applications or when commands need to operate from a particular project subdirectory. Setting a working directory can avoid repeatedly changing directories inside shell commands. shell determines the command interpreter, permissions controls token access, and retention-days controls artifact lifetime. The working-directory property therefore directly determines where commands operate within the runner’s workspace.
Question 277
Which GitHub capability allows a pull request to merge automatically after requirements are satisfied?
- Auto-merge
- Issue forms
- Repository topics
- Wiki synchronization
Correct Answer: 1
Explanation:
GitHub auto-merge allows an eligible pull request to be merged automatically after configured requirements are satisfied. Depending on repository rules, these requirements can include approvals, status checks, and other merge conditions. This can reduce manual intervention for changes that have already passed the required review and validation process. Issue forms structure issue submissions, repository topics categorize repositories, and Wiki synchronization is unrelated to pull request merging. Auto-merge therefore focuses specifically on automating the final merge step.
Question 278
Which GitHub Actions feature allows workflow jobs to execute on self-hosted infrastructure?
- GitHub-hosted runner
- Self-hosted runner
- Release artifact
- Workflow template
Correct Answer: 2
Explanation:
Self-hosted runners are machines managed by an organization or repository owner that execute GitHub Actions jobs. They can be useful when workflows require specialized hardware, custom software, private network access, or other capabilities unavailable on standard GitHub-hosted runners. GitHub-hosted runners are managed by GitHub, release artifacts are generated files, and workflow templates provide reusable starting configurations. Self-hosted runners therefore provide organizations with greater control over the infrastructure used to execute automation.
Question 279
Which GitHub feature can organize issues by assigning descriptive categories?
- Labels
- Release assets
- Environments
- Repository secrets
Correct Answer: 1
Explanation:
Labels provide a flexible way to categorize issues and pull requests. Teams can create labels representing areas such as priority, component, type of work, or workflow state. This makes it easier to filter and organize large numbers of work items. Release assets store downloadable files, environments support deployment controls, and repository secrets protect sensitive configuration values. Labels therefore provide the repository mechanism for applying descriptive classifications to individual issues and pull requests.
Question 280
Which GitHub Actions capability can execute a workflow automatically at scheduled times?
- workflow_call
- repository_dispatch
- schedule
- workflow_run
Correct Answer: 3
Explanation:
The schedule trigger allows GitHub Actions workflows to run automatically according to configured cron expressions. Scheduled workflows are useful for recurring maintenance, periodic security checks, synchronization tasks, report generation, or other automation that should occur independently of repository changes. workflow_call invokes reusable workflows, repository_dispatch responds to custom repository events, and workflow_run reacts to activity involving another workflow. The schedule event therefore provides time-based workflow execution without requiring a code push or manual launch.