100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 180
An SQS FIFO worker processes updates for unrelated customers slowly because every message is assigned the identical message group ID. Which engineering change best addresses the underlying issue?
- 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.
- Use a stable per-customer message group identifier that maintains customer ordering without serializing unrelated customers.
- Define a supported email lookup index or explicit alternate-key mapping and use Query with appropriate authorization.
Explanation
Correct Answer
C:Use a stable per-customer message group identifier that maintains customer ordering without serializing unrelated customers. It directly addresses the case cause (FIFO ordering serializes messages within one group and the producer has unnecessarily collapsed independent work.) and should be verified by: Parallel customer groups progress independently while sequential updates for one customer retain their order.
Incorrect Answers
A:That change addresses a DynamoDB table partitions all tenant activity by one static calendar-day key and hot writes throttle despite spare overall capacity; it would not repair this incident.
B:That change addresses a Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code; it would not repair this incident.
D:That change addresses an online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address; it would not repair this incident.
Question 181
A service-to-service request forwards an unvalidated user token as if it were a trusted workload identity across multiple microservices. Which technical dependency most directly explains this behavior?
- The response model does not enforce data minimization and permits sensitive fields beyond the support purpose.
- The analytics integration crosses the trust boundary with unnecessary authentication and personal data.
- The downstream service lacks a clear issuer, audience and delegation contract for the token it receives.
- Storage-object permission and cryptographic key authorization are separate required checks.
Explanation
Correct Answer
C:The downstream service lacks a clear issuer, audience and delegation contract for the token it receives. The corresponding fix is to use validated workload credentials or a supported token-exchange model with explicit audience and authorization boundaries.
Incorrect Answers
A:This diagnosis addresses another AWS case: A support API exposes full customer card details from DynamoDB even though agents need only last four digits and a reference code. The dependency here is different.
B:This diagnosis addresses another AWS case: A microservice forwards raw end-user tokens from headers to a third-party analytics endpoint, although analytics needs only event type and status. The dependency here is different.
D:This diagnosis addresses another AWS case: An S3 application uses SSE-KMS but a Lambda download fails because its role can call GetObject but cannot decrypt with the customer-managed key. The dependency here is different.
Question 182
An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. Which technical dependency most directly explains this behavior?
- A mutable image tag is being treated as an immutable release artifact identity.
- The test fixture does not represent the service's documented event envelope.
- Release history and alias version identifiers are not preserved as rollback artifacts.
- The test invocation does not exercise the exact deployed version and traffic-shift destination.
Explanation
Correct Answer
A:A mutable image tag is being treated as an immutable release artifact identity. The corresponding fix is to deploy pinned image digests or immutable release tags and record the exact reviewed artifact in the service revision.
Incorrect Answers
B:This diagnosis addresses another AWS case: 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. The dependency here is different.
C:This diagnosis addresses another AWS 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. The dependency here is different.
D: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.
Question 183
A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. Which engineering change best addresses the underlying issue?
- Use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys.
- Check attachment ownership and request context before issuing a narrowly scoped, expiring presigned URL.
- Use validated workload credentials or a supported token-exchange model with explicit audience and authorization boundaries.
- Require authenticated TLS transport and approved endpoint identity validation for the outbound request.
Explanation
Correct Answer
D:Require authenticated TLS transport and approved endpoint identity validation for the outbound request. It directly addresses the case cause (Encryption at rest is not a transport security control for the application-to-partner connection.) and should be verified by: The client refuses an invalid certificate and transfers the payload only through the intended encrypted endpoint.
Incorrect Answers
A:That change addresses an ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role; it would not repair this incident.
B:That change addresses an S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing; it would not repair this incident.
C:That change addresses a service-to-service request forwards an unvalidated user token as if it were a trusted workload identity across multiple microservices; it would not repair this incident.
Question 184
A Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal. Which technical dependency most directly explains this behavior?
- The execution role trust relationship does not permit the service running the state machine to assume it.
- A cryptographic secret is exposed through operational telemetry and is not protected by access separation.
- The intended recipient identity and key-policy permissions have not been coordinated for cross-account decryption.
- Client-side validation can be bypassed and the output encoding contract does not protect the rendered page.
Explanation
Correct Answer
A:The execution role trust relationship does not permit the service running the state machine to assume it. The corresponding fix is to correct the service-principal trust and scope the execution role's Lambda invoke permissions to the intended functions.
Incorrect Answers
B:This diagnosis addresses another AWS case: A service encrypts every application response with one reusable symmetric key and logs that key during debugging to make support easier. The dependency here is different.
C:This diagnosis addresses another AWS case: An application decrypts data with a customer-managed KMS key in the source AWS account but fails after moving the encrypted data to a second account. The dependency here is different.
D:This diagnosis addresses another AWS case: A developer sanitizes a user-submitted comment only on the browser, and malicious HTML is stored and displayed to other users. The dependency here is different.
Question 185
An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. Which engineering change best addresses the underlying issue?
- Inject a deterministic payment mock or provider-approved sandbox in CI and reserve live calls for explicitly authorized tests.
- Add event-driven integration fixtures that assert downstream side effects, retries and failure destinations after controlled delivery.
- Invoke and verify the new qualified alias and inspect the IaC change set before rollout.
- Deploy pinned image digests or immutable release tags and record the exact reviewed artifact in the service revision.
Explanation
Correct Answer
D:Deploy pinned image digests or immutable release tags and record the exact reviewed artifact in the service revision. It directly addresses the case cause (A mutable image tag is being treated as an immutable release artifact identity.) and should be verified by: A rollback restores the identical image digest and reproduces the previous known-good application behavior.
Incorrect Answers
A:That change addresses a checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs; it would not repair this incident.
B:That change addresses an application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure; 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 186
A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception. Which technical dependency most directly explains this behavior?
- The subscription has no effective message-attribute filtering contract and routes all eligible published messages.
- The checkpoint and retry scope are not aligned with record-level failure handling and idempotent effects.
- Global secondary index reads provide eventual consistency and cannot supply a strongly consistent read mode.
- The integration code assumes the wrong documented event-envelope structure for this event source.
Explanation
Correct Answer
B:The checkpoint and retry scope are not aligned with record-level failure handling and idempotent effects. The corresponding fix is to use supported partial batch response or bisect handling where applicable and idempotent downstream writes.
Incorrect Answers
A:This diagnosis addresses another AWS case: 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. The dependency here is different.
C:This diagnosis addresses another AWS case: A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. The dependency here is different.
D:This diagnosis addresses another AWS case: A Lambda target receives an EventBridge envelope but its handler reads customerId at the top level instead of under detail. The dependency here is different.
Question 187
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. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- The same user can GET the approved record but cannot DELETE a different record through the authorization cache.
- Let clients choose any S3 path as long as the request contains a valid JWT.
- Cross-tenant prefix probes fail while an authorized tenant can export only its own records.
- Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output.
- Test URL, body, header and storage-prefix tenant tampering in every export release.
- Correct the service-principal trust and scope the execution role's Lambda invoke permissions to the intended functions.
Explanation
Correct Answers
C:Cross-tenant prefix probes fail while an authorized tenant can export only its own records. This is the observable result required before accepting the correction.
D:Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output. The underlying cause is: Tenant isolation is enforced from caller-controlled text instead of a trusted authorization context.
E:Test URL, body, header and storage-prefix tenant tampering in every export release. This protects against the following risk: Tenant isolation is enforced from caller-controlled text instead of a trusted authorization context.
Incorrect Answers
A:This would validate a different case: An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource. It does not verify the outcome required here.
B:Let clients choose any S3 path as long as the request contains a valid JWT. That shortcut conflicts with the stated requirement.
F:That corrective action is for a different case: A Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal. It does not resolve this incident.
Question 188
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? 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.
- Review pipeline stage dependencies and compare commit and artifact IDs across every gate.
- Track end-to-end event IDs in tests instead of relying solely on producer status codes.
- Add resource-identity assertions and denied test-resource references to the deployment gate.
- Link resource-profile test results and container limits to each application version.
Explanation
Correct Answer
D:Link resource-profile test results and container limits to each application version. This safeguards against a recurring cause: The packaged workload's resource requirements are not reflected in the deployed task definition.
Incorrect Answers
A:That safeguard addresses another case: A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running. It is not the control for this recurring failure.
B: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 production release reuses a staging API Gateway stage variable that resolves to a sandbox DynamoDB table with test customer records. It is not the control for this recurring failure.
Question 189
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors.
- Include deployment health probe routes and failure status behavior in release smoke tests.
- Review subscription filter coverage when event schemas evolve and monitor filtered delivery counts.
- Test each documented error category and inspect execution histories after workflow changes.
- Keep metric definitions, dimensions and accepted transaction reconciliation tests under version control.
Explanation
Correct Answer
D:Keep metric definitions, dimensions and accepted transaction reconciliation tests under version control. This safeguards against a recurring cause: Infrastructure invocation metrics have been confused with an accepted domain-specific business outcome.
Incorrect Answers
A:That safeguard addresses another case: 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 is not the control for this recurring failure.
B:That safeguard addresses another case: An SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates. It is not the control for this recurring failure.
C:That safeguard addresses another case: A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections. It is not the control for this recurring failure.
Question 190
A Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records. Which technical dependency most directly explains this behavior?
- Debug logging ignores data classification and unnecessarily retains sensitive fields outside their intended processing boundary.
- The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.
- Encryption at rest is not a transport security control for the application-to-partner connection.
- The application confuses authentication identity claims with the access-token authorization contract.
Explanation
Correct Answer
A:Debug logging ignores data classification and unnecessarily retains sensitive fields outside their intended processing boundary. The corresponding fix is to log structured allowlisted metadata and redact secrets and personal values before emitting operational events.
Incorrect Answers
B:This diagnosis addresses another AWS case: An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. The dependency here is different.
C: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.
D:This diagnosis addresses another AWS case: A Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation. The dependency here is different.
AWS Certified Developer - Associate DVA-C02 Practice Tests