HomeInterview QuestionsAvinash, have you created any AWS Lambda functions…

Avinash, have you created any AWS Lambda functions?

🟢 Easy Behavioral Junior level
1Times asked
Jul 2026Last seen
Jul 2026First seen

💡 Model Answer

S: In my previous role at XYZ Corp, we needed to automate the archival of log files generated by our application servers.

T: I was tasked with designing a solution that would move these logs from an S3 bucket to an archival bucket on a daily basis without manual intervention.

A: I created an AWS Lambda function written in Python that was triggered by an S3 event whenever a new log file was uploaded. The function parsed the file name, determined the destination path, and used the boto3 library to copy the file to the archival bucket. I also added error handling and sent a notification to an SNS topic if the copy failed.

R: The solution reduced manual effort by 100%, ensured logs were archived within minutes of upload, and eliminated the risk of human error. The Lambda function ran in under 200 ms on average, and we only paid for the compute time used, keeping costs minimal.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500