DVA-C02 Troubleshooting and Optimization Practice Question
A developer is deploying a new version of an AWS Lambda function using the AWS CLI. The deployment fails with a 'ResourceConflictException' error. What is the MOST likely cause?
⚠ Common exam trap
Candidates often confuse 'ResourceConflictException' with permission errors or code size limits, but AWS specifically uses this exception to signal a concurrent update conflict, not a validation or authorization issue.
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
✓
Another deployment is currently in progress for the same Lambda function.
The 'ResourceConflictException' error in AWS Lambda occurs when you attempt to update a Lambda function while another update operation is already in progress. Lambda enforces a single in-flight update per function to prevent race conditions and ensure state consistency. The AWS CLI command (e.g., update-function-code) will fail immediately if a previous deployment has not completed, even if the previous deployment was triggered by the same or a different client.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Another deployment is currently in progress for the same Lambda function.
Why this is correct
AWS Lambda enforces serialization of updates to a function's code or configuration to maintain consistency. If an API call like `UpdateFunctionCode` or `UpdateFunctionConfiguration` is initiated while another update operation is already in progress for the same function, the subsequent call will fail. This contention for the resource's state results in a `ResourceConflictException`, preventing race conditions and ensuring the function's configuration remains coherent.
- ✗
The Lambda function code exceeds the maximum allowed size.
Why it's wrong here
AWS Lambda imposes specific limits on the size of deployment packages, both zipped and unzipped. If the code package being uploaded for the Lambda function exceeds these predefined maximum size limits, the Lambda service will reject the deployment. This type of error typically manifests as an `InvalidParameterValueException`, indicating that a provided input parameter (the code package) is outside the acceptable range, rather than a conflict over resource availability.
- ✗
The Lambda function has an alias that conflicts with the version number.
Why it's wrong here
Lambda aliases are distinct pointers that reference specific function versions, such as `$LATEST` or a numbered version. They provide a stable endpoint for invoking a function without needing to update client configurations when new versions are deployed. The creation or modification of an alias does not directly interfere with the process of creating or updating a new function version, nor do alias names conflict with system-generated version numbers, thus a `ResourceConflictException` is not expected in this scenario.
- ✗
The IAM role associated with the Lambda function does not have sufficient permissions.
Why it's wrong here
If the IAM role used by the developer to perform the deployment operation (e.g., `lambda:UpdateFunctionCode`) lacks the necessary permissions, the AWS API will explicitly deny the request. This authorization failure results in an `AccessDeniedException`, clearly indicating that the principal attempting the action does not have the required privileges. This is fundamentally different from a `ResourceConflictException`, which signifies that the resource itself is temporarily unavailable for modification due to an ongoing operation.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
Courseiva writes every DVA-C02 question from scratch — 1,135 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.