DVA-C02 Troubleshooting and Optimization Practice Question
This DVA-C02 practice question tests your understanding of troubleshooting and optimization. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Refer to the exhibit. The following is a CloudFormation template snippet that creates an S3 bucket and a Lambda function. The Lambda function is triggered by S3 events. The stack creation succeeds, but no logs appear in CloudWatch Logs when objects are uploaded to the bucket.
```yaml
Resources:
Bucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-bucket-12345
LambdaFunction:
Type: AWS::Lambda::Function
Properties:
Handler: index.handler
Role: !GetAtt LambdaExecutionRole.Arn
Code:
ZipFile: |
def handler(event, context):
print(event)
Runtime: python3.8
PermissionForS3ToInvokeLambda:
Type: AWS::Lambda::Permission
Properties:
FunctionName: !Ref LambdaFunction
Action: lambda:InvokeFunction
Principal: s3.amazonaws.com
SourceArn: !GetAtt Bucket.Arn
```
Why is the Lambda function not being invoked?
Exhibit
Refer to the exhibit. The following is a CloudFormation template snippet that creates an S3 bucket and a Lambda function. The Lambda function is triggered by S3 events. The stack creation succeeds, but no logs appear in CloudWatch Logs when objects are uploaded to the bucket.
```yaml
Resources:
Bucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-bucket-12345
LambdaFunction:
Type: AWS::Lambda::Function
Properties:
Handler: index.handler
Role: !GetAtt LambdaExecutionRole.Arn
Code:
ZipFile: |
def handler(event, context):
print(event)
Runtime: python3.8
PermissionForS3ToInvokeLambda:
Type: AWS::Lambda::Permission
Properties:
FunctionName: !Ref LambdaFunction
Action: lambda:InvokeFunction
Principal: s3.amazonaws.com
SourceArn: !GetAtt Bucket.Arn
```
A
The Lambda execution role does not have permission to be invoked by S3.
Why wrong: The Lambda execution role is for Lambda's access to other services, not for S3 to invoke Lambda. S3 invocation requires a resource-based policy permission on the Lambda function.
B
The Lambda permission does not specify the correct source account.
Why wrong: While the Lambda permission might specify a source account, the lack of notification configuration is the primary issue here. The permission is likely correct.
C
The Lambda function has a runtime that is not supported.
Why wrong: An unsupported runtime would prevent invocation, but the runtime is supported in this scenario.
D
The S3 bucket does not have a notification configuration for the Lambda function.
The S3 bucket must have a NotificationConfiguration event set to trigger the Lambda function. Without it, no invocation occurs.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The S3 bucket does not have a notification configuration for the Lambda function.
The S3 bucket has no notification configuration to trigger the Lambda function. The Lambda permission allows S3 to invoke, but the bucket must have a NotificationConfiguration event. Option D is correct. Option A is wrong because the execution role is irrelevant to S3 invocation; invocation is controlled by resource-based policy. Option B is wrong because the permission is correctly configured (or the issue is not about source account). Option C is wrong because the runtime is supported.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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 execution role does not have permission to be invoked by S3.
Why it's wrong here
The Lambda execution role is for Lambda's access to other services, not for S3 to invoke Lambda. S3 invocation requires a resource-based policy permission on the Lambda function.
✗
The Lambda permission does not specify the correct source account.
Why it's wrong here
While the Lambda permission might specify a source account, the lack of notification configuration is the primary issue here. The permission is likely correct.
✗
The Lambda function has a runtime that is not supported.
Why it's wrong here
An unsupported runtime would prevent invocation, but the runtime is supported in this scenario.
✓
The S3 bucket does not have a notification configuration for the Lambda function.
Why this is correct
The S3 bucket must have a NotificationConfiguration event set to trigger the Lambda function. Without it, no invocation occurs.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.
Trap categories for this question
Scenario analysis trap
An unsupported runtime would prevent invocation, but the runtime is supported in this scenario.
Detailed technical explanation
How to think about this question
This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
Use explanations to understand the rule behind the answer.
TExam Day Tips
→Underline the problem statement mentally.
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
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
What to study next
Got this wrong? Here's your next step.
Identify which DVA-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.
Troubleshooting and Optimization — This question tests Troubleshooting and Optimization — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The S3 bucket does not have a notification configuration for the Lambda function. — The S3 bucket has no notification configuration to trigger the Lambda function. The Lambda permission allows S3 to invoke, but the bucket must have a NotificationConfiguration event. Option D is correct. Option A is wrong because the execution role is irrelevant to S3 invocation; invocation is controlled by resource-based policy. Option B is wrong because the permission is correctly configured (or the issue is not about source account). Option C is wrong because the runtime is supported.
What should I do if I get this DVA-C02 question wrong?
Identify which DVA-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
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.
This DVA-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 DVA-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.