AWS Certified Developer – Associate / Question #1048 of 557

Question #1048

A developer is building an application that includes an AWS Lambda function written in .NET Core. The Lambda function’s code needs to interact with Amazon Kinesis Data Streams and Amazon RDS instances. The developer must minimize the Lambda function’s deployment time and invocation duration.

Which solution will meet these requirements?

A

Increase the Lambda function\u2019s memory allocation to reduce execution time.

B

Include the full AWS SDK for .NET in the Lambda function\u2019s deployment package.

C

Include only the AWS SDK for .NET modules required for Kinesis and RDS in the deployment package.

D

Configure the Lambda function to download the AWS SDK for .NET from Amazon EFS at runtime.

Explanation

The correct answer is C. Including only the required AWS SDK modules (Kinesis and RDS) reduces the deployment package size, which speeds up deployment and reduces cold start latency. Larger packages (Option B) increase deployment time. Downloading SDK from EFS (Option D) adds runtime overhead, increasing invocation duration. Increasing memory (Option A) may reduce execution time but does not address deployment time. Smaller packages ensure faster Lambda initialization and deployment, meeting both requirements.

Answer

The correct answer is: C