Azuregit
Azuregit
A web role provides a dedicated Internet Information Services (IIS) web-server used
for hosting front-end web applications.
What is Worker Role ?
Applications hosted within worker roles can run asynchronous, long-running or
perpetual tasks independent of user interaction or input.
What is Azure Diagnostics ?
Azure Diagnostics is the API that enables you to collect diagnostic data from
applications running in Azure. Azure Diagnostics must be enabled for cloud service
roles in order for verbose monitoring to be turned on. For more information.
What is Autoscaling?
Scaling by adding additional instances is often referred to as scaling out. Windows
Azure also supports scaling up by using larger role instances instead of more role
instances. By adding and removing role instances to your Windows Azure application
while it is running, you can balance the performance of the application against its
running costs. An autoscaling solution reduces the amount of manual work involved
in dynamically scaling an application.
What is Blob?
BLOB stands for Binary Large Object. Blob is file of any type and size. The Azure
Blob Storage offers two types of blobs:
Block Blob
Page Blob URL format: Blobs are addressable using the following URL format:
http://.blob.aaa.windows.net//
What are the three Types of Roles in Compute Component in Windows Azure?
WEB
Worker
VM
Public cloud
Private cloud
Community cloud
Hybrid cloud
Agility
High Availability
Pay as you go
Fault Tolerance
High Bandwidth
Low Latency
{width="1.8732392825896762in" height="4.2in"}
Abstract
========
Both of us are Microsoft MVPs from past many years. We work closely in
Microsoft communities across India and also work closely with lot of
customers and enterprises as part of our day jobs. We both are
passionate about Azure and we both think that it is the future and today
is the right time to Learn, Build, Deploy and Enjoy Azure and Azure
Services and take our work, businesses to next level. While we say this,
we observed that there is a huge population of Developers and IT
Professionals who wish to go on Azure or pursue a career in Cloud (Azure
to be very specific). We also observed that while giving interviews many
people just give high level details when they interviewed on Azure since
either there is lack of awareness in them or they somehow not able to
get deeper dive. That creates a big impact not only on their planned
career in Azure but also they miss opportunities despite having good
development background.
Take the fear out of your interview and never be stuck for the right
answer to even the toughest questions with The Microsoft Azure Interview
Questions Book. The job market is fierce, competition has never been
greater and it\'s vital that you can grab every opportunity for
competitive advantage and stay one step ahead with the knowledge of
leading cloud computing technology platform "**Microsoft Azure**".
Interviewers are looking for people who really stand out, and here\'s
your chance to be different from the rest. Written by two Microsoft
Azure experts, this definitive guide to questions and answers encourages
every job-hunter to think on your feet and express your individuality
whilst supplying ideal responses to interview questions so that you\'re
seen as the ideal candidate for the job.
[Abstract 1](#abstract)
[General 4](#general)
[References 24](#references)
The book has been structured into various topics. For each topic a set
of important and frequently asked questions are drafted along with short
answers which specifically an interviewer will look for. This short
answer is the key for you in interview. To make you understand the
question and answer background along with all the details, after answers
to the question, you have "**Deep dive"** section that explains the
concept and background behind the short answer with detailed
information. This will help you to understand the concept, provide you
more information, so depending on the situation in interview you can
explain the diagrams, concepts with more confidence.
General
=======
**Deep dive:**
This is the bare minimum list for one application and this is the
problem. Our main aim was to develop banking application but we did not
think about
So we did not think about application business logic but got dragged in
infrastructure requirements and this is the problem. Being an
application development company we should be focusing on application
specific things.
So companies like Microsoft, Google, Amazon etc. came with the concept
that, if you are an application development (or service provider)
company you just need to focus on your application and data but all your
infrastructure needs we will take care. So application Development
Company don't have to worry about hardware, licenses, OS management,
backup etc. and just to need to pay what they use. This is nothing but
the cloud computing and why cloud came into existence.
- Scalability
- Agility
- High Availability
- Pay as you go
- Fault Tolerance
- High Bandwidth
- Low Latency
**Deep dive:**
#### Scalability
Basically this defines how much your application is available for its
end users. Customers or users will always expect zero downtime of the
application. High availability means your application can withstand
below common types of downtime scenarios --
- Hardware failures
- Application updates
- Configuration changes
- OS update restarts
This is the most lucrative benefit of cloud. With cloud you pay only for
what you use. If you are not in the need of resources, you can free
them/ de-allocate them and you are not charged for it. The billing is
absolutely "per minute" billing giving you more saving on cost.
Cloud computing is the concept and this concept has been implemented by
many companies. For example, Amazon implemented it and named their
product as Amazon EC2 or Amazon web services, Google call it as Google
App Engine and so on.
On similar lines Microsoft also created a product based on cloud
computing concept and it is called as "Microsoft Azure". So MS Azure
provides a platform with cloud computing capabilities so that you can
get all the benefits of cloud computing.
**Deep Dive:**
Here while answering this you can also start with answer to question
"what is cloud computing" and then explain above paragraph.
{width="6.5in"
height="2.4721150481189853in"}
**Deep Dive:**
{width="6.489583333333333in"
height="4.083333333333333in"}
As you can see from the above diagram, more you go towards right hand
side of the graph things that you manage become lesser and lesser. In
SaaS typically you don't manage anything and just consume. At the max
you can make look and feel or configuration changes but everything rest
is managed by Microsoft Azure for you.
What is Public, Private and Hybrid cloud implementation with respect to Azure?
------------------------------------------------------------------------------
The short answer for this questions is as below --
Private Cloud -- You are running Azure services and features within
on-premises data center OR you are using on premises data center for
hosting your system or applications.
**Deep Dive:**
{width="6.5in" height="3.53125in"}
Similarly, if you use Azure Stack feature, you get all of the azure
service running in your private within premises data center itself. So
on this data center if you run your hospital management system if will
also be termed as Private cloud.
1. Cloud services
2. Azure Web Apps
Every cloud service created from Azure provides you a DNS name such as
"YourCloudServiceName.cloudapp.net". This DNS name is used for accessing
web applications over internet. An Azure subscription can contain any
number cloud services and one cloud service can contain any number of
roles. Each role can run any number of "Instances (virtual machines)" on
which actual application executes.
**Deep Dive:**
{width="6.5in" height="3.3333333333333335in"}
Every cloud service type of project contains .cscfg file and primarily
is used for storing --
**Deep Dive:**
When you make changes to web configuration file while web application is
running and active in IIS, the App Pool gets restarted, current user
sessions are lost. For instance, imagine web application hosted in IIS
as "desktop application". So if you save web.config file it's exactly
similar to closing the opening the desktop application again. Therefore,
let's say if we store azure storage connection string in web config file
and after certain days or weeks you regenerated the primary key of
storage account for security reasons, then you need to change it in web
config file. However, if you do that, app pool will be restarted and
application downtime may be experienced. Therefore, you may want to
store these changing configuration settings (like azure storage
connection string) in a file which is external to application binaries
and deployment package so that change in it will not affect the running
application at all. This can have treated as [External Configuration
Store](https://msdn.microsoft.com/en-us/library/dn589803.aspx) Design
Pattern and cloud service configuration file is the implementation of
this pattern.
The .cscfg file settings can be modified from the azure portal itself.
This means you don't have to redeploy the entire application which could
have been the case if you have had used web.config file and needed a
change in it. This is the benefit of cloud configuration file over
web.config file.
How to achieve zero downtime in cloud service deployments during upgrades and all
hardware failures?
-----------------------------------------------------------------------------------
-----------------
**Deep Dive:**
What is difference between Cloud Service "Role Instance VM" and "Cloud Service
VM\"?
-----------------------------------------------------------------------------------
-
**Deep Dive:**
1. PaaS means you focus only on Application and Data. Rest is taken
care by cloud computing platform. In case role instance VMs user
only deploys its application and rest is managed by underlying cloud
platform.
IaaS means you get support only virtualization and after everything is
your responsibility.
In case of IaaS VM it can be directly changed from Portal and that's it.
In case Azure IaaS VMs all types of managed services tasks are user's
responsibility as you are the owner of that VM.
Today you can have any type of OS version and standard software VM
provisioned from Azure Marketplace for IaaS VMs. Azure provides
pre-configure template images through which all standard Microsoft stack
software such as SharePoint, SQL server, Dynamics AX, CRM VMs images are
readily available for consumption.
What is the best practice for achieving the High availability of applications
running on Azure VM having web tier and DB tier?
-----------------------------------------------------------------------------------
-------------------------------------------
**Deep Dive:**
For example, let's say we want to run asp.net MVC web application along
with SQL server DB on Azure IaaS VM provisioned in cloud service. Then
to provide HA for VMs, it is recommended to run web application database
in different server. Then have same web application hosted in 2
different VMs. Both VMs should be provisioned in the same cloud service
and add them to same availability sets. Whenever Azure platform see 2
VMs part of same availability sets then automatically they are placed in
different "Fault and Update domain". This way availability sets provides
HA configuration for Azure VMs running web applications. On top of this
it is also recommended to configure Load balancer \[for the endpoint
port which is used for running web application. usually this is 80 for
http or 443 for https\].

What are different types of Azure blobs and difference between them?
--------------------------------------------------------------------
\# Block Blob
Page Blob
----
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
-----------------------------------------------------------------------------------
------------------------------------
1 Block blob is ideal for sequential read, write operations.
Page blob is ideal for random read, write operations.
2 Block blobs should be natural choice for storing the various types of files
such as office file, pdf, mp3, video, byte array and so on. Page
blob being "sparse" type of storage, is natural choice for storing .VHD files
backing the Azure Virtual Machines
3 The data constitutes from various blocks and each block can have max size of
4MB. The data
constitutes of various page ranges and each page should be in multiple of 512
bytes.
4 Write made to block blob using PutBlock is uncommitted and maintained only
for 7 days. User have to call PutBlockList to commit the data permanently. Write
made to page blob using PutPage is a direct commit.
What is the difference between Table Storage and SQL Azure Table?
-----------------------------------------------------------------
\# Table Storage
SQL Azure Table
----
-----------------------------------------------------------------------------------
------------
-----------------------------------------------------------------------------------
------
1 This is NoSQL store on Azure
This is relational store on Azure
2 As NoSQL, the data is stored in Key-Value pair combination and data is
referred as an Entity. The data is stored in Rows and Columns combination.
3 Schema is not enforced while storing the data.
Schema is enforces while storing the data. If schema is violated, then error is
thrown.
4 Combination of partition and row key is treated as unique for an entity.
User can define various constraints such primary key, unique key.
5 Can't have relationship between tables.
We can define relationships between tables such as foreign key.
6 Being key-value store, we can't define objects such as Stored procedures,
Views, functions. We can created Stored procedures, views, functions.
7 General usage is observed for storing diagnostics information, error log
information. Used widely in transaction based systems.
**Deep Dive:**
**Point no 3 -**
{width="6.489583333333333in"
height="3.3645833333333335in"}
As you can see above the 3^rd^ record is storing the date time in
different format than first 2 records and this is absolutely accepted in
Table storage. This is what we meant by "No Schema enforced on the
data".
What is the difference between SQL Server on Azure VM and Azure SQL Database?
-----------------------------------------------------------------------------
+----+-------------------------------+-------------------------------+
| \# | SQL Server on VM | SQL Azure Database |
+====+===============================+===============================+
| 1 | This is IaaS offering on | This is PaaS offering on |
| | Azure | Azure. It is also termed as |
| | | "Database as a service |
| | | (DBaaS)". |
+----+-------------------------------+-------------------------------+
| 2 | Access to underlying VM is | Access to underlying VM is |
| | available. | not available and everything |
| | | to be accessed over TDS |
| | | (Tabular Data stream) based |
| | | endpoint. |
+----+-------------------------------+-------------------------------+
| 3 | Automated backups, DR and | DR, Backup and High |
| | high availability is not | availability is available |
| | available and one needs to | default. |
| | configure it. | |
+----+-------------------------------+-------------------------------+
| 4 | Eliminates Hardware cost | Eliminates hardware and |
| | | administration cost as well. |
+----+-------------------------------+-------------------------------+
| 5 | Distributed transaction or | - Distributed transaction |
| | all SQL server capabilities | is not supported. |
| | are supported. | |
| | | - Additionally there are |
| | | restrictions on the usage |
| | | of some reserved keywords |
| | | also. |
| | | |
| | | - Use command not |
| | | supported. |
+----+-------------------------------+-------------------------------+
| 6 | DB mirroring, Log shipping, | DB mirroring, Log shipping, |
| | transaction replication | transaction replication not |
| | supported. | supported. |
+----+-------------------------------+-------------------------------+
| 7 | SSIS, SSRS, SQL agent is | SSIS, SSRS, SQL agent is not |
| | available. | available. |
+----+-------------------------------+-------------------------------+
An application front end is hosted on Azure but due to security reasons customer
want database to be hosted on-premises within his office building. What are the
different ways to handle this connectivity scenario in Azure?
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------------------------------
What are the other VNET options for achieving connectivity with on premise and
azure resources?
-----------------------------------------------------------------------------------
------------
Site to Site and express route are other options for achieving cross
premises connectivity. Site to site to specifically use when you have
large number of resources to be connected.
What is the option to connect on premises Database in case user is not willing to
open up VNET based connectivity?
-----------------------------------------------------------------------------------
-------------------------------
In such case, a WCF service can be developed and hosted on premises.
This WCF service will have CRUD operations specifically against the on
premises database. Then Service bus relay option can be used for
invoking on premises WCF service from Azure hosted web application to
access the database. Use of WCF and service bus relay will avoid the
option of VPN connectivity using Azure VNETs offerings.
Azure Migration
===============
2. Worker role
**Deep dive:**
b. Web Jobs: This can run in background plus has scheduling capability
as well. Webjobs runs in the context of API App service, means runs
on the same instance on which web application, API app is running.
Hence it saves cost as compared to Worker Role and it can scale as
per the App Service plan in which web app, API app is running.
Azure Redis Cache is the most commonly used Caching mechanism available
as Platform as a Service (PaaS) in Azure. In the recent announcement,
Microsoft mentioned that Azure Managed Cache and In-Role cache will be
retiring on 30^th^ November 2016.
**Deep dive:**
**Redis Cache:**
Redis Cache is open source Third Party service provider in Azure and it
is available as Platform as a Service (PaaS). So you don't have to
create VMs or configure any infrastructure components to build and
utilize Redis Cache. Redis Cache is also costly Caching service compare
to SQL Server option. Redis Cache have its own security layer and it is
ensured to not get exposed to public networks, hence using Redis Cache
for your Caching related requirements in any apps is safe. Also Redis
Cache is scalable and hence very much viable solution in large
enterprise applications. You can implement Redis Cache with design
patterns like Circuit Breaker or Cache-Aside pattern as well.
You can also monitor Azure Redis Cache activities. You can also setup
Redis Cache instance from PowerShell like:
Based on your business requirement you can choose any tier for your
application. It is highly recommended to use Redis Cache in Cloud First
applications (Purely cloud based) than Hybrid Workloads/Applications.
What is Azure Resource Manager (ARM) and what are benefits of ARM over Classic
services (Cloud Services)
-----------------------------------------------------------------------------------
---------------------
You can deploy, manage, and monitor all of the resources for your
solution as a group, rather than handling these resources individually.
You can repeatedly deploy your solution throughout the development
lifecycle and have confidence your resources are deployed in a
consistent state. You can use declarative templates to define your
deployment. You can define the dependencies between resources so they
are deployed in the correct order.
You can apply access control to all services in your resource group
because Role-Based Access Control (RBAC) is natively integrated into the
management platform. You can apply tags to resources to logically
organize all of the resources in your subscription. You can clarify
billing for your organization by viewing the rolled-up costs for the
entire group or for a group of resources sharing the same tag.
What are the various ways by which an on premises VM can be migrated to Azure?
------------------------------------------------------------------------------
The best and quick way can be to migrate the associated OS disk and data
disks from on premises to Azure storage, and then provision VM out of
it.
What is the difference between Storage queue and Service Bus queue?
-------------------------------------------------------------------
Below are the important difference between storage queue and service bus
queue -
**Deep Dive:**
The storage queue does not provide guarantee about FIFO nature. The
order in which messages are added to queue may not get received in the
same order. On the other hand, Service Bus Queue provides FIFO ordering
guarantee if "Message Sessions" are used. If messages are added with
SessionID and receiver receives the messages with same SessionID then an
affinity is created and the order in which messages were added, message
will be received as well.
As the message receiving attempt is made only once and after that it
gets deleted this is referred as "At Most Once".
PeekLock method of receiving message from Service Bus Queue is two stage
operation. When PeekLock is called, the message gets locked and no other
receivers can receive it. Once the processing is finished Complete
method can be called on the same message which marks the message for
delete operation. In case an error occurs while processing the message
can re-appear again for receive operation after expiry of lock period.
Similarly, if processing of message is required to be done immediately
after error, Abandon method can be called which makes locked message
available for consumption immediately. This way combination of PeekLock
and Complete method makes sure that every message is received and
processed always therefore this model is called as "At Least Once".
What are different receive methods can be used for Azure Service Bus Queue?
---------------------------------------------------------------------------
\# Windows Server AD
Azure Active Directory
----
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
---------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------
1 Windows AD offers 5 core services -- ADCS, ADRMS, ADFS, ADDS, ADLDS.
Azure AD provides only one solution -- "Identity management throughout the
internet".
2 Designed to operate in corporate network where companies have full control
over topology. This exposes services exposed through various protocols like LDAP,
Kerberos, DNS, AD replication etc. Type of communication is Http or Https and
authentication protocols supported are OAuth, WS-Federation, SAMP-P.
3 Operations/ information can be retrieved from AD are performed through LDAP
queries.
Azure AD provides Graph API which is REST API.
4 The management of devices are limited to corporate assets.
Http and https enables support for any device that can talk over http/ (s) hence
enabling true Bring Your Own Device (BYOD) scenario.
5 Can't be integrated with enterprise ready SaaS applications.
The nature of Azure AD enables to integrate with enterprise grade SaaS applications
such as Salesforce, Facebook at work, dropbox and so on.
6 You have access to underlying Domain controller as this is Infra offering.
No access to underlying servers as this is PaaS offering and communication happens
using internet facing endpoints.
References
==========
<https://azure.microsoft.com/en-us/get-started/>
An Appeal to readers
====================
Thanks for reading through! We hope you found this interview guide trial
version useful. We will love to hear about topics you want to get
covered as a part of full version of this book. Requesting you to take 2
minutes of your time and send your thoughts to
E-mail: cloudqna2016\@outlook.com
Or
## Azure
[What is Kudu?](#what-is-kudu)
[How can I use applications with Azure AD that I’m using on-premises?](#how-can-i-
use-applications-with-azure-ad-that-im-using-on-premises)
[What is the difference between Service Bus Queues and Storage Queues?](#what-is-
the-difference-between-service-bus-queues-and-storage-queues)
[What is a VNet?](#what-is-a-vnet)
[How to create a new storage account and container using Power Shell?](#how-to-
create-a-new-storage-account-and-container-using-power-shell)
[ What is the meaning of application partitions?](#-what-is-the-meaning-of-
application-partitions)
[What is the difference between “price,” “software price,” and “total price” in the
cost structure for Virtual Machine offers in the Azure Marketplace?](#what-is-the-
difference-between-price-software-price-and-total-price-in-the-cost-structure-for-
virtual-machine-offers-in-the-azure-marketplace)
[How to create a Network Security Group and a Network Security Group Rule?](#how-
to-create-a-network-security-group-and-a-network-security-group-rule)
By creating a cloud service, you can deploy a multi-tier web application in Azure,
defining multiple roles to distribute processing and allow flexible scaling of your
application. A cloud service consists of one or more web roles and/or worker roles,
each with its own application files and configuration. Azure Websites and Virtual
Machines also enable web applications on Azure. The main advantage of cloud
services is the ability to support more complex multi-tier architectures
###### Source
* https://mindmajix.com/azure-interview-questions
A web role provides a dedicated Internet Information Services (IIS) web-server used
for hosting front-end web applications.
###### Source
* https://mindmajix.com/azure-interview-questions
As a fully managed service, server management and capacity planning are invisible
to the developer and billing is based just on resources consumed or the actual time
your code is running.
###### Source
* http://www.onlinetech.com/resources/references/how-to-use-azure-resource-groups-
a-simple-explanation
Every Azure App Service web application includes a "hidden" service site called
**Kudu**.
Kudu Console for example is a debugging service for Azure platform which allows you
to explore your web app and surf the bugs present on it, like deployment logs,
memory dump, and uploading files to your web app, and adding JSON endpoints to your
web apps, etc.
A role instance is a virtual machine on which the application code and role
configuration run. A role can have multiple instances, defined in the service
configuration file.
###### Source
* https://mindmajix.com/azure-interview-questions
The guest operating system for a cloud service is the operating system installed on
the role instances (virtual machines) on which your application code runs.
###### Source
* https://mindmajix.com/azure-interview-questions
*Azure Blob storage* is Microsoft's object storage solution for the cloud. Blob
storage is optimized for storing massive amounts of unstructured data, such as text
or binary data. Azure Storage offers three types of blobs:
* **Block blobs** store text and binary data, up to about 4.7 TB. Block blobs are
made up of blocks of data that can be managed individually.
* **Append blobs** are made up of blocks like block blobs, but are optimized for
append operations. Append blobs are ideal for scenarios such as logging data from
virtual machines.
* **Page blobs** store random access files up to 8 TB in size. Page blobs store the
VHD files that back VMs.
###### Source
* https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction
```cs
#r "D:\home\site\wwwroot\GreetingsAssemblyReference\bin\benjamin.dll"
using benjamin;
```
**Azure Table storage** is a service that stores structured NoSQL data in the
cloud, providing a key/attribute store with a schemaless design.
###### Source
* https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq
###### Source
* https://blogs.msdn.microsoft.com/arunrakwal/2012/04/09/create-windows-azure-
subscription/
The **Azure Resource Manager (ARM)** is the service used to provision resources in
your Azure subscription. It was first announced at Build 2014 when the new Azure
portal ( portal.azure.com) was announced and provides a new set of API's that are
used to provision resources. The ARM is:
###### Source
* https://azurestack.blog/2015/06/azure-resource-manager-templates-json/
An Azure Resource Template is a JSON file used to deploy resources with Azure
Resource Manager. It defines:
* Parameters
* Variables
* Resources - the actual resources that you are going to deploy or update
* Outputs
###### Source
* http://www.onlinetech.com/resources/references/how-to-use-azure-resource-groups-
a-simple-explanation
* https://mindmajix.com/azure-interview-questions
*Redis* is an open source (BSD licensed), in-memory data structure store, used as a
database, cache and message broker. **Azure Redis Cache** is based on the popular
open-source Redis cache. It gives you access to a secure, dedicated Redis cache,
managed by Microsoft, and accessible from any application within Azure. It supports
data structures such as strings, hashes, lists, sets, sorted sets with range
queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
*Azure AD* gives you an easy and secure way to connect to the web applications you
choose. You can access these applications in the same way you access your SaaS apps
in Azure AD, no need for a VPN to change your network infrastructure.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
**Key Vault** help you safeguard cryptographic keys and other secrets used by your
applications whenever they are On-Premise or in the cloud. More and more services
on Azure are now integrating Azure Key Vault as their secret/key source for things
like deployments, data or even disk encryption.
###### Source
* https://www.codeisahighway.com/create-an-azure-key-vault-using-an-arm-template-
api-version-2015-06-01-and-azure-powershell-v1-0-4/
###### Source
* https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction
```sh
Stop-AzureRmVM -ResourceGroupName myResourceGroupVM -Name "myVM" -Force
```
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
```sh
Get-AzureRmVM `
-ResourceGroupName myResourceGroup `
-Name myVM `
-Status | Select @{n="Status"; e={$_.Statuses[1].Code}}
```
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
```sh
az vm create ` --resource-group myResourceGroup ` --name myVM --image
win2016datacenter ` --admin-username azureuser ` --admin-password myPassword12
```
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
**WebJobs** is a feature of Azure App Service that enables you to run a program or
script in the same context as a web app, API app, or mobile app. There is no
additional cost to use WebJobs.
The Azure WebJobs SDK is a framework that simplifies the task of writing background
processing code that runs in Azure WebJobs. It includes a declarative binding and
trigger system that works with Azure Storage Blobs, Queues and Tables as well as
Service Bus. You could also trigger Azure WebJob using Kudu API.
###### Source
* https://github.com/Azure/azure-webjobs-sdk/wiki
###### Source
* https://mindmajix.com/azure-interview-questions
```sh
# Define a credential object
$cred = Get-Credential
# Create a virtual machine configuration
$vmConfig = New-AzureRmVMConfig -VMName myVM -VMSize Standard_DS2 |
` Set-AzureRmVMOperatingSystem -Windows -ComputerName myVM -Credential $cred |
` Set-AzureRmVMSourceImage -PublisherName MicrosoftWindowsServer -Offer
WindowsServer `
-Skus 2016-Datacenter -Version latest | Add-AzureRmVMNetworkInterface -Id $nic.Id
```
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
Each data disk can be up to 1 TB. The number of data disks which you can use
depends on the size of the virtual machine.
Azure Managed Disks are the new and recommended disk storage offerings for use with
Azure Virtual Machines for persistent storage of data. You can use multiple Managed
Disks with each Virtual Machine. Managed Disks offer two types of durable storage
options: Premium and Standard Managed Disks.
Azure storage accounts can also provide storage for the operating system disk and
any data disks. Each disk is a .vhd file stored as a page blob.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
No. If you want your VM to be part of an availability set, you need to create the
VM within the set. There currently no way to add a VM to an availability set after
it has been created.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
The two environments are distinguished only by the virtual IP addresses (VIPs) by
which the cloud service is accessed. In the staging environment, the cloud
service’s globally unique identifier (GUID) identifies it in URLs
(GUID.cloudapp.net).
In the production environment, the URL is based on the friendlier DNS prefix
assigned to the cloud service (for example, myservice.cloudapp.net).
###### Source
* https://mindmajix.com/azure-interview-questions
###### Source
* https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways
The *Azure Storage Queue* is simple and the developer experience is quite good. It
uses the local Azure Storage Emulator and debugging is made quite easy. The tooling
for Azure Storage Queues allows you to easily peek at the top 32 messages and if
the messages are in XML or Json, you’re able to visualize their contents directly
from Visual Studio Furthermore, these queues can be purged of their contents, which
is especially useful during development and QA efforts.
The Azure Service Bus Queues are evolved and surrounded by many useful mechanisms
that make it enterprise worthy! They are built into the Service Bus and are able to
forward messages to other Queues and Topics. They have a built-in dead-letter queue
and messages have a time to live that you control, hence messages don’t
automatically disappear after 7 days.
Furthermore, Azure Service Bus Queues have the ability of deleting themselves after
a configurable amount of idle time. This feature is very practical when you create
Queues for each user, because if a user hasn’t interacted with a Queue for the past
month, it automatically gets clean it up. Its also a great way to drive costs down.
You shouldn’t have to pay for storage that you don’t need. These Queues are limited
to a maximum of 80gb. Once you’ve reached this limit your application will start
receiving exceptions.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
By default, one is assigned the *Subscription Administrator* role when he/she signs
up for Azure. A subscription admin can use either a Microsoft account or a work or
school account from the directory that the Azure subscription is associated with.
This role is authorized to manage services in the Azure portal. If others need to
sign in and access services by using the same subscription, you can add them as co-
admins.
Azure AD has a different set of admin roles to manage the directory and identity-
related features. These admins will have access to various features in the Azure
portal or the Azure classic portal. The admin’s role determines what they can do,
like create or edit users, assign administrative roles to others, reset user
passwords, manage user licenses, or manage domains.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
###### Source
* https://searchwindowsserver.techtarget.com/definition/Microsoft-Azure-Key-Vault
Yes. A scale set is an implicit availability set with 5 fault domains and 5 update
domains. Scale sets of more than 100 VMs span multiple placement groups, which are
equivalent to multiple availability sets. An availability set of VMs can exist in
the same virtual network as a scale set of VMs. A common configuration is to put
control node VMs (which often require unique configuration) in an availability set
and put data nodes in the scale set.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
A *network security group (NSG)* contains a list of Access Control List (ACL) rules
that allow or deny network traffic to subnets, NICs, or both. NSGs can be
associated with either subnets or individual NICs connected to a subnet. When an
NSG is associated with a subnet, the ACL rules apply to all the VMs in that subnet.
In addition, traffic to an individual NIC can be restricted by associating an NSG
directly to a NIC.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
*An availability set* is a logical grouping of VMs that allows Azure to understand
how your application is built to provide redundancy and availability. It is
recommended that two or more VMs are created within an availability set to provide
for a highly available application and to meet the 99.95% Azure SLA. When a single
VM is used with Azure Premium Storage, the Azure SLA applies for unplanned
maintenance events.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
Virtual machine scale sets are Azure compute resource that you can use to deploy
and manage a set of identical VMs. With all the VMs configured the same, scale sets
are designed to support true autoscale, and no pre-provisioning of VMs is required.
So it’s easier to build large-scale services that target big compute, big data, and
containerized workloads.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
###### Source
* https://docs.microsoft.com/en-us/azure/active-directory/authentication/multi-
factor-authentication
* **Web Role** – A web role is basically used to deploy a website, using languages
supported by the IIS platform like, PHP, .NET etc. It is configured and customized
to run web applications.
* **Worker Role** – A worker role is more like an help to the Web role, it used to
execute background processes unlike the Web Role which is used to deploy the
website.
* **VM Role** – The VM role is used by a user to schedule tasks and other windows
services. This role can be used to customize the machines on which the web and
worker role is running.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
*Azure Table storage* is a service that stores structured NoSQL data in the cloud,
providing a key/attribute store with a schemaless design. Because Table storage is
schemaless, it's easy to adapt your data as the needs of your application evolve.
Access to Table storage data is fast and cost-effective for many types of
applications, and is typically lower in cost than traditional SQL for similar
volumes of data.
###### Source
* https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-overview
The **Azure Resource Manager (ARM)** is the service used to provision resources in
your Azure subscription. ARM provides us a way to describe resources in a resource
group using JSON documents (ARM Template). by using the ARM Template you have a
fully repeatable configuration of a given deployment and this is extremely valuable
for Production environments but especially so for Dev/Test deployments. By having a
set template, we can ensure that anytime a new Dev or Test deployment is required
(which happens all the time), it can be achieved in moments and safe in the
knowledge that it will be identical to the previous environments.
###### Source
* https://www.codeisahighway.com/create-an-azure-key-vault-using-an-arm-template-
api-version-2015-06-01-and-azure-powershell-v1-0-4/
Azure Search allows you to easily add a robust search experience to your
applications using a simple REST API or .NET SDK without managing search
infrastructure or becoming an expert in search.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
Redis Databases are just a logical separation of data within the same Redis
instance. The cache memory is shared between all the databases and actual memory
consumption of a given database depends on the keys/values stored in that database.
For example, a C6 cache has 53 GB of memory. You can choose to put all 53 GB into
one database or you can split it up between multiple databases.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
This is not supported. You cannot use Azure Resource Manager to deploy a virtual
machine into a virtual network that was created using classic deployment.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
```sh
$storageName = "st" + (Get-Random)
New-AzureRmStorageAccount -ResourceGroupName "myResourceGroup" -AccountName
$storageName -Location "West US" -SkuName "Standard_LRS" -Kind Storage
$accountKey = (Get-AzureRmStorageAccountKey -ResourceGroupName myResourceGroup -
Name $storageName).Value[0]
$context = New-AzureStorageContext -StorageAccountName $storageName -
StorageAccountKey $accountKey
New-AzureStorageContainer -Name "templates" -Context $context -Permission Container
```
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
*The application partitions* are a part of the Active Directory system and having
said so, they are directory partitions which are replicated to domain controllers.
Usually, domain controllers that are included in the process of directory
partitions hold a replica of that directory partition. The attributes and values of
application partitions is that you can replicated them to any specific domain
controller in a forest, meaning that it could lessen replication traffic.
While the domain directory partitions transfer all their data to all of the
domains, the application partitions can focus on only one in the domain area. This
makes application partitions redundant and more available.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
###### Source
* https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq
* **Price** - refers to the cost of the Azure Virtual Machine to run the software.
* **Software price** - refers to the cost of the publisher software running on an
Azure Virtual Machine.
* **Total price** - refers to the combined total cost of the Azure Virtual Machine
and the publisher software running on an Azure Virtual Machine.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
```sh
# Create an inbound network security group rule for port 3389
$nsgRuleRDP = New-AzureRmNetworkSecurityRuleConfig -Name
myNetworkSecurityGroupRuleRDP -Protocol Tcp
-Direction Inbound -Priority 1000 -SourceAddressPrefix * -SourcePortRange * -
DestinationAddressPrefix *
-DestinationPortRange 3389 -Access Allow
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
Pricing will vary based on product types. ISV software charges and Azure
infrastructure costs are charged separately through your Azure subscription.
Pricing models include:
* **Free**: Free SKU. Customers are not charged Azure Marketplace fees for use of
the offering.
* **Usage-Based**: You are charged or billed based on the extent of your use of the
offering. For Virtual Machines Images, you are charged an hourly Azure Marketplace
fee. For Data Services, Developer services, and APIs, you are charged per unit of
measurement as defined by the offering.
* **Monthly Fee**: You are charged or billed a fixed monthly fee for a subscription
to the offering (from the date of subscription start for that particular plan). The
monthly fee is not prorated for mid-month cancellations or unused services.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
A **network security group (NSG)** used to filter network traffic to and from Azure
resources in an Azure virtual network and includes rules that allow or deny
traffic to a virtual network subnet, network interface, or both.
###### Source
* https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways
###### Source
* https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq
Azure has some special regions that you may wish to use when building your
applications for compliance or legal purposes. These special regions include:
* **US Gov Virginia** and **US Gov Iowa** - A physical and logical network-isolated
instance of Azure for US government agencies and partners, operated by screened US
persons. Includes additional compliance certifications such as FedRAMP and DISA.
* **China East** and **China North** - These regions are available through a unique
partnership between Microsoft and 21Vianet, whereby Microsoft does not directly
maintain the datacenters.
* **Germany Central** and **Germany Northeast** - These regions are available via a
data trustee model whereby customer data remains in Germany under control of T-
Systems, a Deutsche Telekom company, acting as the German data trustee.
###### Source
* https://www.quora.com/What-are-the-common-questions-asked-in-Microsoft-Azure-
interview
Common questions asked in Microsoft Azure interviews can cover a range of topics,
including:
2. Worker Role.
Q. What is Azure Resource Manager (ARM) and what are the benifits of ARM over
Classic services?
Ans. ARM is deployment methodology to deploy your Azure components. It's act like a
container of multiple resources with scalability. In comparison with classic
services it can help you deploy, manage and monitor all resources for you solution
as a group, rather than handling these resources individually.
Q. What is Windows Azure Traffic manager and what are it's benifits?
Q. What is Azure App Service and what are it's advantage over Mobile Service?
2. Worker Role.
Q. What is Azure Resource Manager (ARM) and what are the benifits of ARM over
Classic services?
Ans. ARM is deployment methodology to deploy your Azure components. It's act like a
container of multiple resources with scalability. In comparison with classic
services it can help you deploy, manage and monitor all resources for you solution
as a group, rather than handling these resources individually.
Q. What is Windows Azure Traffic manager and what are it's benifits?
Q. What is Azure App Service and what are it's advantage over Mobile Service?
How you make an IaasS solutions, lets says a customer facing portal highly
available?
What about backup and recovery for that solution ?
What would be the SLA of that solution you draw and can you make it better?
How many tiers does the solution and why?
What about security ? At rest and in transit?
What operating system you will be using and why?
Are you using RBAC?
What about single sign on, for customers of that portal? Is it needed?
For Paas
Select an scenario and draw the components, let's say Service Bus for example
you need to exchange information between to entities, one in Azure the other not,
how would you exchange information using the servíce bus?
What If the Azure Datacenter goes down? How’d you prepare for that event ?
All these questions, I’ve needed to come up with the answer or I’ve been part of
the team doing the design/implementation
Managed Disks offer two types of durable storage options: Premium and Standard
Managed Disks.
Azure storage accounts can also provide storage for the operating system disk and
any data disks. Each disk is a .vhd file stored as a page blob.
Parameters
Variables
Resources - the actual resources that you are going to deploy or update
Outputs
Block blobs store text and binary data, up to about 4.7 TB. Block blobs are made up
of blocks of data that can be managed individually.
Append blobs are made up of blocks like block blobs, but are optimized for append
operations. Append blobs are ideal for scenarios such as logging data from virtual
machines.
Page blobs store random access files up to 8 TB in size. Page blobs store the VHD
files that back VMs
https://github.com/Devinterview-io/azure-interview-questions
---------------------------------------------
{width="1.8732392825896762in" height="4.2in"}
Abstract
========
Both of us are Microsoft MVPs from past many years. We work closely in
Microsoft communities across India and also work closely with lot of
customers and enterprises as part of our day jobs. We both are
passionate about Azure and we both think that it is the future and today
is the right time to Learn, Build, Deploy and Enjoy Azure and Azure
Services and take our work, businesses to next level. While we say this,
we observed that there is a huge population of Developers and IT
Professionals who wish to go on Azure or pursue a career in Cloud (Azure
to be very specific). We also observed that while giving interviews many
people just give high level details when they interviewed on Azure since
either there is lack of awareness in them or they somehow not able to
get deeper dive. That creates a big impact not only on their planned
career in Azure but also they miss opportunities despite having good
development background.
Take the fear out of your interview and never be stuck for the right
answer to even the toughest questions with The Microsoft Azure Interview
Questions Book. The job market is fierce, competition has never been
greater and it\'s vital that you can grab every opportunity for
competitive advantage and stay one step ahead with the knowledge of
leading cloud computing technology platform "**Microsoft Azure**".
Interviewers are looking for people who really stand out, and here\'s
your chance to be different from the rest. Written by two Microsoft
Azure experts, this definitive guide to questions and answers encourages
every job-hunter to think on your feet and express your individuality
whilst supplying ideal responses to interview questions so that you\'re
seen as the ideal candidate for the job.
[Abstract 1](#abstract)
[General 4](#general)
[References 24](#references)
The book has been structured into various topics. For each topic a set
of important and frequently asked questions are drafted along with short
answers which specifically an interviewer will look for. This short
answer is the key for you in interview. To make you understand the
question and answer background along with all the details, after answers
to the question, you have "**Deep dive"** section that explains the
concept and background behind the short answer with detailed
information. This will help you to understand the concept, provide you
more information, so depending on the situation in interview you can
explain the diagrams, concepts with more confidence.
General
=======
**Deep dive:**
This is the bare minimum list for one application and this is the
problem. Our main aim was to develop banking application but we did not
think about
So we did not think about application business logic but got dragged in
infrastructure requirements and this is the problem. Being an
application development company we should be focusing on application
specific things.
So companies like Microsoft, Google, Amazon etc. came with the concept
that, if you are an application development (or service provider)
company you just need to focus on your application and data but all your
infrastructure needs we will take care. So application Development
Company don't have to worry about hardware, licenses, OS management,
backup etc. and just to need to pay what they use. This is nothing but
the cloud computing and why cloud came into existence.
- Scalability
- Agility
- High Availability
- Pay as you go
- Fault Tolerance
- High Bandwidth
- Low Latency
**Deep dive:**
#### Scalability
#### Agility
Basically this defines how much your application is available for its
end users. Customers or users will always expect zero downtime of the
application. High availability means your application can withstand
below common types of downtime scenarios --
- Hardware failures
- Application updates
- Configuration changes
- OS update restarts
This is the most lucrative benefit of cloud. With cloud you pay only for
what you use. If you are not in the need of resources, you can free
them/ de-allocate them and you are not charged for it. The billing is
absolutely "per minute" billing giving you more saving on cost.
Cloud computing is the concept and this concept has been implemented by
many companies. For example, Amazon implemented it and named their
product as Amazon EC2 or Amazon web services, Google call it as Google
App Engine and so on.
**Deep Dive:**
Here while answering this you can also start with answer to question
"what is cloud computing" and then explain above paragraph.
{width="6.5in"
height="2.4721150481189853in"}
**Deep Dive:**
{width="6.489583333333333in"
height="4.083333333333333in"}
As you can see from the above diagram, more you go towards right hand
side of the graph things that you manage become lesser and lesser. In
SaaS typically you don't manage anything and just consume. At the max
you can make look and feel or configuration changes but everything rest
is managed by Microsoft Azure for you.
What is Public, Private and Hybrid cloud implementation with respect to Azure?
------------------------------------------------------------------------------
Private Cloud -- You are running Azure services and features within
on-premises data center OR you are using on premises data center for
hosting your system or applications.
**Deep Dive:**
{width="6.5in" height="3.53125in"}
Similarly, if you use Azure Stack feature, you get all of the azure
service running in your private within premises data center itself. So
on this data center if you run your hospital management system if will
also be termed as Private cloud.
1. Cloud services
Every cloud service created from Azure provides you a DNS name such as
"YourCloudServiceName.cloudapp.net". This DNS name is used for accessing
web applications over internet. An Azure subscription can contain any
number cloud services and one cloud service can contain any number of
roles. Each role can run any number of "Instances (virtual machines)" on
which actual application executes.
**Deep Dive:**
{width="6.5in" height="3.3333333333333335in"}
Every cloud service type of project contains .cscfg file and primarily
is used for storing --
**Deep Dive:**
When you make changes to web configuration file while web application is
running and active in IIS, the App Pool gets restarted, current user
sessions are lost. For instance, imagine web application hosted in IIS
as "desktop application". So if you save web.config file it's exactly
similar to closing the opening the desktop application again. Therefore,
let's say if we store azure storage connection string in web config file
and after certain days or weeks you regenerated the primary key of
storage account for security reasons, then you need to change it in web
config file. However, if you do that, app pool will be restarted and
application downtime may be experienced. Therefore, you may want to
store these changing configuration settings (like azure storage
connection string) in a file which is external to application binaries
and deployment package so that change in it will not affect the running
application at all. This can have treated as [External Configuration
Store](https://msdn.microsoft.com/en-us/library/dn589803.aspx) Design
Pattern and cloud service configuration file is the implementation of
this pattern.
The .cscfg file settings can be modified from the azure portal itself.
This means you don't have to redeploy the entire application which could
have been the case if you have had used web.config file and needed a
change in it. This is the benefit of cloud configuration file over
web.config file.
How to achieve zero downtime in cloud service deployments during upgrades and all
hardware failures?
-----------------------------------------------------------------------------------
-----------------
**Deep Dive:**
This is the reason why Azure recommends you to have 2 instances so that
Azure fabric will place your application role instances in more than one
fault domain to avoid failure.
What is difference between Cloud Service "Role Instance VM" and "Cloud Service
VM\"?
-----------------------------------------------------------------------------------
-
**Deep Dive:**
1. PaaS means you focus only on Application and Data. Rest is taken
care by cloud computing platform. In case role instance VMs user
only deploys its application and rest is managed by underlying cloud
platform.
IaaS means you get support only virtualization and after everything is
your responsibility.
In case of IaaS VM it can be directly changed from Portal and that's it.
In case Azure IaaS VMs all types of managed services tasks are user's
responsibility as you are the owner of that VM.
Today you can have any type of OS version and standard software VM
provisioned from Azure Marketplace for IaaS VMs. Azure provides
pre-configure template images through which all standard Microsoft stack
software such as SharePoint, SQL server, Dynamics AX, CRM VMs images are
readily available for consumption.
What is the best practice for achieving the High availability of applications
running on Azure VM having web tier and DB tier?
-----------------------------------------------------------------------------------
-------------------------------------------
**Deep Dive:**
For example, let's say we want to run asp.net MVC web application along
with SQL server DB on Azure IaaS VM provisioned in cloud service. Then
to provide HA for VMs, it is recommended to run web application database
in different server. Then have same web application hosted in 2
different VMs. Both VMs should be provisioned in the same cloud service
and add them to same availability sets. Whenever Azure platform see 2
VMs part of same availability sets then automatically they are placed in
different "Fault and Update domain". This way availability sets provides
HA configuration for Azure VMs running web applications. On top of this
it is also recommended to configure Load balancer \[for the endpoint
port which is used for running web application. usually this is 80 for
http or 443 for https\].

What are different types of Azure blobs and difference between them?
--------------------------------------------------------------------
\# Block Blob
Page Blob
----
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
-----------------------------------------------------------------------------------
------------------------------------
1 Block blob is ideal for sequential read, write operations.
Page blob is ideal for random read, write operations.
2 Block blobs should be natural choice for storing the various types of files
such as office file, pdf, mp3, video, byte array and so on. Page
blob being "sparse" type of storage, is natural choice for storing .VHD files
backing the Azure Virtual Machines
3 The data constitutes from various blocks and each block can have max size of
4MB. The data
constitutes of various page ranges and each page should be in multiple of 512
bytes.
4 Write made to block blob using PutBlock is uncommitted and maintained only
for 7 days. User have to call PutBlockList to commit the data permanently. Write
made to page blob using PutPage is a direct commit.
What is the difference between Table Storage and SQL Azure Table?
-----------------------------------------------------------------
\# Table Storage
SQL Azure Table
----
-----------------------------------------------------------------------------------
------------
-----------------------------------------------------------------------------------
------
1 This is NoSQL store on Azure
This is relational store on Azure
2 As NoSQL, the data is stored in Key-Value pair combination and data is
referred as an Entity. The data is stored in Rows and Columns combination.
3 Schema is not enforced while storing the data.
Schema is enforces while storing the data. If schema is violated, then error is
thrown.
4 Combination of partition and row key is treated as unique for an entity.
User can define various constraints such primary key, unique key.
5 Can't have relationship between tables.
We can define relationships between tables such as foreign key.
6 Being key-value store, we can't define objects such as Stored procedures,
Views, functions. We can created Stored procedures, views, functions.
7 General usage is observed for storing diagnostics information, error log
information. Used widely in transaction based systems.
**Deep Dive:**
**Point no 3 -**
{width="6.489583333333333in"
height="3.3645833333333335in"}
As you can see above the 3^rd^ record is storing the date time in
different format than first 2 records and this is absolutely accepted in
Table storage. This is what we meant by "No Schema enforced on the
data".
What is the difference between SQL Server on Azure VM and Azure SQL Database?
-----------------------------------------------------------------------------
+----+-------------------------------+-------------------------------+
| \# | SQL Server on VM | SQL Azure Database |
+====+===============================+===============================+
| 1 | This is IaaS offering on | This is PaaS offering on |
| | Azure | Azure. It is also termed as |
| | | "Database as a service |
| | | (DBaaS)". |
+----+-------------------------------+-------------------------------+
| 2 | Access to underlying VM is | Access to underlying VM is |
| | available. | not available and everything |
| | | to be accessed over TDS |
| | | (Tabular Data stream) based |
| | | endpoint. |
+----+-------------------------------+-------------------------------+
| 3 | Automated backups, DR and | DR, Backup and High |
| | high availability is not | availability is available |
| | available and one needs to | default. |
| | configure it. | |
+----+-------------------------------+-------------------------------+
| 4 | Eliminates Hardware cost | Eliminates hardware and |
| | | administration cost as well. |
+----+-------------------------------+-------------------------------+
| 5 | Distributed transaction or | - Distributed transaction |
| | all SQL server capabilities | is not supported. |
| | are supported. | |
| | | - Additionally there are |
| | | restrictions on the usage |
| | | of some reserved keywords |
| | | also. |
| | | |
| | | - Use command not |
| | | supported. |
+----+-------------------------------+-------------------------------+
| 6 | DB mirroring, Log shipping, | DB mirroring, Log shipping, |
| | transaction replication | transaction replication not |
| | supported. | supported. |
+----+-------------------------------+-------------------------------+
| 7 | SSIS, SSRS, SQL agent is | SSIS, SSRS, SQL agent is not |
| | available. | available. |
+----+-------------------------------+-------------------------------+
An application front end is hosted on Azure but due to security reasons customer
want database to be hosted on-premises within his office building. What are the
different ways to handle this connectivity scenario in Azure?
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------------------------------
What are the other VNET options for achieving connectivity with on premise and
azure resources?
-----------------------------------------------------------------------------------
------------
Site to Site and express route are other options for achieving cross
premises connectivity. Site to site to specifically use when you have
large number of resources to be connected.
What is the option to connect on premises Database in case user is not willing to
open up VNET based connectivity?
-----------------------------------------------------------------------------------
-------------------------------
Azure Migration
===============
2. Worker role
**Deep dive:**
b. Web Jobs: This can run in background plus has scheduling capability
as well. Webjobs runs in the context of API App service, means runs
on the same instance on which web application, API app is running.
Hence it saves cost as compared to Worker Role and it can scale as
per the App Service plan in which web app, API app is running.
Azure Redis Cache is the most commonly used Caching mechanism available
as Platform as a Service (PaaS) in Azure. In the recent announcement,
Microsoft mentioned that Azure Managed Cache and In-Role cache will be
retiring on 30^th^ November 2016.
**Deep dive:**
**Redis Cache:**
Redis Cache is open source Third Party service provider in Azure and it
is available as Platform as a Service (PaaS). So you don't have to
create VMs or configure any infrastructure components to build and
utilize Redis Cache. Redis Cache is also costly Caching service compare
to SQL Server option. Redis Cache have its own security layer and it is
ensured to not get exposed to public networks, hence using Redis Cache
for your Caching related requirements in any apps is safe. Also Redis
Cache is scalable and hence very much viable solution in large
enterprise applications. You can implement Redis Cache with design
patterns like Circuit Breaker or Cache-Aside pattern as well.
You can also monitor Azure Redis Cache activities. You can also setup
Redis Cache instance from PowerShell like:
Based on your business requirement you can choose any tier for your
application. It is highly recommended to use Redis Cache in Cloud First
applications (Purely cloud based) than Hybrid Workloads/Applications.
What is Azure Resource Manager (ARM) and what are benefits of ARM over Classic
services (Cloud Services)
-----------------------------------------------------------------------------------
---------------------
Following are the benefits of using Azure Resource Manager (ARM) over
Classic Services (Cloud Services):
You can deploy, manage, and monitor all of the resources for your
solution as a group, rather than handling these resources individually.
You can repeatedly deploy your solution throughout the development
lifecycle and have confidence your resources are deployed in a
consistent state. You can use declarative templates to define your
deployment. You can define the dependencies between resources so they
are deployed in the correct order.
You can apply access control to all services in your resource group
because Role-Based Access Control (RBAC) is natively integrated into the
management platform. You can apply tags to resources to logically
organize all of the resources in your subscription. You can clarify
billing for your organization by viewing the rolled-up costs for the
entire group or for a group of resources sharing the same tag.
What are the various ways by which an on premises VM can be migrated to Azure?
------------------------------------------------------------------------------
The best and quick way can be to migrate the associated OS disk and data
disks from on premises to Azure storage, and then provision VM out of
it.
What is the difference between Storage queue and Service Bus queue?
-------------------------------------------------------------------
Below are the important difference between storage queue and service bus
queue -
**Deep Dive:**
The storage queue does not provide guarantee about FIFO nature. The
order in which messages are added to queue may not get received in the
same order. On the other hand, Service Bus Queue provides FIFO ordering
guarantee if "Message Sessions" are used. If messages are added with
SessionID and receiver receives the messages with same SessionID then an
affinity is created and the order in which messages were added, message
will be received as well.
**Point 3 -- Message Delivery model --**
When GetMessage is used then received message remain invisible for some
default duration for other receivers. If it is not deleted within that
period, then automatically message reappears for other receivers to
consume again. So typically if you want your message to be processed
only once then call GetMessage method and after processing call
DeleteMessage method. In this case if any error is encountered during
processing of the message before calling delete message then the message
will re-appear in the queue after default time period of invisibility.
As the message receiving attempt is made only once and after that it
gets deleted this is referred as "At Most Once".
PeekLock method of receiving message from Service Bus Queue is two stage
operation. When PeekLock is called, the message gets locked and no other
receivers can receive it. Once the processing is finished Complete
method can be called on the same message which marks the message for
delete operation. In case an error occurs while processing the message
can re-appear again for receive operation after expiry of lock period.
Similarly, if processing of message is required to be done immediately
after error, Abandon method can be called which makes locked message
available for consumption immediately. This way combination of PeekLock
and Complete method makes sure that every message is received and
processed always therefore this model is called as "At Least Once".
What are different receive methods can be used for Azure Service Bus Queue?
---------------------------------------------------------------------------
\# Windows Server AD
Azure Active Directory
----
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
---------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------
1 Windows AD offers 5 core services -- ADCS, ADRMS, ADFS, ADDS, ADLDS.
Azure AD provides only one solution -- "Identity management throughout the
internet".
2 Designed to operate in corporate network where companies have full control
over topology. This exposes services exposed through various protocols like LDAP,
Kerberos, DNS, AD replication etc. Type of communication is Http or Https and
authentication protocols supported are OAuth, WS-Federation, SAMP-P.
3 Operations/ information can be retrieved from AD are performed through LDAP
queries.
Azure AD provides Graph API which is REST API.
4 The management of devices are limited to corporate assets.
Http and https enables support for any device that can talk over http/ (s) hence
enabling true Bring Your Own Device (BYOD) scenario.
5 Can't be integrated with enterprise ready SaaS applications.
The nature of Azure AD enables to integrate with enterprise grade SaaS applications
such as Salesforce, Facebook at work, dropbox and so on.
6 You have access to underlying Domain controller as this is Infra offering.
No access to underlying servers as this is PaaS offering and communication happens
using internet facing endpoints.
References
==========
<https://azure.microsoft.com/en-us/get-started/>
An Appeal to readers
====================
Thanks for reading through! We hope you found this interview guide trial
version useful. We will love to hear about topics you want to get
covered as a part of full version of this book. Requesting you to take 2
minutes of your time and send your thoughts to
E-mail: cloudqna2016\@outlook.com
Or
Fault domain is a physical unit of failure. In simple form when your computer is
connected to power supply and if power supply is down then your computer can not be
operational. So computer itself connected to power supply is a Fault domain
Upgrade Domain -
. So at any point of time during upgrade at least one instance is alive and serving
the users request hence you don't face the downtime of your application.
What are the other VNET options for achieving connectivity with on premise and
azure resources?
Site to Site and express route are other options for achieving cross premises
connectivity. Site to site to specifically use when you have large number of
resources to be connected.
In some cases, Site to Site or Point to Site connectivity may introduce network
latency as VPN created by these features work on public infrastructure (Internet)
only. To overcome on this situation "Express Route" option can be taken which
offers dedicated Leased Line based offering to overcome on latency issue.
High Availability
Basically this defines how much your application is available for its end users.
Customers or users will always expect zero downtime of the application. High
availability means your application can withstand below common types of downtime
scenarios --
Hardware failures
Application updates
Configuration changes
OS update restarts
Firewalling
Intrusion detection/intrusion prevention
Vulnerability management
Application control
Network-based anomaly detection
Web filtering
Antivirus
Botnet protection
Best practice: Don't assign allow rules with broad ranges (for example, allow
0.0.0.0 through 255.255.255.255).
The private IP address spaces available are in the Class A (10.0.0.0/8), Class B
(172.16.0.0/12), and Class C (192.168.0.0/16) ranges.
Best practice: Create network access controls between subnets. Routing between
subnets happens automatically, and you don't need to manually configure routing
tables. By default, there are no network access controls between the subnets that
you create on an Azure virtual network.
NSGs use the 5-tuple approach (source IP, source port, destination IP, destination
port, and layer 4 protocol) to create allow/deny rules for network traffic. You
allow or deny traffic to and from a single IP address, to and from multiple IP
addresses, or to and from entire subnets.
When you use network security groups for network access control between subnets,
you can put resources that belong to the same security zone or role in their own
subnets.
Using small subnets adds limited security value, and mapping a network security
group to each subnet adds overhead. Define subnets broadly to ensure that you have
flexibility for growth.
Site-to-site VPN. It's a trusted, reliable, and established technology, but the
connection takes place over the internet. Bandwidth is constrained to a maximum of
about 1.25 Gbps. Site-to-site VPN is a desirable option in some scenarios
Azure ExpressRoute. We recommend that you use ExpressRoute for your cross-premises
connectivity. ExpressRoute lets you extend your on-premises networks into the
Microsoft cloud over a private connection facilitated by a connectivity provider.
you can establish connections to Microsoft cloud services like Azure, Microsoft
365, and Dynamics 365. ExpressRoute is a dedicated WAN link between your on-
premises location or a Microsoft Exchange hosting provider.
A popular and effective method for enhancing availability and performance is load
balancing. Load balancing is a method of distributing network traffic across
servers that are part of a service. For example, if you have front-end web servers
as part of your service, you can use load balancing to distribute the traffic
across your multiple front-end web servers.
Scenario: Enable a single user to connect to an Azure virtual network over the
internet.
Option: Point-to-site VPN is another term for a remote access VPN client/server
connection. After the point-to-site connection is established, the user can use RDP
or SSH to connect to any VMs located on the Azure virtual network that the user
connected to via point-to-site VPN. This assumes that the user is authorized to
reach those VMs.
Scenario: Enable users on your on-premises network to connect to VMs on your Azure
virtual network. --> site-to-site VPN
A popular and effective method for enhancing availability and performance is load
balancing. Load balancing is a method of distributing network traffic across
servers that are part of a service. For example, if you have front-end web servers
as part of your service, you can use load balancing to distribute the traffic
across your multiple front-end web servers.
Network security
Azure networking
Network access control
Azure Firewall
Secure remote access and cross-premises connectivity
Availability
Name resolution
Perimeter network (DMZ) architecture
Azure DDoS protection
Azure Front Door
Traffic manager
Monitoring and threat detection
The point-to-site VPN connection enables you to set up a private and secure
connection between the user and the virtual network. When the VPN connection is
established, the user can RDP or SSH over the VPN link into any virtual machine on
the virtual network. (This assumes that the user can authenticate and is
authorized.) Point-to-site VPN supports:
IKEv2 VPN, a standards-based IPsec VPN solution. IKEv2 VPN can be used to connect
from Mac devices (OSX versions 10.11 and above).
Service endpoints
Service endpoints are another way to apply control over your traffic. You can limit
communication with supported services to just your VNets over a direct connection.
Traffic from your VNet to the specified Azure service remains on the Microsoft
Azure backbone network.
https://github.com/microsoft/MTC_IL_WORKSHOP_Azure_Administrator
Network topology
The network architecture of an Azure datacenter consists of the following
components:
Edge network
Wide area network
Regional gateways network
Datacenter network
https://github.com/VikramPendse/AzureInterviewQuestions/blob/master/Azure
%20Interview%20Questions%20by%20Kunal%20and%20Vikram.md
https://github.com/Devinterview-io/azure-interview-questions (100 Common Azure
Interview Questions)
https://github.com/FAQGURU/FAQGURU/blob/master/topics/en/azure.md#what-is-azure-
vnet ************
https://github.com/FAQGURU/FAQGURU/blob/master/topics/en/azure.md#what-is-the-
difference-between-price-software-price-and-total-price-in-the-cost-structure-for-
virtual-machine-offers-in-the-azure-marketplace **************
https://github.com/VikramPendse/AzureInterviewQuestions/blob/master/Azure
%20Interview%20Questions%20by%20Kunal%20and%20Vikram.md
https://github.com/Devinterview-io/azure-interview-questions **************
Block blobs store text and binary data, up to about 4.7 TB. Block blobs are made up
of blocks of data that can be managed individually.
Append blobs are made up of blocks like block blobs, but are optimized for append
operations. Append blobs are ideal for scenarios such as logging data from virtual
machines.
Page blobs store random access files up to 8 TB in size. Page blobs store the VHD
files that back VMs
Parameters
Variables
Resources - the actual resources that you are going to deploy or update
Outputs
What is the difference between “price,” “software price,” and “total price” in the
cost structure for Virtual Machine offers in the Azure Marketplace?
Price - refers to the cost of the Azure Virtual Machine to run the software.
Software price - refers to the cost of the publisher software running on an Azure
Virtual Machine.
Total price - refers to the combined total cost of the Azure Virtual Machine and
the publisher software running on an Azure Virtual Machine.
Azure Managed Disks are the new and recommended disk storage offerings for use with
Azure Virtual Machines for persistent storage of data. You can use multiple Managed
Disks with each Virtual Machine. Managed Disks offer two types of durable storage
options: Premium and Standard Managed Disks.
Azure storage accounts can also provide storage for the operating system disk and
any data disks. Each disk is a .vhd file stored as a page blob.
The steps were followed as per the plan and no issues were observed.
This email, including any attachments, may be confidential and legally privileged.
If you are not the intended recipient, please accept our apologies, and please do
not disclose, copy, or distribute information in this email nor take any action in
reliance on its contents: to do so is strictly prohibited and may be unlawful.
Please inform us that this message has gone astray before deleting it. Thank you
for your cooperation
USAME11IS001
USAME11IS001 [PROD] || No route to host
USAME11AS002 [PROD] || No route to host
USAME11AS001 [PROD] || No route to host
USAME11PSM001 [PROD] || No route to host
Hyderabad-1@12345$$
CHSIS66NTFS160_F_UV_THERMO_BAU305_WORKBOOKSxL (DCHKAUPROD\
CHSIS66NTFS160_F_UV_THERMO_BAU305_WORKBOOKSxL