LATEST AWS DEVELOPER ASSOCIATE
(DVA-C02) EXAM BANK | COMPLETE EXAM
BANK WITH CORRECT ANSWERS AND
RATIONALES. A+ GRADED
1. A developer is writing an AWS Lambda function
that processes records from an Amazon Kinesis Data
Stream. The function must ensure that each record is
processed exactly once. How should the developer
configure the Lambda event source mapping?
A) Set the batch window to 60 seconds and enable
partial batch responses
B) Set the starting position to LATEST and enable
bisect on function error
C) Set the number of retries to 0 and enable on-failure
destination
D) Set the batch size to 1 and use the Kinesis
sequence number to track duplicates
Correct answer: B
Rationale: Kinesis provides at-least-once delivery.
Enabling bisect on function error and configuring a
dead-letter queue (DLQ) or on-failure destination
helps manage failures but exactly-once is not
guaranteed. Use idempotency.
,2. A developer needs to securely store database
credentials for an application running on Amazon
ECS. The credentials must be rotated automatically
without application redeployment. Which AWS
service meets these requirements?
A) AWS Systems Manager Parameter Store
(SecureString)
B) AWS Secrets Manager
C) AWS KMS (Key Management Service)
D) IAM Roles for ECS tasks
Correct answer: B
Rationale: Secrets Manager automatically rotates
secrets (e.g., RDS credentials) without application
changes. Parameter Store does not auto-rotate
unless combined with Secrets Manager.
3. An application uploads user files to an Amazon S3
bucket. The application must generate a thumbnail
for each uploaded image. Which architecture
minimizes latency and operational overhead?
A) EC2 instance with a cron job that polls S3 for new
objects
,B) S3 event notification triggering an AWS Lambda
function to generate the thumbnail
C) SQS queue polled by EC2 instances to process
images
D) AWS Batch job scheduled every minute
Correct answer: B
Rationale: S3 event notifications can directly invoke
Lambda for near-real-time processing, serverless,
and scalable.
4. A developer is debugging a distributed application
using AWS X-Ray. Which X-Ray component is used to
collect trace data from application code and send it
to the X-Ray daemon?
A) X-Ray API
B) X-Ray SDK
C) X-Ray Segment
D) X-Ray Trace
Correct answer: B
Rationale: The X-Ray SDK instruments application
code to generate trace data and sends it to the X-Ray
daemon (or directly to the API). Segments are
created by the SDK.
, 5. A developer is deploying a Node.js application
using AWS CodeDeploy with an in-place deployment.
The application must not experience downtime
during deployment. Which CodeDeploy deployment
configuration should be used?
A) AllAtOnce (fastest but downtime)
B) HalfAtATime (rolling half, potential capacity
reduction)
C) OneAtATime (rolling one instance at a time,
minimal impact)
D) Canary deployment (not available for EC2 in-place;
Blue/Green for EC2)
Correct answer: C
Rationale: OneAtATime (rolling) updates one
instance at a time, keeping other instances in
service, minimizing downtime. AllAtOnce causes
downtime. Canary is for Lambda.
6. A developer is writing an AWS Lambda function
that performs a long-running task (up to 20 minutes).
Which statement about Lambda timeout limits is true?
A) Lambda maximum timeout is 900 seconds (15
minutes)
B) Lambda maximum timeout is 3600 seconds (60
minutes)
(DVA-C02) EXAM BANK | COMPLETE EXAM
BANK WITH CORRECT ANSWERS AND
RATIONALES. A+ GRADED
1. A developer is writing an AWS Lambda function
that processes records from an Amazon Kinesis Data
Stream. The function must ensure that each record is
processed exactly once. How should the developer
configure the Lambda event source mapping?
A) Set the batch window to 60 seconds and enable
partial batch responses
B) Set the starting position to LATEST and enable
bisect on function error
C) Set the number of retries to 0 and enable on-failure
destination
D) Set the batch size to 1 and use the Kinesis
sequence number to track duplicates
Correct answer: B
Rationale: Kinesis provides at-least-once delivery.
Enabling bisect on function error and configuring a
dead-letter queue (DLQ) or on-failure destination
helps manage failures but exactly-once is not
guaranteed. Use idempotency.
,2. A developer needs to securely store database
credentials for an application running on Amazon
ECS. The credentials must be rotated automatically
without application redeployment. Which AWS
service meets these requirements?
A) AWS Systems Manager Parameter Store
(SecureString)
B) AWS Secrets Manager
C) AWS KMS (Key Management Service)
D) IAM Roles for ECS tasks
Correct answer: B
Rationale: Secrets Manager automatically rotates
secrets (e.g., RDS credentials) without application
changes. Parameter Store does not auto-rotate
unless combined with Secrets Manager.
3. An application uploads user files to an Amazon S3
bucket. The application must generate a thumbnail
for each uploaded image. Which architecture
minimizes latency and operational overhead?
A) EC2 instance with a cron job that polls S3 for new
objects
,B) S3 event notification triggering an AWS Lambda
function to generate the thumbnail
C) SQS queue polled by EC2 instances to process
images
D) AWS Batch job scheduled every minute
Correct answer: B
Rationale: S3 event notifications can directly invoke
Lambda for near-real-time processing, serverless,
and scalable.
4. A developer is debugging a distributed application
using AWS X-Ray. Which X-Ray component is used to
collect trace data from application code and send it
to the X-Ray daemon?
A) X-Ray API
B) X-Ray SDK
C) X-Ray Segment
D) X-Ray Trace
Correct answer: B
Rationale: The X-Ray SDK instruments application
code to generate trace data and sends it to the X-Ray
daemon (or directly to the API). Segments are
created by the SDK.
, 5. A developer is deploying a Node.js application
using AWS CodeDeploy with an in-place deployment.
The application must not experience downtime
during deployment. Which CodeDeploy deployment
configuration should be used?
A) AllAtOnce (fastest but downtime)
B) HalfAtATime (rolling half, potential capacity
reduction)
C) OneAtATime (rolling one instance at a time,
minimal impact)
D) Canary deployment (not available for EC2 in-place;
Blue/Green for EC2)
Correct answer: C
Rationale: OneAtATime (rolling) updates one
instance at a time, keeping other instances in
service, minimizing downtime. AllAtOnce causes
downtime. Canary is for Lambda.
6. A developer is writing an AWS Lambda function
that performs a long-running task (up to 20 minutes).
Which statement about Lambda timeout limits is true?
A) Lambda maximum timeout is 900 seconds (15
minutes)
B) Lambda maximum timeout is 3600 seconds (60
minutes)