Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
Short answer: Feature Azure SQL Cosmos DB Type Relational NoSQL, multi-model Schema Fixed Schema-less Scaling Vertical/Horizontal Horizontal, automatic Consistenc ACID Multiple consistency levels (Strong, Eventual, etc.)…
Short answer: Use connection string in appsettings.json: "ConnectionStrings": { "DefaultConnection": "Server=tcp:myserver.database.windows.net,1433;Initial Catalog=MyDb;Persist Security Info=Fals…
Short answer: SQL Authentication: Username and password. Azure Active Directory (AAD) authentication. Managed Identity: Use Azure App Service identity to connect without storing credentials. Real-world example (ShopNest)…
Short answer: Use Azure Data Migration Assistant (DMA). Use bacpac import/export. Use SQL Server Management Studio (SSMS) deploy options. Real-world example (ShopNest) ShopNest on Azure typically uses App Service + SQL D…
Short answer: Use ADO.NET connection pooling (default in .NET). Ensure DbContext is scoped per request in ASP.NET Core. Example code services.AddDbContext<MyDbContext>(options => options.UseSqlServer(connectionS…
Short answer: Enable Transparent Data Encryption (TDE). Configure firewall rules and VNet integration. Use AAD authentication or Managed Identity. Enable Advanced Threat Protection. Real-world example (ShopNest) ShopNest…
Short answer: SQL (Core) API MongoDB API Cassandra API Gremlin (Graph) API Table API Real-world example (ShopNest) ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for mon…
Short answer: Use QueryDefinition and FeedIterator with MaxItemCount. var query = new QueryDefinition("SELECT * FROM c"); var iterator = container.GetItemQueryIterator<MyItem>(query, requestOptions: new Q…
Short answer: Cosmos DB supports Strong, Bounded Staleness, Session, Consistent Prefix, Eventual. Set consistency when creating CosmosClient: var clientOptions = new CosmosClientOptions Example code { ConsistencyLevel =…
Short answer: Automatic backups every 4 hours (retention 7–30 days depending on config). Restore using point-in-time restore in Azure Portal or via CLI. Real-world example (ShopNest) ShopNest on Azure typically uses App…
Short answer: Secrets: Strings, passwords, API keys, connection strings Keys: Cryptographic keys for encryption/decryption (RSA, EC) Certificates: SSL/TLS or client certificates Real-world example (ShopNest) Connection s…
Short answer: Use Azure.Extensions.AspNetCore.Configuration.Secrets package to load secrets into IConfiguration. var builder = new ConfigurationBuilder() .AddAzureKeyVault(new Uri(" new DefaultAzureCredential()); va…
Short answer: Configure Access Policies in Azure Portal or via Azure CLI. Assign roles: Get → read secrets List → enumerate secrets Set → update secrets Use Managed Identity for apps instead of storing credentials. Real-…
Short answer: Enable Managed Identity on your App Service or Function App. Grant Key Vault access policy to the identity. Access secrets without storing credentials: var client = new SecretClient(new Uri(" new Defau…
Short answer: Enable diagnostic logging in Azure Key Vault. Logs include secret reads, updates, deletions, and authentication attempts. Can be sent to Log Analytics, Event Hub, or Storage Account. Real-world example (Sho…
Short answer: Update via Azure Portal, Azure CLI, PowerShell, or SDK. Example using SDK: var client = new SecretClient(new Uri(" new DefaultAzureCredential()); client.SetSecret("MySecret", "NewValue&q…
Short answer: Store connection strings as secrets in Key Vault. Load them in ASP.NET Core via IConfiguration. Avoid storing secrets in appsettings.json or code. Real-world example (ShopNest) Connection strings and paymen…
Short answer: Yes, using in-memory caching or Azure App Configuration with Key Vault integration. Improves performance and reduces frequent Key Vault calls. Real-world example (ShopNest) Connection strings and payment ke…
Short answer: Use Managed Identity instead of app credentials. Enable soft-delete and purge protection. Rotate secrets regularly. Restrict access using RBAC or access policies. Enable logging and monitoring for audit pur…
Short answer: Containers are logical groups of blobs within a storage account. Like folders in a file system. Each blob must belong to one container. Real-world example (ShopNest) Product images upload to Azure Blob Stor…
Short answer: Use Azure.Storage.Blobs NuGet package. Upload example: var blobServiceClient = new BlobServiceClient(connectionString); var containerClient = blobServiceClient.GetBlobContainerClient("mycontainer"…
Short answer: Blob tier determines cost and access latency. Can be set during upload or later: await blobClient.SetAccessTierAsync(AccessTier.Cool); Hot: Frequently accessed Cool: Infrequent access Archive: Rarely access…
Short answer: Use Azure.Storage.Queues package. Send message: var queueClient = new QueueClient(connectionString, "myqueue"); await queueClient.CreateIfNotExistsAsync(); await queueClient.SendMessageAsync("…
Short answer: Table Storage stores key-value pairs in entities. Use PartitionKey and RowKey for unique identification. Example: var tableClient = new TableClient(connectionString, "MyTable"); Example code await…
Short answer: Configure via Azure Portal or Azure CLI. Example CLI: az storage cors add --methods GET POST --origins -services b --account-name mystorage Real-world example (ShopNest) Product images upload to Azure Blob…
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Feature Azure SQL Cosmos DB Type Relational NoSQL, multi-model Schema Fixed Schema-less Scaling Vertical/Horizontal Horizontal, automatic Consistenc ACID Multiple consistency levels (Strong, Eventual, etc.) Use Case OLTP, structured data Global apps, unstructured data, IoT
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use connection string in appsettings.json: "ConnectionStrings": { "DefaultConnection": "Server=tcp:myserver.database.windows.net,1433;Initial Catalog=MyDb;Persist Security Info=False;User ID=myuser;Password=mypassword;MultipleActiveResultSets=False;Encrypt =True;TrustServerCertificate=False;Connection Timeout=30;" } Inject DbContext using Entity Framework Core: builder.Services.AddDbContext<MyDbContext>(options =>…
options.UseSqlServer(builder.Configuration.GetConnectionString("Defa ultConnection")));
Use connection string in appsettings.json: "ConnectionStrings": { "DefaultConnection": "Server=tcp:myserver.database.windows.net,1433;Initial
Catalog=MyDb;Persist Security Info=False;User
ID=myuser;Password=mypassword;MultipleActiveResultSets=False;Encrypt
=True;TrustServerCertificate=False;Connection Timeout=30;"
} Inject DbContext using Entity Framework Core: builder.Services.AddDbContext<MyDbContext>(options => options.UseSqlServer(builder.Configuration.GetConnectionString("Defa ultConnection")));
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: SQL Authentication: Username and password. Azure Active Directory (AAD) authentication. Managed Identity: Use Azure App Service identity to connect without storing credentials.
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use Azure Data Migration Assistant (DMA). Use bacpac import/export. Use SQL Server Management Studio (SSMS) deploy options.
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use ADO.NET connection pooling (default in .NET). Ensure DbContext is scoped per request in ASP.NET Core.
services.AddDbContext<MyDbContext>(options => options.UseSqlServer(connectionString));
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Enable Transparent Data Encryption (TDE). Configure firewall rules and VNet integration. Use AAD authentication or Managed Identity. Enable Advanced Threat Protection.
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: SQL (Core) API MongoDB API Cassandra API Gremlin (Graph) API Table API
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use QueryDefinition and FeedIterator with MaxItemCount. var query = new QueryDefinition("SELECT * FROM c"); var iterator = container.GetItemQueryIterator<MyItem>(query, requestOptions: new QueryRequestOptions { MaxItemCount = 10 }); while (iterator.HasMoreResults) { foreach (var item in await iterator.ReadNextAsync()) { Console.WriteLine(item.Id); } }
Use QueryDefinition and FeedIterator with MaxItemCount. var query = new QueryDefinition("SELECT * FROM c");
var iterator = container.GetItemQueryIterator<MyItem>(query,
requestOptions: new QueryRequestOptions { MaxItemCount = 10 }); while (iterator.HasMoreResults) {
foreach (var item in await iterator.ReadNextAsync())
{ Console.WriteLine(item.Id); }
}
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Cosmos DB supports Strong, Bounded Staleness, Session, Consistent Prefix, Eventual. Set consistency when creating CosmosClient: var clientOptions = new CosmosClientOptions
{ ConsistencyLevel = ConsistencyLevel.Session }; var cosmosClient = new CosmosClient(endpointUri, primaryKey, clientOptions);
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Automatic backups every 4 hours (retention 7–30 days depending on config). Restore using point-in-time restore in Azure Portal or via CLI.
ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Secrets: Strings, passwords, API keys, connection strings Keys: Cryptographic keys for encryption/decryption (RSA, EC) Certificates: SSL/TLS or client certificates
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use Azure.Extensions.AspNetCore.Configuration.Secrets package to load secrets into IConfiguration. var builder = new ConfigurationBuilder() .AddAzureKeyVault(new Uri(" new DefaultAzureCredential()); var configuration = builder.Build();
var secretValue = configuration["MySecret"];
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Configure Access Policies in Azure Portal or via Azure CLI. Assign roles: Get → read secrets List → enumerate secrets Set → update secrets Use Managed Identity for apps instead of storing credentials.
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Enable Managed Identity on your App Service or Function App. Grant Key Vault access policy to the identity. Access secrets without storing credentials: var client = new SecretClient(new Uri(" new DefaultAzureCredential()); KeyVaultSecret secret = client.GetSecret("MySecret");
string value = secret.Value;
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Enable diagnostic logging in Azure Key Vault. Logs include secret reads, updates, deletions, and authentication attempts. Can be sent to Log Analytics, Event Hub, or Storage Account.
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Update via Azure Portal, Azure CLI, PowerShell, or SDK. Example using SDK: var client = new SecretClient(new Uri(" new DefaultAzureCredential()); client.SetSecret("MySecret", "NewValue");
Update via Azure Portal, Azure CLI, PowerShell, or SDK. Example using SDK: var client = new SecretClient(new Uri(" new DefaultAzureCredential()); client.SetSecret("MySecret", "NewValue");
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Store connection strings as secrets in Key Vault. Load them in ASP.NET Core via IConfiguration. Avoid storing secrets in appsettings.json or code.
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Yes, using in-memory caching or Azure App Configuration with Key Vault integration. Improves performance and reduces frequent Key Vault calls.
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use Managed Identity instead of app credentials. Enable soft-delete and purge protection. Rotate secrets regularly. Restrict access using RBAC or access policies. Enable logging and monitoring for audit purposes.
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Containers are logical groups of blobs within a storage account. Like folders in a file system. Each blob must belong to one container.
Product images upload to Azure Blob Storage; the DB only stores the blob URL.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use Azure.Storage.Blobs NuGet package. Upload example: var blobServiceClient = new BlobServiceClient(connectionString); var containerClient = blobServiceClient.GetBlobContainerClient("mycontainer"); var blobClient = containerClient.GetBlobClient("file.txt"); using var fileStream = File.OpenRead("localfile.txt"); await blobClient.UploadAsync(fileStream, overwrite: true); Download example: var downloadPath =…
"downloaded.txt"; await blobClient.DownloadToAsync(downloadPath);
Use Azure.Storage.Blobs NuGet package. Upload example: var blobServiceClient = new BlobServiceClient(connectionString);
var containerClient = blobServiceClient.GetBlobContainerClient("mycontainer"); var blobClient = containerClient.GetBlobClient("file.txt");
using var fileStream = File.OpenRead("localfile.txt");
await blobClient.UploadAsync(fileStream, overwrite: true); Download example: var downloadPath = "downloaded.txt";
await blobClient.DownloadToAsync(downloadPath);
Product images upload to Azure Blob Storage; the DB only stores the blob URL.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Blob tier determines cost and access latency. Can be set during upload or later: await blobClient.SetAccessTierAsync(AccessTier.Cool); Hot: Frequently accessed Cool: Infrequent access Archive: Rarely accessed
Product images upload to Azure Blob Storage; the DB only stores the blob URL.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Use Azure.Storage.Queues package. Send message: var queueClient = new QueueClient(connectionString, "myqueue"); await queueClient.CreateIfNotExistsAsync(); await queueClient.SendMessageAsync("Hello, Azure Queue!"); Receive message: var message = await queueClient.ReceiveMessageAsync(); Console.WriteLine(message.Value.MessageText); await queueClient.DeleteMessageAsync(message.Value.MessageId,…
Use Azure.Storage.Queues package. Send message: var queueClient = new QueueClient(connectionString, "myqueue");
await queueClient.CreateIfNotExistsAsync();
await queueClient.SendMessageAsync("Hello, Azure Queue!"); Receive message: var message = await queueClient.ReceiveMessageAsync(); Console.WriteLine(message.Value.MessageText); await queueClient.DeleteMessageAsync(message.Value.MessageId, message.Value.PopReceipt);
Order-paid events go to Service Bus; an Azure Function sends the confirmation email asynchronously.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Table Storage stores key-value pairs in entities. Use PartitionKey and RowKey for unique identification. Example: var tableClient = new TableClient(connectionString, "MyTable");
await tableClient.CreateIfNotExistsAsync();
var entity = new TableEntity("partition1", "row1")
{ { "Name", "John" }, { "Age", 30 } }; await tableClient.AddEntityAsync(entity);
Product images upload to Azure Blob Storage; the DB only stores the blob URL.
Microsoft Azure Microsoft Azure Tutorial · Azure
Short answer: Configure via Azure Portal or Azure CLI. Example CLI: az storage cors add --methods GET POST --origins -services b --account-name mystorage
Product images upload to Azure Blob Storage; the DB only stores the blob URL.
Install Toolliyo like an app Free
Home-screen access to tutorials, coding practice & career tools — no app store needed.
On iPhone/iPad: tap Share then Add to Home Screen.