Azure Interview Question Part 3

How can one create a Virtual Machine in Powershell?

# 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

How to create a Network Security Group and a Network Security Group Rule?

# 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

# Create an inbound network security group rule for port 80
$nsgRuleWeb = New-AzureRmNetworkSecurityRuleConfig -Name myNetworkSecurityGroupRuleWWW -Protocol Tcp `
 -Direction Inbound -Priority 1001 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * `
 -DestinationPortRange 80 -Access Allow

# Create a network security group
$nsg = New-AzureRmNetworkSecurityGroup -ResourceGroupName myResourceGroup -Location EastUS `
 -Name myNetworkSecurityGroup -SecurityRules $nsgRuleRDP,$nsgRuleWeb

How to create a new storage account and container using Power Shell?

$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

Azure Interview Question

How can one create a VM in Azure CLI?

az vm create ` --resource-group myResourceGroup ` --name myVM --image win2016datacenter ` --admin-username azureuser ` --admin-password myPassword12

What are the various power states of a VM?

Power StateDescription
StartingIndicates the virtual machine is being started
RunningIndicates that the virtual machine is running
StoppingIndicates that the virtual machine is being stopped
StoppedIndicates that the virtual machine is stopped
DeallocatingIndicates that the virtual machine is being deallocated
DeallocatedIndicates that the virtual machine is completely removed from the hypervisor but still available in the control plane. Virtual Machines in the deallocated state do not incur compute charges.

How can you retrieve the state of a particular VM?

Get-AzureRmVM `
 -ResourceGroupName myResourceGroup `
 -Name myVM `
 -Status | Select @{n="Status"; e={$_.Statuses[1].Code}}

Advance Azure Interview Question

How can you stop a VM using Power Shell?

Stop-AzureRmVM -ResourceGroupName myResourceGroupVM -Name "myVM" -Force

Explain the probable cause of the disconnection of the services from the cache?

There are two categories if the client is getting disconnection, which are:

There is some issue on the side of the operator:

  • The server has been updated
  • Automatic VM maintenance has been done
  • Deployment of cache happened in the dispatching and processing of the service
  • Standard Cache transfer has failed from one node to another.

Client-Side Fault:

  • It has reached the maximum limit of the bandwidth
  • More time is being consumed in the bound operation
  • Network node has received some kind of transient error
  • The alteration has happened on the network layer of the client-side.
  • Auto-scaling happened at the side of the client on the application
  • Accidentally, Redeployment happened on the client application

What is the difference between Proc Means and Proc Summary?

  • PROC SUMMARY: – It gives all various kinds of information and is statistics aid. All the info run simultaneously. Automatically all the subgroups are produced. There is no creation of an information outlet.
  • PROC MEANS – With the BY variables assistance, the sorting of data happens beforehand.

Azure Interview Question

What is the function of the character analysis of API?

In the process of characterization of words, it doesn’t account for bad or good in the character analytics of API’s working. It means that the words considered are in neutral and not in some negative or positive sense in the process of working. An advanced feature is used in the process of characterization. The same advanced feature is also used in natural language processing.

What is the overview of Azure’s API?

Azure learning is also built with API of Test Analytics. Key Phrase Extraction Data are analyzed by using this tool. Much unstructured data is analyzed with Test Analytics. Either one 0r 0 is used in the process of running. It is also called a binomial scoring unit. A negative viewpoint corresponds to 0, and a Positive viewpoint corresponds to 1. There is no need for training and designing assistance, and this is an advantage. Users can directly control the data in this process.

What are the actions to be taken in the service failure case?

These are the steps to be taken in the situation of failure of service:

  1. The removal of the drive-in case is not getting replaced. One can keep the system unmounted.
  2. Make the machine online again if there is some work pending to be completed. One should keep the functions of system object storage active by making the machine online. Missing files are updated as soon as the activation is done again for the online replication instantly.
  3. When the failure happens, it can withstand it by stopping the running object services. Object services will be enabled to remain undamaged or unaffected by the crash. It means it will be able to resist the failure of the service.

Advance Azure Interview Question

What are the actions to be taken in the situation of failure of the drive?

The following are the manners in which the answer should be given for this Microsoft Azure interview question. Following steps should be performed in the case of a drive failure, which are:

  1. In one scenario, The drive can be formatted and remounted after the drive is replaced.
  2. In another scenario, The functioning of object storage should be enabled without failing, and the mounting of the drive should not happen.

Explain the analytics of log?

In the interview for Microsoft Azure, these types of questions can come very quickly. A particular service run after the complete requirement is provided by the Log Analytics service of operational management. In a specific dashboard, log analytics, security, and automation are manifested.

Raw data can be visualized after the enabling of the source of power data is generated. Standard, premium, and free are the three options of pricing tier in which these are introduced. Results can be exported, and on a single dashboard, data can be searched with lots of conveniences.

What is MOSS?

This question is very commonly asked in the interview of the SQL Microsoft Azure. One can say that Microsoft Office SharePoint Server is the full form of MOSS. But telling the complete structure is not enough in the Microsoft Azure interview question.

One should also say that it is a constitution of the platform of the portal, which is in the complete version. Creation of document, sharing of documents, and managing of the material is possibly by the user using Microsoft Office SharePoint Server (MOSS).

Azure Interview Question

What are the essential features and differences between SPS and STS?

SharePoint Team Management is the full form of STS. Management of Documents can be quickly done using SharePoint Team Management (STS). It is very beneficial for big companies to manage the documents. It also provides a moderate search engine.

SharePoint Portal Service is the full form of SPS. Multiple content sources can be easily penetrated very efficiently using SharePoint Portal Service’s search engine.

What is the class which is used in the retrieval of data?

SPSite Date Query is the class using which more than one list of data can be retrieved. It gives the ability to query the data. If one needs to query across all the collections of a variety of web, then SP Site Data Query is very beneficial. Without the use of external links, data can be aggregated, which is one of the main features of SP Site Data Query. To do that function, it does the data aggregation through the SharePoint only.

What is the difference between the powerhouse server and the repository?

The powerhouse server deals with the integration of a particular system of database repository, whereas repository servers deal with uniformity, consistency, and integrity.

Advance Azure Interview Question

What is enterprise warehousing?

Enterprise warehousing is the single and unsophisticated point of data that is developed by the organization globally. Thus, servers can communicate with those warehouses as a single point.

What Sizes are available for VMs in Azure?

  • The other small computer runs at 1.0 GHz, Memory – 20 GB, Ram – 768 MB, Low performance.
  • The small computer runs at 1.6 GHz, Memory – 225 GB, Ram – 1.75 GB, moderate performance.
  • The medium computer runs at 2*1.6 GHz, Memory – 490 GB, Ram – 3.5 GB, High performance.
  • The vast computer runs at 4*1.6 GHz, Memory – 1000 GB, Ram – 7GB, High performance.
  • Extra Large computer runs at 8*1.6 GHz, Memory – 2040 GB, Ram – 14 GB, High performance.

What is Table Storage?

In Table Storage, the data is stored in bulk and non-relational manner. It is an interface which uses the NoSQL data model, which gives a lot more flexibility in accessing the database in a more efficient way if compared with other Data storage models. Values are stored in a table-like manner with a table column with their values.

Azure Interview Question

What is the basis of the Azure subscription plan?

Price changes depending on the product variations. Pricing is as follow:

  • Monthly bills: Bills are priced every month as you will only be paying for the product in the month-end. No matter how much or how many times you use that service, it will be charged monthly based on the limit you choose.
  • Usage-Based Fee: This is also known as a consumption plan. Where you will be charged on the go and only be charged based on the amount you use it, if you did not use it, you wouldn’t be charged. You apply it a lot, and you will be charged a lot.
  • Trail: In the Trail period of the service client can use the full potential of the service, just to go through the service and see if it fits the organization’s needs. Azure also provides some free credits that you can use in the Azure platform.
  • Free model: Even if you trail of the service are over, but still you want to use that service without cost, you can use it. That is where the free tiers come in.

What is the Dead Letter Queue?

Dead letter queue is a part of messaging queueing that fulfills and implements store messaging. This helps developers to check for software problems and common patterns.

Difference between Minimal Monitoring and Verbose?

Performance metrics are collected by verbose monitoring. Data can be carefully analyzed using verbose monitoring. In the application process, performance metrics that are collected are fed. The configuration of minimal tracking is the default

Advance Azure Interview Question

What are Blob and its type?

Blob is a storage system in Azure that can be used to store a business database or anything in a well-structured manner. It’s of two types:

  • The-page Blob
  • The Block Blob

Can we create a VM using Azure Resource Manager in a Virtual Network that was created using classic deployment?

It is not supported by the Azure portal. We cannot use Azure Resource Manager to deploy a Virtual machine into a virtual network which was created using classic deployment.

Can we add an existing VM to an availability set?

No, if we want our VM to be part of an availability set, then we need to create the VM within the set.

Azure Interview Question

What Is Table Storage In Windows Azure?

Azure Table storage is a service that stores non-relational structured data in the cloud, providing a key/attribute store with a schema less design. Because Table storage is schema less, it’s easy to adapt your data as the needs of the application evolve.

Difference Between Web And Worker Roles In Windows Azure?

The only difference between the two is how the role is hosted on the VMs: Web role: Automatically deploys and hosts the application through IIS. Worker role: Does not use IIS, and runs the app standalone.

A resource page is a page on a website that lists helpful links and resource for a particular topic. For example, a food blog about Paleo might have a resource page dedicated to Paleo recipes. Resource page link building is simply the process of getting the site included on the page as one of the resources.

Advance Azure Interview Question

What Is Scale A Cloud Service ?

Cloud scaling simply refers to the ability of a cloud solution to scale up or down in size. Cloud providers deliver resources to users based on their current needs. Users request a specific amount of resources and the vendor provides them.

You are migrating a 3-tier .NET application from on-premises to Azure. Which Azure service will you use to host the service?

Azure web-app, if it is a web-based application without a lot of dependencies, but otherwise Azure Load Balancer with Azure VM.

What is Azure Cosmos DB and when to use it?

Azure Cosmos DB is a fully managed NoSQL database service for modern app development. Get guaranteed single-digit millisecond response times and 99.999-percent availability, backed by SLAs, automatic and instant scalability, and open-source APIs for MongoDB and Cassandra.

Azure Interview Question

How to debug code written in .NET running in Azure Virtual Machine?

The Snapshot Debugger takes a snapshot of your in-production apps when the code that you are interested in executes.

What is the difference between repetitive and minimal monitoring?

The differences between repetitive and minimal monitoring are: 

Repetitive [Verbose] Monitoring Minimal Monitoring
Gathers metrics based on performance.It is a default configuration method.
Helps in a close analysis of data fed during the process of application.Minimal monitoring makes use of performance counters gathered from the operating system of the host.

Which container platforms does Azure DevOps support? 

  • Kubernetes Service (AKS) to simplify deployment, management, and operations in Kubernetes. 
  • App Service to easily create versatile cloud apps for the web and mobile. 
  • Container Instances: Easily run containers on the Azure platform without server management.       
  • Batch: Job scheduling and computing within a cloud. 
  • Service Fabric: Microservices development and orchestration of containers on Windows or Linux 
  • Container Registry: Manage and store container images across varied Azure deployments         
  • Azure Red Hat Open Shift: Run fully managed Open Shift clusters in collaboration with Red Hat. 

Advance Azure Interview Question

What is Azure Pipelines?

Azure Pipelines are a service that provides continuous integration and continuous delivery (CI/CD). One can use the Pipelines to configure, automate and build in collaboration with the Git provider. The Azure DevOps Pipelines can then deploy the code to any of the cloud services.

To secure YAML (Yet Another Markup Language) pipeline you should create an empty template and then incrementally apply security practices. This way the end-users can access the pipeline features through a Markup file. The YAML file also extends the template to all pipelines and implements the security practices efficiently.

What might be the potential causes that a pipeline won’t trigger?

  • YAML trigger settings could be overridden in the UI console 
  • A PR (Pull Request) trigger is not supported in Azure Repos. 
  • Scheduled triggers are not set in the correct time zone. Time settings could prohibit the trigger from firing. 
  • Branch filters are not configured in CI and PR triggers. 
  • UI settings take over the YAML trigger settings. 

Azure Interview Question

What are the necessary components for integrating Azure DevOps and Bitbucket?

You require Azure pipelines(GitLab CI/CD) to access the Bitbucket repositories during the build, while CI triggers run the pipelines to access the Bitbucket server.

During a code review, you discover plenty of unused variables and empty catch blocks. What steps would you take to improve the quality of the code?

Select ‘Run PM’ in a Maven build task. The Apache Maven PMD plugin enables the automatic execution of the analysis tool on the source code. This analysis generates a site report to find out unused variables and empty catch blocks.  

Through which way scan you continuously introduce security validation to existing pipelines?

Continuous security validation is added at every stage of the development cycle to ensure security is maintained throughout. Here are the possible ways to do it: 

  • Static code analysis in the IDE before you add the code to the repository 
  • Git source control for ensuring that you have enabled the branch policies in the repository. 
  • Using tools like Visual studio code analysis and Roslyn Security Analyzers to review the code. 
  • Use Checkmarx scan for static application security testing. 
  • Use tools like White Source Software to identify any security lapses in third party packages. 

Advance Azure Interview Question

Which programming languages does Azure Web Apps use to support a web application?

You can build a web application in Microsoft Azure through PHP, ASP.NET, PYTHON, and Node.js. Moreover, Microsoft has released Software Development Kits(SDKs) for Java and Ruby platforms. So any application that is written in these languages can access the Azure cloud service.

Currently, there are two ways to deploy the application in Microsoft Azure:

Azure resource manager
Classic deployment model

What is Azure Content Delivery Network?  How does it work? 

Content Delivery Network(CDN) in Azure is a distributed network of servers that enables the delivery of content over the web. The CDN is a high-performance solution that successfully delivers high bandwidth content to its users. It does this by strategically placing its cached content to various physical nodes across the globe. 

 This is how the Azure CDN works: 

  • The user requests a file with a special domain name. 
  • DNS optimizes the request to route to the nearest and the best performing POP location. 
  • If there is no content in the cache, it is requested from the server and then cached. After this, the content is delivered to the user. 
  • Additional users can also request the content using the same URL and the content will be delivered from the cache for subsequent requests. 
  • This continues until the TTL for the content file hasn’t expired. This ensures rapid delivery of content. 
Azure CDN

What are the features of Azure CDN?

Dynamic site acceleration – Optimizes its servers to meet the high scaling demands of the content when users increase rapidly. 

CDN caching rules – Caches the content after the first request; the CDN caching rules determine the content delivery method. 

HTTPS custom domain support –  Azure supports HTTPS on a CDN endpoint to ensure secure domain to the web applications. 

Azure diagnostics logs – The developer team uses analytics and usage logs to troubleshoot failures. 

File compression – Compress large files to reduce bandwidth costs and view content with a rapid response time. 

Geo-filtering – Azure CDN delivers or blocks content depending on geographical rules which make the user’s viewing experience more customized. 

Azure Interview Question

What are the important things to consider when creating a new Virtual Machine?

You need to consider the following aspects before creating a Virtual Machine: 

  • The names of your application resources 
  • The storage location for the resources 
  • The size of the VM 
  • The maximum number of VMs that you can create 
  • The operating system that the VM will run on 
  • The VM configuration after it starts 
  • The related resources that the VM will require 

How much storage is available to use on a virtual machine?

Data disks on the VM can have storage up to 32,767 gibibytes (GiB) or 35 TB.  However, the VM size determines how many data disks it can use. 

What are the benefits of Azure Active Directory Domain Services?

  • Customize data as per the company requirements 
  • Manage Active Directory Domain Services (AD DS) from any network 
  • AD DS has built-in redundancy and replication in case of any DC failures.  
  • Manage network access rights centrally through AD DS 

Advance Azure Interview Question

Define the Azure Security Policies

A security policy in Azure is a service that outlines how you want your workloads to be configured and guarantees that you’re meeting your company’s or regulators’ security requirements. They define, enforce and control properties of the available resources. 

How can I recover a dropped Azure SQL database?

You can use automated database backups to restore a database from Azure storage. This can be done in the following ways: 

  • Create a new database on the same server on which you deleted the table. Recover it to a specific time which is within the retention period. 
  • Create a database on the same server and recover it to the time of deletion of the database. 
  • On any server in the same region, create a new database. Then recover it to the most recent backup. 
  • On any server anywhere, create a fresh database. Recover it to the most recent backups that were replicated. 
Azure Part 1Azure Part 2

Back to top