Amazon DVA-C01 Exam
AWS Certified Developer - Associate DVA-C02 (Page 7 )

Updated On: 26-Jan-2026

A developer is implementing an AWS Lambda function that will be invoked when an object is uploaded to Amazon S3. The developer wants to test the Lambda function in a local development machine before publishing the function to a production AWS account.
Which solution will meet these requirements with the LEAST operational overhead?

  1. Upload an object to Amazon S3 by using the aws s3api put-object CLI command. Wait for the local Lambda invocation from the S3 event.
  2. Create a sample JSON text file for a put object S3 event. Invoke the Lambda function locally. Use the aws lambda invoke CLI command with the JSON file and Lambda function name as arguments.
  3. Use the sam local start-lambda CLI command to start Lambda. Use the sam local generate-event s3 put CLI command to create the Lambda test JSON file. Use the sam local invoke CLI command with the JSON file as the argument to invoke the Lambda function.
  4. Create a JSON string for the put object S3 event. In the AWS Management Console, use the JSON string to create a test event for the local Lambda function. Perform the test.

Answer(s): C



A developer is writing a web application that is deployed on Amazon EC2 instances behind an internet-facing Application Load Balancer (ALB). The developer must add an Amazon CloudFront distribution in front of the ALB. The developer also must ensure that customer data from outside the VPC is encrypted in transit.
Which combination of CloudFront configuration settings should the developer use to meet these requirements? (Choose two.)

  1. Restrict viewer access by using signed URLs.
  2. Set the Origin Protocol Policy setting to Match Viewer.
  3. Enable field-level encryption.
  4. Enable automatic object compression.
  5. Set the Viewer Protocol Policy setting to Redirect HTTP to HTTPS.

Answer(s): B,E



A developer is running an application on an Amazon EC2 instance. When the application tries to read an Amazon S3 bucket, the application fails. The developer notices that the associated IAM role is missing the S3 read permission. The developer needs to give the application the ability to read the S3 bucket.
Which solution will meet this requirement with the LEAST application disruption?

  1. Add the permission to the role. Terminate the existing EC2 instance. Launch a new EC2 instance.
  2. Add the permission to the role so that the change will take effect automatically.
  3. Add the permission to the role. Hibernate and restart the existing EC2 instance.
  4. Add the permission to the S3 bucket. Restart the EC2 instance.

Answer(s): B



A developer at a company writes an AWS CloudFormation template. The template refers to subnets that were created by a separate AWS CloudFormation template that the company's network team wrote. When the developer attempts to launch the stack for the first time, the launch fails.
Which template coding mistakes could have caused this failure? (Choose two.)

  1. The developer's template does not use the Ref intrinsic function to refer to the subnets.
  2. The developer's template does not use the ImportValue intrinsic function to refer to the subnets.
  3. The Mappings section of the developer's template does not refer to the subnets.
  4. The network team's template does not export the subnets in the Outputs section.
  5. The network team's template does not export the subnets in the Mappings section.

Answer(s): B,D



A developer is working on a web application that requires selective activation of specific features. The developer wants to keep the features hidden from end users until the features are ready for public access.
Which solution will meet these requirements?

  1. Create a feature flag configuration profile in AWS AppSync. Store the feature flag values in the configuration profile. Activate and deactivate feature flags as needed.
  2. Store prerelease data in an Amazon DynamoDB table. Enable Amazon DynamoDB Streams in the table. Toggle between hidden and visible states by using DynamoDB Streams.
  3. Create a feature flag configuration profile in AWS AppConfig. Store the feature flag values in the configuration profile. Activate and deactivate feature flags as needed.
  4. Store prerelease data in AWS Amplify DataStore. Toggle between hidden and visible states by using Amplify DataStore cloud synchronization.

Answer(s): C



Viewing page 7 of 113
Viewing questions 31 - 35 out of 500 questions



Post your Comments and Discuss Amazon DVA-C01 exam prep with other Community members:

Join the DVA-C01 Discussion