{"id":18941,"date":"2026-09-22T10:59:11","date_gmt":"2026-09-22T10:59:11","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18941"},"modified":"2026-09-22T10:59:11","modified_gmt":"2026-09-22T10:59:11","slug":"microsoft-gh-200-practice-test-questions-and-exam-dumps-part3-q41-60","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/microsoft-gh-200-practice-test-questions-and-exam-dumps-part3-q41-60\/","title":{"rendered":"Microsoft GH-200 Practice Test Questions and Exam Dumps Part3 Q41-60"},"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 41<\/b><\/h3>\n<p><b>Which GitHub Actions feature evaluates expressions during workflow execution?<\/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 templates<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Git attributes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Workflow expressions<\/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;\">GitHub Actions expressions allow workflows to dynamically evaluate values and conditions during execution. They can reference contexts such as github, env, vars, needs, steps, and job. Expressions are commonly used with conditional statements, dynamic environment variables, job outputs, and matrix configurations. For example, an expression can determine whether a job should execute based on the event type or the result of another job. This capability makes workflows more adaptable because values do not always have to be hardcoded. Expressions use GitHub&#8217;s expression syntax and can contain operators and built-in functions for evaluating workflow data.<\/span><\/p>\n<h3><b>Question 42<\/b><\/h3>\n<p><b>Which context provides information about the current GitHub repository?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">github<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">matrix<\/span><\/li>\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;\">strategy<\/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 github context contains information about the workflow run, repository, event, actor, commit, reference, and other GitHub-related details. Workflow authors can use values such as github.repository, github.ref, github.sha, and github.actor to make automation respond dynamically to repository activity. The matrix context instead provides values for matrix jobs, while runner contains information about the runner executing a job. The strategy context relates to the strategy configured for a job. Understanding these contexts is important when creating reusable and event-aware GitHub Actions workflows.<\/span><\/p>\n<h3><b>Question 43<\/b><\/h3>\n<p><b>Which keyword conditionally executes a GitHub Actions job or step?<\/b><\/p>\n<ol>\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;\">where<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">condition<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">when<\/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 if keyword controls whether a GitHub Actions job or step should execute. It accepts an expression that evaluates to true or false. For example, a workflow can use if: github.ref == &#8216;refs\/heads\/main&#8217; to restrict execution to a particular branch. Conditions can also inspect previous job results, event information, outputs, environment values, or other contexts. GitHub Actions automatically evaluates these conditions before running the associated job or step. Using if effectively helps avoid unnecessary execution and allows a single workflow to handle different events, branches, deployment environments, and processing paths.<\/span><\/p>\n<h3><b>Question 44<\/b><\/h3>\n<p><b>Which GitHub Actions context exposes outputs from earlier steps?<\/b><\/p>\n<ol>\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;\">steps<\/span><\/li>\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;\">vars<\/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 steps context provides information about steps that have already executed in the current job. It can expose outputs created by a step when that step has an identifier using the id field. A later step can reference those outputs through expressions such as ${{ steps.build.outputs.version }}. This allows workflow stages to exchange dynamically generated information without hardcoding values. The job context contains information about the current job, while runner describes the execution environment. The vars context provides configuration variables. Step outputs are especially useful for passing calculated values between sequential workflow steps.<\/span><\/p>\n<h3><b>Question 45<\/b><\/h3>\n<p><b>Which syntax references a GitHub Actions secret?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ vars.SECRET_NAME }}<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ env.SECRET_NAME }}<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ github.SECRET_NAME }}<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ secrets.SECRET_NAME }}<\/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;\">GitHub Actions secrets are accessed through the secrets context. A workflow can reference an individual secret using syntax such as ${{ secrets.API_TOKEN }}. Secrets are designed to hold sensitive information such as credentials, tokens, and private keys without placing those values directly in workflow files. Repository, environment, and organization secrets can be made available according to their configured scope. The vars context is used for configuration variables rather than protected secrets. Proper secret handling also involves limiting permissions and avoiding unnecessary exposure of sensitive values in logs or generated outputs.<\/span><\/p>\n<h3><b>Question 46<\/b><\/h3>\n<p><b>Which file defines a custom GitHub composite action?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">action.yml<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">workflow.yml<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">runner.yml<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">pipeline.yml<\/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 custom GitHub Action can be described using an action.yml or action.yaml metadata file. For a composite action, this file defines information such as the action name, description, inputs, and the steps executed by the action. Composite actions are useful when the same sequence of commands needs to be packaged and reused across workflows. The action can be stored in a repository directory and then referenced by workflows. This approach improves maintainability because common automation logic can be centralized instead of duplicated across multiple workflow files.<\/span><\/p>\n<h3><b>Question 47<\/b><\/h3>\n<p><b>Which GitHub Actions mechanism stores files produced during a workflow run?<\/b><\/p>\n<ol>\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;\">Environments<\/span><\/li>\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;\">Contexts<\/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 artifacts are files or collections of files preserved from a workflow run. They can include compiled applications, test reports, logs, packages, coverage results, or other generated outputs. A workflow can upload artifacts during one job and later download them for inspection or processing. Artifacts are different from caches because they are intended to preserve workflow-generated files, whereas caching is primarily designed to speed up repeated dependency or build operations. Artifact retention can be configured according to repository or organization policies. They are particularly useful when build and testing stages need to share generated files.<\/span><\/p>\n<h3><b>Question 48<\/b><\/h3>\n<p><b>Which feature speeds up workflows by reusing dependency files between runs?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Releases<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Caching<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Deployments<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Environments<\/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;\">GitHub Actions caching can reduce workflow execution time by storing reusable files between workflow runs. Dependency directories and package-manager caches are common examples. When a later run finds a matching cache key, it can restore previously stored data instead of downloading or rebuilding everything again. Cache keys can incorporate operating-system information, lockfile hashes, or dependency versions to distinguish different dependency states. Caches should not be treated as permanent storage because they are designed for performance optimization. Proper cache-key design is important to avoid restoring stale or incompatible dependencies.<\/span><\/p>\n<h3><b>Question 49<\/b><\/h3>\n<p><b>Which GitHub Actions context identifies the operating environment of a runner?<\/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;\">github<\/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;\">needs<\/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 runner context provides information about the machine executing a GitHub Actions job. It can expose details such as the operating system, architecture, runner name, and whether the runner is hosted or self-hosted. Workflow logic can use this information when behavior needs to differ between execution environments. The github context contains information about the workflow and repository, while steps relates to individual workflow steps. The needs context contains outputs and results from jobs that the current job depends upon. Understanding runner information is useful when designing cross-platform workflows.<\/span><\/p>\n<h3><b>Question 50<\/b><\/h3>\n<p><b>Which syntax accesses a repository configuration variable?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ secrets.BUILD_MODE }}<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ github.BUILD_MODE }}<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ vars.BUILD_MODE }}<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">${{ runner.BUILD_MODE }}<\/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 configuration variables are accessed through the vars context. A workflow can reference a variable using syntax such as ${{ vars.BUILD_MODE }}. Configuration variables are useful for non-sensitive settings that need to be managed centrally, such as environment names, feature flags, or configuration values. They differ from secrets because secrets are intended for sensitive information and are handled through the secrets context. Variables can be defined at supported organization, repository, or environment scopes. Using configuration variables helps separate workflow logic from values that administrators may need to change independently.<\/span><\/p>\n<h3><b>Question 51<\/b><\/h3>\n<p><b>Which keyword makes one GitHub Actions job wait for another?<\/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;\">waits<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">depends<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">after<\/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 needs keyword establishes a dependency between GitHub Actions jobs. When a job specifies another job under needs, the dependent job normally waits until the required job completes successfully. This allows workflows to model sequences such as build, test, and deployment. The needs context can also provide information about the result and outputs of prerequisite jobs. Multiple dependencies can be specified when a job requires several earlier jobs to finish. This mechanism is different from simply placing steps in sequence because GitHub Actions jobs normally execute independently unless an explicit dependency relationship is defined.<\/span><\/p>\n<h3><b>Question 52<\/b><\/h3>\n<p><b>Which GitHub Actions feature can run a job across several operating systems?<\/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;\">Matrix strategy<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Issue forms<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository variables<\/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 matrix strategy allows a GitHub Actions job to run multiple variations based on defined combinations of values. A common use case is testing an application against several operating systems, language versions, or dependency configurations. For example, a matrix can define multiple operating systems and Node.js versions, causing GitHub Actions to create separate job executions for each combination. Matrix configurations can also be expanded or controlled using inclusion and exclusion rules. This feature reduces duplicated YAML because one job definition can represent many test configurations while maintaining separate execution results.<\/span><\/p>\n<h3><b>Question 53<\/b><\/h3>\n<p><b>Which GitHub Actions syntax defines an environment variable for a workflow?<\/b><\/p>\n<ol>\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;\">parameters:<\/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;\">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 keyword defines environment variables in GitHub Actions. Variables can be declared at the workflow, job, or individual step level, with narrower scopes taking precedence where applicable. Environment variables are useful for values that commands need during execution, such as build modes or tool configuration. They can also incorporate expressions when dynamic values are required. The env keyword should not be confused with GitHub configuration variables accessed through the vars context. Understanding these different mechanisms helps workflow authors choose appropriate storage and scope for runtime configuration.<\/span><\/p>\n<h3><b>Question 54<\/b><\/h3>\n<p><b>Which GitHub feature controls who can approve protected deployments?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Environment protection rules<\/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;\">Git 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;\">GitHub environment protection rules can require designated reviewers to approve deployments before a job proceeds into a protected environment. This is useful for production deployments where additional authorization is required. Environments can also define deployment-related settings and provide controlled access to environment-specific secrets. When a workflow references a protected environment, the configured rules are evaluated before deployment can continue. This creates a separation between executing automation and authorizing sensitive deployment actions. Environment protection is therefore an important control for workflows that move software into critical environments.<\/span><\/p>\n<h3><b>Question 55<\/b><\/h3>\n<p><b>Which GitHub Actions feature passes generated data between jobs?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Environment labels<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Job outputs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Runner groups<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Repository topics<\/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;\">Job outputs allow one GitHub Actions job to expose generated values for use by another dependent job. A step first creates an output, and the job maps that value as a job-level output. A downstream job can then access it through the needs context. This is useful when an earlier job calculates information such as a package version, deployment identifier, or dynamically selected environment. Job outputs are different from step outputs because they are specifically designed to transfer values across job boundaries. The downstream job must normally declare the producing job under needs to consume its outputs.<\/span><\/p>\n<h3><b>Question 56<\/b><\/h3>\n<p><b>Which event filter restricts a workflow to selected branches?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">branches<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">targets<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">refs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">branches-only<\/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 branches filter can restrict supported GitHub Actions events to specific branches. For example, a workflow triggered by pull requests or pushes can be configured to respond only when activity occurs on selected branches. This helps prevent unnecessary workflow executions and allows different automation policies for development and protected branches. Additional filters such as paths can restrict execution based on changed files. Branch filtering is configured within the relevant event definition rather than as a general workflow property. Correct event-filter placement is important because each GitHub event supports its own applicable filtering options.<\/span><\/p>\n<h3><b>Question 57<\/b><\/h3>\n<p><b>Which GitHub Actions capability allows one workflow to call another workflow?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Scheduled workflow<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Manual dispatch<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Reusable workflow<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Composite runner<\/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;\">Reusable workflows allow one GitHub Actions workflow to be called from another workflow. This enables organizations and repositories to centralize common automation patterns, such as standardized testing, security checks, or deployment procedures. A reusable workflow is configured to accept defined inputs and secrets and can return outputs to the calling workflow. This differs from composite actions, which package reusable steps rather than an entire workflow structure. Reusable workflows are especially valuable when multiple repositories need consistent automation while maintaining a single centrally managed implementation.<\/span><\/p>\n<h3><b>Question 58<\/b><\/h3>\n<p><b>Which GitHub Actions keyword specifies the command shell used by a run step?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">executor<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">terminal<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">shell<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">command<\/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 shell keyword specifies which shell should execute a run step in GitHub Actions. Depending on the runner operating system, workflows can use shells such as Bash, PowerShell, or the default shell configured for that platform. Explicitly selecting a shell can make workflow behavior more predictable, especially when the same workflow runs across different operating systems. The command itself remains under the run property. Choosing the appropriate shell is important because syntax, environment handling, and command behavior can differ substantially between Bash, PowerShell, and other supported shells.<\/span><\/p>\n<h3><b>Question 59<\/b><\/h3>\n<p><b>Which GitHub Actions property limits how long a step may execute?<\/b><\/p>\n<ol>\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;\">max-duration<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">execution-limit<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">step-timeout<\/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 timeout-minutes property limits the amount of time a GitHub Actions job or step is allowed to execute. If execution exceeds the configured limit, GitHub Actions terminates the operation. This can prevent workflows from consuming runner resources indefinitely because of stalled commands, unavailable services, or unexpected conditions. Timeout settings can be applied where supported to control execution behavior. Choosing reasonable limits requires considering the expected duration of the operation. Build, test, and deployment stages may require different limits depending on workload complexity and external dependencies.<\/span><\/p>\n<h3><b>Question 60<\/b><\/h3>\n<p><b>Which GitHub Actions feature enables workflows to start manually from GitHub?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">workflow_dispatch<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">manual_run<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">start_workflow<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">user_trigger<\/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 workflow_dispatch event enables a GitHub Actions workflow to be manually triggered from GitHub. It can also define inputs that users provide when starting the workflow, allowing the same automation to operate with selected parameters. This is useful for administrative tasks, controlled deployments, maintenance operations, and other workflows that should not depend solely on repository events. Manual workflows can coexist with automatic triggers, giving teams multiple ways to initiate automation. When designing manual workflows, inputs should be validated and permissions should be appropriately restricted for sensitive operations.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full Microsoft GH-200 Exam Dumps and Practice Test Dumps &nbsp; Question 41 Which GitHub Actions feature evaluates expressions during workflow execution? Repository topics Issue templates Git attributes Workflow expressions Correct Answer: 4 Explanation: GitHub Actions expressions allow workflows to dynamically evaluate values and conditions during execution. They can reference contexts such as github, env, [&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\/18941"}],"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=18941"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18941\/revisions"}],"predecessor-version":[{"id":18942,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18941\/revisions\/18942"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}