SAP-C02 Practice Question: Accelerate Workload Migration and Modernization
A company is migrating a batch processing workload to AWS. The workload runs a Java application that processes files from an S3 bucket. The company wants to minimize operational overhead. Which AWS service should the company use to run the Java application?
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
✓
AWS Lambda
(AWS Lambda) is correct because it allows running Java code in response to S3 events with no server management, minimizing operational overhead. AWS Lambda supports Java runtime, can be triggered by S3 object creation events, and automatically scales. Options A (Amazon EC2) and B (Amazon ECS with EC2 launch type) require managing EC2 instances or cluster, increasing overhead. Option C (AWS Batch) is designed for batch jobs but still requires compute environments (EC2 or Fargate) and is more complex than Lambda for simple file processing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Amazon EC2
Why it's wrong here
Amazon EC2 requires you to provision instances, patch the OS, install the Java runtime and manage scaling, which adds the operational overhead the company wants to avoid. It is tempting because EC2 runs any Java application, and it would be correct where you need full control over the runtime or specialised instance types.
- ✗
Amazon ECS with EC2 launch type
Why it's wrong here
ECS with the EC2 launch type leaves the team managing the underlying EC2 cluster, including patching and capacity, so operational overhead stays high. It fits containerised workloads needing host-level control, not a batch job where AWS should handle all infrastructure.
- ✗
AWS Batch
Why it's wrong here
AWS Batch schedules containerised jobs onto compute environments; it does not natively run a plain Java artefact without you packaging it and managing the job definition and queue. It is tempting because Batch targets exactly this batch-processing use case, and it would be correct if the workload were already containerised or needed managed job queuing.
- ✓
AWS Lambda
Why this is correct
AWS Lambda runs Java code without provisioning or managing servers, satisfying the minimise-operational-overhead constraint. It integrates natively with S3 event notifications, so uploaded files trigger processing automatically. For batch workloads with intermittent file arrivals, this event-driven model removes idle capacity and patching duties entirely, unlike EC2 or ECS, which require ongoing cluster management.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
One of 984 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.