Ravindra BagaleCourses & study guides Track your progress

AWS Cloud

AWS DevOps and Migration Interview Questions and Answers: CodePipeline, CodeBuild, CodeDeploy, DMS, Application Migration Service and DataSync (50 Questions)

This page has 50 interview questions on two connected jobs: releasing software safely on AWS (CI/CD) and moving existing systems into AWS (migration). Both are about changing live systems without hurting users.

1. An everyday example: moving house while still living in it

Why do interviewers combine DevOps and migration?

Both need the same habits: small steps, automation, testing, a rollback plan and clear communication. A team that deploys safely every day also migrates safely, because it already knows how to change things without downtime.

Think of moving house while your family still lives there. A CI/CD pipeline is a moving company with a checklist: pack, label, check, carry and unpack, the same way every time. Blue/green is setting up the new house fully before anyone moves in. DMS is a pipe that keeps filling the new water tank while the old one is still in use. Application Migration Service copies whole rooms. DataSync carries boxes of files quickly and checks that nothing broke on the way.

How to use this page

  • For pipeline questions, always mention testing, approval, and automatic rollback.
  • For migration questions, always mention validation and a rollback path.
  • Practise with a small pipeline and a DMS task between two test databases.

2. Fresher level questions

Start here if you are a fresher or have less than two years of experience. Try to answer each question aloud first. Then open it and compare.

Q1. What are the main stages of a typical CI/CD pipeline on AWS? Fresher
  • Source: a change is pushed to a Git repository (GitHub, GitLab or Bitbucket through AWS CodeConnections, or S3 or ECR as sources).
  • Build: CodeBuild compiles code, runs unit tests and creates an artifact, such as a container image or a zip file.
  • Test: integration tests and security scans in a test environment.
  • Approval: an optional manual approval before production.
  • Deploy: CloudFormation, CodeDeploy, ECS or other deploy actions release the artifact.

CodePipeline connects these stages and shows where each change is.

Q2. What is AWS CodeConnections? Fresher

AWS CodeConnections (formerly called AWS CodeStar Connections) lets AWS services such as CodePipeline and CodeBuild connect to external Git providers like GitHub, GitLab and Bitbucket.

You create a connection once, authorise it in the provider (for example by installing an app in GitHub), and then use the connection ARN in pipelines.

Benefit: no personal access tokens stored in pipelines, and access is managed centrally.

Q3. What is a manual approval action in CodePipeline? Fresher

A manual approval action pauses the pipeline until a person approves or rejects it.

  • You can send a notification to an SNS topic, so approvers get an email or chat message.
  • You can add a review URL, such as the staging site or a change set, and comments.
  • If nobody responds within seven days, the action fails.
  • Only users with the codepipeline:PutApprovalResult permission can approve.

Use it before production for risky systems. For low-risk services, replace it over time with automated checks.

Q4. What is a deployment artifact and why should you build it only once? Fresher

An artifact is the output of a build, such as a JAR file, a zip for Lambda, or a container image with a specific digest.

Build once, then promote the same artifact through test, staging and production.

Why: if you rebuild for each environment, a dependency may change between builds, and production may run code that was never tested.

Store artifacts in S3, ECR or CodeArtifact, and tag them with the commit ID.

Q5. What is AWS CodeArtifact? Fresher

CodeArtifact is a managed package repository for software packages, such as npm, PyPI, Maven, NuGet and others.

  • Teams publish internal libraries to it.
  • It can proxy public repositories (upstream connections), caching the packages you use.
  • Access is controlled with IAM, and builds get short-lived tokens.

Benefits: builds keep working if a public registry is slow, you control which package versions are used, and private code stays private.

Q6. What is a canary deployment? Fresher

In a canary deployment, a small part of the traffic, such as 10%, goes to the new version first. If metrics stay healthy for a set time, all traffic moves to the new version. If alarms fire, traffic goes back to the old version.

Example with Lambda and CodeDeploy: the configuration LambdaCanary10Percent5Minutes sends 10% of traffic to the new version for 5 minutes, then 100%.

Everyday example: a restaurant gives a new dish to a few tables first before adding it to the menu.

Q7. What is a linear deployment? Fresher

A linear deployment shifts traffic in equal steps over time, for example 10% more every minute until 100%.

CodeDeploy has ready configurations for Lambda and ECS, such as Linear10PercentEvery1Minute.

Compared with canary: canary uses one small step and then everything. Linear moves more slowly and smoothly.

Both work best with CloudWatch alarms attached, so the deployment stops and rolls back when error rates rise.

Q8. What is AWS AppConfig used for? Fresher

AWS AppConfig (part of Systems Manager) manages application configuration and feature flags separately from code.

  • Store feature flags and settings.
  • Validate them with a JSON schema or a Lambda validator before deployment.
  • Deploy changes gradually with deployment strategies, such as 20% of targets every few minutes.
  • Roll back automatically if a CloudWatch alarm fires.

Example: turn on a new checkout page for 10% of users without redeploying the application.

Q9. What does AWS DMS do? Fresher

AWS Database Migration Service moves data between databases, data warehouses and S3.

  • Homogeneous migrations: same engine, such as MySQL to RDS for MySQL.
  • Heterogeneous migrations: different engines, such as Oracle to Aurora PostgreSQL, with schema conversion done separately (DMS Schema Conversion or the Schema Conversion Tool).
  • Ongoing replication with change data capture (CDC), so the source stays live during the migration.

The source database keeps running, which keeps downtime low.

Q10. What is AWS Application Migration Service? Fresher

AWS Application Migration Service (often called MGN) is the main AWS service for lift-and-shift (rehost) migrations of servers to EC2.

  • Install a replication agent on each source server (physical, virtual or in another cloud).
  • It continuously copies the disks at block level to a staging area in your AWS account.
  • You launch test instances, check them, then do a cutover launch with minimal downtime.

It works for many Windows and Linux versions and applications, because it copies whole servers.

Q11. What is AWS DataSync? Fresher

AWS DataSync moves files and objects between storage systems and AWS storage services quickly and safely.

  • Sources and targets: NFS, SMB, HDFS, object storage, other clouds, and S3, EFS and FSx.
  • For on-premises storage, you deploy a DataSync agent (a virtual machine) near the data.
  • It handles encryption in transit, parallel transfer, data integrity checks, scheduling and bandwidth limits.

Use case: copying 50 TB of file shares to Amazon FSx or S3 before switching users over.

Q12. What is AWS Transfer Family? Fresher

AWS Transfer Family provides managed SFTP, FTPS, FTP and AS2 servers that store files directly in Amazon S3 or Amazon EFS.

Why: many partners and old systems still send files by SFTP. Transfer Family keeps their process the same while files land in AWS.

Features: users with SSH keys or a custom identity provider, logical directories to hide bucket paths, managed workflows to process uploaded files, and logging to CloudWatch.

You pay per hour for each enabled protocol and per GB transferred.

Q13. What is a rollback plan in a deployment or migration? Fresher

A rollback plan describes exactly how to return to the previous working state if something goes wrong.

It answers:

  • What triggers a rollback (error rate, failed checks, a time limit)?
  • Who decides?
  • What are the steps, and how long do they take?
  • What happens to data written after the change?

Examples: redeploy the previous artifact, shift traffic back to blue, or point the application back to the old database (which needs reverse replication if writes happened).

Q14. What does CodeBuild need to build Docker images? Fresher
  • A build environment with Docker available, which needs privileged mode turned on for standard images.
  • Permission to push to Amazon ECR in the CodeBuild service role.
  • A login step in the buildspec, such as aws ecr get-login-password | docker login ....
  • Optional: Docker layer caching to speed up builds.
docker push 111122223333.dkr.ecr.ap-south-1.amazonaws.com/shop-api:3f9a2c1

Output:

3f9a2c1: digest: sha256:9b8c7d... size: 2203

The image was pushed with a tag equal to the commit ID. Deploy by digest or tag to know exactly what runs.

Q15. What is a smoke test after deployment? Fresher

A smoke test is a quick check right after a deployment that the most important things still work, such as the home page loads, login works and the health endpoint returns 200.

It runs automatically in the pipeline or as a CloudWatch Synthetics canary.

If it fails, the pipeline stops and rolls back before more users are affected.

Everyday example: after fixing a car, the mechanic starts the engine and drives a short distance before giving it back.

Q16. What does the 7 Rs idea look like for one real application? Fresher

Example: an old company intranet app on two Windows servers and an on-premises SQL Server.

  • Retire: the old reporting module nobody uses is switched off.
  • Rehost: the web servers move to EC2 with Application Migration Service.
  • Replatform: the database moves to RDS for SQL Server.
  • Refactor later: the file upload part is rebuilt on S3 and Lambda.
  • Retain: a licensing server stays on-premises for now.

One application can use several Rs. The goal is the best value with acceptable risk.

Q43. What is the CodeBuild service role used for? Fresher

The service role is the IAM role that CodeBuild uses while running your build.

It needs permission to:

  • Write build logs to CloudWatch Logs (or S3).
  • Read the source and write artifacts to S3.
  • Push images to ECR, read secrets from Secrets Manager or Parameter Store, and use KMS keys, if the build does these things.

Keep it minimal and separate per project. A build role with admin rights is dangerous, because any code in the repository, including a malicious dependency, runs with those rights.

3. Mid level questions

These questions check how you use the service in real projects. Interviewers expect the why, the how and one real example.

Q17. What do CodePipeline V2 triggers and execution modes give you? Mid level

Pipeline type V2 adds:

  • Triggers with filters on branches, file paths, pull request events and Git tags. Example: run the pipeline only when files under services/orders/ change.
  • Pipeline-level variables set at release time.
  • Execution modes:

- Superseded: a newer run replaces a waiting older run (the classic behaviour).

- Queued: runs are processed one after another in order.

- Parallel: runs proceed independently, useful for feature branches.

V2 pricing is based on action execution minutes rather than per active pipeline.

Q18. How does rollback work in CodePipeline? Mid level
  • Manual stage rollback: you can roll back a stage to the source revisions of a previous successful execution, so you redeploy a known good version quickly.
  • Automatic rollback on stage failure (V2 pipelines): if a stage fails, CodePipeline can automatically roll back to the last successful execution.
  • Stage conditions: rules, such as a CloudWatch alarm check, can decide whether a stage continues, fails or rolls back.

Deploy actions like CodeDeploy and CloudFormation also have their own rollback features. Use both levels.

Q19. How does CodeDeploy do blue/green deployments for ECS services? Mid level
  • CodeDeploy creates a new task set (green) with the new task definition next to the current one (blue).
  • The load balancer has a production listener and an optional test listener. Green gets traffic on the test listener first, so you can run tests.
  • Lifecycle hooks (Lambda functions) run checks, such as BeforeAllowTraffic and AfterAllowTestTraffic.
  • Traffic moves to green all at once, canary or linear.
  • If alarms fire, traffic returns to blue. Blue is kept for a set time before termination.

ECS also now offers built-in blue/green deployments in the ECS service itself, so check which approach your team uses.

Q20. How do you speed up CodeBuild builds? Mid level
  • Caching: local caching for source, Docker layers and custom paths (like node_modules or .m2), or S3 caching shared between builds.
  • Right compute size: larger compute types for heavy builds, or Arm (Graviton) images if your stack supports them.
  • Reserved capacity fleets to avoid provisioning delays for frequent builds.
  • Batch builds to run tests in parallel.
  • Smaller base images and dependency installs only when lock files change.
  • Run unit tests and scans in parallel actions instead of one long build.
Q21. Why would a team run its GitHub workflow jobs on CodeBuild instead of GitHub-hosted runners? Mid level

CodeBuild can run as a self-hosted runner for GitHub Actions workflows. A GitHub workflow job is sent to CodeBuild, which starts a fresh build environment with your chosen compute type and runs the job.

Benefits:

  • Builds run in your AWS account with your VPC access, IAM role and compute types (including GPU or large instances).
  • No need to manage runner servers.

Alternatively, GitHub-hosted runners can call AWS using OIDC federation to an IAM role, with no stored access keys.

Q22. How do you attach automatic rollback to a CodeDeploy deployment? Mid level
  • Create CloudWatch alarms that show a bad release, such as 5xx error rate on the ALB, Lambda errors, or high latency.
  • In the deployment group, add these alarms and turn on automatic rollback when an alarm fires, and when a deployment fails.
  • Choose a traffic shifting configuration that gives time to detect problems, such as canary for 10 minutes.
aws deploy get-deployment --deployment-id d-ABCDEF123 --query "deploymentInfo.[status,rollbackInfo.rollbackMessage]" --output text

Output:

Stopped  Deployment stopped by alarm shop-api-5xx-high; rolling back to previous revision

The alarm stopped the deployment and CodeDeploy rolled back automatically.

Q23. What is the difference between a DMS full load task, a CDC task and a full load plus CDC task? Mid level
  • Full load: copies existing data once. Good for one-time copies when the source can stop writing.
  • CDC only: copies only ongoing changes from a point in time. Used when you loaded the initial data with native tools.
  • Full load plus CDC: copies existing data, then keeps applying changes. This is the usual choice for low-downtime migrations.

CDC reads the source's change logs, such as the MySQL binary log, PostgreSQL logical replication or Oracle redo logs, so these must be configured correctly (for example binlog_format=ROW for MySQL).

Q24. How do you check that DMS copied the data correctly? Mid level
  • Turn on DMS data validation. It compares rows between source and target and reports mismatches in table statistics.
  • Compare row counts and checksums for key tables.
  • Run application tests and business reports on the target and compare results.
  • Check the task's table statistics for errors, and the CloudWatch metrics CDCLatencySource and CDCLatencyTarget to see if replication keeps up.
  • Run the DMS premigration assessment before starting, to catch unsupported data types and settings.
Q25. How does DMS handle large objects (LOBs), and why does it matter? Mid level

LOBs are large columns such as BLOB, CLOB, TEXT or JSON.

DMS has LOB modes:

  • Limited LOB mode: copies LOBs up to a maximum size you set. Faster, but larger values are truncated.
  • Full LOB mode: copies all LOBs completely, piece by piece. Safe but slower.
  • Inline LOB mode: copies small LOBs inline and large ones separately, combining speed and safety.

Check the real maximum LOB size in the source first, otherwise you may silently lose data.

Q26. What is DMS Serverless and when would you use it? Mid level

With DMS Serverless, you do not choose or size a replication instance. You set minimum and maximum capacity units, and DMS scales capacity automatically.

Use it when:

  • You do not know how much capacity a migration needs.
  • Load changes a lot between full load and CDC.
  • You want less operational work.

Use a provisioned replication instance when you need specific features that serverless does not support yet, or very predictable costs. Check the current feature list.

Q27. How do you plan a cutover with AWS Application Migration Service? Mid level
  • Replication: install agents and wait until all disks reach continuous data replication.
  • Launch settings: configure launch templates, instance types, subnets and security groups.
  • Test launch: start test instances, run application and integration tests, then mark them ready for cutover.
  • Cutover window: stop the application on the source, wait for the last data to replicate, launch cutover instances, update DNS and connections, and test.
  • Finalise the cutover, which stops replication, and archive the source servers in MGN.

Post-launch actions can install agents, such as the SSM Agent, automatically.

Q28. How do you move 200 TB of files from a data centre to S3 over a 1 Gbps link? Mid level

Calculate first: 1 Gbps is about 10 TB per day at full speed in ideal conditions, so 200 TB needs at least about 20 days, more in practice.

Options:

  • DataSync over the network, with bandwidth limits during business hours and full speed at night, plus incremental syncs at the end.
  • A temporary or permanent Direct Connect connection for more bandwidth.
  • Offline transfer devices, if available for your account and Region, for the bulk copy, then DataSync for the changes.

Always verify the data and plan the final sync and cutover window.

Q29. How do you give a partner SFTP access that drops files into one S3 folder only? Mid level
  • Create a Transfer Family server with the SFTP protocol (public endpoint, or a VPC endpoint with an Elastic IP if the partner needs a fixed IP to allow-list).
  • Create a user for the partner with their SSH public key.
  • Give the user an IAM role that allows only s3:PutObject (and maybe list) on the bucket prefix, for example s3://shop-partner-inbox/acme/.
  • Use a logical home directory so they see "/" instead of the real bucket path.
  • Use a managed workflow or an S3 event to scan and process uploaded files.

Turn on logging and alert on failed logins.

Q30. What are deployment strategies for database schema changes in CI/CD? Mid level
  • Version control all migrations (Flyway, Liquibase or framework migrations).
  • Run them as a dedicated pipeline step before or after the app deployment, depending on compatibility.
  • Use the expand and contract pattern: add new columns or tables first, deploy code that writes to both, backfill, switch reads, and remove old parts in a later release.
  • Avoid long locks: create indexes concurrently where the engine supports it, and split big data updates into batches.
  • Take a snapshot before risky changes, and test on a copy of production data size.
Q44. What is DMS Schema Conversion? Mid level

DMS Schema Conversion is a feature inside AWS DMS that converts database schemas and code objects (tables, views, stored procedures, functions) from one engine to another, such as Oracle or SQL Server to PostgreSQL or MySQL.

  • It produces an assessment report showing what can be converted automatically and what needs manual work.
  • It runs in the console as a managed service, while the older AWS Schema Conversion Tool is a desktop application.

Use the report to estimate effort before you commit to a heterogeneous migration.

Q45. How does DataSync make sure files were copied correctly? Mid level

DataSync checks integrity during transfer, and you can choose a verification mode for the task:

  • Verify only the data transferred.
  • Verify all data in the source and destination after transfer.
  • No extra verification.

Other useful task options: include and exclude filters, keeping or overwriting files, preserving metadata (owners, permissions, timestamps), bandwidth limits and schedules.

Read the task report to see transferred, skipped and failed files, and fix failures before cutover.

Q46. How do you deploy CloudFormation stacks safely from CodePipeline? Mid level

Use two CloudFormation actions:

  • Create or replace change set: builds a change set from the template and parameters.
  • Execute change set: applies it.

Put a manual approval (or an automated check of the change set) between them, so reviewers can see what will change, especially replacements and deletions.

Also: use a dedicated deployment role for CloudFormation with only the needed permissions, set termination protection on production stacks, and store templates as pipeline artifacts so the same template is used in every stage.

Q47. How do CloudWatch Synthetics canaries help in a release process? Mid level

Canaries are scripts that run on a schedule and behave like a user: open pages, click buttons, call APIs and check results.

In releases:

  • Run canaries against staging after deployment, and against production during and after the rollout.
  • Create CloudWatch alarms on canary success rate and duration.
  • Attach those alarms to CodeDeploy or AppConfig, so a failing canary rolls back the release.

They also catch problems when nobody is using the site, such as at night.

4. Senior level and scenario questions

These questions check design thinking and troubleshooting. Think aloud. Say what you check first, what you change, and how you prevent it next time.

Q31. Design a CI/CD pipeline for a microservice on ECS across dev, staging and prod accounts. Senior
  • Source: Git repository with branch protection and pull request reviews.
  • Build: CodeBuild (or GitHub Actions with OIDC) runs tests, scans dependencies, builds the image once and pushes it to ECR with the commit ID.
  • Dev: deploy automatically to the dev account, run integration tests.
  • Staging: deploy the same image, run end-to-end and load tests.
  • Prod: manual approval or automated checks, then blue/green or canary deployment with alarms and automatic rollback.
  • Cross-account deploy roles that trust only the pipeline role, and KMS keys shared for artifacts.
  • Notifications and DORA metrics from pipeline events.
Q32. A deployment passed all tests but caused errors for 5% of users in production. How do you improve the pipeline? Senior
  • Find why tests missed it: different data, a specific browser or region, a feature flag combination, or a dependency only in production.
  • Add canary releases with real traffic and alarms on error rate per version, so 5% problems are caught at 5% traffic, not 100%.
  • Add synthetic checks for key user paths in production.
  • Use feature flags so risky features can be turned off without a redeploy.
  • Add the failing case to automated tests.
  • Run a blameless post-incident review with clear owners for each action.
Q33. How do you migrate a 3 TB MySQL database on-premises to Aurora MySQL with under 15 minutes of downtime? Senior
  • Prepare: Aurora cluster sized for load, parameter group matching critical settings, network path (VPN or Direct Connect).
  • Initial load: a physical backup restored into Aurora (Aurora supports restoring from a MySQL backup in S3) or DMS full load. Physical restore is usually faster for large databases.
  • Ongoing sync: MySQL binary log replication into Aurora, or DMS CDC.
  • Validate data and test the application against Aurora.
  • Cutover: stop writes, wait for replication lag to reach zero, switch connection strings, run smoke tests.
  • Rollback: keep the old server and, if possible, reverse replication for a short time.
Q34. During a DMS migration, CDC latency on the target keeps growing. What do you check? Senior
  • CDCLatencyTarget high but CDCLatencySource low means the target cannot apply changes fast enough.
  • Target issues: missing primary keys (so updates scan whole tables), too many indexes or triggers on the target, foreign key checks, or an undersized target instance.
  • DMS issues: replication instance CPU or memory, and task settings such as batch apply and commit sizes.
  • Large transactions on the source arriving at once.

Fixes: add primary keys, drop non-essential indexes until cutover, turn on batch apply where safe, scale the replication instance and the target, and split large tables into separate tasks.

Q35. How would you migrate 300 servers to AWS in waves with Application Migration Service? Senior
  • Discovery: inventory servers and dependencies, group them into applications.
  • Wave plan: start with low-risk apps, keep dependent servers in the same wave, and limit wave size to what the team can test.
  • Landing zone and network ready: accounts, VPCs, Direct Connect or VPN, DNS and security.
  • Standard launch templates and post-launch actions (agents, tags, backups).
  • For each wave: replicate, test launch, business sign-off, cutover in a planned window, hypercare, then retire the source.
  • Track progress in a dashboard and run retrospectives after each wave.
Q36. How do you migrate Windows file shares to AWS with minimal disruption for users? Senior
  • Choose the target: Amazon FSx for Windows File Server keeps SMB, NTFS permissions and Active Directory integration, so users see no difference.
  • Use DataSync to copy data with permissions, running repeated incremental syncs before cutover.
  • Plan DNS: use a DNS alias so the share name users know points to the new FSx file system.
  • Cutover: make the old share read-only, run a final sync, switch DNS, and test access with different user groups.
  • Keep the old share read-only for a while for rollback.
Q37. Your team deploys once a month and every release is painful. How do you move to daily deploys safely? Senior
  • Measure first: lead time, deploy frequency, change failure rate and time to restore (DORA metrics).
  • Automate the build, tests and deployment fully, removing manual steps.
  • Make changes smaller: trunk-based development with short-lived branches and feature flags.
  • Add safety nets: canary or blue/green deployments, alarms, and automatic rollback.
  • Improve test speed and reliability, and fix flaky tests.
  • Start with one service, show results, then expand.

Culture matters too: blameless reviews and shared ownership of production.

Q38. How do you protect a CI/CD pipeline itself from being used to attack production? Senior
  • Least-privilege roles for each stage. The build role cannot deploy to production.
  • OIDC or service roles, no long-lived keys.
  • Protected branches and required reviews, and restrictions on who can edit pipeline definitions and buildspecs.
  • Pin and verify third-party actions, images and dependencies, and scan them.
  • Sign artifacts and verify signatures before deployment.
  • Separate accounts for tooling and production, with deploy roles that trust only the pipeline.
  • Log all pipeline changes and alert on unusual ones.
Q39. How do you migrate an application that must keep receiving files from 50 partners over SFTP? Senior
  • Set up Transfer Family with the same protocol and, if partners allow-list IPs, Elastic IPs on a VPC endpoint.
  • Import partner users and SSH keys, and map each to its S3 folder.
  • Keep the same host name if possible: move the DNS record from the old server to the Transfer Family endpoint, so partners change nothing.
  • Run both servers in parallel, with a sync or forwarding process, and move partners in groups if needed.
  • Recreate post-upload processing with managed workflows or EventBridge and Lambda.
  • Notify partners in advance about the new host key fingerprint, or import the existing host key so it does not change.
Q40. After migrating servers to EC2, the application is slower than on-premises. How do you investigate? Senior
  • Compare instance sizes and types with the old hardware (CPU speed, memory, disk IOPS).
  • Check latency between components: is the database still on-premises while the app moved? A chatty app over a VPN can become very slow.
  • Check EBS volume types and IOPS settings, and instance EBS bandwidth.
  • Check DNS resolution, licensing servers or authentication calls still going to the data centre.
  • Use CloudWatch, the CloudWatch agent and application traces to find the slow part.

Move dependent components together in the same wave to avoid long network paths.

Q41. How do you migrate a database between AWS Regions with minimal downtime? Senior
  • Native cross-Region replicas: for RDS and Aurora, create a cross-Region read replica (or Aurora Global Database) and promote it at cutover.
  • DMS full load plus CDC for engines or cases without native replication.
  • For DynamoDB, global tables replicate between Regions.
  • Update application configuration and DNS to the new Region, with Route 53 health checks.
  • Test the whole application stack in the new Region before switching.
  • Plan rollback by keeping replication in the opposite direction where possible.
Q42. How do you release a risky feature to production without a big-bang launch? Senior
  • Hide it behind a feature flag in AppConfig, deployed to production in the off state.
  • Turn it on for internal users first, then 1%, 10%, 50% and 100% of users, watching metrics at each step.
  • Use AppConfig deployment strategies with CloudWatch alarms for automatic rollback of the flag.
  • Make sure the old path still works and data written by the new path is compatible.
  • Remove the flag and old code after full rollout, to keep the code clean.

This separates deployment (code in production) from release (users see the feature).

Q48. A DMS task loads most tables but fails on a few. How do you troubleshoot? Senior
  • Read the table statistics in the task: which tables failed and with what state.
  • Turn on and read the task logs in CloudWatch for the exact error, such as unsupported data type, primary key violation, or LOB truncation.
  • Check that the target tables were created correctly (often better to create the schema first with schema conversion).
  • Check for missing primary keys, which can cause CDC problems.
  • Fix and reload only the failed tables with a table reload, instead of restarting the whole task.

Run the premigration assessment next time to catch these early.

Q49. How do you plan to switch off on-premises servers after a migration? Senior
  • Hypercare period: keep the old servers available but not serving traffic, for example two to four weeks.
  • Confirm that nothing still talks to them: check network flows, DNS queries and logs.
  • Take final backups and archive data as required by retention rules.
  • Remove DNS entries, firewall rules, monitoring and licences.
  • Wipe disks securely before hardware disposal.
  • Update the inventory and finance records, so the cost savings are visible.

Turning servers off is the step that actually delivers the savings, so plan it from day one.

Q50. How do you measure whether a cloud migration was successful? Senior

Agree measures before the migration starts:

  • Business: no major incidents, user satisfaction and the agreed cutover windows were met.
  • Technical: performance equal or better, availability, and recovery tests passed (RTO and RPO).
  • Cost: monthly run cost compared with the business case, after right-sizing.
  • Speed: deployment frequency and time to provision new environments.
  • Security and compliance: findings resolved and audits passed.

Review these at 30, 60 and 90 days after migration, and plan optimisation work.

5. Frequently asked questions

Do I need to know AWS Code services if my company uses GitHub Actions or Jenkins?

Know the ideas and at least one tool well. Many companies mix them: GitHub Actions for builds, with OIDC roles into AWS, and CodeDeploy or ECS deployments for releases. Interviewers care about safe release practices more than the tool name.

Which migration service should I learn first?

DMS, because database moves are the riskiest part of most migrations. Then Application Migration Service for servers and DataSync for files.

Do these services cost extra?

CodePipeline, CodeBuild and DMS charge by usage. Application Migration Service is free for a limited period per server (currently 90 days), but you pay for the staging resources it creates. Check current pricing pages.

6. Quick revision

  • Build once, deploy the same artifact everywhere.
  • Canary and linear deployments shift traffic slowly and roll back on alarms.
  • DMS: full load plus CDC keeps the target in sync until cutover.
  • Application Migration Service: replicate, test launch, cutover launch.
  • Always validate data and keep a rollback plan.

This page is one part of a 1000-question AWS interview set. Open the full list here: All 1000 AWS interview questions.