Question 1,077 of 1,660
SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company uses AWS Lambda functions to process events from Amazon S3. They notice that some Lambda invocations are failing with 'ResourceNotFoundException' errors when trying to write to an Amazon DynamoDB table. The Lambda execution role has a policy that grants dynamodb:PutItem on the table. What is the most likely cause of these errors?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The DynamoDB table name is misspelled in the Lambda code.
The 'ResourceNotFoundException' error indicates that the DynamoDB table does not exist in the account and region where the Lambda function is running. The most common cause is a misspelled table name in the Lambda code (Option D). Cross-account permission issues (Option C) typically result in an 'AccessDeniedException' rather than 'ResourceNotFoundException', because the resource does exist but access is denied. Option A is incorrect because Lambda uses temporary credentials from its execution role, and credential issues would cause authentication errors. Option B is incorrect because DynamoDB is accessible over the public internet or via a VPC endpoint; lack of a VPC endpoint would cause a timeout, not a resource-not-found error.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The Lambda function is using the wrong AWS credentials.
Why it's wrong here
Incorrect. The Lambda function automatically assumes its execution role using AWS STS, so credential issues are unlikely. An authentication error would result in 'AccessDeniedException' or 'UnrecognizedClientException', not 'ResourceNotFoundException'.
- ✗
The Lambda function is in a VPC without a DynamoDB VPC endpoint.
Why it's wrong here
Incorrect. DynamoDB is a fully managed service that does not require a VPC endpoint for access. If the Lambda function were in a VPC without an endpoint, it would experience a timeout or network connectivity error, not a 'ResourceNotFoundException'.
- ✗
The DynamoDB table is in a different AWS account and the Lambda role does not have cross-account access.
Why it's wrong here
Incorrect. A cross-account DynamoDB table would still exist in the target account. If the Lambda role lacks cross-account permissions, the error would be 'AccessDeniedException', not 'ResourceNotFoundException'. The 'ResourceNotFoundException' indicates the table does not exist from the caller's perspective.
- ✓
The DynamoDB table name is misspelled in the Lambda code.
Why this is correct
Correct. A misspelled table name in the Lambda code causes DynamoDB to return 'ResourceNotFoundException' because the specified table does not exist in the account and region. This is the most likely cause given the error message.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 20, 2026
This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.