📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

You know Azure well, but this role runs on AWS. What are the AWS equivalents of App Service, Azure Functions, Azure SQL, Blob Storage, Key Vault, Service Bus and Azure Monitor / Application Insights, and where do the equivalents differ in ways that would catch an Azure developer out?

Maps the core Azure services a .NET team uses (App Service, Functions, Azure SQL, Blob, Key Vault, Service Bus, Monitor) to their AWS counterparts (Elastic Beanstalk/App Runner/ECS, Lambda, RDS, S3, Secrets Manager, SQS/SNS, CloudWatch/X-Ray) and the differences that matter: IAM, regions and accounts.

Junior Theory Beginner aws azure cloud-services devops dotnet iam

🎯 Key points

  • App Service ≈ Elastic Beanstalk or App Runner; most .NET teams pick ECS on Fargate for serverless containers, ALB integration, task roles and service auto scaling
  • Azure Functions ≈ AWS Lambda (managed dotnet10 runtime, announced 8 January 2026), with a hard 15-minute limit per invocation
  • Azure SQL ≈ Amazon RDS for SQL Server (licence-included); credentials in Secrets Manager with rotation, because RDS IAM database authentication does not cover SQL Server
  • Blob Storage ≈ Amazon S3; Key Vault ≈ Secrets Manager plus KMS (and Parameter Store for config)
  • Service Bus ≈ SQS (queues) plus SNS (topics), or Amazon MQ for AMQP/JMS
  • Azure Monitor / Application Insights ≈ CloudWatch (logs, metrics, alarms) plus X-Ray / OpenTelemetry for tracing
  • IAM roles and policies replace managed identity plus Azure RBAC; VPCs, security groups and ECS Service Connect / Cloud Map replace VNets and App Service's built-in hostnames
  • Accounts and Organizations replace subscriptions; Sydney is ap-southeast-2, Melbourne ap-southeast-4

⏱ 30-second answer

Most Azure services have a close AWS match: App Service maps to Elastic Beanstalk or App Runner (though most .NET teams end up on ECS with Fargate), Functions to Lambda, Azure SQL to RDS for SQL Server, Blob Storage to S3, Key Vault to Secrets Manager plus KMS, Service Bus to SQS plus SNS, and Azure Monitor / Application Insights to CloudWatch plus X-Ray or OpenTelemetry.

What catches Azure developers out is not the services but the plumbing:

  • IAM roles and policies do the job of managed identity plus RBAC, and policies are JSON documents you scope by resource ARN.
  • Accounts (grouped by AWS Organizations) are the isolation boundary, not resource groups.

The trade-off: the names map one to one, but the operating model (identity, networking, accounts) does not.

🗣 Full answer (senior)

How I would answer this in an interview

"Most of what I'd use on Azure has a direct AWS equivalent, so I'd start with the mapping and then talk about where the model differs. For hosting an ASP.NET Core API, App Service's nearest equivalents are Elastic Beanstalk and App Runner, but in practice most .NET teams on AWS run containers on ECS with Fargate, which is closer to Azure Container Apps. Azure Functions maps to Lambda, which has had a managed dotnet10 runtime since January 2026. Azure SQL maps to Amazon RDS for SQL Server, usually licence-included, so EF Core and our T-SQL work unchanged. Blob Storage is S3, Key Vault is split between Secrets Manager for secrets and KMS for keys, Service Bus is SQS for queues plus SNS for pub/sub, and Azure Monitor and Application Insights become CloudWatch for logs, metrics and alarms, with X-Ray or OpenTelemetry for distributed tracing.

Where it really differs is identity and structure. On Azure I'd give the app a managed identity and assign RBAC roles. On AWS the app runs with an IAM role, for example an ECS task role or a Lambda execution role, and the SDK's default credential chain picks it up, so there are still no keys in config. Permissions are JSON policies scoped to resource ARNs, which is more granular but easier to get wrong. And the isolation boundary is the account, grouped with AWS Organizations, rather than subscriptions and resource groups. For an Australian workload I'd pick Sydney, ap-southeast-2, with Melbourne, ap-southeast-4 as the second region for data residency.

The mistake I see is assuming one to one names means one to one behaviour. SQS isn't Service Bus: it has no sessions or built-in duplicate detection on standard queues, and you need SNS for topics. The services translate quickly; the operating model takes longer."


The mapping

Need Azure AWS Notes
Host a web API (PaaS) App Service Elastic Beanstalk, App Runner Beanstalk runs EC2 for you; App Runner is container-based
Host containers Container Apps, AKS ECS on Fargate, EKS ECS is AWS's own orchestrator; EKS is managed Kubernetes
Serverless functions Azure Functions AWS Lambda Lambda has a 15-minute maximum run time
Relational database Azure SQL Database RDS for SQL Server, Aurora RDS is closer to Azure SQL Managed Instance
Object storage Blob Storage S3 Both have tiers and lifecycle rules
Secrets and keys Key Vault Secrets Manager, KMS, Parameter Store Parameter Store is cheaper for plain config
Queues and topics Service Bus SQS, SNS, Amazon MQ SNS fans out to SQS queues
Events Event Grid EventBridge Rules route events to targets
Event streaming Event Hubs Kinesis Data Streams, MSK (Kafka)
Monitoring Azure Monitor, App Insights CloudWatch, X-Ray OpenTelemetry works on both
Identity for apps Managed identity + RBAC IAM roles + policies No keys in either case
Isolation Subscription, resource group Account, Organizations, tags
IaC Bicep, ARM CloudFormation, CDK Terraform works on both

Differences that catch Azure developers out

Area Azure habit AWS reality
Permissions Assign a built-in role at a scope Write or attach JSON policies; resource ARNs and conditions matter
Messaging Service Bus gives queues, topics, sessions, duplicate detection SQS standard is at-least-once with best-effort ordering; FIFO queues for ordering; SNS for fan-out
Monitoring App Insights auto-collects requests and dependencies CloudWatch logs and metrics are separate; you add OpenTelemetry or X-Ray for traces
Grouping Resource groups delete together No resource group equivalent; use tags, accounts and CloudFormation stacks
Networking VNet, private endpoints VPC, security groups, VPC endpoints (PrivateLink)

Production example

A .NET 10 API moved from App Service to ECS on Fargate in Sydney kept the same container image and EF Core code. The work was in IAM (one task role with three scoped policies replaced two managed identity role assignments), swapping Application Insights for OpenTelemetry exporting to CloudWatch and X-Ray, and replacing Service Bus sessions with SQS FIFO message groups. The migration took [n] sprints, and p95 latency stayed within [5%] of the Azure baseline.

🔍 What the interviewer is checking

Checks whether the candidate can transfer Azure knowledge to AWS quickly and knows where the equivalents are only approximate.

Green flags

  • Maps each service correctly and mentions ECS on Fargate as the common .NET hosting choice
  • Explains IAM roles and the default credential chain as the equivalent of managed identity
  • Points out that SQS is not Service Bus (ordering, sessions, topics via SNS)
  • Mentions Sydney and Melbourne regions for Australian data

Red flags

  • Proposes access keys in configuration
  • Says Aurora runs SQL Server
  • Can only list names without saying how they differ

📚 Learn in depth

1. Why the mapping is mostly one to one

Both clouds sell the same building blocks: compute at several levels of abstraction, managed databases, object storage, messaging, secrets and monitoring. The levels line up:

More control, more ops                        Less control, less ops
|----------------------------------------------------------------|
VMs           Kubernetes      Containers PaaS     Web PaaS      Functions
Azure VM      AKS             Container Apps      App Service   Functions
EC2           EKS             ECS on Fargate      App Runner /  Lambda
                                                  Beanstalk

If you know where a service sits on this line in one cloud, you can usually find its partner in the other.

2. Identity: the biggest conceptual shift

On Azure, a managed identity is an Entra ID principal attached to a resource, and Azure RBAC grants it a role at a scope (subscription, resource group, resource).

On AWS, an IAM role is assumed by a service (ECS task, Lambda, EC2 instance profile). AWS STS hands the workload short-lived credentials. What the role can do is defined by policies:

{
  "Effect": "Allow",
  "Action": ["s3:GetObject", "s3:PutObject"],
  "Resource": "arn:aws:s3:::orders-documents/*"
}

The AWS SDK for .NET finds these credentials through its default credential chain (environment variables, the shared profile, then the container or instance metadata endpoint), the same idea as DefaultAzureCredential.

3. Accounts instead of subscriptions

AWS's hard boundary is the account. Larger organisations use AWS Organizations with separate accounts per environment (dev, test, prod) and Service Control Policies to cap what any account can do, similar to management groups and Azure Policy. There is no resource group; you use tags and CloudFormation stacks to group and delete things.

4. Messaging is not a straight swap

Service Bus is a full broker: queues, topics with subscriptions and filters, sessions, scheduled messages, duplicate detection. On AWS that is split:

  • SQS standard: at-least-once, best-effort ordering, very high throughput.
  • SQS FIFO: ordering per message group and deduplication within a 5-minute window.
  • SNS: topics that push to SQS queues, Lambda, HTTP endpoints.
  • Amazon MQ: managed ActiveMQ or RabbitMQ if you need AMQP.

5. Monitoring is assembled, not bundled

Application Insights collects requests, dependencies and exceptions with one package. On AWS you combine CloudWatch Logs (log groups), CloudWatch metrics and alarms, and X-Ray or the AWS Distro for OpenTelemetry for traces. Standardising on OpenTelemetry in .NET keeps the code the same on both clouds.

6. Regions for Australian workloads

AWS has Asia Pacific (Sydney) ap-southeast-2 and Asia Pacific (Melbourne) ap-southeast-4. Keeping data in those two regions supports Privacy Act 1988 and APP 8 expectations about cross-border disclosure, but you still need to check where global services (for example CloudFront logs or IAM Identity Center) store data.

Try it yourself

  1. Create a free-tier AWS account and list the services you would use for an ASP.NET Core API, its database, files, secrets and logs.
  2. Write an IAM policy that allows only s3:GetObject on one bucket prefix, and test it with the IAM Policy Simulator.
  3. Run aws sts get-caller-identity locally with a profile, then inside an ECS task, and compare the identities.
  4. Send a message to an SQS standard queue twice and see that SQS does not deduplicate it; repeat with a FIFO queue and a deduplication id.
  5. Add the OpenTelemetry .NET SDK to a small API and export traces to the console, then to the AWS Distro collector.

💻 Code

The same .NET 10 API reading a file from object storage on each cloud. Only the SDK client changes; both use the platform identity, not keys.

// Program.cs: AWS version. Credentials come from the ECS task role via the default chain.
using Amazon.S3;
using Amazon.S3.Model;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddDefaultAWSOptions(builder.Configuration.GetAWSOptions()); // region from config
builder.Services.AddAWSService<IAmazonS3>();

var app = builder.Build();

app.MapGet("/documents/{key}", async (string key, IAmazonS3 s3, CancellationToken ct) =>
{
    // No access key anywhere: the SDK asks the container metadata endpoint for temporary credentials.
    using var response = await s3.GetObjectAsync(
        new GetObjectRequest { BucketName = "orders-documents", Key = key }, ct);

    using var buffer = new MemoryStream();
    await response.ResponseStream.CopyToAsync(buffer, ct);
    return Results.File(buffer.ToArray(), response.Headers.ContentType);
});

app.Run();
// Program.cs: Azure version for comparison. Managed identity via DefaultAzureCredential.
using Azure.Identity;
using Azure.Storage.Blobs;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton(_ => new BlobServiceClient(
    new Uri("https://ordersdocs.blob.core.windows.net"), new DefaultAzureCredential()));

var app = builder.Build();
app.MapGet("/documents/{key}", async (string key, BlobServiceClient blobs, CancellationToken ct) =>
{
    var blob = blobs.GetBlobContainerClient("orders-documents").GetBlobClient(key);
    var content = await blob.DownloadContentAsync(ct);
    return Results.File(content.Value.Content.ToArray(), content.Value.Details.ContentType);
});
app.Run();
// appsettings.json: AWS region (Sydney). Never put access keys here.
{
  "AWS": { "Region": "ap-southeast-2" }
}

⚠ Common mistakes

  • Mistake: Putting an IAM user's access key and secret in appsettings.json or environment variables. Why it is wrong: Long-lived keys leak through repos and logs and never expire. Instead: Use an ECS task role, Lambda execution role or EC2 instance profile and let the SDK's default credential chain get temporary credentials.
  • Mistake: Treating SQS as a drop-in for Service Bus. Why it is wrong: SQS standard has no ordering guarantee, no sessions and no topics. Instead: Use FIFO queues with message group ids for ordering, SNS to SQS for fan-out, and idempotent consumers.
  • Mistake: Porting a long-running Azure Function straight to Lambda. Why it is wrong: Lambda stops an invocation at 15 minutes, while Azure Functions on Premium, Dedicated or Flex Consumption plans can run much longer. Instead: Split the work into steps with Step Functions or SQS, or run it as an ECS task.
  • Mistake: Expecting a managed-identity style passwordless login to RDS for SQL Server. Why it is wrong: RDS IAM database authentication supports MySQL and PostgreSQL, not SQL Server. Instead: Keep the SQL login in Secrets Manager with automatic rotation and read it through the task role, or use AWS Managed Microsoft AD with Windows authentication.
  • Mistake: Expecting CloudWatch to behave like Application Insights out of the box. Why it is wrong: You get logs and basic metrics, not request and dependency tracing. Instead: Add OpenTelemetry (or X-Ray) instrumentation for ASP.NET Core, HttpClient and SQL.
  • Mistake: Assuming services find each other the way App Service apps do with public hostnames. Why it is wrong: On AWS, services usually live in private VPC subnets behind security groups. Instead: Use an internal ALB or ECS Service Connect (Cloud Map) for service-to-service calls, and VPC endpoints for AWS APIs.
  • Mistake: Granting "Action": "*" or AdministratorAccess to get past an AccessDenied. Why it is wrong: It breaks least privilege and the ACSC Essential Eight expectations on privileges. Instead: Read the denied action in the error or CloudTrail and grant that action on that resource ARN.
  • Mistake: Assuming Aurora is "just SQL Server". Why it is wrong: Aurora is MySQL or PostgreSQL compatible; T-SQL, stored procedures and EF Core's SQL Server provider do not carry over. Instead: Use RDS for SQL Server, or plan a real migration to PostgreSQL.
  • Mistake: Picking a US region by default. Why it is wrong: Personal information may leave Australia, which matters under APP 8 and for latency. Instead: Use ap-southeast-2 (Sydney) and ap-southeast-4 (Melbourne).

🏛 Senior insight: trade-offs

The mapping table is the easy part and interviewers know it. The senior signal is knowing where the operating model differs: IAM policies instead of role assignments, accounts instead of subscriptions, monitoring that you assemble, and messaging that is split across SQS, SNS and EventBridge. If you can explain how your .NET code stays identical (default credential chain, OpenTelemetry, containers) while the platform glue changes, you show that you can work on either cloud.

Azure habit AWS choice When it fits Watch out for
App Service ECS on Fargate Containerised APIs, steady traffic More setup (ALB, task definitions)
App Service App Runner Small services, minimal ops Fewer networking and scaling knobs
Azure SQL RDS for SQL Server Existing T-SQL, EF Core SQL Server provider Licence cost; Multi-AZ doubles it
Service Bus SQS + SNS Simple queues and fan-out No sessions; FIFO has throughput limits
App Insights CloudWatch + X-Ray / OTel Any You build dashboards and alerts yourself

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions App Runner, ECS or Lambda as the App Service equivalent Why: Checks whether they can reason about the compute choice itself, not just the names.
    How to answer

    I choose by how much platform the team wants to run:

    • App Service: one or a few web apps, always on, deployment slots, almost no ops. Paid per plan instance.
    • Azure Functions: event-driven or spiky work (queues, timers, blobs); Flex Consumption scales per event and to zero.
    • Container Apps: containerised microservices on managed Kubernetes with KEDA scaling, revisions and scale to zero, without touching the cluster.
    • AKS: full Kubernetes when you need its API, custom networking or many services and have a platform team.

    The trade-off is control versus operations: each step towards AKS gives more control and more work. I start with the simplest option that meets the requirements and move only when I hit a concrete limit.

  2. When: Candidate says SQS is the AWS version of Service Bus Why: Checks whether they know how the brokers differ in ordering, retention and delivery.
    How to answer

    Service Bus, RabbitMQ and SQS are queue brokers: a message is delivered, settled and gone. Kafka is a partitioned, retained log: messages stay for the retention period and each consumer group tracks an offset, so you can replay.

    • Ordering: Service Bus sessions, SQS FIFO message groups, Kafka per partition; RabbitMQ only per queue with a single consumer.
    • Guarantees: all are at-least-once in practice, so consumers deduplicate.
    • Operations: Service Bus and SQS are fully managed; RabbitMQ and self-hosted Kafka need a team (or Confluent Cloud / Event Hubs' Kafka endpoint).

    For a .NET system on Azure doing commands and business events, I default to Service Bus. I pick Kafka when I need high-volume streaming and replay. The trade-off is features and simplicity versus throughput and history.

  3. When: Candidate compares IAM roles with managed identity Why: Checks that they understand keyless authentication end to end on Azure.
    How to answer

    Managed identity gives the app an Entra ID identity that Azure manages, so there is no secret to store or rotate. In code, Azure.Identity gets tokens: DefaultAzureCredential tries managed identity in Azure and the developer's az login or Visual Studio sign-in locally. Then:

    • Key Vault: grant Key Vault Secrets User and use AddAzureKeyVault.
    • Blob Storage: grant Storage Blob Data Contributor and create BlobServiceClient with the credential.
    • Azure SQL: CREATE USER [app-name] FROM EXTERNAL PROVIDER, add it to database roles, and use Authentication=Active Directory Default in the connection string.

    Use a user-assigned identity when several apps share access or it must survive redeploys. The trade-off is setup effort in RBAC and SQL users in exchange for no secrets at all.

↩ Usually asked after

More in AWS

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me