Courseiva

SAP-C02 Practice Question: Accelerate Workload Migration and Modernization

A company is modernizing a .NET Framework application to run on AWS. The application currently uses Windows Communication Foundation (WCF) services. The company wants to minimize code changes and run on Linux. Which approach should the company take?

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

✓

Port the application to .NET Core and deploy on Amazon ECS with Linux containers.

Migrating the .NET Framework application to .NET Core allows it to run on Linux with minimal code changes, as .NET Core is cross-platform. Deploying on Amazon ECS with Linux containers meets the requirement to run on Linux. Option A is incorrect because using AWS App2Container to generate Windows containers would still require Windows, not Linux. Option B is incorrect because rewriting WCF services as AWS Lambda functions would require significant refactoring, not minimal code changes. Option D is incorrect because AWS Fargate is a compute platform, not a framework, and running Windows containers does not satisfy the requirement to run on Linux.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use AWS App2Container to generate Windows containers and run on Amazon ECS with Windows.

    Why it's wrong here

    App2Container produces Windows containers requiring Windows hosts on ECS, directly contradicting the Linux requirement. It tempts because it automates lift-and-shift containerisation with minimal code change, and would be correct if the target platform were Windows rather than Linux.

  • ✗

    Rewrite the WCF services as AWS Lambda functions using a custom runtime.

    Why it's wrong here

    Lambda custom runtimes still execute code compiled for a Linux-compatible runtime, so WCF's Windows-only bindings cannot run unchanged; rewriting also violates minimal code change. It tempts as a serverless modernisation path, and would suit new stateless services, not existing WCF contracts.

  • ✓

    Port the application to .NET Core and deploy on Amazon ECS with Linux containers.

    Why this is correct

    Porting to .NET Core enables the application to run on Linux, satisfying the platform constraint, while CoreWCF provides WCF service compatibility with minimal code changes. Amazon ECS with Linux containers then hosts the modernised workload, meeting both the "minimise code changes" and "run on Linux" requirements in the stem.

  • ✗

    Containerize the application using AWS Fargate and run on Windows containers.

    Why it's wrong here

    Windows containers still require Windows hosts, so the application cannot run on Linux as the stem demands. It tempts because Fargate removes server management, yet Fargate's Windows support targets Windows workloads; Linux compatibility requires porting WCF to a Linux-capable framework such as .NET Core with CoreWCF.

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

This SAP-C02 question is part of Courseiva's 984-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.