100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 280
A developer accepts Amazon Q Developer's suggested IAM and SDK code without reviewing it, and a generated call requests permission to unrelated customer data. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Review generated changes, replace broad permissions with the minimum actions and resources, and run approved security and behavior tests.
- A controlled invocation opens the intended database connection without exposing its port to the public internet.
- Automatically merge every assistant-generated policy because the tool produced valid syntax.
- Follow LastEvaluatedKey and return a safe continuation cursor while preserving query authorization constraints.
- The resulting application performs its authorized task while tests show access to unrelated customer data is denied.
- Require code review, static scanning and denied-resource fixtures for AI-assisted code changes.
Explanation
Correct Answers
A:Review generated changes, replace broad permissions with the minimum actions and resources, and run approved security and behavior tests. The underlying cause is: Generated source is being treated as trusted rather than code requiring human review and least-privilege validation.
E:The resulting application performs its authorized task while tests show access to unrelated customer data is denied. This is the observable result required before accepting the correction.
F:Require code review, static scanning and denied-resource fixtures for AI-assisted code changes. This protects against the following risk: Generated source is being treated as trusted rather than code requiring human review and least-privilege validation.
Incorrect Answers
B:This would validate a different case: A Lambda function runs in a private VPC subnet and cannot reach its intended RDS endpoint, although the stored database username and password are correct. It does not verify the outcome required here.
C:Automatically merge every assistant-generated policy because the tool produced valid syntax. That shortcut conflicts with the stated requirement.
D:That corrective action is for a different case: A developer reads one page of a DynamoDB Query response and a history screen omits newer records when an account exceeds the result limit. It does not resolve this incident.
Question 281
A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. Which engineering change best addresses the underlying issue?
- Configure an authorized on-failure destination and capture the event context without leaking sensitive payload fields.
- Trim unused dependencies and initialization work and measure whether provisioned concurrency is justified for the latency requirement.
- Use a suitably keyed base-table or local secondary index strongly consistent read path when strict consistency is required.
- Update the producer event contract or the rule's detail-type pattern and confirm the intended event bus and target permissions.
Explanation
Correct Answer
C:Use a suitably keyed base-table or local secondary index strongly consistent read path when strict consistency is required. It directly addresses the case cause (Global secondary index reads provide eventual consistency and cannot supply a strongly consistent read mode.) and should be verified by: A forced write followed by the approved strong-read path returns the current item for the critical operation.
Incorrect Answers
A:That change addresses an asynchronously invoked Lambda fails on malformed event data, but operators find no durable record of discarded events after retry attempts end; it would not repair this incident.
B:That change addresses a Lambda API endpoint has high first-request latency after deployments because a large package loads heavy optional libraries during initialization; it would not repair this incident.
D:That change addresses an EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization; it would not repair this incident.
Question 282
A web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry. Which engineering change best addresses the underlying issue?
- Return consistent sanitized error codes and correlation IDs while preserving protected internal diagnostics separately.
- Validate the signature with the expected Cognito JWKS and check issuer, intended client, token use, expiry and scopes.
- Use a supported certificate-management lifecycle and verified rotation or deployment process for the authenticated endpoint.
- Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output.
Explanation
Correct Answer
B:Validate the signature with the expected Cognito JWKS and check issuer, intended client, token use, expiry and scopes. It directly addresses the case cause (Base64 decoding alone does not authenticate token origin or prove that its claims are still valid.) and should be verified by: A valid intended token is accepted while tampered, expired and wrong-user-pool tokens are rejected.
Incorrect Answers
A:That change addresses an API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers; it would not repair this incident.
C:That change addresses a service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires; it would not repair this incident.
D:That change addresses a multi-tenant data export Lambda assumes an S3 key prefix from the request body and permits tenant A to select tenant B's export prefix; it would not repair this incident.
Question 283
A stateless containerized checkout API stores shopping-cart state only in a process dictionary and loses carts when traffic shifts to a new task. Select TWO complementary measures that correctly repair and validate this failure.
- Publish or select a layer compiled for the actual runtime and architecture and test imports in that environment.
- Increase container memory and rely on the original task never being restarted.
- The same authorized cart survives container replacement and remains isolated from other shopper identities.
- Persist the authorized cart in an appropriately keyed durable store or scoped distributed session service.
- Cold and warm invocation latency meet the service objective with the same correct business response.
Explanation
Correct Answers
C:The same authorized cart survives container replacement and remains isolated from other shopper identities. This is the observable result required before accepting the correction.
D:Persist the authorized cart in an appropriately keyed durable store or scoped distributed session service. The underlying cause is: Application state is tied to one transient compute instance rather than a shared state contract.
Incorrect Answers
A:That corrective action is for a different case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. It does not resolve this incident.
B:Increase container memory and rely on the original task never being restarted. That shortcut conflicts with the stated requirement.
E:This would validate a different case: A Lambda API endpoint has high first-request latency after deployments because a large package loads heavy optional libraries during initialization. It does not verify the outcome required here.
Question 284
A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. Which technical dependency most directly explains this behavior?
- The build environment or packaging step does not guarantee a clean, source-bound output.
- Generated tests are not tied to the reviewed current interface contract and can validate the wrong behavior.
- The test invocation does not exercise the exact deployed version and traffic-shift destination.
- The build embeds environment configuration that does not match its deployment stage.
Explanation
Correct Answer
A:The build environment or packaging step does not guarantee a clean, source-bound output. The corresponding fix is to use clean reproducible builds with explicit artifact paths and record source revision and resulting digest.
Incorrect Answers
B:This diagnosis addresses another AWS case: A team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification. The dependency here is different.
C:This diagnosis addresses another AWS case: A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test. The dependency here is different.
D:This diagnosis addresses another AWS case: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. The dependency here is different.
Question 285
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A multi-tenant data export Lambda assumes an S3 key prefix from the request body and permits tenant A to select tenant B's export prefix.
- Scan redacted logs and review cryptographic key permissions in every release that handles sensitive values.
- Test certificate failures and transport enforcement as separate security scenarios from storage encryption.
- Test URL, body, header and storage-prefix tenant tampering in every export release.
- Monitor certificate expiry and rehearse trust-chain updates before production rotation dates.
Explanation
Correct Answer
C:Test URL, body, header and storage-prefix tenant tampering in every export release. This safeguards against a recurring cause: Tenant isolation is enforced from caller-controlled text instead of a trusted authorization context.
Incorrect Answers
A:That safeguard addresses another case: A service encrypts every application response with one reusable symmetric key and logs that key during debugging to make support easier. It is not the control for this recurring failure.
B:That safeguard addresses another case: A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. It is not the control for this recurring failure.
D:That safeguard addresses another case: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. It is not the control for this recurring failure.
Question 286
An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. Which technical dependency most directly explains this behavior?
- Averages conceal tail latency and do not represent the stated high-percentile service objective.
- Unfiltered subscriber delivery wastes processing and creates avoidable downstream concurrency and cost.
- Distributed trace propagation is not applied across the service-to-service network boundary.
- The Lambda proxy integration response does not satisfy the expected statusCode, headers and body contract.
Explanation
Correct Answer
D:The Lambda proxy integration response does not satisfy the expected statusCode, headers and body contract. The corresponding fix is to return the supported proxy response shape and validate serialized body and status-code types.
Incorrect Answers
A:This diagnosis addresses another AWS case: An application tracks only average latency and misses a small cohort of timeouts that breach the published p99 API performance objective. The dependency here is different.
B:This diagnosis addresses another AWS case: An SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates. The dependency here is different.
C:This diagnosis addresses another AWS case: A developer adds X-Ray segments to a Lambda request but never propagates trace context to a downstream HTTP service, producing disconnected service maps. The dependency here is different.
Question 287
An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. Which engineering change best addresses the underlying issue?
- Classify retryable versus permanent errors and route terminal failures to an observable failed state or approved recovery.
- Emit structured logs with request and trace identifiers while excluding protected values from logged fields.
- Use an appropriate CloudFront cache policy and immutable asset versioning while preserving required authentication boundaries.
- Configure the actual application readiness path and verify target-group and container health timing under the release.
Explanation
Correct Answer
B:Emit structured logs with request and trace identifiers while excluding protected values from logged fields. It directly addresses the case cause (The operational events lack a stable correlation identifier shared through the request path.) and should be verified by: A single transaction's safe logs can be joined across services without exposing credentials or raw customer data.
Incorrect Answers
A:That change addresses a Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections; it would not repair this incident.
C:That change addresses a CloudFront-served application sends all static asset requests to the origin because cache-control and behavior rules effectively disable caching; it would not repair this incident.
D:That change addresses an ECS rolling deployment keeps replacing tasks because the container health check targets a removed HTTP route even though the application serves traffic on a new path; it would not repair this incident.
Question 288
A team applies a reviewed fix for this situation: A developer increases an ECS application's memory needs but the deployment task definition still uses the old hard memory limit and the new task is killed. Which observed outcome would most convincingly validate the fix?
- A measured load test completes without out-of-memory termination while resource consumption stays within budget.
- The deployed function reads its intended fixture and receives denial on an unrelated table.
- A successful test creates the intended downstream state while a poison message routes through the defined failure path.
- The deployed package hash matches the artifact tested in CI and dependency behavior remains stable.
Explanation
Correct Answer
A:A measured load test completes without out-of-memory termination while resource consumption stays within budget. This verifies the result of review actual memory usage and publish a task-definition revision with appropriate supported CPU and memory settings.
Incorrect Answers
B:This would verify another situation: A Lambda function passes mocked unit tests but fails in a real account because its execution role cannot read the intended DynamoDB table. It does not validate the current case.
C:This would verify another situation: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. It does not validate the current case.
D:This would verify another situation: A Lambda handler deployment is approved from a green build, but the packaged source contains an unexpected dependency version introduced by a branch merge. It does not validate the current case.
Question 289
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test.
- Perform clean package builds with dependency locks and deployment-artifact smoke tests before release.
- Record exact alias, version and stack output identifiers in every deployment validation run.
- Rehearse rollback and retain version-to-source mappings for each promoted release.
- Require clean-build checks and artifact provenance during release promotion.
Explanation
Correct Answer
B:Record exact alias, version and stack output identifiers in every deployment validation run. This safeguards against a recurring cause: The test invocation does not exercise the exact deployed version and traffic-shift destination.
Incorrect Answers
A:That safeguard addresses another case: A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. It is not the control for this recurring failure.
C:That safeguard addresses another case: A Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest. It is not the control for this recurring failure.
D:That safeguard addresses another case: A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. It is not the control for this recurring failure.
Question 290
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification.
- Link resource-profile test results and container limits to each application version.
- Validate deployed stage and alias targets after API Gateway changes, not just console test invocations.
- Audit image digest provenance and reject mutable-only release identifiers in production pipelines.
- Require human review and version tags for AI-generated deployment test changes.
Explanation
Correct Answer
D:Require human review and version tags for AI-generated deployment test changes. This safeguards against a recurring cause: Generated tests are not tied to the reviewed current interface contract and can validate the wrong behavior.
Incorrect Answers
A:That safeguard addresses another case: A developer increases an ECS application's memory needs but the deployment task definition still uses the old hard memory limit and the new task is killed. It is not the control for this recurring failure.
B:That safeguard addresses another case: An API Gateway method works in the test console but its deployed production stage still points to an older Lambda alias. It is not the control for this recurring failure.
C:That safeguard addresses another case: An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. It is not the control for this recurring failure.
AWS Certified Developer - Associate DVA-C02 Practice Tests