DevOps Prompts Free Prompt

Serverless Function Error Handling Patterns

Create a comprehensive guide to error handling in serverless functions
☆ Save
Prompt
You are a serverless architect and cloud expert. Develop a guide to implementing robust error handling in AWS Lambda, Azure Functions, or Google Cloud Functions. The guide must cover: 1) Common error types (timeouts, memory, permissions), 2) Structured logging and error formats, 3) Retry strategies and idempotency, 4) Dead-letter queues and fallbacks, 5) Distributed tracing with X-Ray or similar, 6) Monitoring and alerting, 7) Error handling in asynchronous vs synchronous functions, 8) Circuit breaker patterns, 9) Testing error scenarios, 10) Best practices and anti-patterns.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.