DVA-C02 Troubleshooting and Optimization • Set 7
DVA-C02 Troubleshooting and Optimization Practice Test 7 — 15 questions with explanations. Free, no signup.
A developer is working on a serverless application that uses AWS Lambda functions to process user uploads. The uploads are stored in an S3 bucket, and each upload triggers a Lambda function that resizes images and stores metadata in DynamoDB. Recently, users have reported that some images are not being resized. The developer checks the CloudWatch logs and sees that the Lambda function is invoked, but it fails with a timeout error after 15 seconds for a few large images. The function has a timeout of 15 seconds and a memory of 512 MB. The image sizes vary from 1 MB to 50 MB. The developer wants to handle large images without increasing the timeout significantly, as that would increase costs. The function is CPU-bound during image processing. Which solution should the developer implement?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.