Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 321

A company runs its website on AWS. The company posts daily polls on its website and publishes the poll results next day. The website stores user responses in an Amazon DynamoDB table. After the poll results are published, the company does not need to keep the user responses.

A developer needs to implement a solution that will automatically remove old user responses from the DynamoDB table. The developer adds a new expiration_date attribute to the DynamoDB table. The developer plans to use the expiration_date attribute for the automation.

Which solution will meet these requirements with the LEAST development effort?

    Correct Answer: D

    The best solution with the least development effort is to enable Time to Live (TTL) on the DynamoDB table and specify the expiration_date attribute. This way, DynamoDB automatically deletes items when their expiration date has passed, which eliminates the need for manual intervention or additional scheduled tasks. This approach is efficient and requires minimal development effort since TTL is a built-in feature of DynamoDB.

Discussion
monishvsterOption: D

Always TTL

CrescentSharedOption: D

It's D.

tomchandler077

To deploy an AWS Lambda function using AWS CloudFormation, especially when the function code is stored in an Amazon S3 bucket, the developer should reference the S3 location directly in the CloudFormation template. The best option to achieve this with the least development effort is: Option D directly links the Lambda function's deployment package stored in S3 to the CloudFormation template, which automates the deployment process without requiring additional steps for handling the function code.

65703c1Option: D

D is the correct answer.

Americo32

Opção A

tgv

it says "the least development effort". in this case the TTL would be best practice