Free AWS-CERTIFIED-DEVELOPER-ASSOCIATE-DVA-C02 Amazon AWS-CERTIFIED-DEVELOPER-ASSOCIATE-DVA-C02 Practice Test Question

Loading demo links...

Showing 37–39 of 56 questions

Question 37 (Topic 1)

A developer is creating an application that must transfer expired items from Amazon DynamoDB to Amazon S3. The developer sets up the DynamoDB table to automatically delete items after a specific TTL. The application must process the items in DynamoDB and then must store the expired items in Amazon S3. The entire process, including item processing and storage in Amazon S3, will take 5 minutes. Which solution will meet these requirements with the LEAST operational overhead?

Select an option, then click Submit answer.

  • Configure DynamoDB Accelerator (DAX) to query for expired items based on the TTL. Save the results to Amazon S3.
  • Configure DynamoDB Streams to invoke an AWS Lambda function. Program the Lambda function to process the items and to store the expired items in Amazon S3.
  • Deploy a custom application on an Amazon Elastic Container Service (Amazon ECS) cluster on Amazon EC2 instances. Program the custom application to process the items and to store the expired items in Amazon S3.
  • Create an Amazon EventBridge rule to invoke an AWS Lambda function. Program the Lambda function to process the items and to store the expired items in Amazon S3.
Question 38 (Topic 1)

A company has an application that uses an AWS Lambda function to consume messages from an Amazon Simple Queue Service (Amazon SQS) queue. The SQS queue is configured with a dead-letter queue. Due to a defect in the application, AWS Lambda failed to process some messages. A developer fixed the bug and wants to process the failed messages again. How should the developer resolve this issue?

Select an option, then click Submit answer.

  • Use the SendMessageBatch API to send messages from the dead-letter queue to the original SQS queue.
  • Use the ChangeMessageVisibility API to configure messages in the dead-letter queue to be visible in the original SQS queue.
  • Use the StartMessageMoveTask API to move messages from the dead-letter queue to the original SQS queue.
  • Use the PurgeQueue API to remove messages from the dead-letter queue and return the messages to the original SQS queue.
Question 39 (Topic 1)

A developer is automating a new application deployment with AWS Serverless Application Model (AWS SAM). The new application has one AWS Lambda function and one Amazon S3 bucket. The Lambda function must access the S3 bucket to only read objects. How should the developer configure AWS SAM to grant the necessary read privilege to the S3 bucket?

Select an option, then click Submit answer.

  • Reference a second Lambda authorizer function.
  • Add a custom S3 bucket policy to the Lambda function.
  • Create an Amazon Simple Queue Service (SQS) topic for only S3 object reads. Reference the topic in the template.
  • Add the S3ReadPolicy template to the Lambda function's execution role.