100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 450
A microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account. Which technical dependency most directly explains this behavior?
- Storage-object permission and cryptographic key authorization are separate required checks.
- The client-side encryption key is exposed through source distribution and lacks a protected lifecycle.
- Cross-account role assumption requires both caller permission and a target role trust policy that admits the principal.
- Diagnostic responses expose secret-bearing internal context beyond what requesters require to handle errors.
Explanation
Correct Answer
C:Cross-account role assumption requires both caller permission and a target role trust policy that admits the principal. The corresponding fix is to grant only the required sts:AssumeRole action and update the target role trust relationship for the approved principal.
Incorrect Answers
A: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.
B: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 451
A Lambda image conversion function fills the available /tmp directory with temporary video frames even though memory utilization remains low. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Load testing distributes writes across shards and maintains required ordering within each chosen entity key.
- A maximum-size media fixture completes without ephemeral storage exhaustion and preserves the expected output.
- Right-size Lambda ephemeral storage or stream and clean intermediate content in bounded chunks.
- Move all temporary processing data into the read-only deployed package directory.
- Include peak temporary-disk checks and cleanup paths in the function's performance test suite.
- Use an idempotency record and conditional or transactional update bound to a stable purchase request ID.
Explanation
Correct Answers
B:A maximum-size media fixture completes without ephemeral storage exhaustion and preserves the expected output. This is the observable result required before accepting the correction.
C:Right-size Lambda ephemeral storage or stream and clean intermediate content in bounded chunks. The underlying cause is: The configured ephemeral storage capacity is independent of available function memory and is undersized for peak intermediates.
E:Include peak temporary-disk checks and cleanup paths in the function's performance test suite. This protects against the following risk: The configured ephemeral storage capacity is independent of available function memory and is undersized for peak intermediates.
Incorrect Answers
A:This would validate a different case: A game telemetry producer chooses one constant Kinesis partition key and one shard becomes throttled while available shards remain idle. It does not verify the outcome required here.
D:Move all temporary processing data into the read-only deployed package directory. That shortcut conflicts with the stated requirement.
F:That corrective action is for a different case: An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. It does not resolve this incident.
Question 452
A team applies a reviewed fix for this situation: A Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal. Which observed outcome would most convincingly validate the fix?
- A controlled execution invokes only the target Lambda and denied unintended invocations remain denied.
- The client refuses an invalid certificate and transfers the payload only through the intended encrypted endpoint.
- An agent sees only the permitted masked representation, and a request for restricted fields is denied.
- Synthetic sensitive fields do not appear in logs while correlation IDs and safe error context remain available.
Explanation
Correct Answer
A:A controlled execution invokes only the target Lambda and denied unintended invocations remain denied. This verifies the result of correct the service-principal trust and scope the execution role's Lambda invoke permissions to the intended functions.
Incorrect Answers
B:This would verify another situation: A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. It does not validate the current case.
C:This would verify another situation: A support API exposes full customer card details from DynamoDB even though agents need only last four digits and a reference code. It does not validate the current case.
D:This would verify another situation: A Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records. It does not validate the current case.
Question 453
A team applies a reviewed fix for this situation: A production release reuses a staging API Gateway stage variable that resolves to a sandbox DynamoDB table with test customer records. Which observed outcome would most convincingly validate the fix?
- The production endpoint invokes the planned alias version and rollback changes only the controlled release mapping.
- A rollback restores the identical image digest and reproduces the previous known-good application behavior.
- A production fixture calls only the approved production endpoint while staging continues to use isolated resources.
- Production requests use only the production table while test-stage data stays isolated.
Explanation
Correct Answer
D:Production requests use only the production table while test-stage data stays isolated. This verifies the result of apply reviewed per-stage variables or AppConfig values and assert resource identity at deployment time.
Incorrect Answers
A:This would verify another situation: A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias. It does not validate the current case.
B:This would verify another situation: An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. It does not validate the current case.
C:This would verify another situation: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. It does not validate the current case.
Question 454
A developer updates an AWS SAM template in a shared test account and unexpectedly removes a resource another team's integration tests still need. Which technical dependency most directly explains this behavior?
- Environment-specific runtime configuration is not validated against the production deployment boundary.
- Mutable artifact references allow tasks in one nominal release to resolve to different image content.
- Generated tests are not tied to the reviewed current interface contract and can validate the wrong behavior.
- The staging deployment lacks isolation and a reviewed change-set boundary for shared infrastructure.
Explanation
Correct Answer
D:The staging deployment lacks isolation and a reviewed change-set boundary for shared infrastructure. The corresponding fix is to use isolated stage stacks or resource names and inspect deployment changes before applying the updated template.
Incorrect Answers
A:This diagnosis addresses another AWS case: A production release reuses a staging API Gateway stage variable that resolves to a sandbox DynamoDB table with test customer records. The dependency here is different.
B:This diagnosis addresses another AWS case: A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. The dependency here is different.
C: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.
Question 455
An online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address. Which technical dependency most directly explains this behavior?
- The read implementation lacks a designed key or index matching the predominant query predicate.
- Layer binaries or dependencies are incompatible with the configured runtime or CPU architecture.
- The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.
- The configured ephemeral storage capacity is independent of available function memory and is undersized for peak intermediates.
Explanation
Correct Answer
A:The read implementation lacks a designed key or index matching the predominant query predicate. The corresponding fix is to define a supported email lookup index or explicit alternate-key mapping and use Query with appropriate authorization.
Incorrect Answers
B:This diagnosis addresses another AWS case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. The dependency here is different.
C:This diagnosis addresses another AWS case: A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes. The dependency here is different.
D:This diagnosis addresses another AWS case: A Lambda image conversion function fills the available /tmp directory with temporary video frames even though memory utilization remains low. The dependency here is different.
Question 456
A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. Which engineering change best addresses the underlying issue?
- Constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context.
- Grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role.
- Apply an approved keyed tokenization or privacy-preserving identifier design with appropriate reidentification controls.
- Enforce the appropriate access token use and verify configured OAuth scopes and resource-level permissions.
Explanation
Correct Answer
C:Apply an approved keyed tokenization or privacy-preserving identifier design with appropriate reidentification controls. It directly addresses the case cause (Low-entropy identifiers remain vulnerable to dictionary attacks despite using a one-way hash function.) and should be verified by: A threat-model review shows predictable candidate inputs cannot trivially recover protected identities from public tokens.
Incorrect Answers
A:That change addresses an API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource; it would not repair this incident.
B:That change addresses 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; it would not repair this incident.
D:That change addresses a Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation; it would not repair this incident.
Question 457
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A customer search feature indexes JSON documents in OpenSearch but maps product price as text and numeric range filters behave incorrectly.
- Test secret refresh behavior and scan deployed artifacts and logs for exposed credential values.
- Maintain negative request fixtures and validate model updates before deploying a new API stage.
- Test network connectivity independently from credential validity whenever Lambda VPC configuration changes.
- Check representative field mappings and query results before index version promotion.
Explanation
Correct Answer
D:Check representative field mappings and query results before index version promotion. This safeguards against a recurring cause: The indexed field mapping does not represent the numeric comparison semantics required by the application.
Incorrect Answers
A:That safeguard addresses another case: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. It is not the control for this recurring failure.
B:That safeguard addresses another case: An API Gateway REST endpoint accepts requests missing customerId and passes invalid records to a Lambda function that stores them. It is not the control for this recurring failure.
C:That safeguard addresses another 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 is not the control for this recurring failure.
Question 458
A Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest. Select TWO complementary measures that correctly repair and validate this failure.
- Record immutable published versions and implement a tested rollback through alias or supported deployment controls.
- The obsolete test assertion fails review while the approved request and response contract passes.
- Repackage the code so the deployed handler path, modules and ZIP directory root agree.
- Redeploy whatever source is on the default branch and call it the last known-good version.
- A simulated bad release restores the exact previously verified version with expected response behavior.
Explanation
Correct Answers
A:Record immutable published versions and implement a tested rollback through alias or supported deployment controls. The underlying cause is: Release history and alias version identifiers are not preserved as rollback artifacts.
E:A simulated bad release restores the exact previously verified version with expected response behavior. This is the observable result required before accepting the correction.
Incorrect Answers
B:This would validate a different case: 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 verify the outcome required here.
C:That corrective action is for a different case: A Python Lambda project includes its source file but omits the required top-level package directory layout for the configured handler. It does not resolve this incident.
D:Redeploy whatever source is on the default branch and call it the last known-good version. That shortcut conflicts with the stated requirement.
Question 459
A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes. Which engineering change best addresses the underlying issue?
- Check the session expiry attribute in application authorization and use TTL only for eventual physical cleanup.
- Use appropriate reserved concurrency and buffering policies to protect the notification workflow and account quota.
- Apply capped exponential backoff with jitter and supported Retry-After handling and fail predictably after a defined retry budget.
- Define the required request model and enable request validation before the integration proceeds to Lambda.
Explanation
Correct Answer
B:Use appropriate reserved concurrency and buffering policies to protect the notification workflow and account quota. It directly addresses the case cause (The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.) and should be verified by: A burst test keeps notification latency within the objective while producer backpressure remains controlled.
Incorrect Answers
A:That change addresses 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 would not repair this incident.
C:That change addresses a payment application calls a rate-limited partner REST API and immediately retries HTTP 429 responses until the partner suspends access; it would not repair this incident.
D:That change addresses an API Gateway REST endpoint accepts requests missing customerId and passes invalid records to a Lambda function that stores them; it would not repair this incident.
Question 460
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias.
- Check API integration targets and alias qualifiers in every deployment smoke test.
- Compare stage configurations in pipeline checks and reject production deployments with test environment identifiers.
- Add resource-identity assertions and denied test-resource references to the deployment gate.
- Assert test-mode provider credentials and outbound endpoint destinations in the pipeline setup.
Explanation
Correct Answer
A:Check API integration targets and alias qualifiers in every deployment smoke test. This safeguards against a recurring cause: The API deployment target bypasses the intended versioned release and rollback boundary.
Incorrect Answers
B:That safeguard addresses another case: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. 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.
D:That safeguard addresses another case: A checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs. It is not the control for this recurring failure.
AWS Certified Developer - Associate DVA-C02 Practice Tests