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 11–20 of 150

Q11

A company needs to automatically build and test their code on every pull request. What should they configure in GitHub Actions?

  • A A Docker image
  • B Workspace permissions
  • C Workflow triggers
  • D Branch protection rules
Explanation Workflow triggers allow execution on pull requests, unlike the other options which serve different purposes.
Q12

What happens when you define a variable in a GitHub Actions workflow?

  • A Only accessible during the run
  • B Global access across repositories
  • C Exposed to all users
  • D Immutable after workflow starts
Explanation Variables in workflows are local to the execution context, making them accessible only during that run.
Q13

Which Azure service can automate deployment and testing processes using workflows?

  • A Azure DevOps
  • B Azure Blob Storage
  • C Azure SQL Database
  • D Azure Functions
Explanation Azure DevOps provides CI/CD capabilities for automation, unlike the other options.
Q14

A company needs to provide role-based access control for its Azure resources, which should they use?

  • A Azure Active Directory
  • B Azure Key Vault
  • C Azure Blob Storage
  • D Azure Functions
Explanation Azure Active Directory manages access controls and RBAC, while others do not focus primarily on permissions.
Q15

What happens when a GitHub Action runs out of available GitHub Actions minutes for the billing cycle?

  • A It automatically terminates runs.
  • B It queues all workflows.
  • C It pauses all repositories.
  • D It stops new workflows until next cycle.
Explanation When the minutes are exhausted, new workflows cannot run until the next cycle, while other options describe incorrect behaviors.
Q16

Which Azure service provides event-driven serverless computing?

  • A Azure Functions
  • B Azure Logic Apps
  • C Azure App Service
  • D Azure Virtual Machines
Explanation Azure Functions allows you to run code without server management. Logic Apps focus on workflow, App Service hosts web apps, and VMs require managing infrastructure.
Q17

A company needs to migrate its on-premises applications to Azure. What tool can assist with the migration process?

  • A Azure Migrate
  • B Azure DevOps
  • C Application Insights
  • D Azure Monitor
Explanation Azure Migrate provides guidance and tools for migrating applications. DevOps is for CI/CD, Insights tracks app performance, and Monitor analyzes resources.
Q18

What happens when an Azure Automation account exceeds its runbook quota?

  • A No new jobs can start
  • B Only scheduled jobs run
  • C All jobs get a warning
  • D Account automatically scales up
Explanation Exceeding runbook quota prevents any new jobs from starting. Scheduled jobs do not take precedence, warnings are not issued, and auto-scaling does not apply.
Q19

Which Azure service is primarily used for CI/CD pipelines?

  • A Azure DevOps
  • B Azure Functions
  • C Azure Blob Storage
  • D Azure Cosmos DB
Explanation Azure DevOps provides tools specifically for CI/CD, while the others are meant for different functionalities.
Q20

A company needs to deploy a web application and automatically scale it based on incoming traffic. Which Azure service should they utilize?

  • A Azure App Service
  • B Azure Virtual Machines
  • C Azure Blob Storage
  • D Azure SQL Database
Explanation Azure App Service has built-in scaling features, whereas others do not provide automatic scaling for web applications.