How would you monitor and optimize a high-traffic serverless app?
High-traffic serverless applications require careful monitoring and optimization. Explain how you would monitor such applications, identify performance issues, and optimize accordingly. Could you include any example code for monitoring setup?