Microsoft Azure
GitHub Actions
GH-200
Master GitHub Actions with the GH-200 exam focused on automation.
150 questions
0 views
Free
Questions 101–110 of 150
A company needs to automatically deploy applications to Azure upon merging pull requests. What GitHub Action should they use?
-
A
Build Action
-
B
Deploy Action
-
C
Scheduled Action
-
D
Workflow Action
Explanation
Deploy Action specifically handles application deployment, whereas the others do not focus on deployment.
You are configuring a GitHub Action YAML file. What happens when a specified condition in "if" fails?
-
A
Job fails immediately
-
B
Action skips the job
-
C
Triggers an alert
-
D
Runs in a separate environment
Explanation
If the condition fails, the action skips that job, while the other options do not apply to this behavior.
Which service manages CI/CD for Azure resources?
-
A
Azure DevOps
-
B
Azure Front Door
-
C
Azure Blob Storage
-
D
Azure Function Apps
Explanation
Azure DevOps is specifically designed for CI/CD, while others serve different functions.
A company needs to scale services automatically based on load. What Azure feature should they use?
-
A
Load Balancer
-
B
Auto Scaling
-
C
Azure Monitor
-
D
Azure Traffic Manager
Explanation
Auto Scaling automatically adjusts resources, while others manage traffic or monitoring.
You are configuring a static web app on Azure. What happens when you push changes to the main branch?
-
A
Nothing, manual deploy required
-
B
Automatic deployment triggers
-
C
Site crashes temporarily
-
D
Increased loading speed initially
Explanation
Automatic deployment is a core feature of Azure Static Web Apps upon pushing to the main branch.
Which service is used for serverless execution in Azure?
-
A
Azure Functions
-
B
Azure Blob Storage
-
C
Azure Virtual Machines
-
D
Azure Kubernetes Service
Explanation
Azure Functions enables serverless environments, while the others provide different types of cloud computing services.
A company needs to integrate its CI/CD pipeline with GitHub. Which Azure service is recommended?
-
A
Azure DevOps
-
B
Azure App Service
-
C
Azure Logic Apps
-
D
Azure Functions
Explanation
Azure DevOps natively supports GitHub integration for CI/CD, while others focus on application hosting or automation.
What happens when you try to deploy to an Azure App Service with an unsupported runtime?
-
A
The deployment succeeds without issues
-
B
Deployment fails with a clear error
-
C
App Service auto-updates runtime
-
D
Application logs are published automatically
Explanation
Deployment will fail due to runtime incompatibility, as Azure App Services only support specified runtimes.
Which service allows for automated scaling in Azure?
-
A
Azure Functions
-
B
Azure Blob Storage
-
C
Azure SQL Database
-
D
Azure Cognitive Services
Explanation
Azure Functions automatically scales based on demand, while the other services do not provide automatic scaling mechanisms.
You are configuring a GitHub Action workflow. What is required to run Docker commands?
-
A
A runner with Docker support
-
B
Node.js installed on the runner
-
C
GitHub Package Registry
-
D
Secrets configuration
Explanation
A runner with Docker support is essential to execute Docker commands, while the other options are not strictly necessary.