View Full Microsoft GH-200 Exam Dumps and Practice Test Dumps
Question 221
Which GitHub feature organizes repository work using customizable fields and views?
- Projects
- Wikis
- Releases
- Environments
Correct Answer: 1
Explanation:
GitHub Projects provides customizable views and fields for organizing development work. Teams can use tables, boards, filters, custom fields, and different layouts to track issues and pull requests according to their planning needs. This makes Projects useful for managing priorities, workflows, and delivery progress across repositories. Wikis are intended for documentation, releases represent published software versions, and environments provide deployment-related controls and secrets. Projects therefore focuses on flexible work organization rather than documentation, software distribution, or deployment configuration.
Question 222
Which GitHub Actions feature allows a workflow to react to another completed workflow?
- schedule
- workflow_run
- workflow_dispatch
- pull_request_target
Correct Answer: 2
Explanation:
The workflow_run event allows a workflow to respond to the completion or other supported activity of another workflow. This can be useful when automation needs to perform a later operation only after an earlier workflow has finished, such as publishing results or starting a subsequent process. schedule runs workflows according to configured times, workflow_dispatch supports manual execution, and pull_request_target responds to pull request activity using the target repository context. Therefore, workflow_run is designed for workflow-to-workflow event-based automation.
Question 223
Which GitHub security capability checks dependencies for known vulnerabilities?
- Code scanning
- Secret scanning
- Dependabot alerts
- Commit verification
Correct Answer: 3
Explanation:
Dependabot alerts identify known security vulnerabilities affecting dependencies used by a repository. GitHub can compare dependency information against vulnerability data and notify maintainers when affected packages are detected. Code scanning analyzes source code, secret scanning searches for exposed credentials, and commit verification concerns the authenticity or signature status of commits. Dependency security therefore falls within the role of Dependabot alerts. Keeping dependency information accurate helps security tooling identify affected packages and gives maintainers an opportunity to update or otherwise mitigate vulnerable components.
Question 224
Which GitHub Actions mechanism enables a workflow to run only for selected branch names?
- Branch filters
- Artifact retention
- Runner groups
- Environment variables
Correct Answer: 1
Explanation:
Branch filters restrict workflow triggers to selected branches. They are useful when different branches require different validation, deployment, or automation behavior. For example, a deployment workflow may be configured to react only to changes targeting designated release branches. Artifact retention controls how long generated files remain available, runner groups organize self-hosted runners, and environment variables provide configuration values. Branch filtering can reduce unnecessary workflow executions and ensure automation runs only where it is relevant to the repository’s development process.
Question 225
Which GitHub capability allows developers to edit and run code in a cloud-hosted development environment?
- GitHub Pages
- GitHub Codespaces
- GitHub Discussions
- GitHub Milestones
Correct Answer: 2
Explanation:
GitHub Codespaces provides cloud-hosted development environments that can be configured for working with repository code. Developers can use a browser-based editor or compatible local tools while the development environment runs remotely. Codespaces can use development-container configuration to provide consistent tools and dependencies. GitHub Pages focuses on static website hosting, Discussions supports conversations, and Milestones organize work around objectives. Codespaces therefore addresses the development-environment side of GitHub rather than publishing, communication, or project tracking.
Question 226
Which GitHub Actions configuration controls access granted to GITHUB_TOKEN?
- permissions
- retention-days
- defaults
- timeout-minutes
Correct Answer: 1
Explanation:
The permissions configuration controls the access available to the automatically provided GITHUB_TOKEN. Workflow authors can specify permissions for areas such as repository contents, issues, pull requests, and actions. Limiting permissions according to actual workflow requirements supports the principle of least privilege. retention-days controls artifact retention duration, defaults establishes default execution settings, and timeout-minutes limits job execution time. Correctly configuring token permissions is an important security practice when workflows perform operations against GitHub resources.
Question 227
Which GitHub feature stores documentation pages within a repository?
- Projects
- Wiki
- Packages
- Actions
Correct Answer: 2
Explanation:
A GitHub Wiki provides repository-associated pages for documentation and reference material. Teams can use wiki pages for guides, technical notes, procedures, and other information that benefits from a structured documentation space. Projects are used for planning, Packages hosts software artifacts, and Actions provides automation. A Wiki is therefore suited to maintaining human-readable project documentation separately from the repository’s primary source files while still keeping the documentation associated with the project.
Question 228
Which GitHub Actions expression can calculate a hash based on matching files?
- hashFiles()
- contains()
- startsWith()
- success()
Correct Answer: 1
Explanation:
The hashFiles() expression function calculates a hash based on files matching specified patterns. It is especially useful in cache keys because changes to dependency or configuration files can produce a different key and cause the workflow to use an appropriate cache. contains() checks whether a value includes another value, startsWith() tests a prefix, and success() evaluates workflow status. Hash-based expressions can therefore help workflows recognize whether relevant files have changed and select reusable cached data accordingly.
Question 229
Which GitHub feature allows a pull request to remain open without being immediately eligible for merging?
- Draft pull request
- Repository topic
- Release asset
- Package permission
Correct Answer: 1
Explanation:
A draft pull request indicates that proposed changes are still being developed and are not yet ready for normal review and merging. Contributors can use draft status while preparing implementation, tests, or supporting documentation. Once the work is ready, the pull request can be marked as ready for review. Repository topics categorize repositories, release assets are files attached to releases, and package permissions control access to published packages. Draft pull requests therefore provide a clear signal that proposed changes are still under development.
Question 230
Which GitHub Actions option can define additional containers needed by integration tests?
- services
- outputs
- concurrency
- vars
Correct Answer: 1
Explanation:
The services configuration defines service containers that run alongside a GitHub Actions job. These containers can provide supporting infrastructure such as databases or caching systems needed by integration tests. The main workflow steps continue to execute on the selected runner or primary job container while communicating with the configured services. outputs transfers generated values, concurrency controls overlapping executions, and vars provides configuration variables. Service containers are therefore useful when automated tests require temporary supporting applications or infrastructure.
Question 231
Which GitHub feature identifies whether a commit has a verified signature?
- Commit verification
- Project automation
- Package publishing
- Branch synchronization
Correct Answer: 1
Explanation:
GitHub can display verification information for commits signed using supported signing mechanisms. Verified signatures help users determine whether GitHub could validate the identity associated with a commit’s cryptographic signature. This provides an additional layer of trust information around repository history. Project automation manages work items, package publishing distributes software artifacts, and branch synchronization concerns transferring changes between branches or repositories. Commit verification is therefore the feature directly associated with identifying validated commit signatures.
Question 232
Which GitHub Actions feature lets a workflow create a deployment record for a named environment?
- Environment
- Artifact
- Matrix
- Runner group
Correct Answer: 1
Explanation:
A GitHub Actions job can reference an environment to associate deployment activity with a named deployment target. Environments can also contain protection rules and environment-specific secrets. This allows repositories to organize deployment workflows around targets such as testing, staging, or production while applying appropriate controls. Artifacts preserve generated files, matrices create multiple job combinations, and runner groups organize self-hosted execution resources. Environment configuration therefore connects workflow jobs with deployment targets and their associated governance settings.
Question 233
Which GitHub repository feature helps identify teams responsible for specific file paths?
- CODEOWNERS
- Milestones
- Topics
- Labels
Correct Answer: 1
Explanation:
CODEOWNERS defines individuals or teams responsible for particular files and directories within a repository. When pull requests modify paths covered by these ownership rules, GitHub can use the information to request appropriate reviews. This supports clearer responsibility across large repositories where different teams maintain different components. Milestones organize work around objectives, topics categorize repositories, and labels classify individual issues or pull requests. CODEOWNERS is therefore the feature specifically designed for assigning ownership according to repository paths.
Question 234
Which GitHub Actions feature can reduce repeated dependency downloads between workflow runs?
- Caching
- Annotations
- Job summaries
- Artifacts
Correct Answer: 1
Explanation:
GitHub Actions caching can store reusable files such as package-manager dependencies so later workflow runs can restore them instead of downloading everything again. This can significantly reduce setup time for workflows that repeatedly install the same dependencies. Annotations provide messages associated with workflow output, job summaries present execution information, and artifacts preserve generated files after execution. Caching is therefore intended primarily for performance improvements through reuse of data across workflow runs rather than preserving final build outputs.
Question 235
Which GitHub feature provides automated vulnerability alerts for exposed secrets?
- Secret scanning alerts
- Project boards
- Release discussions
- Repository labels
Correct Answer: 1
Explanation:
Secret scanning alerts notify repository maintainers when GitHub detects supported credentials or sensitive tokens in repository content. Depending on the secret type and enabled protections, GitHub can help identify exposure and support remediation actions. Project boards organize work, release discussions support communication around versions, and repository labels categorize issues or pull requests. Secret scanning alerts therefore address credential exposure specifically, complementing other security features that focus on source-code vulnerabilities or dependency risks.
Question 236
Which GitHub Actions feature can display custom messages and warnings in workflow logs?
- Workflow commands
- Branch filters
- Matrix exclusions
- Environment variables
Correct Answer: 1
Explanation:
Workflow commands allow actions and scripts to communicate supported instructions to the GitHub Actions runner through command syntax. They can be used to generate annotations, group related log output, set environment-related values, and perform other supported runner interactions. Branch filters control when workflows start, matrix exclusions remove selected combinations, and environment variables provide runtime configuration. Workflow commands are therefore useful when a script needs to communicate structured information or instructions back to the workflow runner.
Question 237
Which GitHub feature provides a place to attach binary files to a software version?
- Release assets
- Issue comments
- Project fields
- Discussion posts
Correct Answer: 1
Explanation:
Release assets are files attached to a GitHub release and can include compiled binaries, installers, archives, or other distributable files. They provide a convenient way to associate downloadable artifacts with a particular software version. Issue comments support discussion around work items, project fields organize planning information, and Discussion posts provide conversational content. Release assets therefore serve the specific purpose of distributing files alongside a published release.
Question 238
Which GitHub Actions feature allows selected matrix combinations to be removed?
- exclude
- include
- fail-fast
- max-parallel
Correct Answer: 1
Explanation:
The exclude matrix configuration removes specified combinations from the set of automatically generated matrix jobs. This is useful when most combinations are valid but certain operating-system, runtime, or configuration pairs should not execute. include adds or extends combinations, fail-fast controls matrix cancellation behavior after failures, and max-parallel limits concurrent matrix jobs. Matrix exclusions provide precise control without requiring separate job definitions for every supported combination.
Question 239
Which GitHub feature allows external automation to receive repository event notifications?
- Webhooks
- Milestones
- Wikis
- Release assets
Correct Answer: 1
Explanation:
Webhooks allow GitHub to send HTTP requests to an external endpoint when configured repository or organization events occur. External systems can use these notifications to respond to activities such as pushes, pull requests, releases, or issue changes. Milestones organize work, Wikis provide documentation, and release assets contain files associated with versions. Webhooks therefore provide an integration mechanism for notifying external services when relevant GitHub events occur.
Question 240
Which GitHub Actions feature can summarize important information at the end of a job?
- Job summary
- Runner label
- Secret context
- Branch filter
Correct Answer: 1
Explanation:
GitHub Actions job summaries allow workflow steps to write useful human-readable information that appears in the workflow run summary. Teams can use summaries to present test results, deployment details, generated links, or other important information without requiring users to inspect extensive raw logs. Runner labels determine execution resources, the secret context provides access to protected values, and branch filters control workflow triggering. Job summaries therefore improve the readability of workflow results by presenting selected information in a concise summary area.