Q64 — AWS DVA-C02 Ch.3
Question 64 of 100 | ← Chapter 3
A developer created a Python-based AWS Lambda function that reads data from objects in Amazon S3 and writes the data to an Amazon DynamoDB table. Object creation triggers the function successfully via S3 event notifications. However, the function fails when attempting to write to the DynamoDB table. What is the most likely cause of this issue?
- A. The Lambda function has exceeded its concurrency limit.
- B. The DynamoDB table requires a Global Secondary Index (GSI) to support writes.
- C. The Lambda function lacks IAM permissions to write to DynamoDB. ✓
- D. The DynamoDB table is not running in the same Availability Zone as the Lambda function.
Correct Answer: C. The Lambda function lacks IAM permissions to write to DynamoDB.
Explanation
In AWS environments, a Lambda function must have appropriate IAM permissions to access other AWS services like DynamoDB. If the Lambda function lacks write permissions for DynamoDB, it will fail to perform write operations—exactly as described in the scenario. Other options—such as concurrency limits, GSI requirements, or Availability Zone placement—typically do not directly cause write failures unless specifically configured or constrained. Therefore, the most likely cause is option C: the Lambda function lacks IAM permissions to write to DynamoDB. 【Lantern Certification provided by: swufelp1999】