Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 838 discussion

A media company uses Amazon DynamoDB to store metadata for its catalog of movies that are available to stream. Each media item contains user-facing content that includes a description of the media, a list of searchable tags, and other similar data. In addition, media items include a list of Amazon S3 key names that relate to movie files. The company stores these movie files in a single S3 bucket that has versioning enabled. The company uses Amazon CloudFront to serve these movie files.
The company has 100,000 media items, and each media item can have many different S3 objects that represent different encodings of the same media. S3 objects that belong to the same media item are grouped together under the same key prefix, which is a random unique ID.
Because of an expiring contract with a media provider, the company must remove 2,000 media items. The company must completely delete all DynamoDB keys and movie files on Amazon S3 that are related to these media items within 36 hours. The company must ensure that the content cannot be recovered.
Which combination of actions will meet these requirements? (Choose two.)

  • A. Configure the DynamoDB table with a TTL field. Create and invoke an AWS Lambda function to perform a conditional update. Set the TTL field to the time of the contract's expiration on every affected media item.
  • B. Configure an S3 Lifecycle object expiration rule that is based on the contract's expiration date.
  • C. Write a script to perform a conditional delete on all the affected DynamoDB records.
  • D. Temporarily suspend versioning on the S3 bucket. Create and invoke an AWS Lambda function that deletes affected objects. Reactivate versioning when the operation is complete.
  • E. Write a script to delete objects from Amazon S3. Specify in each request a NoncurrentVersionExpiration property with a NoncurrentDays attribute set to 0.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Bigbearcn
Highly Voted 2 years, 5 months ago
Selected Answer: AB
AB is ok
upvoted 9 times
Bigbearcn
2 years, 5 months ago
A and D.
upvoted 5 times
...
...
sb333
Highly Voted 2 years ago
Selected Answer: BC
B - You can expire objects in S3 based on the prefix. Since movies are stored under their own prefixes in S3, you can delete both current and previous versions of the objects. C - Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Running a script to perform this one-time action is completely acceptable.
upvoted 8 times
sb333
2 years ago
D would not be correct as turning off versioning does not change the behavior of deleting versioned objects in the S3 bucket. https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectsfromVersioningSuspendedBuckets.html
upvoted 1 times
unknownUser22952
1 year, 7 months ago
https://docs.aws.amazon.com/AmazonS3/latest/API/API_NoncurrentVersionExpiration.html
upvoted 1 times
...
...
...
DavidC
Most Recent 9 months, 1 week ago
Selected Answer: CE
after checking all the options for s3, I think only E is possible. there is no way to set a S3 lifecycle rule to match 2000 objects as there is no pattern available. there must be script to do the deletion in S3. and Suspend version won't help for the existing objects. so for S3, both B and D are ruled out. only E is left.
upvoted 1 times
...
rsn
1 year, 1 month ago
Selected Answer: CE
Setting ttl with dynamo does not remove data at the exact time.. it can tak a while.. but evenutally it will get deleted. Here, we have a hard deadline. Similarly lifecycle rule for S3 will only apply a delete market and the file can be retrieved back. So I will go with C & E
upvoted 1 times
...
SkyZeroZx
1 year, 2 months ago
Selected Answer: BC
A) Sounds good until see this documentation https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html B) Great is classic usage C ) sounds rare but it's correct in this case D ) why suspend versioning ? not is correct E ) Script for S3 ? why ? is incorrect
upvoted 1 times
...
Watascript
1 year, 6 months ago
Selected Answer: BC
B and C
upvoted 1 times
...
unknownUser22952
1 year, 7 months ago
D wont work because, if you disable versioning, it will not create version of the new object, but if you try to delete the older objects, it will place a delete marker and will not delete the older versions of the objects. I would go with C AND E
upvoted 1 times
unknownUser22952
1 year, 7 months ago
https://docs.aws.amazon.com/AmazonS3/latest/API/API_NoncurrentVersionExpiration.html
upvoted 1 times
...
...
ggrodskiy
1 year, 9 months ago
Correct CD.
upvoted 2 times
...
evargasbrz
1 year, 9 months ago
Selected Answer: BC
I'll go with B and C B -> https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html C-> because A is not possible. https://aws.amazon.com/premiumsupport/knowledge-center/dynamodb-expired-ttl-not-deleted/
upvoted 2 times
evargasbrz
1 year, 9 months ago
Another important thing is that even if you suspended the version, the older versions of the objects remain there. https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectsfromVersioningSuspendedBuckets.html so the option D is wrong.
upvoted 1 times
...
...
mrgreatness
1 year, 11 months ago
Why A is wrong: https://bibhuticoder.medium.com/beware-of-dynamodb-ttl-e4537be8c269#:~:text=DynamoDB%20typically%20deletes%20expired%20items,reads%2C%20queries%2C%20and%20scans.
upvoted 1 times
...
mrgreatness
1 year, 11 months ago
Final Answer CD - I spent time reading lots of docs. Summary: A - won't work TTL requires 48 hours. B Won't work as previous versions can't be deleted. C will work. D Makes sense. E won't work as this only deleted non current. so CD
upvoted 5 times
...
mrgreatness
1 year, 11 months ago
A won't work: "DynamoDB typically deletes expired items within 48 hours of expiration. The exact duration within which an item truly gets deleted after expiration is specific to the nature of the workload and the size of the table. Items that have expired and not been deleted will still show up in reads, queries, and scans."
upvoted 2 times
...
mrgreatness
1 year, 11 months ago
B won't work "The Expiration action applies only to the current version (it has no impact on noncurrent object versions)." see https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html#intro-lifecycle-rules-actions -- so the old versions won't be deleted
upvoted 2 times
...
sou123454
1 year, 11 months ago
CD is the answer
upvoted 1 times
...
Vinafec
1 year, 11 months ago
Selected Answer: CD
C, D A: Won't work, not fast enough. TTL can take up to 48 hours: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html B: Won't work, deletion doesn't really delete unless you suspend versioning: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html E: Frankly I am too lazy to figure out what that means, C and D look good enough.
upvoted 3 times
...
jinny21
1 year, 11 months ago
Selected Answer: BC
B and C
upvoted 2 times
...
wassb
1 year, 11 months ago
It's a TTL field not the DynamoDB TTL feature !!!!!!
upvoted 1 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 ...