DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 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?

Show Answer
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

5 comments
Sign in to comment
monishvsterOption: D
Feb 29, 2024

Always TTL

CrescentSharedOption: D
Feb 22, 2024

It's D.

Americo32
Feb 12, 2024

Opção A

tgv
Feb 16, 2024

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

65703c1Option: D
May 24, 2024

D is the correct answer.

tomchandler077
Jul 17, 2024

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.