Microsoft Azure

GitHub Actions

GH-200

Master GitHub Actions with the GH-200 exam focused on automation.

150 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 141–150 of 150

Q141

What happens when a job in a GitHub Actions workflow fails?

  • A Subsequent jobs continue to run
  • B All jobs automatically restart
  • C The workflow gets canceled immediately
  • D The remaining jobs do not run
Explanation By default, if a job fails, subsequent jobs do not run in the workflow, while options A and B are incorrect behaviors.
Q142

Which service in Azure allows for building CI/CD pipelines?

  • A Azure DevOps
  • B Azure Blob Storage
  • C Azure Monitor
  • D Azure Functions
Explanation Azure DevOps is designed for CI/CD pipeline management while others serve different functions.
Q143

A company needs to deploy an application across multiple Azure Regions for high availability. Which Azure feature should they use?

  • A Azure Traffic Manager
  • B Azure Virtual Network
  • C Azure Blob Storage
  • D Azure SQL Database
Explanation Azure Traffic Manager intelligently routes traffic across multiple regions for scalability and high availability, unlike the other options.
Q144

You are configuring a GitHub Action that triggers on pull requests. What happens if the pull request is closed without merging?

  • A The action will still run
  • B The action will not run
  • C The action will merge automatically
  • D The action triggers an error
Explanation GitHub Actions configured to trigger on pull requests do not run when the PR is simply closed without merging.
Q145

Which service allows you to automate workflows directly from GitHub?

  • A Azure Functions
  • B GitHub Actions
  • C Azure Logic Apps
  • D Azure DevOps
Explanation GitHub Actions automates workflows from GitHub events, unlike the other services which primarily serve different functions.
Q146

A company needs to secure a GitHub repository with automated approval before merges. Which feature should they use?

  • A Branch Protection Rules
  • B Collaborator Access
  • C Issue Templates
  • D Secrets Management
Explanation Branch Protection Rules allow automated approvals to secure merges into a protected branch.
Q147

What happens when you push a GitHub Action workflow while the target branch is protected?

  • A Workflow run fails immediately
  • B Workflow runs after protection lifted
  • C Push is allowed but fails to merge
  • D Push is rejected altogether
Explanation A protected branch will reject a push that does not meet specified criteria, including preventing unapproved pushes.
Q148

Which service is primarily used for managing Azure deployments?

  • A Azure Resource Manager
  • B Azure Functions
  • C Azure SQL Database
  • D Azure DevOps
Explanation Azure Resource Manager is the correct service for managing Azure resource deployments, whereas the others serve different purposes.
Q149

A company needs real-time data analysis from streaming datasets. Which Azure service should they use?

  • A Azure Stream Analytics
  • B Azure Batch
  • C Azure Data Factory
  • D Azure Blob Storage
Explanation Azure Stream Analytics is designed for real-time data analytics from streaming datasets, unlike the other services.
Q150

What happens when a GitHub Actions workflow is triggered by a pull request event?

  • A It runs code from the target branch
  • B It runs code from the source branch
  • C It runs on a scheduled basis
  • D It cancels all previous workflows
Explanation The workflow runs code from the source branch in a pull request event, while the other options are incorrect behaviors.