Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 279 discussion

A photo sharing application uses Amazon S3 to store image files. All user images are manually audited for inappropriate content by a third-party company. The audits are completed 1-24 hours after user upload and the results are written to an Amazon DynamoDB table, which uses the S3 object key as a primary key. The database items can be queried by using a REST API created by the third-party company.

An application developer needs to implement an automated process to tag all S3 objects with the results of the content audit.

What should the developer do to meet these requirements in the MOST operationally efficient way?

  • A. Create an AWS Lambda function to run in response to the s3:ObjectCreated event type. Write the S3 key to an Amazon Simple Queue Service (Amazon SQS) queue with a visibility timeout of 24 hours. Create and configure a second Lambda function to read items from the queue. Retrieve the results for each item from the DynamoDB table. Tag each S3 object accordingly.
  • B. Create an AWS Lambda function to run in response to the s3:ObjectCreated event type. Integrate the function into an AWS Step Functions standard workflow. Define an AWS Step Functions Wait state and set the value to 24 hours. Create and configure a second Lambda function to retrieve the audit results and tag the S3 objects accordingly after the Wait state is over.
  • C. Create an AWS Lambda function to load all untagged S3 objects. Retrieve the results for each item from the REST API and tag each S3 object accordingly. Create and configure an Amazon EventBridge rule to run at regular intervals. Set the Lambda function as a target for the EventBridge rule.
  • D. Launch an Amazon EC2 instance. Deploy a script to the EC2 instance to use the external database results to tag the S3 objects accordingly. Configure a crontab file to run the script at regular intervals.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
AssessmentKing
Highly Voted 8 months ago
Selected Answer: B
Images are first uploaded to S3 bucket. Then, manual audit is performed that lasts 1-24 hours. Only after the audit of the image is finished we can run our Lambda function. If we run event at regular intervals (what does it mean?) should we run it every hour and then we would have bunch of untagged objects that haven't been audited and we would add a tag to them which doesn't make sense. - In option B they explicitly mention that the Wait period will be 24 hours thus insuring that the audit of those objects has been completed. Only then we run the Lambda function.
upvoted 6 times
...
Saudis
Most Recent 1 week, 5 days ago
Selected Answer: C
I am confuse because the chatGPT Says C
upvoted 1 times
...
devmo
2 weeks, 1 day ago
Selected Answer: C
With option B, what if the external company doesn't complete the audit in 24 hours Least operational over head and long term solution would be going with 1 lambda and event bridge is what I feel.
upvoted 1 times
devmo
2 weeks, 1 day ago
Changing my mind to B as a lambda might time out if number of untagged items are a lot. Good use case for dynamodb streams.
upvoted 1 times
...
...
MasoudK
4 weeks, 1 day ago
C coz of operationally efficient words
upvoted 2 times
...
tsangckl
5 months ago
Selected Answer: C
This solution leverages AWS Lambda, which is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you1. By using Lambda in conjunction with Amazon EventBridge, which can trigger events at regular intervals, you can create a system that periodically checks for new audit results and applies tags to S3 objects without the need for managing server instances or handling queue visibility timeouts. This approach is not only operationally efficient but also cost-effective, as you pay only for the compute time you consume with Lambda21.
upvoted 2 times
...
65703c1
5 months, 3 weeks ago
Selected Answer: B
B is the correct answer.
upvoted 2 times
...
DeaconStJohn
7 months, 3 weeks ago
Selected Answer: B
I'm still not sure if B is correct. However, I think this use case is very similar to a feature that exists in step functions. Although the wording doesn't answer the question directly and I think waiting 24 hours is the opposite of operationally efficient. The GetTaskToken feature that is part of service integration in step functions would be a perfect match for this scenario, removing the 24 hour wait while maintaining operational efficiency using AWS Step functions. I can only hope this is what they are getting at when I answer this on the exam. https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html
upvoted 4 times
...
KarBiswa
8 months, 1 week ago
Selected Answer: C
Best option considering the question conditions. Reading from Rest API
upvoted 2 times
...
SerialiDr
8 months, 1 week ago
Selected Answer: C
C. Create an AWS Lambda function to load all untagged S3 objects. Retrieve the results for each item from the REST API and tag each S3 object accordingly. Create and configure an Amazon EventBridge rule to run at regular intervals. Set the Lambda function as a target for the EventBridge rule. This solution leverages AWS Lambda for processing and tagging S3 objects based on the audit results available through the REST API. By using Amazon EventBridge to trigger the Lambda function at regular intervals, the developer ensures that the process runs automatically without manual intervention, efficiently handling the tagging of S3 objects once the audit results are available. This approach minimizes operational effort and does not require the continuous monitoring of S3 object creation or the management of complex workflows.
upvoted 4 times
...
monishvster
8 months, 2 weeks ago
Selected Answer: A
Should be A
upvoted 1 times
...
Jisking
8 months, 2 weeks ago
Selected Answer: B
I may choose B.
upvoted 3 times
...
CrescentShared
8 months, 3 weeks ago
Selected Answer: C
A does not make any sense.
upvoted 3 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 ...