Quick revision
The short answer
I would treat the move off AWS SDK for Java 1.x as a governed program, not 200 separate chores: build an inventory from dependency reports and SBOMs that finds every com.amazonaws artifact, direct or transitive, rank services by risk, give teams a shared BOM and starter plus AWS's OpenRewrite-based migration tool, and track progress against deadlines agreed with security. The lasting lesson is to keep SDK calls behind small internal interfaces, so the next SDK change touches a few classes instead of hundreds.
What to remember
In this answer, we saw that an SDK migration at scale is mostly an inventory and governance problem. We found 1.x through dependency trees and SBOMs, including transitive copies, ranked services by exposure and effort, used the OpenRewrite-based tool for mechanical changes while reviewing behaviour differences, gave teams a BOM and a starter, and tracked progress against deadlines with expiring exceptions. The lasting improvement is architectural: small internal interfaces around cloud calls make the next change cheap.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would treat the move off AWS SDK for Java 1.x as a governed program, not 200 separate chores: build an inventory from dependency reports and SBOMs that finds every com.amazonaws artifact, direct or transitive, rank services by risk, give teams a shared BOM and starter plus AWS's OpenRewrite-based migration tool, and track progress against deadlines agreed with security. The lasting lesson is to keep SDK calls behind small internal interfaces, so the next SDK change touches a few classes instead of hundreds.
Why this question is asked
Version 1.x of the AWS SDK for Java reached end of support at the end of 2025, which means no new features, no fixes for new AWS services and, sooner or later, no security patches. In a company with 200 services, nobody can migrate everything in a sprint, and the hard part is not the code: it is finding where 1.x hides, deciding what goes first, and keeping 60 or 70 teams moving at the same pace without each of them solving the same problems. Interviewers ask this at the principal level because it tests whether we can run a technical change across an organization. In this answer, we will build the inventory, rank the work, see what the migration tool does and what it does not, look at the shared building blocks a platform team provides, set up governance with deadlines and exceptions, and finish with what we would design differently so the next change is cheaper.
1A Quick Recap: What Changes Between 1.x and 2.x
The two SDKs are separate libraries that can live in the same JVM. Version 1.x uses Maven group com.amazonaws and packages starting with com.amazonaws. Version 2.x uses group software.amazon.awssdk and packages starting with software.amazon.awssdk. Because the packages differ, a service can run both at once, which is what makes a gradual migration possible.
The programming model also changed. In 2.x every client and every request is built with a builder, and request objects are immutable, so code that created a request and then called setters on it must be rewritten. Getters lose the get prefix, so getBucketName() becomes bucket(). Exceptions have new types: AmazonServiceException becomes AwsServiceException, and client-side failures are SdkClientException in a new package. Paginated APIs gain paginators that hide the continuation tokens, and the HTTP client is now a pluggable module, such as the Apache client, the URL connection client or the CRT-based client.
Notice that the 2.x version changes behaviour, not only names. The 1.x call returned one page and the caller had to loop; the paginator returns all pages lazily. That is the kind of difference a reviewer must look for, because a mechanical rewrite compiles either way.
2Building the Inventory, Including What Hides in Transitive Dependencies
We cannot plan what we cannot see. The first step is a list of every service and every place it pulls in com.amazonaws artifacts. Direct dependencies are easy; the dangerous ones are transitive, where a logging appender, a JDBC driver plugin, an old Spring Cloud AWS version or an internal shared library brings 1.x in without the team knowing.
We get this from the build itself. Running mvn dependency:tree or gradle dependencies in CI gives a tree per service, and generating an SBOM, a software bill of materials in CycloneDX or SPDX format, for every build gives a machine-readable list we can query centrally. If the company already feeds SBOMs into a dependency tracking tool, one query for group com.amazonaws answers the question for all 200 services at once.
This output is typical: the billing team never wrote a line of 1.x code, but their internal audit library did. That tells us an important thing about ordering. Shared libraries must migrate first, because one library upgrade can clear dozens of services.
3Ranking Services by Exposure
With the inventory in hand, we rank. Not every service carries the same risk, and a ranking lets security and leadership agree on what must move first. Three questions do most of the work: is the service internet-facing, how sensitive is the data it touches, and how much SDK code does it have, which tells us the effort.
A service that is internet-facing, handles payment or personal data and has 30 lines of S3 code goes to the top: high risk, low effort. A batch job on internal data with 4,000 lines of SDK code goes later, with more support. Services whose only exposure is transitive, through a shared library, are cleared in bulk when that library ships its 2.x version.
| Service type | Exposure | SDK code | Wave |
|---|---|---|---|
| Shared libraries pulling in 1.x | Many services at once | Small to medium | Wave 0 |
| Public API, personal data | High | Small | Wave 1 |
| Internal service, sensitive data | Medium | Medium | Wave 2 |
| Internal batch, heavy SDK use | Low | Large | Wave 3 with help |
| Third-party library only on 1.x | Varies | Not ours | Exception with owner |
4Doing the Mechanical Work With the Migration Tool
AWS publishes a migration tool for SDK v2 built on OpenRewrite, an open-source engine that rewrites Java source code using recipes. Teams add the rewrite Maven or Gradle plugin with the AWS recipe and run it; it changes imports, client builders, request construction and many method names. The exact recipe name and how much of each service client it covers change between releases, so we check its coverage for the services we use before promising teams it will do the whole job.
The tool removes most of the typing, but it cannot judge behaviour. Reviewers must still look at four things. Builders and immutable requests can change code that reused and modified one request object in a loop. Exception handling can silently stop matching, for example a catch of AmazonS3Exception that checked an error code. Paginators change how many items a call returns. And the S3 TransferManager in 2.x is a different class with a different threading model. We publish a short review checklist for these, and every migrated service must pass its integration tests against real AWS or a local emulator before merging.
5Shared Building Blocks: a BOM and a Starter
If each of 200 teams decides which 2.x version to use, which HTTP client to pick and how to set timeouts and retries, we get 200 slightly different configurations and 200 sets of mistakes. A platform team prevents this with two things. The first is a BOM, a bill of materials POM that pins the approved software.amazon.awssdk version, so teams import it and never write a version number. The second is a small internal Spring Boot starter that creates clients with the agreed HTTP client, connection pool size, timeouts, retry policy and metrics.
The same BOM can also exclude or ban 1.x artifacts. A Maven Enforcer rule that fails the build when com.amazonaws appears, switched on per service once it has migrated, stops 1.x from creeping back through a new dependency.
6Governing the Program: Deadlines, a Dashboard and Exceptions
We agree deadlines with security rather than inventing them alone, because security owns the risk acceptance and can tie the dates to its vulnerability policy. For example: wave 1 by the end of the first quarter, all services by the end of the third. Progress goes on a dashboard built from the SBOM data, showing per team how many services still carry 1.x, so leaders see the same numbers the engineers see and nobody argues about status.
Some services will not make it, and pretending otherwise leads to silent misses. So we allow exceptions, but each one has a named owner, a reason, a compensating control and an end date, and the exception expires automatically. An exception without an end date is just a permanent risk with paperwork.
- Found in SBOM scandirect or transitive 1.x
- Ranked into a waveexposure and effort
- Run migration toolthen review the four differences
- Tests pass on 2.x?YesEnable the build rule banning 1.xNoFix or ask platform team
- Blocked by a dependency?YesException with owner and end dateNoMark done on dashboard
5 steps in order. Play them, or step through them one at a time.
The build rule keeps a finished service from slipping back.
7The Lesson for the Next SDK Change
The reason this migration costs so much is that SDK types leaked everywhere: request objects in service methods, SDK exceptions in controllers, S3 clients injected into twenty classes. The lesson is to put cloud calls behind small internal interfaces that speak our domain, such as a DocumentStore with put and get methods, implemented once with the SDK. Spring Cloud AWS gives a similar effect for common cases with its S3Template, SqsTemplate and SnsTemplate. Next time the SDK changes, we rewrite one adapter per capability instead of searching 200 repositories. We also keep the BOM and SBOM pipeline running, so the next inventory takes a query, not a quarter.
8Follow-up questions
How would you handle a third-party library that only supports SDK 1.x?
First we check whether a newer release or an alternative library already supports 2.x, which is often the case. If not, we look at how the library uses the SDK; sometimes it accepts a client or a credentials provider we can adapt. If we must keep it, we isolate it: the service keeps 1.x only for that library, which is possible because the packages differ, and we give it a formal exception with an owner and an end date. For high-risk services we may move that function into a small separate service so the rest of the code base is clean. We also tell the vendor or open an issue upstream, because other companies are in the same position.
Why not just let each team migrate when it is convenient?
Because convenient never comes for code that works. Without deadlines, the risky internet-facing services and the shared libraries move at the same speed as everything else, and the long tail never finishes. A program with ranking, shared tooling and a dashboard costs a little coordination but finishes in months instead of years, and it lets security accept the remaining risk explicitly.
What would you measure to know the program is working?
The number of services and libraries still carrying 1.x, split into direct and transitive, trending down each week; the number of open exceptions and how many are past their end date; and incidents caused by migrations, which should stay near zero if the review checklist and integration tests work. If the trend flattens, we look at which teams are stuck and why, usually a shared library nobody owns.
9Conclusion
In this answer, we saw that an SDK migration at scale is mostly an inventory and governance problem. We found 1.x through dependency trees and SBOMs, including transitive copies, ranked services by exposure and effort, used the OpenRewrite-based tool for mechanical changes while reviewing behaviour differences, gave teams a BOM and a starter, and tracked progress against deadlines with expiring exceptions. The lasting improvement is architectural: small internal interfaces around cloud calls make the next change cheap.
Open with
I would run it as a program rather than 200 separate tasks. First the inventory: every build produces an SBOM, and I query it for com.amazonaws artifacts, direct and transitive.
Then, if they want more
That usually shows that internal shared libraries pull in 1.x for many services, so those go first. Then I rank the rest by exposure, meaning internet-facing, data sensitivity and how much SDK code they have, and agree waves and deadlines with security.
For the work itself, teams use AWS's OpenRewrite-based migration tool for the mechanical changes, after checking its coverage for our services, and reviewers use a short checklist for what the tool cannot judge: immutable requests and builders, different exception types, paginators that return all pages, and the new transfer manager.
The platform team ships a BOM with the approved 2.x version and a starter that configures HTTP clients, timeouts and retries, so teams do not solve that 200 times. Progress goes on a dashboard from the SBOM data, and once a service is done, an enforcer rule bans 1.x so it cannot come back.
Exceptions are allowed, for example a vendor library that only supports 1.x, but each has an owner and an end date, and we isolate that library where we can. The lesson I would take away is that SDK types should not leak through the code.
If cloud calls sit behind small internal interfaces or Spring Cloud AWS templates, the next SDK change is a few adapters, not a company-wide program.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- AWS documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your company has about 200 Java services, a third still on AWS SDK for Java 1.x, and...": https://scrivio-interview-library.netlify.app/spring-boot/aws/183453dd7e/