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 131–140 of 150

Q131

A company needs to grant access to a repository for a specific service account. Which level of permission should be assigned?

  • A Admin access
  • B Read access
  • C Write access
  • D Maintain access
Explanation Write access allows a service account to modify repository contents, while Read access only enables viewing.
Q132

What happens when a GitHub Action fails to run due to missing permissions?

  • A The workflow is canceled
  • B The Job continues but fails
  • C No action is taken
  • D An email is sent to user
Explanation The workflow is canceled due to failing permissions, while the other options describe inaccurate outcomes.
Q133

Which service facilitates continuous integration and delivery in Azure?

  • A Azure DevOps
  • B Azure Functions
  • C Azure Blob Storage
  • D Azure Cosmos DB
Explanation Azure DevOps is specifically designed for CI/CD, while the others serve different purposes.
Q134

A company needs to automatically deploy code when a pull request is merged. What should they configure in GitHub?

  • A Branch protection rules
  • B GitHub Actions workflow
  • C Issues templates
  • D Repository settings
Explanation A GitHub Actions workflow can automate deployments tied to pull requests; the other options do not facilitate this automation.
Q135

What happens when a GitHub Actions job is marked as 'if: always()'?

  • A Runs only on success
  • B Runs regardless of previous jobs
  • C Skipped on failure
  • D Runs only on failure
Explanation 'if: always()' ensures the job runs irrespective of the outcome of prior jobs, whereas other options restrict execution based on success or failure.
Q136

Which service is primarily used for automating deployment workflows in Azure?

  • A Azure DevOps
  • B Azure Monitor
  • C Azure Storage
  • D Azure Functions
Explanation Azure DevOps offers tools for CI/CD automation, while the others serve different purposes.
Q137

A company needs to securely manage access to its Azure resources. Which policy should they implement?

  • A Azure Policy
  • B Role-Based Access Control (RBAC)
  • C Network Security Groups
  • D Resource Locks
Explanation Role-Based Access Control (RBAC) manages access effectively, while Azure Policy regulates resource compliance.
Q138

What happens when a GitHub Action fails and is set to 'continue-on-error'?

  • A The entire workflow aborts
  • B Subsequent jobs still run
  • C The workflow retries the job
  • D The error is logged but ignored
Explanation Continuing on error allows later jobs to execute despite the failure of the current job.
Q139

Which service manages workflows for CI/CD in Azure?

  • A Azure DevOps
  • B Azure Functions
  • C GitHub Actions
  • D Azure Kubernetes Service
Explanation GitHub Actions specifically provides CI/CD capabilities, while Azure DevOps encompasses a broader range of services, and the others primarily serve different purposes.
Q140

A company needs to automatically trigger workflows in GitHub Actions when a pull request is created. Which event configuration should they use?

  • A push
  • B pull_request
  • C workflow_dispatch
  • D repository_dispatch
Explanation The pull_request event is specifically designed to trigger workflows for PR actions, while others pertain to different events.