What happens when a job in a GitHub Actions workflow fails?
ASubsequent jobs continue to run
BAll jobs automatically restart
CThe workflow gets canceled immediately
DThe remaining jobs do not run
Explanation
By default, if a job fails, subsequent jobs do not run in the workflow, while options A and B are incorrect behaviors.
Q142
Which service in Azure allows for building CI/CD pipelines?
AAzure DevOps
BAzure Blob Storage
CAzure Monitor
DAzure Functions
Explanation
Azure DevOps is designed for CI/CD pipeline management while others serve different functions.
Q143
A company needs to deploy an application across multiple Azure Regions for high availability. Which Azure feature should they use?
AAzure Traffic Manager
BAzure Virtual Network
CAzure Blob Storage
DAzure SQL Database
Explanation
Azure Traffic Manager intelligently routes traffic across multiple regions for scalability and high availability, unlike the other options.
Q144
You are configuring a GitHub Action that triggers on pull requests. What happens if the pull request is closed without merging?
AThe action will still run
BThe action will not run
CThe action will merge automatically
DThe action triggers an error
Explanation
GitHub Actions configured to trigger on pull requests do not run when the PR is simply closed without merging.
Q145
Which service allows you to automate workflows directly from GitHub?
AAzure Functions
BGitHub Actions
CAzure Logic Apps
DAzure DevOps
Explanation
GitHub Actions automates workflows from GitHub events, unlike the other services which primarily serve different functions.
Q146
A company needs to secure a GitHub repository with automated approval before merges. Which feature should they use?
ABranch Protection Rules
BCollaborator Access
CIssue Templates
DSecrets Management
Explanation
Branch Protection Rules allow automated approvals to secure merges into a protected branch.
Q147
What happens when you push a GitHub Action workflow while the target branch is protected?
AWorkflow run fails immediately
BWorkflow runs after protection lifted
CPush is allowed but fails to merge
DPush is rejected altogether
Explanation
A protected branch will reject a push that does not meet specified criteria, including preventing unapproved pushes.
Q148
Which service is primarily used for managing Azure deployments?
AAzure Resource Manager
BAzure Functions
CAzure SQL Database
DAzure DevOps
Explanation
Azure Resource Manager is the correct service for managing Azure resource deployments, whereas the others serve different purposes.
Q149
A company needs real-time data analysis from streaming datasets. Which Azure service should they use?
AAzure Stream Analytics
BAzure Batch
CAzure Data Factory
DAzure Blob Storage
Explanation
Azure Stream Analytics is designed for real-time data analytics from streaming datasets, unlike the other services.
Q150
What happens when a GitHub Actions workflow is triggered by a pull request event?
AIt runs code from the target branch
BIt runs code from the source branch
CIt runs on a scheduled basis
DIt cancels all previous workflows
Explanation
The workflow runs code from the source branch in a pull request event, while the other options are incorrect behaviors.