AWS Lambda

Serverless functions — the glue of AI pipelines.

📖 Official AWS documentation ↗📰 Official AWS blog ↗

What is it?

Event-driven compute that runs code without servers, billed per millisecond, triggered by S3 uploads, API Gateway requests, queues, and schedules.

💡 Why does it exist?

AI architectures are mostly plumbing between managed services: new file → extract → analyse → store. Lambda is that plumbing with zero idle cost and automatic scaling.

⏱️ When should you use it?

Use it to orchestrate AI service calls (invoke Bedrock, chain Textract→Comprehend), fulfil Lex intents, and process events; avoid it for long training jobs (15-minute limit) — that is SageMaker's job.

🗺️ Where does it fit?

Between every pair of services in a serverless AI pipeline: triggers in, SDK calls out, results to storage or queues; Bedrock Agents call Lambda as their action-group executor.

🔌 How do you integrate it?

Write a handler, grant its role least-privilege access to the AI services it calls, attach a trigger, and set memory/timeout to fit the call pattern.

🧩 Commonly integrated with

Amazon BedrockAmazon S3Amazon API GatewayAmazon LexAWS Step Functions

🎯 Exam angle (AIF-C01)

📚 Study it in a learning path

CLF-C02AWS Cloud PractitionerFlashcards, notes & quizzes covering this service →AIF-C01AWS AI PractitionerFlashcards, notes & quizzes covering this service →SAA-C03Architecting on AWSFlashcards, notes & quizzes covering this service →

More in Compute & Cost

Amazon EC2 Accelerated InstancesAWS Trainium & InferentiaAWS Cost ExplorerAWS Budgets