Courseiva

DVA-C02 · topic practice

Troubleshooting and Optimization practice questions

This domain covers diagnosing and tuning workloads on AWS: Lambda logging and invocation failures, CodeBuild/CodePipeline build errors, ECS Fargate migrations, and event-driven processing with S3 and DynamoDB. Questions present a symptom, a console or CLI observation, and ask for the most likely cause or the best fix, so you must reason from service behavior rather than memorized limits.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Troubleshooting and Optimization

What the exam tests

What to know about Troubleshooting and Optimization

Be able to inspect IAM roles, VPC egress, log group configuration, and event delivery semantics to isolate the root cause, then apply the smallest fix. The single most important skill is mapping a symptom to the specific AWS configuration that produces it.

Reading Lambda CloudWatch Logs permissions and execution role policies to explain missing log output

Diagnosing CodeBuild npm network failures caused by VPC configuration, NAT gateways, or proxy settings

Choosing ECS Fargate deployment and load balancer settings that minimize downtime during migration

Tracing S3 event notification delivery to Lambda and idempotent DynamoDB writes for duplicate records

Watch out for

Common Troubleshooting and Optimization exam traps

  • ▸Assuming a successful Lambda invocation means logs exist; missing logs usually point to the execution role lacking CloudWatch Logs permissions or a misconfigured log group.
  • ▸Blaming application code for intermittent npm ERR! network failures in CodeBuild when the real cause is a VPC without NAT or missing egress rules.
  • ▸Treating S3 event notifications as exactly-once delivery, so retries create duplicate Lambda invocations and duplicate DynamoDB items without idempotency keys.

Practice set

Troubleshooting and Optimization questions

20 questions · select your answer, then reveal the explanation

A developer is troubleshooting an AWS Lambda function that processes records from an Amazon Kinesis Data Stream. The function is configured with a batch size of 100 and a parallelization factor of 1. The developer notices that the iterator age is increasing, indicating that the function is not keeping up with the stream. CloudWatch Logs show that the function is not experiencing errors or throttling, but the execution time per invocation is close to the 5-minute timeout. The stream has 10 shards. Which action will most likely increase processing throughput?

A developer is troubleshooting an AWS Lambda function that processes records from an Amazon Kinesis Data Stream. The function is configured with a batch size of 100 and a parallelization factor of 1. The developer notices that the function is processing records slowly, and the iterator age is increasing. CloudWatch Logs show that the function is not experiencing errors or throttling, but the execution time per invocation is close to the 5-minute timeout. The stream has 10 shards. What is the most cost-effective way to increase processing throughput?

A developer is using AWS Lambda with a function that processes messages from an SQS queue. The function is configured with a batch size of 10 and reserved concurrency of 5. The queue has a large backlog, and messages are being throttled, leading to retries and eventual DLQ. The function is idempotent and can handle up to 100 messages per invocation. What is the most effective way to increase throughput without increasing throttling?

An AWS Lambda function that processes messages from an SQS queue is experiencing throttling (TooManyRequestsException). The function has reserved concurrency set to 100. The SQS queue has a redrive policy configured with maxReceiveCount of 5. CloudWatch metrics show that the function's concurrent executions occasionally spike to 100, and throttling occurs. The function execution time averages 2 seconds. What is the most effective way to reduce throttling?

A developer deployed an AWS Lambda function that is invoked by an Amazon SQS queue. The function is configured with a batch size of 10 and a timeout of 30 seconds. CloudWatch metrics show that the function's Duration is consistently around 28 seconds, but occasionally spikes to 35 seconds causing timeouts. The function makes a synchronous HTTP call to an external API. Which approach will MOST effectively prevent timeouts while maximizing throughput?

A developer is troubleshooting slow response times in a serverless application. The application consists of an Amazon API Gateway REST API that invokes an AWS Lambda function, which then writes data to an Amazon DynamoDB table with on-demand capacity. The function also calls an external API for enrichment. The developer observes that the API Gateway integration latency is high, but the Lambda function duration is low. What is the most likely cause?

A developer is troubleshooting an AWS Lambda function that writes items to an Amazon DynamoDB table. The function frequently fails with ProvisionedThroughputExceededException. The table has provisioned write capacity of 500 write capacity units (WCUs). The function has reserved concurrency of 10, and each invocation writes 10 items of approximately 1 KB each. There are no other writers to the table. What is the most likely cause of the throttling?

A developer is monitoring an AWS Lambda function that processes events from an Amazon Kinesis stream. The function's CloudWatch metrics show high IteratorAge and the function is often throttled. The function's batch size is 100, maximum record age is 60s, and reserved concurrency is 100. The Kinesis stream has 10 shards, each with 5000 records/sec. Which action is most effective to reduce the IteratorAge and throttle rate?

A developer is troubleshooting an AWS Lambda function that processes streaming data from Amazon Kinesis Data Streams. The function processes records in batches. The developer notices that the function often experiences high latency even though the average invocation rate is well below the account concurrency limit. Which action would MOST effectively reduce latency?

A developer is monitoring an AWS Lambda function that processes messages from an SQS queue. CloudWatch metrics show that the function's throttles are high when the queue backlog grows. The function has a reserved concurrency of 50 and a batch size of 10. The SQS queue has a visibility timeout of 30 seconds. The function processes each batch in about 5 seconds. Which action will most effectively reduce throttles?

A developer is using AWS X-Ray to trace a microservices application. The trace shows that a downstream service is failing with HTTP 500 errors intermittently. The developer wants to set up trace annotations to capture the error details for further analysis. Which AWS service can the developer use to search and filter traces based on these annotations?

A developer is using Amazon DynamoDB and notices that read requests are frequently throttled. The table has provisioned read capacity of 100 read capacity units (RCUs) and is used by a web application that experiences bursty traffic. The developer wants to minimize throttling without manual intervention. Which action should the developer take?

A developer is troubleshooting an AWS Lambda function that processes files uploaded to an Amazon S3 bucket. The function sometimes times out when processing large files. CloudWatch Logs show that the function's execution time correlates with file size. The function is configured with 128 MB memory and a timeout of 30 seconds. Which action should the developer take to resolve the timeout for large files without refactoring the code?

A developer has an AWS Lambda function that processes messages from an Amazon SQS queue. The function is configured with a reserved concurrency of 5. Recently, the SQS queue has experienced a high volume of messages, and the developer notices that many invocations are being throttled, leading to increased processing time. What is the most likely cause of the throttling?

A Lambda function behind API Gateway intermittently times out only during cold starts. Which two actions can reduce cold-start impact?

An API Gateway API returns 429 errors during load testing. Which two areas should the developer investigate first?

An SQS-triggered Lambda repeatedly processes the same poison message. Which two settings help contain the issue?

Drag and drop the steps to troubleshoot an application that cannot connect to an RDS database in the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

A developer receives an AccessDeniedException when trying to invoke a Lambda function from an Amazon API Gateway REST API. The Lambda resource-based policy allows API Gateway. What is the most likely issue?

A developer is optimizing costs for an S3 bucket that stores infrequently accessed data but requires millisecond retrieval. The bucket receives 100 PUT requests per second and 10 GET requests per second. Which storage class is most cost-effective?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Troubleshooting and Optimization sessions

Start a Troubleshooting and Optimization only practice session

Every question in these sessions is drawn from the Troubleshooting and Optimization domain — nothing else.

Related practice questions

Related DVA-C02 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the DVA-C02 exam test about Troubleshooting and Optimization?
Be able to inspect IAM roles, VPC egress, log group configuration, and event delivery semantics to isolate the root cause, then apply the smallest fix. The single most important skill is mapping a symptom to the specific AWS configuration that produces it.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Troubleshooting and Optimization questions in a focused session?
Yes — the session launcher on this page draws every question from the Troubleshooting and Optimization domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other DVA-C02 topics?
Use the topic links above to move to related areas, or go back to the DVA-C02 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the DVA-C02 exam covers. They are not copied from any real exam or dump site.