Azure Devops Engineer Interview Questions
Azure Devops Engineer Interview Questions
Tell me about yourself - it should include your details and roles , tools that u used and services that
u worked.
Devops –
First we need to generate a personal access token then Agent pool need to select read and
manage.then click on create. Token will generate.
In Devops – click on prject settings – click on agent pools – click on default – click on new
agent – down load the agent- then in powershell(admin mode) create directory and unzip
downloaded file and generate agent in powershell by giving all necessary inputs.
Agent Pools – As the name suggests, this is a pool of build agents, which can be either
Microsoft-hosted or self-hosted, that can be used to run builds and releases across multiple
projects.
Variable groups - Variable groups store values and secrets that you might want to make
available across multiple pipelines. You can share and use variables groups in multiple
pipelines in the same project.
Pipelines > Library > + Variable group.
open your pipeline. Select Variables > Variable groups, and then choose Link variable
group. In a build pipeline, you see a list of available groups. In a release pipeline as well.
Pre defined variables – these are system defined variables by default. Like system.debug.
If we want to make it true we can or else can make it fales and like Agent.BuildDirectory.
Pipeline variables - these variables can be used in throughout the pipeline only.
While creating a variable group then only we can integrate key vault to it.
Go to library ,,navigate to + variable group then enable link secrets from azure key vault
then it will ask us for subscription and key vault name.
13)whats the difference between service connection and service hook and web hook?
Service connections enable you to connect to external and remote services to execute in a
jobs.
Webhook - ?
Service hook lets you run tasks on other services when events happen in your Azure DevOps
projects. You could go to Project Settings>>Service hooks page to integrate with your favorite
services by notifying them when events happen in your project. For example, create a card in Trello
when a work item is created or send a push notification to your team's mobile devices when a build
fails. Or we can say it is kind of triggering based upon events.
14) what are the different types of groups available in azure Devops?
Azure Artifacts enables developers to share and consume packages from different feeds and public
registries. Packages can be shared within the same team, the same organization, and even publicly.
Azure Artifacts supports multiple package types such as NuGet, Npm, Python, Maven, and Universal
Packages.
In classic editor we need to create separate build and release pipelines where as in yaml we can
create build and deploy at a time and we can customize pipeline by yaml.
What is pat?
Branch policies help teams protect their important branches of development , those who have
access only they can do any modifications depends upon the branch policies. Build Validation, Status
Checks, Automatically included reviewers.
Where as continuous deployment is a process of deploying a build code into desired environments
using automation like from dev stage non prod test.it helps how the code is working in diff
environments.
Continuous delivery is the frequent shipping of code to a given environment such as test or prod via
manual release where as continuous deployment is automated release of code to a production
environment.
21) whats the difference between these access types in devops basic, stake holder, visual studio
subscriber?
Stakeholder: Can be assigned to unlimited users for free. Provides partial access to private
projects and mostly full access to public projects
Basic: Provides access to most features. Assign to users with a Visual Studio Professional
subscription, an Azure DevOps Server CAL, and to users for whom you're paying for Basic
access in an organization.
Visual Studio subscription: Assign to users who already have a Visual Studio subscription. The
system automatically recognizes the user's subscription—Visual Studio Enterprise, Visual
Studio Professional, Visual Studio Test Professional, or MSDN Platform—and enables any
other features that are included in their subscription level. If you assign Basic or Stakeholder,
they also receive their Visual Studio subscription benefits upon sign-in.
22) what is policies and permission’s?
In organization settings we have two types of security features that is policies and perisions.
Permisions-
Secure files give you a way to store files that you can share across pipelines
ARM Templates
"copy": {
"name": "<name-of-loop>",
"count": <number-of-iterations>,
"mode": "serial" <or> "parallel",
"batchSize": <number-to-deploy-serially>
}
6) arm template functions?
We have diff types of functions array, date , logical , numeric funcions, obect functions.
7) If conditions in arm template
[if(condition, true value, false value)]
Can be used for variables, resource parameters, properties.
8) What are the diff modes in arm template?
Incremental mode, deployment mode, complete mode.
Deployment modes are used to handle existing reosurces that are not available in arm
template.
In complete mode, Resource Manager deletes resources that exist in the resource group but
aren't specified in the template
In incremental mode, Resource Manager leaves unchanged resources that exist in the
resource group but aren't specified in the template
Example result
To illustrate the difference between incremental and complete modes, consider the following
scenario.
Resource A
Resource B
Resource C
Template contains:
Resource A
Resource B
Resource D
Resource A
Resource B
Resource C
Resource D
When deployed in complete mode, Resource C is deleted. The resource group has:
Resource A
Resource B
Resource D
use the Mode parameter to define the incre or complete.
IaaS: cloud-based services, pay-as-you-go for services such as storage, networking, and
virtualization.examples- azure iaas - vm, storage,networking
PaaS: hardware and software tools available over the internet.EXAMPLE- MS AZURE ,AWS
LAMBDA.azure paas services – web apps, mobile apps,logicapps,azure function etc
SaaS: software that’s available via a third-party over the internet. Outlook
Hot tier - An online tier optimized for storing data that is accessed or modified frequently. The
Hot tier has the highest storage costs, but the lowest access costs.
Cool tier - An online tier optimized for storing data that is infrequently accessed or modified.
Data in the Cool tier should be stored for a minimum of 30 days. The Cool tier has lower
storage costs and higher access costs compared to the Hot tier.
Archive tier - An offline tier optimized for storing data that is rarely accessed, and that has
flexible latency requirements, on the order of hours. Data in the Archive tier should be stored
for a minimum of 180 days.
1. Locally redundant storage (LRS) – It helps to replicate our data in the same data center, and
it is a low-cost data redundancy technique. LRS is the lowest-cost replication option and
offers the least durability compared to other options. It provides at least 99.999999999% (11
nines) durability of objects over a given year.
This is helpful when we can easily reconstruct the data in case of data loss, or we have restricted
data to replicate only within the country/region.
2. Zone-redundant storage (ZRS) – It helps us for excellent performance, low latency and
replicates our data synchronously across three storage clusters in a single region. Each
storage cluster is physically separated but within the same region. ZRS offers durability for
storage objects of at least 99.9999999999% (12 9's) over a given year.
3. Geo-redundant storage (GRS) – As I explained above it helps us in replicating our data to
another region which is far away hundreds of miles away from the primary region. It
provides at least 99.99999999999999% (16 9's) durability of objects over a given year. GRS
replicates our data to another region, but data will be available to be read-only if Microsoft
initiates a failure from primary to the secondary region.
4. Read-access geo-redundant storage (RA-GRS) – It is based on the GRS, but it also provides
the option to read from the secondary region regardless of whether Microsoft initiates a
failover from the primary to the secondary region.
With the Consumpti on plan, you do not have to worry about the dimension of your
infrastructure, scaling, or pay when not uti lizing any resources.
For the App Service plan, however, you do need to allocate resources for your functi ons
explicitly and pay for them regardless if you are running functi ons or not.
Virtual network is a representation of our own network.when we create virtual network our services
and vms withing our vnet can communicate directly and securely.
12) pre requisites to create virtual network?
Yes if we want to resize the vm disk then we need to stop and increase the size. If its already running
stop and increase and restart.
14) availability set – it is logical grouping of virtual machines, which is like collection of fault domains
and update domains.while creating a vm it asks for availability set.Availability Sets—running a VM
with one or more replicated copies on separate hardware within the same Availability Zone,
providing resiliency against machine failure.
15) Availability Zones—running a VM with one or more replicated copies on different Availability
Zones, providing resiliency against data center failure
16) vmss – virtual machine scale set – it is a collection of virtual machines with similar configuration..
Virtual Machine Scale Sets (VMSS), an interesting service offered by Microsoft Azure, helps to create
and manage a set of identical, auto-scaling Virtual Machines (VMs). The number of VM instances can
automatically increase or decrease based on scheduled conditions
17) can I add existing vm to availability set? No we cant add we can only set availability set whicl
creating vm.
Horizontal is more flexible in a cloud situation as it allows you to run potentially thousands of VMs
to handle load. In contrast, vertical scaling is different. It keeps the same number of VMs, but makes
the VMs more ("up") or less ("down") powerful.
Create and manage all of types of Azure resources Create a new tenant in Azure
Contributor
Active Directory Cannot grant access to others
User Access
Manage user access to Azure resources
Administrator
Web role: Automatically deploys and hosts your app through IIS. Worker role: Does not use IIS, and
runs your app standalone
The DELETE statement is used when we want to remove some or all of the records from the table,
while the TRUNCATE statement will delete entire rows from a table. DELETE is a DML command as it
only modifies the table data, whereas the TRUNCATE is a DDL command.
23) diff between * and distinct?
* will gives us entire rows data where as distinct gives us particular data
Network security group is a set of security rules that allows inbound network or out bound etwork
trafficfrom several types of azure resources?
Application security groups enable you to configure network security as a natural extension of an
application's structure, allowing you to group virtual machines and define network security policies
based on those groups. You can reuse your security policy at scale without manual maintenance of
explicit IP addresses.
Virtual network peering enables you to seamlessly connect two or more Virtual Networks in Azure
Components we need are – vn , virtual subnet, root certificate, client and vpn
Create a virtual network and create a gateway subnet , generate root vpn certificate as well as
client vpn certificate. Download vpn install client certificate. Connect to vpn via network.
Yes I have done , I have written a script for deletion of resources which are not in used more .
Ps - Connect-AzureRmAccount
$Headers=@{
'authorization'="Bearer <bearer_token>"
}
# Delete all resources which have not been changed since 20 days
Azure Resource Manager (ARM) is the native platform for infrastructure as code (IaC) in Azure. It
enables you to centralize the management, deployment, and security of Azure resources
az vm create \
--resource-group myResourceGroup \
--name myVM \
--image Win2019Datacenter \
--public-ip-sku Standard \
--admin-username azureuser
The job of Azure Load Balancer is to direct traffic inside a region. This is combined with Azure Traffic
Manager, where traffic manager routes interior to a region between virtual machines
Priority: Select Priority routing when you want to have a primary service endpoint for all
traffic. You can provide multiple backup endpoints in case the primary or one of the backup
endpoints is unavailable.
Weighted: Select Weighted routing when you want to distribute traffic across a set of
endpoints based on their weight. Set the weight the same to distribute evenly across all
endpoints.
Performance: Select Performance routing when you have endpoints in different geographic
locations and you want end users to use the "closest" endpoint for the lowest network
latency.
Geographic: Select Geographic routing to direct users to specific endpoints (Azure, External,
or Nested) based on where their DNS queries originate from geographically. With this routing
method, it enables you to be in compliance with scenarios such as data sovereignty mandates,
localization of content & user experience and measuring traffic from different regions.
Multivalue: Select MultiValue for Traffic Manager profiles that can only have IPv4/IPv6
addresses as endpoints. When a query is received for this profile, all healthy endpoints are
returned.
Subnet: Select Subnet traffic-routing method to map sets of end-user IP address ranges to a
specific endpoint. When a request is received, the endpoint returned will be the one mapped
for that request’s source IP address.
39)use of azure active directory?
One place for identity and access management. Azure AD is the heart of your organisation's IT, giving
you one place to go for managing user identities and permissions. ...
One identity for all applications. ...
Security. ...
Ease of use. ...
Collaboration.
40) use of app registrations?
Azure App registrations are an easy and powerful way to configure authentication and
authorization workflows for a variety of different client types.
Role-based access control (RBAC) restricts network access based on a person's role within an
organization
Break-fix issues are technical problems you experience while using Azure services. "Break-fix" is an
industry term which refers to “work involved in supporting a technology when it fails in the normal
course of its function, which requires intervention by a support organisation to be restored to
working order.
Git merge is a command that allows you to merge branches from Git.
Git rebase is a command that allows developers to integrate changes from one branch to another.
Git rebase is a command that allows developers to integrate changes from one branch to another.
Reverting undoes a commit by creating a new commit. ... Contrast this with git reset , which
does alter the existing commit history
50)
In Git, "origin" is a shorthand name for the remote repository that a project was
originally cloned from
51)git rm
he Azure SQL Database firewall allows you to specify IP address ranges from which
communications are accepted into SQL Database.in networking we need to enable firewall
opton.