Courseiva
Accelerate Workload Migration and ModernizationhardMultiple ChoiceObjective-mapped

Migrate .NET Framework 4.7 with COM+ Using Windows Containers on ECS

A company is migrating a legacy .NET Framework 4.7 application to AWS. The application uses Windows authentication and COM+ components. Which migration approach is most suitable?

Quick Answer

The answer is to use Windows containers on Amazon ECS with the ECS-optimized Windows Server AMI, because this is the only approach that fully supports .NET Framework 4.7 applications with COM+ components and Windows authentication. Windows containers on ECS run on Windows Server Core, which provides the necessary Windows kernel and COM+ infrastructure that Linux containers and serverless options lack. On the AWS Certified Solutions Architect Professional SAP-C02 exam, this question tests your understanding of the hard boundary between .NET Framework (Windows-only) and .NET Core/.NET 5+ (cross-platform), and it often appears as a distractor where candidates mistakenly choose Elastic Beanstalk or Lambda. A common trap is assuming that any "container" solution works, but Linux containers cannot host COM+ or full .NET Framework. Memory tip: "COM+ means Windows+ — never try to run legacy COM on Linux."

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use Windows containers on Amazon ECS with Amazon ECS-optimized Windows Server AMI

Windows containers on Amazon ECS with the ECS-optimized Windows Server AMI support .NET Framework applications and COM+ components, making them the most suitable migration approach. Option A is incorrect because replatforming to .NET Core on Linux would require significant code changes and does not support COM+. Option C is incorrect because AWS Lambda does not support full .NET Framework or COM+. Option D is incorrect because Linux containers cannot run Windows-based .NET Framework applications.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Replatform to .NET Core on AWS Elastic Beanstalk (Linux)

    Why it's wrong here

    .NET Core is not fully compatible with .NET Framework and COM+.

  • Use Windows containers on Amazon ECS with Amazon ECS-optimized Windows Server AMI

    Why this is correct

    Windows containers support .NET Framework and COM+ components.

  • Refactor to run on AWS Lambda with .NET Core 3.1

    Why it's wrong here

    Lambda does not support full .NET Framework or COM+.

  • Containerize with Linux containers on Amazon ECS

    Why it's wrong here

    .NET Framework requires Windows containers.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on SAP-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is migrating a legacy .NET Framework 4.8 application to AWS. The application uses Windows authentication integrated with Active Directory and relies on a shared file system for configuration files. The company wants to minimize operational overhead and use managed services. Which combination of AWS services should the company use to modernize the application?

hard
  • A.AWS Managed Microsoft AD, Amazon EFS, and AWS Elastic Beanstalk for .NET on Windows
  • B.Amazon Cognito, Amazon RDS for SQL Server, and AWS Lambda
  • C.AWS Directory Service for Microsoft AD, Amazon S3, and AWS App Runner
  • D.AWS Managed Microsoft AD, Amazon FSx for Windows File Server, and AWS Elastic Beanstalk for .NET on Windows

Why D: AWS Managed Microsoft AD provides Windows authentication integrated with Active Directory, FSx for Windows File Server provides a managed shared file system that supports Windows-native SMB protocol and NTFS permissions, and AWS Elastic Beanstalk for .NET on Windows minimizes operational overhead for hosting a .NET Framework 4.8 application. Option A (EFS) does not natively support Windows authentication or SMB protocol, making it unsuitable. Option B (RDS for SQL Server) is unnecessary as the application does not require a database. Option C (App Runner) does not support .NET Framework applications, and S3 cannot function as a Windows shared file system.

Variation 2. A company is migrating a .NET application from Windows Server to Linux on EC2. The application uses a proprietary COM+ component that cannot be recompiled. Which migration path should they take?

medium
  • A.Rehost the application on Linux EC2 using Wine
  • B.Rehost the application on Windows Server EC2 instances
  • C.Refactor the COM+ component to a REST API
  • D.Replatform the application to .NET Core and run on Linux

Why B: Since the COM+ component cannot be recompiled and is Windows-specific, the only viable option is to rehost the application on Windows Server EC2 instances (option B). Option A (using Wine on Linux) is not a supported or reliable solution for COM+ components. Option C (refactoring the component to a REST API) would require recompilation, which is not allowed. Option D (replatforming to .NET Core on Linux) would also require recompilation and does not support COM+.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.