SAP-C02 Practice Question: Accelerate Workload Migration and Modernization
A company is migrating a legacy application that uses a proprietary binary protocol for communication. The application communicates over TCP/IP. The company wants to modernize the communication layer to use a RESTful API. Which TWO approaches should the company consider?
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 Amazon API Gateway and AWS Lambda to create a REST API that translates requests to the legacy protocol.
Options B and D are correct. Option B: Using Amazon API Gateway and AWS Lambda allows the company to create a REST API that acts as a facade, translating RESTful calls into the legacy binary protocol, enabling gradual modernization without full application rewrite. Option D: Refactoring the application to communicate directly over HTTP and using Amazon API Gateway provides a modern, fully managed RESTful interface, which is the ideal long-term solution. Option A (Amazon MQ) is a message broker and not designed for protocol translation to REST. Option C (AWS App Mesh) is a service mesh for observability and traffic control, not for protocol conversion. Option E (Amazon CloudFront) is a CDN and cannot translate protocols.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Replace the binary protocol with Amazon MQ.
Why it's wrong here
Amazon MQ is a message broker, not a REST API.
- ✓
Use Amazon API Gateway and AWS Lambda to create a REST API that translates requests to the legacy protocol.
Why this is correct
This allows the legacy protocol to be wrapped without modifying the backend.
- ✗
Use AWS App Mesh to convert the binary protocol to HTTP.
Why it's wrong here
App Mesh is for service mesh, not protocol conversion.
- ✓
Refactor the application to communicate over HTTP and use Amazon API Gateway.
Why this is correct
Refactoring to HTTP enables direct use of RESTful APIs.
- ✗
Use Amazon CloudFront to cache the RESTful endpoints.
Why it's wrong here
CloudFront is a CDN, not a protocol translator.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
One of 1,660 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.