Azure Interview Questions
Azure Interview Questions
Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a
shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and
services) that can be rapidly provisioned and released with minimal management effort or service
provider interaction.
SQL Azure is a cloud-based service and so it has own set of pros and cons when compared to SQL
server. SQL Azure service benefits include on-demand provisioning, high availability, reduced
management overhead and scalability. But SQL Azure abstracts some details from the subscriber
which can be good or bad which depends on the context of the need.
4. How many replicas are maintained for each SQL Azure database?
For each database, three replicas are maintained for each database that one provisions. One of
them is a primary replica. All read/write happen on primary replica and other replicas are kept in
sync with the primary replica. If for some reason, primary goes down, another replica is promoted to
primary. All this happens under the hood.
And for schema Migration, we can use Generate Script Wizard. Also, we could use a Tool called
DMA (Database migration Assistant) tool.s
6. Which tools are available to manage SQL Azure databases and servers?
We can manage SQL Azure database using SQL server management studio and also, we can
manage SQL Azure databases and servers through a Azure management portal.
SQL Azure service allows blocking a request based on its IP address through SQL Azure firewall. It
uses SQL server Authentication mechanism to authenticate connections. Also connections to SQL
Azure are SSL-encrypted by default.
8. What is SQL Azure Firewall?
SQL Azure firewall is a security mechanism that blocks requests based on its IP address.
SQL Azure Web edition database Max Size is 5 GB whereas the business edition supports Max Size
up to 50 GB. The size of a web edition database can be increased (/decreased) in the increments
(/decrements) of 1 GB whereas the size of a business edition can be increased in the increments of
10 GB.
We can use transactional replication, merge replication to Sync the on-premise DB.
SQL Azure keeps three replicas of a database to tackle hardware level issues. To tackle user level
errors, we can use COPY command that allows us to create a replica of a SQL Azure database. We
can also backup SQL Azure data to local SQL server using BCP, SSIS, etc. but as of now, point in
time recovery is not supported.
At the current time, the maximum SQL Azure database size can be 250 GB (s0, s1, s2, and s3) or
500GB (p1, p2, p3, and p6 ) or 4TB (p11 and p15).
14. What happens when the SQL Azure database reaches Max Size?
Read operations continue to work but create/insert/update operations are throttled. You can
drop/delete/truncate data.
150 databases (including master database) can be created in a single SQL Azure server.
We can tune a SQL Azure database using information available from execution plan and statistics of
a query. We could use SQL Azure’s Dynamic Management views to monitor and manage SQL
Azure database.
Also, SQL Azure performance is affected by network latency and bandwidth. Considering this, code
near application topology gives the best performance.
Code near application topology means that the SQL Azure database and the windows azure hosted
service consuming the data are hosted in the same Azure datacenter.
Note: in the code far application topology, the app connects to SQL Azure from outside the Microsoft
data center]
When database reaches its maximum size update/insert/create operations get throttled. Also, there
are policies in place that does not allow to a workload to exploit a shared physical server. In other
words, the policies make sure that all workload get a fair share of the shared physical server. Now, a
workload can get soft throttled that means that the workload has crossed the safety threshold. A
workload can also get hard throttled which means that a SQL Azure machine is out of resources and
it does not accept new connections. We can know more about what happened by decoding reason
codes.
All tables must have clustered index. You can't have a table without clustered index
The point-in-time restore is available on all the three editions – Basic, Standard and
Premium. Be aware that each one of the editions has different backup retention
policies.
A restore will always create a new database. This database can be used to recover data
to the original database or to fully replace the original database, which can be
performed by renaming the restored database, using the ALTER DATABASE command:
We can recover the accidentally deleted databases on the PAAS SQL server using deleted
databases tab under SQL server options.
28)
29)
If I have more than 3 application servers, I require the database port number needs
to communicate to all the 3 application servers. How could be possible?
Ans: I will provide the Application Subnet ranges in Network Security Group on
Database Port number rule.
30)
31)