100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 150
A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. Which engineering change best addresses the underlying issue?
- Record immutable published versions and implement a tested rollback through alias or supported deployment controls.
- Add event-driven integration fixtures that assert downstream side effects, retries and failure destinations after controlled delivery.
- Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
- Inspect the stack change set, correct the template and enforce appropriate retention or protection policies before execution.
Explanation
Correct Answer
C:Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch. It directly addresses the case cause (The build embeds environment configuration that does not match its deployment stage.) and should be verified by: A production fixture calls only the approved production endpoint while staging continues to use isolated resources.
Incorrect Answers
A: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.
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.
D:That change addresses a new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly; it would not repair this incident.
Question 151
A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. 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.
- The application confuses authentication identity claims with the access-token authorization contract.
- Certificate lifecycle and deployment artifact lifetimes are incorrectly coupled without monitoring or rotation.
- Low-entropy identifiers remain vulnerable to dictionary attacks despite using a one-way hash function.
Explanation
Correct Answer
D:Low-entropy identifiers remain vulnerable to dictionary attacks despite using a one-way hash function. The corresponding fix is to apply an approved keyed tokenization or privacy-preserving identifier design with appropriate reidentification controls.
Incorrect Answers
A:This diagnosis addresses another AWS case: A Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal. The dependency here is different.
B: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.
C:This diagnosis addresses another AWS case: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. The dependency here is different.
Question 152
A team applies a reviewed fix for this situation: A browser uploads media using a presigned S3 URL after its short expiry, causing intermittent HTTP 403 responses during slow mobile sessions. Which observed outcome would most convincingly validate the fix?
- A malformed event is isolated and unaffected records complete without duplicated observable updates.
- An expired URL is rejected and an authorized fresh URL completes an upload to the intended key.
- A controlled invocation opens the intended database connection without exposing its port to the public internet.
- Concurrent checkout attempts never reserve more stock than exists even when cached views are stale.
Explanation
Correct Answer
B:An expired URL is rejected and an authorized fresh URL completes an upload to the intended key. This verifies the result of issue a fresh scoped presigned URL before retrying and set an expiration policy appropriate to the upload flow.
Incorrect Answers
A:This would verify another situation: A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception. It does not validate the current case.
C:This would verify another situation: 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 validate the current case.
D:This would verify another situation: A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. It does not validate the current case.
Question 153
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A mobile backend makes five sequential AWS SDK calls for independent reads and misses its API latency SLA despite low individual service latency.
- Test API Gateway proxy response envelopes rather than testing only direct Lambda return values.
- Profile call waterfalls and concurrency limits rather than only measuring individual SDK method duration.
- Require correlation ID propagation and structured-log schemas in service integration tests.
- Include deployment health probe routes and failure status behavior in release smoke tests.
Explanation
Correct Answer
B:Profile call waterfalls and concurrency limits rather than only measuring individual SDK method duration. This safeguards against a recurring cause: The application introduces avoidable serialized dependency time in an otherwise independent read path.
Incorrect Answers
A:That safeguard addresses another case: An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. It is not the control for this recurring failure.
C:That safeguard addresses another case: An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. It is not the control for this recurring failure.
D: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.
Question 154
An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. Which technical dependency most directly explains this behavior?
- Unfiltered subscriber delivery wastes processing and creates avoidable downstream concurrency and cost.
- The operational events lack a stable correlation identifier shared through the request path.
- Insufficient allocated compute resources prolong CPU-bound execution and can make total runtime less cost-efficient.
- The application introduces avoidable serialized dependency time in an otherwise independent read path.
Explanation
Correct Answer
B:The operational events lack a stable correlation identifier shared through the request path. The corresponding fix is to emit structured logs with request and trace identifiers while excluding protected values from logged fields.
Incorrect Answers
A: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 Lambda function is configured with very low memory and CPU allocation; its compute-heavy document conversion spends most time in local processing. The dependency here is different.
D:This diagnosis addresses another AWS case: A mobile backend makes five sequential AWS SDK calls for independent reads and misses its API latency SLA despite low individual service latency. The dependency here is different.
Question 155
A Lambda request makes an SDK call that succeeds in one Region but fails with ResourceNotFound in another because its client uses a default Region. Which engineering change best addresses the underlying issue?
- Construct the client with the reviewed resource Region and verify resource identifiers and service endpoint configuration.
- Use an appropriate CloudFront cache policy and immutable asset versioning while preserving required authentication boundaries.
- Emit an approved failure metric and configure CloudWatch alarms with a verified SNS or equivalent on-call destination.
- Configure an SNS subscription filter policy for the approved media event attributes and validate publisher metadata.
Explanation
Correct Answer
A:Construct the client with the reviewed resource Region and verify resource identifiers and service endpoint configuration. It directly addresses the case cause (Service client configuration references a different Region from the intended resource and deployment context.) and should be verified by: The same fixture targets the correct regional resource and receives the expected authorized response.
Incorrect Answers
B: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.
C:That change addresses a Lambda service logs detailed failures but has no alarm tied to failed business transactions, so the on-call team learns about a payment outage from customers; it would not repair this incident.
D:That change addresses an SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates; it would not repair this incident.
Question 156
A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. Which technical dependency most directly explains this behavior?
- The published package does not contain the runtime dependency closure expected by the handler.
- The staging and production integration versions are not aligned with the intended release.
- The test invocation does not exercise the exact deployed version and traffic-shift destination.
- Mutable artifact references allow tasks in one nominal release to resolve to different image content.
Explanation
Correct Answer
A:The published package does not contain the runtime dependency closure expected by the handler. The corresponding fix is to bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact.
Incorrect Answers
B:This diagnosis addresses another AWS case: An API Gateway method works in the test console but its deployed production stage still points to an older Lambda alias. 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 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.
Question 157
A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Require clean-build checks and artifact provenance during release promotion.
- The artifact's version marker and hash correspond exactly to the source commit that triggered the pipeline.
- A fresh Lambda initialization imports the configured handler and processes the expected test event successfully.
- Use clean reproducible builds with explicit artifact paths and record source revision and resulting digest.
- Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
- Copy old generated directories forward to make each build finish faster.
Explanation
Correct Answers
A:Require clean-build checks and artifact provenance during release promotion. This protects against the following risk: The build environment or packaging step does not guarantee a clean, source-bound output.
B:The artifact's version marker and hash correspond exactly to the source commit that triggered the pipeline. This is the observable result required before accepting the correction.
D:Use clean reproducible builds with explicit artifact paths and record source revision and resulting digest. The underlying cause is: The build environment or packaging step does not guarantee a clean, source-bound output.
Incorrect Answers
C:This would validate 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 verify the outcome required here.
E:That corrective action is for a different case: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. It does not resolve this incident.
F:Copy old generated directories forward to make each build finish faster. That shortcut conflicts with the stated requirement.
Question 158
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. Which technical dependency most directly explains this behavior?
- Uncertain success and non-idempotent updates allow a repeated request to apply the stock change more than once.
- Generated source is being treated as trusted rather than code requiring human review and least-privilege validation.
- The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs.
- Correct credentials cannot bypass a missing VPC route, private DNS or restrictive security group path.
Explanation
Correct Answer
B:Generated source is being treated as trusted rather than code requiring human review and least-privilege validation. The corresponding fix is to review generated changes, replace broad permissions with the minimum actions and resources, and run approved security and behavior tests.
Incorrect Answers
A:This diagnosis addresses another AWS case: An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. The dependency here is different.
C:This diagnosis addresses another AWS case: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. The dependency here is different.
D:This diagnosis addresses another AWS 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. The dependency here is different.
Question 159
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. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Test network connectivity independently from credential validity whenever Lambda VPC configuration changes.
- Multi-page test accounts display all authorized records with no gaps or duplicate page boundaries.
- Validate the function's subnet and security groups, database endpoint resolution and permitted inbound database port.
- Open the RDS security group to 0.0.0.0/0 to make the function connect.
- Use a suitably keyed base-table or local secondary index strongly consistent read path when strict consistency is required.
- A controlled invocation opens the intended database connection without exposing its port to the public internet.
Explanation
Correct Answers
A:Test network connectivity independently from credential validity whenever Lambda VPC configuration changes. This protects against the following risk: Correct credentials cannot bypass a missing VPC route, private DNS or restrictive security group path.
C:Validate the function's subnet and security groups, database endpoint resolution and permitted inbound database port. The underlying cause is: Correct credentials cannot bypass a missing VPC route, private DNS or restrictive security group path.
F:A controlled invocation opens the intended database connection without exposing its port to the public internet. This is the observable result required before accepting the correction.
Incorrect Answers
B:This would validate 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 verify the outcome required here.
D:Open the RDS security group to 0.0.0.0/0 to make the function connect. That shortcut conflicts with the stated requirement.
E:That corrective action is for a different case: A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. It does not resolve this incident.
Question 160
An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. Which technical dependency most directly explains this behavior?
- The response model does not enforce data minimization and permits sensitive fields beyond the support purpose.
- Storage-object permission and cryptographic key authorization are separate required checks.
- The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.
- The analytics integration crosses the trust boundary with unnecessary authentication and personal data.
Explanation
Correct Answer
C:The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object. The corresponding fix is to check attachment ownership and request context before issuing a narrowly scoped, expiring presigned URL.
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: 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.
D: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.
AWS Certified Developer - Associate DVA-C02 Practice Tests