A company needs to automatically build and test their code on every pull request. What should they configure in GitHub Actions?
AA Docker image
BWorkspace permissions
CWorkflow triggers
DBranch protection rules
Explanation
Workflow triggers allow execution on pull requests, unlike the other options which serve different purposes.
Q12
What happens when you define a variable in a GitHub Actions workflow?
AOnly accessible during the run
BGlobal access across repositories
CExposed to all users
DImmutable after workflow starts
Explanation
Variables in workflows are local to the execution context, making them accessible only during that run.
Q13
Which Azure service can automate deployment and testing processes using workflows?
AAzure DevOps
BAzure Blob Storage
CAzure SQL Database
DAzure Functions
Explanation
Azure DevOps provides CI/CD capabilities for automation, unlike the other options.
Q14
A company needs to provide role-based access control for its Azure resources, which should they use?
AAzure Active Directory
BAzure Key Vault
CAzure Blob Storage
DAzure Functions
Explanation
Azure Active Directory manages access controls and RBAC, while others do not focus primarily on permissions.
Q15
What happens when a GitHub Action runs out of available GitHub Actions minutes for the billing cycle?
AIt automatically terminates runs.
BIt queues all workflows.
CIt pauses all repositories.
DIt stops new workflows until next cycle.
Explanation
When the minutes are exhausted, new workflows cannot run until the next cycle, while other options describe incorrect behaviors.
Q16
Which Azure service provides event-driven serverless computing?
AAzure Functions
BAzure Logic Apps
CAzure App Service
DAzure Virtual Machines
Explanation
Azure Functions allows you to run code without server management. Logic Apps focus on workflow, App Service hosts web apps, and VMs require managing infrastructure.
Q17
A company needs to migrate its on-premises applications to Azure. What tool can assist with the migration process?
AAzure Migrate
BAzure DevOps
CApplication Insights
DAzure Monitor
Explanation
Azure Migrate provides guidance and tools for migrating applications. DevOps is for CI/CD, Insights tracks app performance, and Monitor analyzes resources.
Q18
What happens when an Azure Automation account exceeds its runbook quota?
ANo new jobs can start
BOnly scheduled jobs run
CAll jobs get a warning
DAccount automatically scales up
Explanation
Exceeding runbook quota prevents any new jobs from starting. Scheduled jobs do not take precedence, warnings are not issued, and auto-scaling does not apply.
Q19
Which Azure service is primarily used for CI/CD pipelines?
AAzure DevOps
BAzure Functions
CAzure Blob Storage
DAzure Cosmos DB
Explanation
Azure DevOps provides tools specifically for CI/CD, while the others are meant for different functionalities.
Q20
A company needs to deploy a web application and automatically scale it based on incoming traffic. Which Azure service should they utilize?
AAzure App Service
BAzure Virtual Machines
CAzure Blob Storage
DAzure SQL Database
Explanation
Azure App Service has built-in scaling features, whereas others do not provide automatic scaling for web applications.