DVA-C02 Deployment Practice Question
A developer deploys 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
DVA-C02 often tests whether candidates misattribute `ResourceConflictException` to IAM or handler issues, when it specifically signals a concurrent state-changing operation on the same resource.
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.
`ResourceConflictException` in Lambda indicates a conflict with the function's current state — most commonly that another deployment or configuration update is already in progress on the same function. Lambda serializes updates per function, so concurrent deployments collide. The fix is to wait for the in-flight operation to complete and retry.
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 function's handler name is incorrect in the deployment package.
Why it's wrong here
An incorrect handler name within the deployment package does not prevent the Lambda function code from being uploaded or updated successfully. This configuration error is typically detected during the *invocation* of the function, resulting in an `InvalidParameterValueException` or a similar runtime error indicating the specified handler could not be found. Deployment itself, which involves uploading the code and configuring the function, would succeed without this specific issue causing a `ResourceConflictException`.
- ✗
The Lambda function's IAM role is missing necessary permissions.
Why it's wrong here
If the Lambda function's IAM role lacks the required permissions, such as `lambda:UpdateFunctionCode` or `lambda:UpdateFunctionConfiguration`, the deployment operation would fail with an `AccessDeniedException`. This error explicitly indicates a lack of authorization for the caller to perform the requested action on the resource. A `ResourceConflictException`, however, signifies a contention over the resource itself due to an ongoing operation, not an issue with the caller's permissions.
- ✗
The Lambda function's memory limit is set too low for the deployment package.
Why it's wrong here
The memory limit configured for a Lambda function primarily impacts its runtime execution, determining the maximum memory available for the function's processes during invocation. Setting this limit too low would lead to `OutOfMemoryError` exceptions during actual function execution if the workload exceeds the allocated memory. It does not, however, prevent the successful deployment or update of the function's code package itself, which is a separate administrative operation unrelated to runtime resource allocation.
- ✓
Another deployment is currently in progress for the same Lambda function.
Why this is correct
AWS Lambda enforces serialization of deployment operations for a given function to maintain consistency and prevent race conditions. If a developer attempts to deploy a new version or update configuration while another update, such as a code upload or configuration change, is already in progress for the same function, the Lambda service will return a `ResourceConflictException`. This error specifically signals that the resource is temporarily unavailable for modification due to another 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
One of 1,135 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
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.