AWS Developer Associate (DVA-C03) Practice Exam
Practice questions for the AWS Certified Developer – Associate (DVA-C03) exam: development with AWS services, including loosely coupled and event-driven designs with Amazon SQS, SNS, EventBridge and Kinesis, retries with backoff, API Gateway validation, AWS SDK usage, Amazon Bedrock integration and AI-assisted development with Kiro, Lambda configuration, VPC access, layers, extensions, destinations and event source mappings, and DynamoDB and S3 data design; security, including Cognito user and identity pools, federation, STS and MFA, presigned URLs and CloudFront signed cookies, SigV4, IAM and resource-based policies, KMS envelope encryption, S3 server- and client-side encryption, ACM and AWS Private CA, Secrets Manager and Parameter Store, CloudWatch Logs data protection, and AI security with Bedrock model access, PrivateLink, Guardrails, agent tool authorization and invocation logging; testing and deployment, including ECR images, CodeArtifact, AppConfig, API Gateway stages, AWS SAM local testing, CDK assertions, mock integrations, Lambda aliases, Amplify branches, CodeDeploy, CodePipeline, CloudFormation, ECS and Elastic Beanstalk deployment strategies; and troubleshooting and optimization, including X-Ray and OpenTelemetry tracing, CloudWatch Logs Insights, Embedded Metric Format, alarms, CloudWatch investigations, health probes, Lambda concurrency and memory tuning, RDS Proxy, SQS and SNS tuning, and caching with DAX and API Gateway. Every question includes a written explanation.
100 questions · 12 free preview
Studying more than one? All AWS exams for $29 · every exam for $79
Free sample questions
- Sample · question 1 · Step Functions Retry and Catch fields
An order workflow at Pemberton Wine uses AWS Step Functions. One Task state calls a shipping API that sometimes returns transient errors, and after three failed attempts the workflow should move to a state that notifies staff. How should the state be configured?
- A.Add a Wait state of 3 seconds before the Task and remove error handling from the state definition
- B.Add a Retry rule with MaxAttempts and BackoffRate, plus a Catch that routes to the notification statecorrect
- C.Wrap the Task in a Map state with a concurrency of 3 so that three copies of the call run in parallel
- D.Set the state machine type to Express so that failed Task states restart the entire execution automatically
Why: Task states support Retry rules (error names, interval, MaxAttempts, BackoffRate) and Catch rules that transition to a fallback state once retries are exhausted. A Map state iterates over items rather than retrying. Express workflows do not restart failed executions automatically. A fixed wait before the call does not handle failures at all.
Open this question on its own page → - Sample · question 2 · SQS FIFO message groups for ordering
A ledger service at Copthorne Credit must process account updates strictly in order per account, while updates for different accounts may be processed in parallel. Duplicate sends within a few minutes must be ignored. Which queue setup fits?
- A.A standard queue with a delivery delay of 60 seconds on every message to keep updates in sequence
- B.A standard queue with long polling, since long polling returns messages in the order they were sent
- C.A FIFO queue using the account number as message group ID, with deduplicationcorrect
- D.A FIFO queue that uses one fixed message group ID for every account in the system
Why: FIFO queues preserve order within a message group and allow parallelism across groups, and deduplication IDs (or content-based deduplication) drop duplicates sent within the 5-minute interval. Standard queues provide best-effort ordering regardless of delays or long polling. A single group ID would serialize all accounts and remove the parallelism the service needs.
Open this question on its own page → - Sample · question 3 · DynamoDB Streams for change processing
Whenever an item in a DynamoDB customers table is modified at Larkhill Insurance, a search index must be updated with the new values. The team wants this to happen automatically from the table's changes. What should they use?
- A.Schedule a Lambda function every minute that performs a full Scan and rewrites the entire index
- B.Turn on CloudTrail management events for the table and parse UpdateTable calls for item values
- C.Enable DynamoDB Streams with new images and add a Lambda event source mapping that updates the indexcorrect
- D.Enable point-in-time recovery and restore the table into the search service after each change
Why: DynamoDB Streams captures item-level changes, and with a NEW_IMAGE or NEW_AND_OLD_IMAGES view type a Lambda event source mapping can process each change to update the index. Periodic full scans are expensive and delayed. PITR is for backups and restores. CloudTrail management events cover control-plane calls such as UpdateTable, not item contents.
Open this question on its own page → - Sample · question 4 · EventBridge Scheduler one-time invocations
The Duncombe Dental booking app needs to send a reminder 24 hours before each appointment. Thousands of appointments are created daily, each with its own reminder time. Which serverless approach creates a single future invocation per appointment?
- A.Create one CloudWatch alarm per appointment that changes state at the reminder time and calls the function
- B.Put each reminder on an SQS queue with a delivery delay set to the full 24 hours before the appointment
- C.Set the reminder function's timeout to 24 hours and invoke it as soon as each appointment is booked
- D.A one-time EventBridge Scheduler schedule per appointment, targeting the reminder functioncorrect
Why: EventBridge Scheduler supports one-time schedules using an at() expression and can invoke targets such as Lambda at that moment, scaling to large numbers of schedules. Alarms react to metrics, not calendar times. Lambda timeouts cannot exceed 15 minutes. SQS delivery delay is limited to 15 minutes, far short of 24 hours.
Open this question on its own page → - Sample · question 5 · Explicit deny in policy evaluation
A developer at Ravensworth Media has an identity policy allowing s3:* on a reports bucket, but the bucket policy contains a statement denying s3:DeleteObject for all principals except an admin role. What happens when the developer tries to delete an object?
- A.The request is denied, because an explicit deny in any applicable policy overrides an allowcorrect
- B.The request is denied only if the developer's account also has a service control policy
- C.The request is allowed, because s3:* is more specific than the s3:DeleteObject action
- D.The request is allowed, because identity policies take precedence over bucket policies
Why: In AWS policy evaluation, an explicit deny in any applicable policy always wins over allows. Identity policies do not outrank resource policies, and wildcards are not treated as more specific than named actions. The deny in the bucket policy applies on its own; no service control policy is needed for it to take effect.
Open this question on its own page → - Sample · question 6 · Hardening S3 bucket access settings
A security checklist at Pellow Architecture asks developers to make sure a new S3 bucket holding internal drawings can never be made public and only accepts encrypted connections. Which actions meet these requirements? (Select TWO.)
- A.Enable S3 Transfer Acceleration so that all uploads travel over private AWS networks
- B.Keep S3 Block Public Access settings turned on for the bucket and the accountcorrect
- C.Turn on S3 Versioning so that public access to older object versions is automatically blocked
- D.Add a bucket policy statement that denies requests where aws:SecureTransport is falsecorrect
- E.Enable Requester Pays so that anonymous users cannot download objects from the bucket
Why: Block Public Access overrides policies and ACLs that would grant public access, and a deny on aws:SecureTransport false rejects plain HTTP requests. Transfer Acceleration speeds up long-distance transfers but does not enforce TLS. Versioning keeps object history and has no effect on public access. Requester Pays changes who is billed and is not an access control.
Open this question on its own page → - Sample · question 7 · ApplyGuardrail API for any model
Copperline Insurance runs a self-hosted open-source model on Amazon EKS but wants to use the same Amazon Bedrock guardrail it uses for Bedrock models to check user prompts and model replies. How can it do this?
- A.Import the self-hosted model into the guardrail as a custom content filter before each request
- B.Call the ApplyGuardrail API with the guardrail ID and the text to evaluate, without invoking a Bedrock modelcorrect
- C.Deploy the guardrail as a container image to the EKS cluster alongside the model
- D.Guardrails cannot be used with models outside Bedrock, so the policies must be rewritten in application code
Why: The ApplyGuardrail API evaluates text against a configured guardrail independently of model invocation, so it can screen inputs and outputs for models hosted anywhere. Guardrails do not import models as filters and are not deployable container images. Because ApplyGuardrail exists, there is no need to rewrite the policies by hand.
Open this question on its own page → - Sample · question 8 · Previewing stack updates with change sets
Before updating a production CloudFormation stack at Holloway Freight, the team wants to see exactly which resources will be added, modified or replaced, and only then decide whether to proceed. What should they use?
- A.Enable termination protection, which shows a preview of each update before it is applied
- B.Run drift detection, which lists the changes that the new template will make to the stack
- C.Create a change set, review the proposed changes including replacements, and then execute itcorrect
- D.Run the update with rollback disabled so that the changes can be inspected after they are made
Why: Change sets show how a template or parameter change will affect running resources, including whether a resource will be replaced, before anything is changed; the team then executes or deletes the change set. Drift detection compares current resources with the last deployed template. Termination protection prevents deletion only. Disabling rollback still applies changes immediately.
Open this question on its own page → - Sample · question 9 · Test traffic hook in ECS blue/green
Hambledon Media uses CodeDeploy blue/green deployments for an ECS service with a production listener and a test listener. They want automated integration tests to run against the replacement task set through the test listener before any production traffic shifts. Which appspec hook should invoke the test Lambda function?
- A.AfterAllowTestTrafficcorrect
- B.AfterAllowTraffic
- C.ApplicationStart
- D.BeforeAllowTraffic on the original task set
Why: In ECS blue/green deployments, AfterAllowTestTraffic runs after the test listener routes traffic to the replacement task set, so tests can run before production traffic moves. BeforeAllowTraffic runs later, just before production traffic shifts, and AfterAllowTraffic runs after it has shifted. ApplicationStart is an EC2/On-Premises hook, not an ECS one.
Open this question on its own page → - Sample · question 10 · API Gateway REST canary release
A team at Fenwick Maps wants to test a new deployment of a REST API by sending 5% of the prod stage's traffic to it while 95% continues to use the current deployment, with separate metrics for each. Which feature provides this?
- A.A Lambda alias with routing configured on the API's authorizer function
- B.A canary release on the prod stage with a canary traffic percentage of 5correct
- C.A custom domain base path mapping that points 5% of paths to a new stage
- D.A second usage plan that throttles 95% of the clients calling the prod stage
Why: REST API canary release settings on a stage route a configured percentage of requests to a canary deployment, and canary metrics and logs are reported separately; the canary can later be promoted. Usage plans throttle and meter clients. Weighted aliases on an authorizer do not split API traffic between deployments. Base path mappings route by path, not by percentage.
Open this question on its own page → - Sample · question 11 · SQS visibility timeout for Lambda consumers
A Lambda function at Ashcombe Print has a timeout of 2 minutes and processes messages from an SQS queue whose visibility timeout is 30 seconds. Messages are often processed twice. What should the developer change?
- A.Enable long polling on the queue so that messages are hidden until the function returns
- B.Lower the function timeout to 10 seconds so that it always finishes before the visibility timeout
- C.Increase the queue's maximum message size so that messages are not split and delivered twice
- D.Raise the visibility timeout to at least six times the function timeout, as AWS recommendscorrect
Why: If a message's visibility timeout expires before the function finishes, the message becomes visible and is delivered again; AWS recommends setting the queue's visibility timeout to at least six times the function timeout for Lambda event source mappings. Cutting the function timeout would make legitimate work fail. Long polling affects how receives wait, not how long messages stay hidden. Message size has nothing to do with duplicate delivery.
Open this question on its own page → - Sample · question 12 · Metric filters for log-based alarms
A legacy application at Bramhall Utilities writes the text PAYMENT_GATEWAY_DOWN to CloudWatch Logs when it cannot reach its payment provider. The team cannot change the code but wants an alarm when this text appears more than 5 times in 5 minutes. What should they configure?
- A.A metric filter that matches the text and publishes a metric, plus an alarm on that metriccorrect
- B.A CloudWatch Synthetics canary that reads the log group and emails the team when it finds the text
- C.An X-Ray sampling rule that samples every request containing the text in its log output
- D.A log group retention policy of 5 minutes that triggers an alarm when entries are deleted
Why: Metric filters turn matching log events into CloudWatch metric data points, and an alarm on the metric can notify when the count exceeds a threshold over a period. Canaries test endpoints and user flows, not log contents. X-Ray sampling rules control which requests are traced and do not read log text. Retention settings delete old logs and do not raise alarms.
Open this question on its own page →
Like the sample?
Other practice exams
- AnthropicClaude Certified Architect — Foundations100 questions · $19
- AnthropicClaude Certified Architect — Professional100 questions · $19
- CompTIACompTIA Security+ (SY0-701)100 questions · $19
- CompTIACompTIA Network+ (N10-009)100 questions · $19
- ISC2CISSP100 questions · $19
- DatabricksDatabricks Data Engineer Associate100 questions · $19
- DatabricksDatabricks Data Engineer Professional100 questions · $19
- DatabricksDatabricks Generative AI Engineer Associate100 questions · $19
- Google CloudGoogle Cloud Associate Cloud Engineer100 questions · $19
- Google CloudGoogle Cloud Professional Cloud Architect100 questions · $19
- Google CloudGoogle Cloud Professional Data Engineer100 questions · $19
- Google CloudGoogle Cloud Professional Machine Learning Engineer100 questions · $19
- HashiCorpTerraform Associate (004)100 questions · $19
- CNCFCertified Kubernetes Administrator (CKA)100 questions · $19
- CNCFCertified Kubernetes Application Developer (CKAD)100 questions · $19
- PalantirPalantir Data Engineer Associate100 questions · $19
- PalantirPalantir AI Engineer Associate100 questions · $19
- NVIDIANVIDIA Generative AI LLMs Associate (NCA-GENL)100 questions · $19
- Microsoft Power BI & FabricPower BI Data Analyst (PL-300)100 questions · $19
- Microsoft Power BI & FabricFabric Analytics Engineer (DP-600)100 questions · $19
- Microsoft Power BI & FabricFabric Data Engineer (DP-700)100 questions · $19
- SnowflakeSnowPro Core (COF-C03)250 questions · $19
- SnowflakeSnowPro Advanced: Data Engineer100 questions · $19
- SnowflakeSnowPro Advanced: Architect100 questions · $19
- AWSAWS Cloud Practitioner (CLF-C02)100 questions · $19
- AWSAWS Solutions Architect Associate (SAA-C03)100 questions · $19
- AWSAWS AI Practitioner (AIF-C01)100 questions · $19
- AWSAWS Solutions Architect Professional (SAP-C03)100 questions · $19
- AWSAWS Data Engineer Associate (DEA-C01)100 questions · $19
- AWSAWS Machine Learning Engineer Associate (MLA-C02)100 questions · $19
- AWSAWS Generative AI Developer Professional (AIP-C01)100 questions · $19
- Microsoft AzureAzure Fundamentals (AZ-900)100 questions · $19
- Microsoft AzureAzure Administrator (AZ-104)100 questions · $19
- Microsoft AzureAzure AI Fundamentals (AI-901)100 questions · $19
- Microsoft AzureAzure AI Cloud Developer (AI-200)100 questions · $19
- Microsoft AzureAzure Solutions Architect Expert (AZ-305)100 questions · $19