Amazon
DVA-C03 exam questions
AWS Certified Developer - Associate
Try each question before you reveal its answer.
157 more DVA-C03 questions with answers $89.00
Unlock all 162 questions-
Question 1
Single answer
A ticketing API stores the remaining seats for each performance in a DynamoDB table in one AWS Region. Multiple workers can reserve seats concurrently. Every request has a positive integer quantity and is submitted only once. An existing item has a numeric remaining attribute.
The workers use this Boto3 Table resource call, with valid keys and expression values:
table.update_item(
Key={"performanceId": performance_id},
UpdateExpression="SET #left = #left - :requested",
ExpressionAttributeNames={"#left": "remaining"},
ExpressionAttributeValues={":requested": quantity}
)
A reservation must fail without changing the item when fewer than quantity seats remain.
Which change prevents the count from becoming negative during concurrent requests?
Reveal answer
Correct answer
-
B
Add ConditionExpression="#left >= :requested" to the same UpdateItem request and handle a failed condition as a rejected reservation.
Explanation
The condition is evaluated as part of the conditional update. Only an item with sufficient remaining seats is decremented; a failed condition leaves that attempted update unapplied.
No comments yet. Start the discussion.
-
B
-
Question 2
Single answer
A Lambda function processes batches from a standard SQS queue. The event source mapping already enables ReportBatchItemFailures. Each record can be processed independently, and successful work is idempotent.
The current handler uses the following pseudocode:
for record in event.Records:
process(record) # may raise an exception
return {"batchItemFailures": []}
When the third record fails, Lambda retries records that were processed successfully earlier in the batch.
Which handler change makes the response identify only records that failed processing?
Reveal answer
Correct answer
-
D
Catch errors separately for each record, continue processing other records, and return failed message IDs as itemIdentifier entries in batchItemFailures.
Explanation
With ReportBatchItemFailures enabled, a successful handler return can identify failed records using their message IDs. Per-record error handling allows other independent records to finish. Idempotency is still needed because partial responses do not guarantee exactly-once processing.
No comments yet. Start the discussion.
-
D
-
Question 3
Multiple answer
An ECS service runs Linux tasks on Fargate. Each task pulls an image from a private ECR repository and then calls DynamoDB PutItem from application code using the default AWS SDK credential provider chain. The task definition specifies separate task and task execution roles with valid trust policies. Network access, DynamoDB capacity, and the deployer's permissions are already correct. There are no explicit denies or other required application permissions.
Which TWO permission assignments are needed for image retrieval and the application's write, while keeping these permissions on their intended roles? (Choose two.)
Reveal answer
Correct answer
-
A
Grant the task execution role ecr:GetAuthorizationToken and the repository-scoped ECR image-pull actions.
-
C
Grant the task role dynamodb:PutItem on the application's target table.
Explanation
ECS uses the task execution role for image retrieval. GetAuthorizationToken uses Resource *, while the image-pull actions can be scoped to the required repository.
The default container credential provider supplies task-role credentials to application code. The table-scoped PutItem permission authorizes the required write.
No comments yet. Start the discussion.
-
A
-
Question 4
Single answer
A SAM template already deploys a Lambda function through the live alias. All production callers invoke that alias.
The function uses this configuration:
AutoPublishAlias: live
DeploymentPreference:
Type: Canary10Percent5Minutes
The team has created a CloudWatch alarm named CheckoutFailureAlarm that correctly detects failures during the canary interval. The SAM-generated CodeDeploy deployment has the required permissions.
Which change connects that alarm to the deployment so an alarm breach can trigger rollback during traffic shifting?
Reveal answer
Correct answer
-
B
Add the alarm name to DeploymentPreference.Alarms.
Explanation
DeploymentPreference.Alarms associates the CloudWatch alarm with the deployment. This provides the deployment with an alarm signal during its traffic-shifting interval.
No comments yet. Start the discussion.
-
B
-
Question 5
Single answer
An application invokes a standard Lambda function synchronously. At a sustained request rate, some Invoke API calls return TooManyRequestsException. The function has reserved concurrency set to 5.
During the same interval, monitoring shows:
Load tests confirm that the function and its downstream service can safely support 20 concurrent requests, which is sufficient for the current load. The team wants to retain a dedicated concurrency allocation for this function. Which change directly addresses the observed bottleneck?

Reveal answer
Correct answer
-
D
Increase the function's reserved concurrency from 5 to 20.
Explanation
The observed concurrency reaches the function's configured cap while account capacity remains available. Raising that cap to the validated level addresses the capacity limit and retains a dedicated allocation.
No comments yet. Start the discussion.
-
D
- Unlock to see this question
- Unlock to see this question
157 questions locked
Unlock all 162 DVA-C03 questions
You have tried 5 for free. The other 157 work the same way: answer first, then check.
- Questions
- 162, each with its answer
- Formats
- Single answer, Multiple answer
- Version
- 6.0
- Access
- 3 months from purchase
One-time payment
$89.00
Secure checkout