{"id":18939,"date":"2026-09-22T10:58:49","date_gmt":"2026-09-22T10:58:49","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18939"},"modified":"2026-09-22T10:58:49","modified_gmt":"2026-09-22T10:58:49","slug":"microsoft-gh-200-practice-test-questions-and-exam-dumps-part2-q21-40","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/microsoft-gh-200-practice-test-questions-and-exam-dumps-part2-q21-40\/","title":{"rendered":"Microsoft GH-200 Practice Test Questions and Exam Dumps Part2 Q21-40"},"content":{"rendered":"<h2><b>View Full <\/b><a href=\"https:\/\/www.examlabs.com\/gh-200-exam-dumps\"><b>Microsoft GH-200 Exam Dumps<\/b><\/a><b> and Practice Test Dumps<\/b><\/h2>\n<p>&nbsp;<\/p>\n<h3><b>Question 21.<\/b><\/h3>\n<p><b>Which GitHub Actions component defines when a workflow starts?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Runner<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Job<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Step<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Trigger<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A trigger defines the events or conditions that cause a GitHub Actions workflow to start. Common triggers include pushes, pull request activity, scheduled events, manual dispatches, and other supported repository events. Triggers are configured through the on section of a workflow YAML file. A runner provides the execution environment, a job groups related steps, and a step performs an individual task. Understanding triggers is important because they determine when automation executes and help teams connect repository activity with appropriate build, test, deployment, or maintenance processes.<\/span><\/p>\n<h3><b>Question 22.<\/b><\/h3>\n<p><b>Which GitHub Actions element groups execution steps together?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Runner<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Job<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Artifact<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Secret<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A job groups a collection of steps that GitHub Actions executes as part of a workflow. Jobs can run sequentially or independently depending on their dependencies and configuration. Each job normally executes on a runner and can contain commands or reusable actions as individual steps. Artifacts store workflow-generated files, while secrets provide protected values for workflows and are not execution groups. Understanding jobs is essential when designing workflows because they provide logical boundaries for tasks such as building, testing, scanning, packaging, and deploying applications.<\/span><\/p>\n<h3><b>Question 23.<\/b><\/h3>\n<p><b>Which GitHub Actions feature stores files produced by a workflow?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Artifacts<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Environments<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Variables<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Runners<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">GitHub Actions artifacts store files generated during workflow execution so they can be retained and accessed after a job completes. Typical artifacts include compiled packages, test reports, logs, binaries, or other build outputs. Artifacts differ from repository files because they are produced during workflow execution rather than being maintained as source-controlled project content. Environments provide deployment-related configuration and protection, variables provide configurable values, and runners execute jobs. Artifact storage is therefore useful when workflow results need to be preserved, inspected, downloaded, or passed between stages.<\/span><\/p>\n<h3><b>Question 24.<\/b><\/h3>\n<p><b>What does a GitHub Actions runner provide?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository documentation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Package version history<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">An execution environment<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pull request discussion threads<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A GitHub Actions runner provides the environment in which workflow jobs execute. The runner supplies computing resources and an operating environment where commands, scripts, and actions can run. Depending on the workflow and configuration, organizations can use GitHub-hosted or self-hosted runners. Documentation, package history, and pull request discussions serve different purposes and do not execute workflow jobs. Selecting an appropriate runner is important because software builds and automation tasks may require specific operating systems, tools, architectures, or organizational network access.<\/span><\/p>\n<h3><b>Question 25.<\/b><\/h3>\n<p><b>Which GitHub Actions section specifies environment variables?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">jobs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">steps<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">runs-on<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">env<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The env section defines environment variables that can be made available at the workflow, job, or step level. Environment variables allow workflows to pass configuration values to commands and actions without embedding those values directly into every command. Their scope depends on where the env declaration is placed. The jobs section defines jobs, steps describes individual execution tasks, and runs-on identifies the runner environment. Proper use of environment variables can make workflow definitions more reusable and easier to maintain.<\/span><\/p>\n<h3><b>Question 26.<\/b><\/h3>\n<p><b>Which GitHub Actions feature protects deployment credentials?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Issues<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Encrypted secrets<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Discussions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Milestones<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Encrypted secrets provide protected storage for sensitive values used by GitHub Actions workflows. Examples can include deployment credentials, tokens, passwords, or other confidential information. Secrets should not be hard-coded into workflow files because repository files may be visible to contributors or retained in version history. Issues track work, Discussions support conversations, and milestones organize project objectives. Using secrets allows workflows to access sensitive configuration without exposing the actual values directly in the workflow definition. Appropriate permissions and secret-management practices remain important for maintaining secure automation.<\/span><\/p>\n<h3><b>Question 27.<\/b><\/h3>\n<p><b>Which workflow expression checks whether a previous step succeeded?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">always()<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">failure()<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">success()<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">cancelled()<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The success() expression evaluates to true when the preceding steps or relevant execution context have completed successfully. It can be used with conditional workflow logic when a task should run only after earlier work succeeds. failure() is used when execution has failed, cancelled() evaluates according to cancellation state, and always() allows a condition to run regardless of the preceding result. Understanding these expressions helps developers construct workflows that respond appropriately to successful builds, failures, cancellations, and cleanup requirements.<\/span><\/p>\n<h3><b>Question 28.<\/b><\/h3>\n<p><b>Which GitHub Actions expression allows cleanup to run after failure?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">always()<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">success()<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">hashFiles()<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">format()<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The always() expression allows a step or job condition to evaluate as true regardless of the success or failure state of preceding tasks. It can be useful for cleanup operations, diagnostic collection, or other actions that should run even when an earlier step fails. success() specifically evaluates successful execution, while hashFiles() and format() provide different expression functionality. Developers should use always() carefully because tasks configured this way may execute even when earlier security or validation stages fail.<\/span><\/p>\n<h3><b>Question 29.<\/b><\/h3>\n<p><b>What does a GitHub Actions matrix strategy enable?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository archiving<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Issue assignment<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Multiple configuration combinations<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Package deletion<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A matrix strategy allows a GitHub Actions job to run across multiple combinations of defined values. For example, a workflow can test software against several operating systems, runtime versions, or configuration options without requiring separate manually written jobs for every combination. GitHub expands the matrix into multiple job runs based on its configuration. Repository archiving, issue assignment, and package deletion are unrelated functions. Matrix strategies are useful for increasing test coverage and validating software across supported environments while keeping workflow definitions relatively concise.<\/span><\/p>\n<h3><b>Question 30.<\/b><\/h3>\n<p><b>Which workflow property selects the operating environment for a job?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">needs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">runs-on<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">if<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">permissions<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The runs-on property specifies the runner environment on which a GitHub Actions job executes. It can identify a GitHub-hosted runner label or, where appropriate, a self-hosted runner configuration. needs establishes job dependencies, if controls conditional execution, and permissions controls access granted to the workflow&#8217;s token. Selecting the runner is important because the operating system and available tooling can affect how builds, tests, and deployment commands behave. Correct runner selection helps workflows execute in predictable environments.<\/span><\/p>\n<h3><b>Question 31.<\/b><\/h3>\n<p><b>Which GitHub Actions feature defines protected deployment targets?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Environments<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Labels<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Wikis<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Milestones<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">GitHub Actions environments represent deployment targets and can provide environment-specific configuration and protection controls. Organizations can use environments to distinguish targets such as development, testing, staging, and production. Protection rules can require specified conditions before deployment proceeds, depending on the repository configuration. Labels categorize issues and pull requests, Wikis provide documentation, and milestones organize work toward objectives. Environments are therefore particularly useful for deployment workflows where production access requires additional controls or environment-specific settings.<\/span><\/p>\n<h3><b>Question 32.<\/b><\/h3>\n<p><b>What does the needs keyword establish between jobs?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository ownership<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Job dependency<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Package retention<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Branch protection<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The needs keyword establishes a dependency between GitHub Actions jobs. A job using needs waits for the referenced job or jobs to complete before it can begin, subject to the workflow&#8217;s conditions. This allows workflows to create sequences such as build followed by test, followed by deployment. Repository ownership, package retention, and branch protection are controlled through different GitHub mechanisms. Job dependencies are important when later tasks should not execute until prerequisite work has completed successfully or reached an expected state.<\/span><\/p>\n<h3><b>Question 33.<\/b><\/h3>\n<p><b>Which GitHub Actions feature can reuse predefined automation logic?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository forks<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Issue templates<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Actions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Release notes<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">GitHub Actions can package reusable automation logic into actions that workflows invoke as steps. An action can encapsulate common tasks such as checking out code, configuring tooling, interacting with services, or performing specialized automation. Reusing actions reduces the need to duplicate command sequences across workflows. Repository forks create independent repository copies, issue templates standardize issue creation, and release notes document published versions. Reusable actions therefore help teams build workflows more efficiently and maintain consistent automation across repositories.<\/span><\/p>\n<h3><b>Question 34.<\/b><\/h3>\n<p><b>What does a reusable workflow allow teams to share?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Common workflow automation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Private SSH keys<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository billing accounts<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Git commit objects<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A reusable workflow allows teams to define workflow automation once and invoke it from other workflows when the required interface and permissions are configured. This promotes consistency and reduces duplicated workflow definitions across repositories. Shared workflows can centralize common build, test, validation, or deployment procedures while allowing calling workflows to provide appropriate inputs. SSH keys, billing accounts, and Git commit objects are not the primary purpose of reusable workflows. Reuse can also make large organizations easier to manage by standardizing frequently performed automation tasks.<\/span><\/p>\n<h3><b>Question 35.<\/b><\/h3>\n<p><b>Which setting limits what the workflow token can access?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">strategy<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">timeout-minutes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">permissions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">concurrency<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The permissions setting controls the access granted to the workflow&#8217;s GITHUB_TOKEN for supported repository resources. Applying the minimum required permissions reduces unnecessary access and supports a least-privilege approach to automation. Different workflow tasks may require different repository capabilities, so permissions should be configured according to actual requirements rather than granting broad access by default. strategy controls job execution strategies, timeout-minutes limits execution duration, and concurrency manages overlapping workflow runs. Permission configuration is therefore an important part of securing GitHub Actions automation.<\/span><\/p>\n<h3><b>Question 36.<\/b><\/h3>\n<p><b>What does workflow concurrency help prevent?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Duplicate repository names<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Unwanted overlapping workflow runs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Missing issue labels<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Invalid package metadata<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Workflow concurrency controls can prevent or manage overlapping workflow runs that belong to the same concurrency group. This can be useful when multiple executions would conflict, such as deployments targeting the same environment or workflows where only the newest run should continue. Concurrency settings can define grouping behavior and cancellation policies according to workflow requirements. Repository names, issue labels, and package metadata are unrelated to concurrency. Proper concurrency design can reduce unnecessary execution and help prevent competing automation runs from producing conflicting deployment results.<\/span><\/p>\n<h3><b>Question 37.<\/b><\/h3>\n<p><b>Which GitHub feature can require approvals before production deployment?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository topics<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Issue labels<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Protected environments<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Commit messages<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Protected environments can require configured reviewers or other protection conditions before a deployment proceeds. This allows organizations to place additional controls around sensitive targets such as production. A workflow can reference an environment, and GitHub can enforce the configured protection requirements before allowing the deployment job to proceed. Repository topics, issue labels, and commit messages do not provide equivalent deployment approval controls. Environment protection is therefore useful for introducing human review or other safeguards into automated delivery pipelines.<\/span><\/p>\n<h3><b>Question 38.<\/b><\/h3>\n<p><b>Which GitHub Actions mechanism passes values into reusable workflows?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Workflow inputs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository topics<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Issue labels<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Release tags<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Workflow inputs allow a calling workflow to provide defined values to a reusable workflow. Inputs make reusable automation more flexible because the same workflow can operate with different parameters while retaining a common implementation. For example, a reusable workflow can accept configuration information that determines an environment, application component, or other execution detail. Repository topics, issue labels, and release tags serve different purposes. Defining clear inputs and expected values helps teams create reusable workflows that remain predictable and maintainable.<\/span><\/p>\n<h3><b>Question 39.<\/b><\/h3>\n<p><b>What does a GitHub Actions artifact preserve after execution?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository membership<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Branch permissions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Workflow-generated files<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Organization profile data<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A GitHub Actions artifact preserves files generated during workflow execution so they can remain available after the relevant job finishes. Artifacts can include test results, compiled binaries, reports, logs, or packaged application outputs. This differs from repository content because artifacts are produced as workflow results rather than being maintained directly in source control. Repository membership, branch permissions, and organization profile data are managed through separate GitHub features. Artifact preservation is particularly useful when later review, troubleshooting, distribution, or downstream processing requires access to generated files.<\/span><\/p>\n<h3><b>Question 40.<\/b><\/h3>\n<p><b>Which GitHub Actions control can stop a workflow from exceeding a set duration?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">permissions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">timeout-minutes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">environment<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">outputs<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The timeout-minutes setting limits how long a GitHub Actions job is allowed to run before GitHub terminates it. This can prevent stalled commands or unexpectedly long-running tasks from consuming runner resources indefinitely. The appropriate timeout depends on the workload because overly short limits can terminate legitimate builds or tests. permissions controls token access, environment identifies deployment configuration and protection context, and outputs exposes values from jobs or steps. Timeout configuration is therefore useful for controlling workflow execution duration and resource usage.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full Microsoft GH-200 Exam Dumps and Practice Test Dumps &nbsp; Question 21. Which GitHub Actions component defines when a workflow starts? Runner Job Step Trigger Correct Answer: 4 Explanation: A trigger defines the events or conditions that cause a GitHub Actions workflow to start. Common triggers include pushes, pull request activity, scheduled events, manual [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1648,1647],"tags":[],"_links":{"self":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18939"}],"collection":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/comments?post=18939"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18939\/revisions"}],"predecessor-version":[{"id":18940,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18939\/revisions\/18940"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}