DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 Exam - Question 5


A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table.

What is the MOST likely cause of this issue?

Show Answer
Correct Answer: C

The most likely cause of the issue is that the Lambda function does not have IAM permissions to write to DynamoDB. When AWS Lambda functions interact with other AWS services, appropriate IAM permissions are required. If the Lambda function is able to read from S3 but fails when writing to DynamoDB, it indicates that the function's IAM role may lack the necessary permissions for DynamoDB write operations.

Discussion

17 comments
Sign in to comment
geekdamsel
May 6, 2023

Got this question in exam. Correct answer is C.

hsinchangOption: C
Sep 9, 2023

It is clearly something about permissions. So not A or B. Lambda functions can run in multiple Availability Zones (AZs) to ensure high availability and resilience. So it is not D.

chvtejaswiOption: C
Sep 10, 2023

correct answer is C

liddym2
Nov 9, 2023

Am i missing something? Why in God's name are the answer's provided wrong? It says D is the right answer. Its obviously C..

elfinka9
Aug 1, 2023

Does anyone know how the correct answer is determined? Option C is the most voted and correct according to https://www.examtopics.com/discussions/amazon/view/88237-exam-aws-certified-developer-associate-topic-1-question-164/

dongocanh272
Nov 26, 2023

Why the correct anwser is D? All of us think C must be the correct answer

ssoratroiOption: C
Aug 11, 2023

surely C

kvpaOption: C
Aug 15, 2023

correct answer is C

dongocanh272Option: C
Nov 4, 2023

I think C is correct.

alven_alinanOption: C
Dec 1, 2023

Answer is C

ibratoevOption: C
Mar 25, 2024

It is C

apa_1Option: C
Mar 27, 2024

C is correct

vinfoOption: C
Apr 6, 2024

C. es correcto. En general para estos comportamientos, se debe a temas de permisos.

DikshikaOption: C
Apr 9, 2024

it mentions lambda is unable to write to Dynamodb and C seems most logical answer here

65703c1Option: C
May 21, 2024

C is the correct answer.

MessiVNOption: C
Jun 18, 2024

C is correct

nkroker
Jul 4, 2024

C is correct because the question does not contain any details about the placement of the resources in different availability zones hence making it obvious for users to assume they al are running in the same region and that's the reason why it makes sense that the Lambda execution role does not have the write permission for dynomodb table.