Knowledge CheckModule 09

Quiz: Module 09: Serverless Computing with AWS Lambda

Test your understanding of the concepts covered in this module.

8 questions

  1. 1

    Which of the following are characteristics of serverless computing with AWS Lambda? (Select THREE.)Select multiple

  2. 2

    A Lambda function's handler is defined as `app.process_order`. Which of the following correctly describes what this means?

  3. 5

    A developer creates a Lambda function but forgets to attach any permissions policy to the execution role beyond `AWSLambdaBasicExecutionRole`. The function attempts to read an item from a DynamoDB table. What happens?

  4. 6

    Which of the following statements about Lambda environment variables is correct?

  5. 7

    A company deploys a Python Lambda function with a 50 MB deployment package that imports several large libraries during initialization. The function is invoked infrequently (a few times per hour). Users report that some requests take 3 to 4 seconds, while others complete in under 200 milliseconds. The team wants to reduce the latency for the slow requests without changing the function code. Which combination of strategies would be most effective? (Select TWO.)Select multiple

  6. 8

    A Lambda function packages a shared data-processing library that three other Lambda functions also need. Every time the library is updated, the team must redeploy all four functions. Which Lambda feature solves this problem by allowing the library to be packaged and versioned independently?

  7. 9

    An e-commerce company is building a serverless REST API. When a customer places an order, the API Gateway endpoint receives a POST request and invokes a Lambda function using proxy integration. The Lambda function processes the order and writes it to DynamoDB. During testing, the API returns `{"message": "Internal server error"}` for every request, but the Lambda function works correctly when invoked directly from the CLI. Which of the following is the most likely cause?

  8. 10

    A startup wants to estimate the monthly cost of a Lambda function that receives 5 million invocations per month, with each invocation running for 200 milliseconds using 256 MB of memory. Which two factors directly determine the Lambda compute cost for this workload?