All 57 questions

  1. What is AWS Lambda, and when would you choose it over EC2?

    Asked in 9 of 158 interviews · last asked Nov 6 · Concept · Mid-level

    Show answer

    AWS Lambda runs code without you managing servers and scales automatically as requests increase. I would choose it over EC2 for short, event-driven tasks or traffic that varies, paying mainly for requests and execution time. I would choose EC2 for long-running work or when I need control over the operating system.

    • Events such as S3 uploads, queue messages, or API requests can trigger Lambda functions.
    • Each Lambda invocation can run for at most 15 minutes.
    • Cold starts can add delay, which matters for time-sensitive requests.
    • EC2 can be more cost-effective for steady workloads, depending on usage.

    What the interviewer checks: The interviewer is checking whether you can match workload needs to Lambda’s limits, costs, and management benefits.

    Other ways it was asked
    • “What is AWS Lambda?”
    • “What have you used AWS Lambda for, and how does a Lambda function work?”
    • “Can you explain AWS Lambda?”
  2. What causes cold starts in AWS Lambda, and how can they be mitigated?

    Asked in 3 of 158 interviews · last asked Oct 22 · Concept · Mid-level

    Show answer

    A cold start happens when Lambda prepares a new execution environment before running your handler. Starting the runtime and initializing your code adds delay, often after inactivity or during scaling. Reduce startup work and dependencies, or use Provisioned Concurrency or SnapStart where supported.

    • Provisioned Concurrency keeps environments initialized but costs extra; traffic beyond that capacity can still have cold starts.
    • Reserved Concurrency controls concurrency limits; it does not keep environments warm.
    • SnapStart restores initialized snapshots on supported runtimes to reduce startup delay.
    • Smaller dependencies and less initialization work help; periodic warm-up calls cannot guarantee warm environments.

    What the interviewer checks: The interviewer checks whether you understand initialization delays and can choose practical fixes with cost and support limits.

    Other ways it was asked
    • “What is a cold start in AWS Lambda?”
    • “How do you handle cold starts in Lambda, and what strategies can you use to mitigate them?”
  3. How would you deploy code to AWS Lambda?

    Asked in 3 of 158 interviews · last asked Nov 5 · Tooling · Mid-level

    Show answer

    I would keep the code and an AWS SAM template in Git. The template defines the function, permissions, and settings. A CI/CD pipeline would test the code, run `sam build`, and use `sam deploy` to deploy through CloudFormation. Lambda supports ZIP packages or container images stored in Amazon ECR.

    • Package dependencies for the function’s runtime and CPU architecture.
    • AWS SAM CLI can build deployment packages; AWS CDK and Terraform are other infrastructure-as-code options.
    • Publish immutable function versions and use aliases to manage releases and rollbacks.
    • Keep secrets out of Git; use services such as AWS Secrets Manager.

    What the interviewer checks: The interviewer checks whether you can package Lambda code and deploy it safely through a repeatable, version-controlled process.

    Other ways it was asked
    • “How are you deploying AWS Lambda functions?”
    • “How would you version-control and deploy AWS Lambda function code using infrastructure as code, and which tool would you use?”
    • “What tools can you use to package code for AWS Lambda?”
  4. What steps would you take to debug an issue with an AWS Lambda function?

    Asked in 2 of 158 interviews · last asked Sep 10 · Scenario · Mid-level

    Show answer

    I would start with CloudWatch logs and metrics to find errors, timeouts, or throttling. Then I would check the event payload, code, IAM permissions, memory, timeout, and network access. I would use X-Ray tracing, if enabled, to find slow downstream calls. Finally, I would test the fix and set CloudWatch alarms for recurring failures.

    • Check CloudWatch metrics for errors, duration, throttles, and concurrency.
    • Use request IDs to match failed invocations with logs; check reported memory usage.
    • Check trigger delivery, retry behavior, and failure destinations for the invocation type.
    • Verify execution role permissions, environment variables, and VPC connectivity.

    What the interviewer checks: The interviewer checks whether you can use evidence to isolate failures and monitor the function after fixing them.

    Other ways it was asked
    • “How would you monitor and troubleshoot an AWS Lambda function?”
  5. Why would you use Amazon SQS between two services?

    Asked in 2 of 158 interviews · last asked Nov 6 · Concept · Mid-level

    Show answer

    I would use Amazon SQS to let two services work independently without waiting for each other. It holds messages until the receiving service can process them, which helps handle traffic spikes and temporary failures. It fits work that does not need an immediate reply.

    • A queue buffers work when messages arrive faster than the receiving service can process them.
    • Consumers delete messages after successful processing; failed work can be retried.
    • Standard queues can deliver duplicates and reorder messages, so consumers must handle these safely.
    • A dead-letter queue can hold messages that repeatedly fail processing.

    What the interviewer checks: The interviewer is checking whether you understand when asynchronous messaging helps and how consumers handle failures.

    Other ways it was asked
    • “When would you use Amazon SQS?”
  6. What is Amazon SQS, and how is it used as a message queue?

    Asked in 2 of 158 interviews · last asked Nov 5 · Concept · Junior

    Show answer

    Amazon SQS is a managed message queue service that lets applications send and process messages separately. Producers send messages to a queue, and consumers receive, process, and delete them. AWS provides Standard queues for high throughput and FIFO queues for ordered processing within each message group.

    • Messages remain in the queue until deleted or their retention period expires.
    • The visibility timeout temporarily hides received messages while a consumer processes them.
    • Standard queues provide at-least-once delivery and best-effort ordering, so consumers must handle duplicates.
    • FIFO queues preserve order within message groups and deduplicate sends; failed processing can still cause redelivery.

    What the interviewer checks: The interviewer checks whether you understand asynchronous communication, message handling, and the differences between Standard and FIFO queues.

    Other ways it was asked
    • “What is SQS, and what types of queues does AWS provide?”
  7. How would you package Python code for AWS Lambda?

    Asked once · last asked Sep 10 · Tooling · Mid-level

    Other ways it was asked
    • “What tool would you use to package Python code into a ZIP file for AWS Lambda?”
  8. What is the difference between SQS, SNS, and EventBridge, and in what scenarios would you use each?

    Asked once · last asked Mar 3 · Concept · Senior

  9. Is there a way to reduce Lambda cold start time, even on the first invocation?

    Asked once · last asked Mar 3 · Scenario · Senior

  10. Is there a maximum limit for provisioned concurrency in AWS Lambda?

    Asked once · last asked Mar 3 · Concept · Senior

    Other ways it was asked
    • “Is there a maximum limit for provisioned concurrency?”
  11. How do you normally test AWS Lambda functions locally?

    Asked once · last asked Mar 3 · Tooling · Mid-level

  12. How would you design a solution using AWS Lambda, S3, EC2, EventBridge, and API Gateway to automatically resize user-uploaded images into thumbnails?

    Asked once · last asked May 21 · Design · Senior

  13. How should an image-processing system handle Lambda invocation failures, network issues, and exhausted retries so failed images can be recovered and processed?

    Asked once · last asked May 21 · Scenario · Senior

  14. When multiple Lambdas may update the same entity, such as an order status, how do you prevent race conditions? Would you use DynamoDB conditional writes, transactions, SQS FIFO, Step Functions, or something else, and why?

    Asked once · last asked May 29 · Scenario · Senior

  15. How do you implement idempotency for a Lambda that can be retried, including timeouts or partial failures while writing to DynamoDB and publishing an event? What's your approach to avoiding duplicates end to end?

    Asked once · last asked May 29 · Scenario · Senior

  16. You’re building a Lambda function that handles S3 put events, SQS messages, and API Gateway requests. How would you structure the handler to route these cleanly, and what library would you use for structured logging and observability in production?

    Asked once · last asked Jun 19 · Scenario · Senior

  17. If an SQS message invokes a Lambda function but the function does not report success or failure, what will SQS do?

    Asked once · last asked Jun 23 · Scenario · Senior

  18. How would you configure AWS Lambda to run an action when files in an Amazon S3 folder change?

    Asked once · last asked Aug 20 · Tooling · Mid-level

  19. When using Amazon S3 to trigger AWS Lambda after a file change, does S3 send an event or does Lambda poll the bucket?

    Asked once · last asked Aug 20 · Concept · Mid-level

  20. Your application received duplicate messages from Amazon SQS. Is that necessarily a bug?

    Asked once · last asked Aug 30 · Concept · Mid-level

  21. During peak holiday shopping, an IVR's order-status Lambda function querying DynamoDB hits its concurrency limit and times out amid a call spike. How would you change the architecture or AWS configuration to handle the bottleneck, prevent dropped calls, and manage the customer experience during delays?

    Asked once · last asked Sep 6 · Design · Senior

    Other ways it was asked
    • “During peak holiday shopping hours, an IVR experiences a massive spike in concurrent calls, causing the AWS Lambda function that looks up order statuses in Amazon DynamoDB to hit its concurrency limit and time out. How would you modify the system design or AWS configuration to handle the bottleneck, ensure a smooth customer experience without dropping calls, and handle the customer experience during the delay?”
  22. How can a user determine that asynchronous processing is complete and the results have been saved to Amazon S3?

    Asked once · last asked Sep 10 · Design · Senior

  23. How do you choose between SQS and Kafka or Kinesis when handling communication between services?

    Asked once · last asked Sep 25 · Design · Senior

  24. How would you address bottlenecks or performance issues with Amazon SQS, and what architectural changes might you consider?

    Asked once · last asked Sep 25 · Scenario · Senior

  25. What is the difference between Amazon SNS and Amazon SQS?

    Asked once · last asked Sep 30 · Concept · Mid-level

  26. How can you detect that a file has arrived in Amazon S3 before publishing an event to Kafka?

    Asked once · last asked Oct 7 · Scenario · Senior

  27. How do you auto scale Lambda functions?

    Asked once · last asked Oct 8 · Concept · Mid-level

  28. For a function that runs for one to one and a half minutes, would you choose AWS Lambda or EC2, and why?

    Asked once · last asked Oct 8 · Scenario · Mid-level

  29. How would you write a Python program to handle failures when using Amazon SNS or Amazon SQS?

    Asked once · last asked Oct 23 · Write code · Mid-level

  30. What are AWS Lambda and queues, and how do they work?

    Asked once · last asked Oct 23 · Concept · Junior

  31. What event sources can trigger AWS Lambda functions?

    Asked once · last asked Oct 23 · Concept · Mid-level

  32. Which AWS service or event source would you use to trigger a Lambda function in a document management workflow?

    Asked once · last asked Oct 23 · Scenario · Mid-level

  33. In AWS, how would you schedule a batch process to run hourly if it may take longer than an hour?

    Asked once · last asked Oct 28 · Tooling · Mid-level

  34. What kinds of applications are suitable for deployment on AWS Lambda, such as services or background jobs?

    Asked once · last asked Nov 5 · Scenario · Mid-level

  35. Are there any issues with cold starts when using REST APIs with AWS Lambda?

    Asked once · last asked Nov 5 · Concept · Mid-level

  36. What steps typically happen in an AWS Lambda deployment pipeline?

    Asked once · last asked Nov 5 · Tooling · Mid-level

  37. In AWS Lambda, when you deploy multiple services, how can they communicate with each other?

    Asked once · last asked Nov 5 · Design · Mid-level

  38. How do we prevent duplicate processing in Lambda for SQS?

    Asked once · last asked Nov 5 · Scenario · Mid-level

  39. How many layers can you attach per Lambda?

    Asked once · last asked Nov 6 · Concept · Mid-level

  40. How do you prevent the next request from reading stale data in Lambda’s ephemeral storage and ensure it processes the correct upload?

    Asked once · last asked Nov 6 · Scenario · Senior

  41. If an AWS Lambda function fails midway through processing or uploading a PDF, how would you retry the operation?

    Asked once · last asked Nov 6 · Scenario · Mid-level

  42. How would you determine the visibility timeout for an Amazon SQS queue?

    Asked once · last asked Nov 6 · Tooling · Mid-level

  43. How would you upload an AWS Lambda deployment ZIP package to Amazon S3?

    Asked once · last asked Sep 10 · Tooling · Mid-level

  44. How can an AWS Lambda function validate files?

    Asked once · last asked Sep 10 · Scenario · Mid-level

    Other ways it was asked
    • “How can an AWS Lambda function validate files, and what factors affect the volume and content it can process?”
  45. What is a Lambda cold start?

    Asked once · last asked Mar 3 · Concept · Mid-level

  46. If you don’t use AWS Step Functions, what other orchestration option could you use?

    Asked once · last asked May 19 · Concept · Mid-level

  47. In AWS, which service represents a topic and which represents a queue: SNS or SQS?

    Asked once · last asked Jun 9 · Concept · Junior

  48. How do you debug a Lambda function locally in your editor?

    Asked once · last asked Jun 19 · Tooling · Mid-level

  49. How would you explain AWS Lambda in simple terms to a nontechnical audience?

    Asked once · last asked Aug 20 · Concept · Junior

  50. What are Lambda layers?

    Asked once · last asked Nov 6 · Concept · Junior

    Other ways it was asked
    • “What are the AWS-provided Lambda layers?”
  51. What is AWS EventBridge?

    Asked once · last asked Oct 30 · Concept · Junior

  52. What is a dead-letter queue (DLQ) in Amazon SQS, and when is it used?

    Asked once · last asked Nov 5 · Concept · Mid-level

  53. What is the use of SnapStart?

    Asked once · last asked Nov 6 · Concept · Mid-level

  54. When would you use Amazon SNS?

    Asked once · last asked Nov 6 · Concept · Mid-level

  55. What is the maximum Lambda timeout?

    Asked once · last asked Nov 6 · Concept · Junior

  56. What is a Lambda managed instance?

    Asked once · last asked Nov 6 · Concept · Mid-level

  57. What should happen in the shipment-processing workflow after DynamoDB is updated?

    Asked once · last asked Nov 19 · Scenario · Mid-level

More AWS interview questions

How this list is made

Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.

Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.

The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every AWS interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.

158 interviews, 106 candidates, Jan 2026 to Nov 2026. Updated every month with new interviews.