What is the difference between authentication and authorization
Authentication verifies identity while authorization grants access to resources
When should you use a Service Principal in Azure DevOps
When a nonhuman application or automation needs to access Azure resources
What is the purpose of a Managed Identity in Azure
To provide an automatically managed identity for Azure services without credentials
Describe the difference between a system-assigned and user-assigned Managed Identity
System-assigned is tied to one resource user-assigned can be shared among resources
When would you choose a user-assigned Managed Identity
When multiple resources need to share the same identity
How is authentication handled for GitHub Actions using GITHUB_TOKEN
GitHub automatically creates a short-lived token available to the workflow
What is a GitHub App used for
For integrating external tools or services in a secure granular way
When should you use a personal access token in GitHub
For manual authentication by users or custom scripts that cannot use GITHUB_TOKEN
How do you securely store a GitHub personal access token in a workflow
Add it as an encrypted repository secret
What is a service connection in Azure DevOps
A secure connection for Azure Pipelines or Releases to access external services
Which Azure DevOps token type is designed for personal automation or API access
Personal Access Token PAT
Why should you prefer service connections over PATs in Azure DevOps
Service connections have more granular controls and can be managed centrally
What are permissions in GitHub
Settings defining what actions users and teams can perform in repositories
How do you assign repository access to a team in GitHub
Add the team to the repository and set the desired permission level
What is the role of security groups in Azure DevOps
To organize users and manage permissions across projects and teams
How do you restrict permission inheritance in Azure DevOps
Use custom security groups or set explicit permissions at project or resource level
What is the benefit of using Teams in Azure DevOps
To manage permissions work items and notifications for a group of users
What access level is given to users who can only view work items in Azure DevOps
Stakeholder access
Who are outside collaborators in GitHub
Users invited to individual repositories with limited access to the organization
What is the purpose of organizing projects in Azure DevOps
To logically separate workloads teams and security boundaries
How do you add a new team to a project in Azure DevOps
Go to Project Settings Teams and select New team
What is the principle of least privilege in DevOps security
Granting users and services only the access absolutely necessary
Where should you store secrets keys and certificates for Azure pipelines
Azure Key Vault
How can a pipeline access values from Azure Key Vault
Using an Azure Key Vault task or variable group in the pipeline