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 21–30 of 150

Q21

What happens when you delete a resource group in Azure?

  • A Only the resources are deleted.
  • B All resources and the group are deleted.
  • C It becomes unavailable but not deleted.
  • D Other resource groups become inaccessible.
Explanation Deleting a resource group will delete all resources contained within it, impacting all services.
Q22

Which service is primarily used for deploying containerized applications on Azure?

  • A Azure Kubernetes Service
  • B Azure Blob Storage
  • C Azure DevOps
  • D Azure Functions
Explanation Azure Kubernetes Service orchestrates container deployment, while others serve different purposes.
Q23

A company needs to automate deployments from GitHub to Azure Web Apps. Which tool should they use?

  • A Azure CLI
  • B GitHub Actions
  • C Azure Pipelines
  • D Azure Functions
Explanation GitHub Actions directly integrates with GitHub for CI/CD, unlike the other options.
Q24

What happens if you set the GitHub Actions job to run on an 'ubuntu-latest' runner but specify a Windows command?

  • A Job fails due to OS mismatch
  • B Job runs successfully on Linux
  • C Job prompts for OS selection
  • D Job uses Windows compatibility layer
Explanation The job will fail because the command is not compatible with Linux.
Q25

A company needs to deploy a web app using Azure Static Web Apps. Which repository requirement is mandatory?

  • A GitHub or Azure DevOps repository
  • B Local file system
  • C GitLab repository
  • D FTP server access
Explanation Azure Static Web Apps requires a GitHub or Azure DevOps repository for deployment, while local storage, GitLab, and FTP do not meet this requirement.
Q26

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

  • A Only the base branch gets built
  • B Both base and head branches are built
  • C No actions occur
  • D Merged changes are deployed automatically
Explanation When a pull request is opened, GitHub Actions builds both the base and head branches to check for changes.
Q27

You are configuring an Azure Function that needs to scale to handle high request rates. Which plan should you choose?

  • A Consumption Plan
  • B App Service Plan
  • C Premium Plan
  • D Dedicated Plan
Explanation The Premium Plan allows for better scaling capabilities and VNET integration compared to the other plans.
Q28

Which service should you use for serverless compute in Azure?

  • A Azure Functions
  • B Azure VMs
  • C Azure App Service
  • D Azure Kubernetes Service
Explanation Azure Functions is designed for serverless compute, while the others provide different hosting solutions.
Q29

A company needs to ensure compliance by restricting data residency in the UK. Which Azure service would help?

  • A Azure Blob Storage
  • B Azure Policy
  • C Azure Regions
  • D Azure Monitor
Explanation Azure Regions allow you to select the geographical location for data storage.
Q30

What happens when you assign a role without required permissions in Azure RBAC?

  • A Access is granted as usual
  • B Access is denied completely
  • C Access is granted to some resources
  • D Access depends on the user level
Explanation If required permissions are missing, access is denied entirely.