100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 300
A browser uploads media using a presigned S3 URL after its short expiry, causing intermittent HTTP 403 responses during slow mobile sessions. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Turn the upload bucket public so an expired signature never matters.
- Issue a fresh scoped presigned URL before retrying and set an expiration policy appropriate to the upload flow.
- Trim unused dependencies and initialization work and measure whether provisioned concurrency is justified for the latency requirement.
- Test clock skew, upload duration, retry expiry and key scope in the browser-to-S3 workflow.
- An expired URL is rejected and an authorized fresh URL completes an upload to the intended key.
- An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
Explanation
Correct Answers
B:Issue a fresh scoped presigned URL before retrying and set an expiration policy appropriate to the upload flow. The underlying cause is: The presigned request is no longer valid at transfer time and cannot be extended by a client-side retry alone.
D:Test clock skew, upload duration, retry expiry and key scope in the browser-to-S3 workflow. This protects against the following risk: The presigned request is no longer valid at transfer time and cannot be extended by a client-side retry alone.
E:An expired URL is rejected and an authorized fresh URL completes an upload to the intended key. This is the observable result required before accepting the correction.
Incorrect Answers
A:Turn the upload bucket public so an expired signature never matters. That shortcut conflicts with the stated requirement.
C:That corrective action is for 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 resolve this incident.
F:This would validate a different case: A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. It does not verify the outcome required here.
Question 301
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest.
- Record exact alias, version and stack output identifiers in every deployment validation run.
- Link resource-profile test results and container limits to each application version.
- Compare build attestations and digests at promotion and rollback gates.
- Rehearse rollback and retain version-to-source mappings for each promoted release.
Explanation
Correct Answer
D:Rehearse rollback and retain version-to-source mappings for each promoted release. This safeguards against a recurring cause: Release history and alias version identifiers are not preserved as rollback artifacts.
Incorrect Answers
A:That safeguard addresses another case: A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test. It is not the control for this recurring failure.
B: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.
C:That safeguard addresses another case: 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 is not the control for this recurring failure.
Question 302
A team applies a reviewed fix for this situation: A Lambda unit test mocks an EventBridge event as a flat payload but the actual event carries fields under detail and the deployed handler crashes. Which observed outcome would most convincingly validate the fix?
- The obsolete test assertion fails review while the approved request and response contract passes.
- The deployed target accepts the real envelope and rejects malformed events with controlled errors.
- Injected failures during initial traffic shift stop promotion and restore the intended prior version.
- The artifact's version marker and hash correspond exactly to the source commit that triggered the pipeline.
Explanation
Correct Answer
B:The deployed target accepts the real envelope and rejects malformed events with controlled errors. This verifies the result of build representative EventBridge envelopes and run handler contract tests against the actual integration schema.
Incorrect Answers
A:This would verify another situation: A team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification. It does not validate the current case.
C:This would verify another situation: A CodeDeploy Lambda rollout shifts all traffic to a new version at once and customers encounter failures before an alarm can stop the release. It does not validate the current case.
D:This would verify another situation: A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. It does not validate the current case.
Question 303
A Lambda application reports frequent downstream DynamoDB 429-style throttles but dashboards show low function CPU and developers assume the handler is healthy. Which technical dependency most directly explains this behavior?
- The operational events lack a stable correlation identifier shared through the request path.
- The health probe measures process existence instead of the application's actual request-readiness prerequisites.
- Function compute utilization is not evidence that an external database dependency has sufficient read or write capacity.
- Infrastructure invocation metrics have been confused with an accepted domain-specific business outcome.
Explanation
Correct Answer
C:Function compute utilization is not evidence that an external database dependency has sufficient read or write capacity. The corresponding fix is to correlate DynamoDB throttling and partition metrics with Lambda request traces and adjust access patterns or capacity within limits.
Incorrect Answers
A:This diagnosis addresses another AWS case: An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. The dependency here is different.
B:This diagnosis addresses another AWS case: A Kubernetes-style container endpoint reports ready whenever the process runs but cannot serve requests until its downstream cache warms after startup. The dependency here is different.
D:This diagnosis addresses another AWS case: A CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors. The dependency here is different.
Question 304
An API Gateway method works in the test console but its deployed production stage still points to an older Lambda alias. Which engineering change best addresses the underlying issue?
- Generate and test a provenance-tagged artifact and deploy the same digest after all required checks pass.
- Record immutable published versions and implement a tested rollback through alias or supported deployment controls.
- Invoke and verify the new qualified alias and inspect the IaC change set before rollout.
- Inspect the stage deployment and integration URI, then publish the correct stage or alias binding under release controls.
Explanation
Correct Answer
D:Inspect the stage deployment and integration URI, then publish the correct stage or alias binding under release controls. It directly addresses the case cause (The staging and production integration versions are not aligned with the intended release.) and should be verified by: The production endpoint returns the reviewed version marker and the staging endpoint remains isolated.
Incorrect Answers
A:That change addresses 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 would not repair this incident.
B:That change addresses 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 would not repair this incident.
C:That change addresses a CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test; it would not repair this incident.
Question 305
A team applies a reviewed fix for this situation: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. Which observed outcome would most convincingly validate the fix?
- An expired URL is rejected and an authorized fresh URL completes an upload to the intended key.
- The function succeeds after a controlled secret rotation without source-code changes or credential logging.
- Transient throttling recovers within the agreed budget while persistent throttling yields a controlled failure instead of a storm.
- A fixture larger than one response page reconciles every expected object key without duplicate processing.
Explanation
Correct Answer
B:The function succeeds after a controlled secret rotation without source-code changes or credential logging. This verifies the result of retrieve the approved credential from an access-controlled secrets store with narrow runtime authorization and rotation handling.
Incorrect Answers
A:This would verify another situation: A browser uploads media using a presigned S3 URL after its short expiry, causing intermittent HTTP 403 responses during slow mobile sessions. It does not validate the current case.
C:This would verify another situation: A payment application calls a rate-limited partner REST API and immediately retries HTTP 429 responses until the partner suspends access. It does not validate the current case.
D:This would verify another situation: An AWS SDK program lists the first page of S3 objects and a nightly reconciliation misses records once a prefix exceeds the page limit. It does not validate the current case.
Question 306
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A CodeDeploy Lambda rollout shifts all traffic to a new version at once and customers encounter failures before an alarm can stop the release.
- Track end-to-end event IDs in tests instead of relying solely on producer status codes.
- Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment.
- Maintain positive and negative test events with explicit expected outcomes for published handler versions.
- Link resource-profile test results and container limits to each application version.
Explanation
Correct Answer
B:Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment. This safeguards against a recurring cause: The deployment has no staged exposure or effective rollback trigger for the new code.
Incorrect Answers
A:That safeguard addresses another case: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. It is not the control for this recurring failure.
C:That safeguard addresses another case: A deployment pipeline sends a test event to a Lambda but never asserts output values, so a handler returns HTTP 200 with an invalid business result. It is not the control for this recurring failure.
D: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.
Question 307
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry.
- Test secret refresh, role access, and artifact scans whenever deployment configuration changes.
- Test stored and reflected script-like payloads through the full API-to-rendering workflow.
- Test signing-key rotation and negative JWT fixtures in authentication middleware changes.
- Run privacy-redaction log fixtures and enforce scoped retention and readers for sensitive services.
Explanation
Correct Answer
C:Test signing-key rotation and negative JWT fixtures in authentication middleware changes. This safeguards against a recurring cause: Base64 decoding alone does not authenticate token origin or prove that its claims are still valid.
Incorrect Answers
A:That safeguard addresses another case: An application embeds its payment gateway token directly in a Lambda environment variable managed in plain text by several developers. It is not the control for this recurring failure.
B:That safeguard addresses another case: A developer sanitizes a user-submitted comment only on the browser, and malicious HTML is stored and displayed to other users. It is not the control for this recurring failure.
D:That safeguard addresses another case: A Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records. It is not the control for this recurring failure.
Question 308
An ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role. Which technical dependency most directly explains this behavior?
- Static credentials bypass role-based rotation and may override the intended scoped task role credential chain.
- Encryption at rest is not a transport security control for the application-to-partner connection.
- The client-side encryption key is exposed through source distribution and lacks a protected lifecycle.
- Diagnostic responses expose secret-bearing internal context beyond what requesters require to handle errors.
Explanation
Correct Answer
A:Static credentials bypass role-based rotation and may override the intended scoped task role credential chain. The corresponding fix is to use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys.
Incorrect Answers
B:This diagnosis addresses another AWS case: A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. The dependency here is different.
C:This diagnosis addresses another AWS case: A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. The dependency here is different.
D:This diagnosis addresses another AWS case: An API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers. The dependency here is different.
Question 309
A DynamoDB table partitions all tenant activity by one static calendar-day key and hot writes throttle despite spare overall capacity. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Load-test key distributions and evaluate hot partition metrics before schema rollout.
- Peak traffic distributes across partitions without losing authorized tenant retrieval behavior.
- Redesign keys to distribute writes across suitable high-cardinality identifiers while supporting documented lookup patterns.
- Retrieve the approved credential from an access-controlled secrets store with narrow runtime authorization and rotation handling.
- Increase retries indefinitely without evaluating the partition-key design.
- Parallel customer groups progress independently while sequential updates for one customer retain their order.
Explanation
Correct Answers
A:Load-test key distributions and evaluate hot partition metrics before schema rollout. This protects against the following risk: The partition-key strategy concentrates a large workload on a small physical key distribution.
B:Peak traffic distributes across partitions without losing authorized tenant retrieval behavior. This is the observable result required before accepting the correction.
C:Redesign keys to distribute writes across suitable high-cardinality identifiers while supporting documented lookup patterns. The underlying cause is: The partition-key strategy concentrates a large workload on a small physical key distribution.
Incorrect Answers
D:That corrective action is for a different case: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. It does not resolve this incident.
E:Increase retries indefinitely without evaluating the partition-key design. That shortcut conflicts with the stated requirement.
F:This would validate a different case: An SQS FIFO worker processes updates for unrelated customers slowly because every message is assigned the identical message group ID. It does not verify the outcome required here.
Question 310
A team applies a reviewed fix for this situation: A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception. Which observed outcome would most convincingly validate the fix?
- A malformed event is isolated and unaffected records complete without duplicated observable updates.
- An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
- A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription.
- An expired URL is rejected and an authorized fresh URL completes an upload to the intended key.
Explanation
Correct Answer
A:A malformed event is isolated and unaffected records complete without duplicated observable updates. This verifies the result of use supported partial batch response or bisect handling where applicable and idempotent downstream writes.
Incorrect Answers
B:This would verify another situation: A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. It does not validate the current case.
C:This would verify another situation: A publishing service sends an SNS notification to every subscriber even though only the fraud service should receive alerts with eventType equal to high_risk. It does not validate the current case.
D:This would verify another situation: A browser uploads media using a presigned S3 URL after its short expiry, causing intermittent HTTP 403 responses during slow mobile sessions. It does not validate the current case.
AWS Certified Developer - Associate DVA-C02 Practice Tests