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 41–50 of 150

Q41

A company needs to store sensitive data with compliance requirements. What is the best approach in Azure?

  • A Use Azure Blob Storage
  • B Use Azure Cosmos DB
  • C Implement Azure Key Vault
  • D Implement Azure Data Lake Storage
Explanation Azure Key Vault is specifically designed for secure storage of sensitive information, while others are data storage solutions that do not focus on compliance aspects.
Q42

What happens when you run an Azure Function with a timeout setting exceeded?

  • A Function completes successfully
  • B Function raises an error and terminates
  • C Function retries automatically
  • D Function initializes without timeout limit
Explanation Exceeding the timeout setting causes the function to terminate with an error, unlike options A, C, and D, which misrepresent how timeouts work in Azure Functions.
Q43

Which service allows developers to automate workflows in GitHub?

  • A GitHub Actions
  • B Azure Functions
  • C GitHub Pages
  • D Azure DevOps
Explanation GitHub Actions is specifically designed for automation on GitHub, while others serve different purposes.
Q44

A company needs to run code automatically when a pull request is made. What should they configure?

  • A A scheduled workflow
  • B A branch protection rule
  • C A pull request workflow
  • D A web service integration
Explanation A pull request workflow in GitHub Actions triggers on pull requests, while others do not fulfill this requirement.
Q45

What happens when a GitHub Actions workflow exceeds its timeout limit?

  • A It continues running indefinitely
  • B It logs an error and stops
  • C It retries automatically
  • D It runs the next job immediately
Explanation The workflow will log an error and terminate if the timeout is exceeded, ensuring controlled execution.
Q46

Which service provides CI/CD workflows for GitHub repositories?

  • A GitHub Actions
  • B Azure DevOps
  • C App Services
  • D Azure Storage
Explanation GitHub Actions specifically enables CI/CD for GitHub repositories, while the others do not focus directly on this functionality.
Q47

A company needs to run a script every time code is pushed to the main branch. Which event should they configure in GitHub Actions?

  • A pull_request
  • B push
  • C schedule
  • D workflow_dispatch
Explanation The 'push' event triggers workflows on code pushes to the main branch, unlike the other options which serve different use cases.
Q48

What happens when a GitHub Actions workflow exceeds its time limit?

  • A Workflow completes successfully
  • B Workflow times out and fails
  • C Workflow continues without limits
  • D Workflow is paused for review
Explanation Workflows that exceed their defined time limits will time out and fail, while the others inaccurately describe the behavior.
Q49

Which Azure service is primarily used for serverless compute?

  • A Azure Functions
  • B Azure App Service
  • C Virtual Machines
  • D Azure Kubernetes Service
Explanation Azure Functions is designed for serverless computing, while the others support different infrastructures or approaches.
Q50

A company needs to automate the deployment of its application code when changes are made to the main branch in GitHub. Which GitHub Actions feature should they utilize?

  • A Workflows
  • B Issues
  • C Actions
  • D Projects
Explanation Workflows in GitHub Actions automate processes like deployments triggered by branch changes, while the others are for issue tracking and project management.