Exam Information
Free practice questions with explanations
Amazon DVA-C03 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 16
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Development with AWS Services
A retail company runs an order-processing API behind Amazon API Gateway that invokes an AWS Lambda function synchronously. During flash sales, the downstream payment provider throttles requests, causing intermittent 429 errors and client timeouts. The company must accept orders without losing any, keep the API response time under 2 seconds, and avoid rewriting the client applications. Which change BEST meets these requirements?
Correct Answer: DExplanationRouting the request through an API Gateway direct service integration to an SQS queue decouples acceptance from payment processing, so orders are durably stored and the API can return quickly. The Lambda consumer then retries against the throttled provider, and SQS redelivers messages that fail, so nothing is lost. Raising reserved concurrency only increases pressure on the throttled provider. Caching does not apply to POST writes in a way that protects order capture. Step Functions Express still runs synchronously from the caller's perspective and does not absorb the spike the way a queue does.
-
2 Question 2 Multiple choice Development with AWS Services
A developer is building a Lambda function that consumes records from an Amazon Kinesis data stream. The function occasionally fails on a malformed record, and the stream shard must not be blocked by one bad record indefinitely. The team wants the failure handling to preserve ordering within the shard and to capture metadata about the bad batch for later analysis. (Choose two.)
Correct Answer: A, DExplanationFor stream sources, Lambda event source mappings support maximum retry attempts, bisect batch on function error to isolate the poison record, and an on-failure destination that receives metadata about the discarded batch. Together these keep the shard moving while preserving evidence. Raising the parallelization factor breaks per-shard ordering guarantees. Asynchronous invocation settings do not apply to stream-based event source mappings. Longer retention does not stop a blocked shard from being stalled by retries.
-
3 Question 3 Order list Development with AWS Services
A developer must add a retry mechanism for a Lambda function that calls a third-party inventory API which occasionally returns HTTP 503. The retries must use exponential backoff with jitter, stop after a bounded number of attempts, and route exhausted messages to a dead-letter path for manual review. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Compute the retry delay as a random value between zero and the base delay multiplied by two to the power of the attempt number, capped at a maximum.
- Create an Amazon SQS dead-letter queue and attach it to the source queue's redrive policy with a maxReceiveCount value.
- Configure the source queue visibility timeout to exceed the function timeout so in-flight messages are not redelivered early.
- Catch HTTP 503 responses in the function and rethrow them so the message is not deleted from the queue.
Correct Answer:- Create an Amazon SQS dead-letter queue and attach it to the source queue's redrive policy with a maxReceiveCount value.
- Configure the source queue visibility timeout to exceed the function timeout so in-flight messages are not redelivered early.
- Catch HTTP 503 responses in the function and rethrow them so the message is not deleted from the queue.
- Compute the retry delay as a random value between zero and the base delay multiplied by two to the power of the attempt number, capped at a maximum.
ExplanationThe visibility timeout must be set first so the queue does not redeliver a message while the function is still working on it. The function must then fail the invocation on 503 so the message is not deleted. Backoff with jitter is applied within the processing attempt before the queue counts a failure. Only after the attempts are configured to exhaust does the redrive policy move the message to the dead-letter queue, so the dead-letter queue is created and attached last among these configuration steps.
-
4 Question 4 Single choice Security
A media company stores licensed video files in a private Amazon S3 bucket. A partner company's backend, which has no AWS credentials, must download a specific file once within 15 minutes of a request. The company also wants the partner's download traffic to pass through a CloudFront distribution with the bucket kept fully private. Which approach BEST meets these requirements?
Correct Answer: CExplanationAn S3 presigned URL grants time-limited access to a single object without giving the partner any credentials, and it is generated using the permissions of the signing principal. Sharing IAM keys violates least privilege and secure-access requirements. A public bucket policy exposes the content to anyone and conflicts with the private-bucket requirement. The CloudFront signed URL option is close, but a public-read origin policy breaks the requirement that the bucket stay fully private; with OAC, the bucket should only accept requests from CloudFront.
-
5 Question 5 Drag and drop Security
A developer is configuring access for a serverless application deployed in one AWS account, where an automated CI/CD pipeline in a separate AWS account must deploy the stack and the application's Lambda function must read a secret encrypted with a customer managed KMS key. Match each requirement to the mechanism that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
CI/CD pipeline in another account must obtain temporary credentials to deploy into the application accountLambda function must decrypt a secret encrypted with a customer managed KMS keyDevelopers must not store long-term access keys on their workstations for the application accountResource-based policy attached to the Lambda function granting the pipeline account invoke accessIAM Identity Center permission set assumed through federated sign-inAWS Secrets Manager resource policy granting the Lambda service principal read accessIAM role in the application account with a trust policy naming the pipeline account, assumed through AWS STSExecution role with kms:Decrypt permission on that key's ARN and a key policy allowing the roleCorrect Answer:- CI/CD pipeline in another account must obtain temporary credentials to deploy into the application account → IAM role in the application account with a trust policy naming the pipeline account, assumed through AWS STS
- Lambda function must decrypt a secret encrypted with a customer managed KMS key → Execution role with kms:Decrypt permission on that key's ARN and a key policy allowing the role
- Developers must not store long-term access keys on their workstations for the application account → IAM Identity Center permission set assumed through federated sign-in
ExplanationCross-account deployment is handled by a role in the target account that trusts the pipeline account and is assumed via STS, so no static keys are exchanged. Decryption of a customer managed key requires the execution role to hold kms:Decrypt and the key policy to permit that role. Workstation access without long-term keys is achieved through IAM Identity Center federation. The resource-based policy on the function governs invoking the function, not deploying a stack. The Secrets Manager resource policy controls who may read the secret, but it does not address the KMS decryption requirement the scenario describes.
-
6 Question 6 Single choice Testing and Deployment
A team packages a Python Lambda function as a container image and pushes it to Amazon ECR. Each commit produces a new image, and the repository has grown to thousands of untagged images, increasing storage costs. The team must keep the last 20 tagged release images, delete untagged images older than 7 days, and avoid deleting any image that is currently referenced by a Lambda function. Which action BEST meets these requirements?
Correct Answer: CExplanationECR lifecycle policies evaluate rules by tag status and count or age, which matches the retention requirement exactly. Lambda references a specific image digest, and ECR prevents lifecycle expiration from removing images that are in use by functions as long as the policy is applied within ECR's supported rules, so the function keeps working. Immutability prevents overwrite, not cleanup. Deleting the repository would destroy all release images. Scan on push reports vulnerabilities but does not remove images.
-
7 Question 7 Dropdown Testing and Deployment
A developer uses AWS SAM to deploy an API for two environments, dev and prod, from one template. Each stage must receive its own configuration value without rebuilding the code, and the template must reference a Systems Manager Parameter Store value at deploy time. Complete the template fragment by selecting the correct value for each blank.
Choose the correct value for each blank.
Parameters:
Stage:
Type: String
AllowedValues: [dev, prod]
Resources:
ApiFunction:
Type: AWS::Serverless::Function
Properties:
Environment:
Variables:
TABLE_NAME: !Ref
Events:
Api:
Type: Api
Properties:
Path: /items
Method: get
# Deploy with: sam deploy --parameter-overrides Stage=Correct Answer:Parameters:
Stage:
Type: String
AllowedValues: [dev, prod]
Resources:
ApiFunction:
Type: AWS::Serverless::Function
Properties:
Environment:
Variables:
TABLE_NAME: !Ref Stage
Events:
Api:
Type: Api
Properties:
Path: /items
Method: get
# Deploy with: sam deploy --parameter-overrides Stage=devExplanationReferencing the Stage parameter passes the environment name into the function configuration at deployment time, so the same code artifact serves both environments. AWS::StageName is a pseudo-parameter that does not exist, and ParameterStore is not a valid reference. Overriding Stage with a concrete allowed value such as dev selects that environment's configuration when that stack is deployed, while values like latest or default are not in the AllowedValues list and would fail validation.
-
8 Question 8 Single choice Testing and Deployment
A developer uses AWS CDK to deploy a stack with an Amazon API Gateway REST API and a Lambda integration. The team wants the prod stage to have a different Lambda alias than dev, changes to API Gateway deployment must be visible to clients only after a manual approval, and the URL for each stage must remain stable across deployments. Which configuration BEST meets these requirements?
Correct Answer: BExplanationAPI Gateway stages give each environment its own stable invoke URL, and a stage can be wired to a Lambda alias so prod and dev run different function versions. Creating a new deployment and attaching it to a stage is what makes changes visible, which can be gated by a manual approval step in the pipeline. Updating the integration URI in place on one stage removes the stable separation. Creating a new API per deployment changes the URL each time. Using $LATEST everywhere ignores the alias requirement and makes changes immediately visible without approval.
-
9 Question 9 Multiple choice Troubleshooting and Optimization
A developer's Lambda function, invoked through API Gateway, intermittently returns 502 errors. CloudWatch Logs show the function completing successfully for those requests, but the API Gateway access logs show integration latency close to the Lambda timeout. The function is written in Python and emits its logs in JSON with a correlation ID field. The team needs to find the root cause and reduce future occurrences with minimal changes. (Choose two.)
Correct Answer: A, DExplanationLogs Insights can filter structured JSON logs by duration and correlate with API Gateway access log request IDs to pinpoint slow invocations. X-Ray active tracing on both the stage and the function shows where time is spent in downstream calls. Raising the integration timeout does not fix a function that runs close to its limit and can hide the root cause. Increasing memory is a reasonable optimization but is not the root-cause step asked for and is not justified by the stated evidence. Disabling access logs removes the very data needed for correlation.
-
10 Question 10 Order list Troubleshooting and Optimization
A deployment of an AWS CloudFormation stack that includes an Amazon ECS service rolls back with the error that the service failed to reach a steady state. The developer must identify the cause and fix it without deleting the stack prematurely. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Disable rollback on the stack so the failed resources remain available for inspection while the root cause is found.
- Correct the template or the underlying resource and redeploy the stack with a new change set.
- Open the stack events in the CloudFormation console and identify the first resource that reported CREATE_FAILED or UPDATE_FAILED.
- Review the ECS service events and the stopped task reason to find the container failure, such as a failing health check or missing image.
Correct Answer:- Open the stack events in the CloudFormation console and identify the first resource that reported CREATE_FAILED or UPDATE_FAILED.
- Review the ECS service events and the stopped task reason to find the container failure, such as a failing health check or missing image.
- Correct the template or the underlying resource and redeploy the stack with a new change set.
- Disable rollback on the stack so the failed resources remain available for inspection while the root cause is found.
ExplanationThe first step is to locate the first failing resource in the stack events, since later failures are often cascades. The ECS service events and stopped task reason then explain why tasks never became healthy. With the cause known, the template is corrected and deployed through a new change set. Disabling rollback is an investigation aid that should be used when the team needs to inspect failed resources, so it logically belongs before diagnosis in the workflow when resources must be preserved. Placing it as the second step rather than after diagnosis means it gets applied before the ECS events are reviewed, which keeps the failed resources available for that review.
-
11 Question 11 Single choice Troubleshooting and Optimization
A developer's application emits business metrics such as orders completed per minute. The operations team wants an alarm that notifies them when the metric stays below 5 for three consecutive minutes, and the metric must be visible in dashboards with the dimension Region and Environment. The application runs on Amazon EC2 and writes logs to CloudWatch Logs. Which implementation BEST meets these requirements?
Correct Answer: CExplanationA metric filter converts matching log events into a CloudWatch metric, which can then carry dimensions and feed an alarm with three evaluation periods. This meets the threshold and consecutive-period requirement without changing the application's logging. SNS is not a metric source for CloudWatch alarms, and subscription filters deliver logs rather than aggregating counts. CPUUtilization does not reflect order volume. Parameter Store is not designed for frequently changing counters and does not provide per-minute metrics for alarms.
-
12 Question 12 Single choice Development with AWS Services
A developer must process a continuous stream of clickstream events in an AWS environment where consumers need replay capability over 3 days, multiple independent consumers must each read every record, and ordering within a user session must be preserved. The team prefers a managed service and wants to minimize operational overhead. Which service and configuration BEST meets these requirements?
Correct Answer: CExplanationKinesis Data Streams retains records for a configurable period up to 365 days, so 72 hours meets the replay requirement, and enhanced fan-out gives each consumer its own dedicated throughput. Using the session identifier as the partition key keeps records for a session on the same shard, preserving order. SQS removes messages after consumption and does not offer independent multi-consumer replay in the same way. SNS does not retain messages for replay and does not guarantee ordering on standard topics. EventBridge archives are not a per-session ordered stream and their replay model does not match the requirement.
-
13 Question 13 Drag and drop Development with AWS Services
A developer is designing an API Gateway REST API that must validate incoming JSON bodies, transform a legacy XML backend response into JSON for clients, and return a clear error for missing required fields without invoking the backend. Match each requirement to the API Gateway feature that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Return a 400 status with a clear message when validation failsReject requests whose body lacks required fields before the backend is calledConvert the backend XML response into a JSON structure for the clientIntegration response mapping template using Apache VTLRequest validator with a JSON Schema model attached to the methodUsage plan with throttling limits for each API keyGateway response for the BAD_REQUEST_BODY type with a customized response templateLambda authorizer that validates the JSON schema of the request bodyCorrect Answer:- Reject requests whose body lacks required fields before the backend is called → Request validator with a JSON Schema model attached to the method
- Convert the backend XML response into a JSON structure for the client → Integration response mapping template using Apache VTL
- Return a 400 status with a clear message when validation fails → Gateway response for the BAD_REQUEST_BODY type with a customized response template
ExplanationA request validator with a model rejects non-conforming bodies at the API layer, so the backend is never invoked. Integration response mapping templates transform backend output, and VTL is the mechanism for XML-to-JSON style restructuring. Gateway responses let the team customize the 400 error returned for body validation failures. A Lambda authorizer handles authentication and authorization decisions, not schema validation. Usage plans control quota and throttling, not body validity.
-
14 Question 14 Single choice Security
A developer's application running on Amazon EC2 uses an IAM role to call Amazon DynamoDB. A security review requires that only requests originating from the application's own role session, and only when the request is made with MFA-authenticated credentials, may write to a specific DynamoDB table holding financial adjustments. Developers should still be able to read the table from their federated sessions. Which policy element BEST enforces the write restriction?
Correct Answer: CExplanationThe aws:MultiFactorAuthPresent condition key is evaluated on the request's session, so placing it on the write actions in the application role's identity-based policy enforces the MFA requirement for writes only. Developers gain read access through their own policies, which keeps the separation. A permissions boundary on the instance profile does not grant the application role permissions and would deny writes for everyone. An SCP that allows the action does not grant access on its own. A session policy can only restrict permissions, not enforce an MFA condition for writes, and it does not preserve application write access.
-
15 Question 15 Dropdown Security
A developer is configuring a Lambda function that must call a private HTTPS endpoint whose certificate is issued by an internal AWS Private Certificate Authority. The function's code must validate the chain against the internal CA's certificate without disabling verification. Complete the environment and deployment statements by selecting the correct value for each blank.
Choose the correct value for each blank.
Environment variable for the Python runtime: REQUESTS_CA_BUNDLE=
Certificate source published to the function: AWS Private CA certificate retrieved with the APICorrect Answer:Environment variable for the Python runtime: REQUESTS_CA_BUNDLE=/opt/certs/internal-ca.pem
Certificate source published to the function: AWS Private CA certificate retrieved with the GetCertificateAuthorityCertificate APIExplanationSetting REQUESTS_CA_BUNDLE to a file path containing the internal CA certificate makes the Python requests library validate the endpoint against that trust anchor, which keeps verification enabled. The certificate for the CA itself is retrieved with GetCertificateAuthorityCertificate in AWS Private CA. Disabling verification via a path like verify=false is the insecure shortcut the requirement forbids. DescribeCertificate and ListCertificates operate on issued certificates rather than the CA certificate, and ImportCertificate is used to import an end-entity certificate, not to fetch the CA trust chain.
-
16 Question 16 Single choice Testing and Deployment
A team uses AWS SAM to define a serverless application with DynamoDB and Lambda resources. Before any change reaches production, the team wants automated tests that run against the real template locally and catch misconfigured resource properties without deploying to AWS. Which approach BEST meets this requirement?
Correct Answer: BExplanationsam validate checks the template syntax and SAM-specific structure without creating resources, and sam local invoke runs function code locally against the template definition, which together catch configuration errors early. Staging integration tests cover the remaining behaviour in AWS. Deploying straight to production skips the requirement for pre-deployment checks. Mocked unit tests do not validate template resource properties. Packaging uploads artifacts and does not test the template's correctness.
These are 16 of the 543 questions in the full DVA-C03 pack.
Get All 543 QuestionsGet all 543 questions & answers
Full access options for Amazon DVA-C03
Self-study
PDF Version
- 543 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 543 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 543 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the DVA-C03 Exam (AWS Certified Developer - Associate Exams) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.