exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 321 discussion

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?

  • A. Create an AWS Lambda function to delete old user responses based on the expiration_date attribute. Create an Amazon EventBridge schedule to run the Lambda function daily.
  • B. Create an AWS Fargate task in Amazon Elastic Container Service (Amazon ECS) to delete old user responses based on the expiration_date attribute. Create an Amazon EventBridge schedule to run the Fargate task daily.
  • C. Create an AWS Glue job to delete old user responses based on the expiration_date attribute. Create an AWS Glue trigger schedule to run the job daily.
  • D. Enable TTL on the DynamoDB table and specify the expiration_date attribute. Expire old user responses by using DynamoDB TTL.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
albert_kuo
9 months, 1 week ago
Selected Answer: D
1. enable ttl aws dynamodb update-time-to-live \ --table-name <your-table-name> \ --time-to-live-specification "Enabled=true, AttributeName=expiration_date" 2.Set TTL aws dynamodb describe-time-to-live --table-name <your-table-name>
upvoted 1 times
...
tomchandler077
9 months, 2 weeks ago
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.
upvoted 1 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
monishvster
1 year, 2 months ago
Selected Answer: D
Always TTL
upvoted 4 times
...
CrescentShared
1 year, 2 months ago
Selected Answer: D
It's D.
upvoted 3 times
...
Americo32
1 year, 2 months ago
Opção A
upvoted 1 times
tgv
1 year, 2 months ago
it says "the least development effort". in this case the TTL would be best practice
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago