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 121–130 of 150

Q121

Which Azure service allows for automating workflows across different services?

  • A Azure Logic Apps
  • B Azure Functions
  • C Azure DevOps
  • D Azure Virtual Machines
Explanation Azure Logic Apps automates workflows, while others serve different functions.
Q122

A company needs to ensure its GitHub repository is not accessible to unauthorized users. What should they implement?

  • A Public repository
  • B Branch Protection Rules
  • C GitHub Actions
  • D Repository Insights
Explanation Branch Protection Rules restrict access to critical branches, unlike the other options which don’t secure access directly.
Q123

What happens when a GitHub Actions workflow fails at a job step?

  • A Out of memory error
  • B Subsequent steps continue
  • C Workflow fails immediately
  • D Workflow waits to retry
Explanation When a step fails, the entire job fails, stopping subsequent steps immediately.
Q124

A company needs to automate the deployment of Azure Functions with GitHub Actions. Which step must they include in their workflow?

  • A Set up Azure CLI login
  • B Trigger Azure Functions manually
  • C Ignore environment variables
  • D Use HTTP triggered actions only
Explanation Azure CLI login is necessary for deployment authentication, while other options miss critical automation steps.
Q125

When configuring caching in a GitHub Actions workflow, what happens if cache keys are not defined?

  • A Workflow will fail immediately
  • B Cache will use default keys
  • C No cache will be created
  • D Old caches will be overwritten
Explanation Without defined keys, caching will not occur at all, while the other options misstate cache behavior.
Q126

Which service is best suited for managing secrets in Azure for GitHub Actions?

  • A Azure DevOps
  • B Azure Key Vault
  • C Azure Blob Storage
  • D Azure App Service
Explanation Azure Key Vault securely handles secrets, while the other options are not specifically designed for this purpose.
Q127

Which service manages container orchestration in Azure?

  • A Azure Kubernetes Service
  • B Azure Blob Storage
  • C Azure Virtual Machines
  • D Azure Functions
Explanation Azure Kubernetes Service (AKS) is specifically designed for container orchestration, unlike the other services listed.
Q128

A company needs to automate deployments to Azure. What do they primarily use GitHub Actions for?

  • A Collecting analytic data
  • B Deploying code to Azure
  • C Managing user permissions
  • D Creating Azure resources
Explanation GitHub Actions is ideal for automating CI/CD workflows, particularly for deployments to Azure.
Q129

You are configuring a GitHub Actions workflow with two jobs. Job A must complete successfully before Job B starts. What should you add to Job B?

  • A depends-on: Job A
  • B needs: Job A
  • C after: Job A
  • D first: Job A
Explanation The 'needs' keyword ensures Job B runs only after Job A completes, providing the correct dependency management.
Q130

Which service automates cloud resource management tasks in Azure?

  • A Azure Automation
  • B Azure Logic Apps
  • C Azure WebJobs
  • D Azure Functions
Explanation Azure Automation manages repetitive tasks, while the others focus on workflow automation or serverless execution.