DVA-C02PRACTICE QUESTIONS

DVA-C02 practice questions with answers

4 example questions from the AWS Certified Developer - Associate question bank, grouped by exam domain. Pick an answer and check it to see the explanation.

Development with AWS Services

Question 1Select 1

null Develop code for AWS Lambda

A developer configures an AWS Lambda function to use private subnets in a VPC so that it can call an internal inventory service. The function successfully calls the internal service, but calls to a third-party HTTPS API now time out. The third-party API is available only through a public IPv4 endpoint and does not support AWS PrivateLink. DNS resolution succeeds, and security groups and network ACLs allow the required traffic. The private subnet route tables contain only the VPC local route. The VPC also has a public subnet with a route to an internet gateway. Which change will allow the function to call both services?

Security

Question 1Select 1

null Manage sensitive data in application code

A company is developing a multi-tenant mobile application. Users authenticate with an Amazon Cognito user pool. An administrator assigns each user a custom:tenantId attribute that app clients cannot modify. Several users belong to each tenant and must share access to that tenant's records. Records are stored in one Amazon DynamoDB table with tenantId as the partition key and recordId as the sort key. The mobile application must call DynamoDB directly by using temporary AWS credentials. Users must be allowed to perform only GetItem and Query operations on their own tenant's records. The company wants to use a single IAM permissions policy for all tenants. Which solution meets these requirements?

Deployment

Question 1Select 1

null Automate deployment testing

A team maintains a single AWS Lambda function. Its deployment pipeline must provide stable invocation ARNs for automated integration tests and production clients. While integration tests run, other builds can update the function's unpublished code. The tests must continue invoking exactly the candidate revision selected at the start of the test run, and production must remain unchanged. After approval, the pipeline must promote the tested revision and support rollback without uploading code again. Which solution meets these requirements?

Troubleshooting and Optimization

Question 1Select 1

null Assist in a root cause analysis

A developer updates an Amazon API Gateway REST API to invoke the prod alias of an AWS Lambda function instead of the test alias. After the API is redeployed, requests return HTTP 500. API Gateway execution logs report "Invalid permissions on Lambda function," and no invocations reach the prod alias. The API uses Lambda proxy integration without an IAM credentials role. Clients are authorized to invoke the API. The Lambda resource-based policy permits apigateway.amazonaws.com to invoke only the test alias, and no explicit deny policies apply. Which change should the developer make to resolve the integration failure while maintaining least-privilege access?

PRACTICE EXAMDVA-C02 exam simulator

399 questions covering every domain and task, full-length exams, explanations for every answer and a pass probability indicator.

Open the simulator →