DVA-C02 exam dumps

DVA-C02 practice question 2 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 2

Single answer

You are developing a serverless application that processes images uploaded to an S3 bucket. When a new image is uploaded, metadata about the image needs to be stored in a DynamoDB table. The solution should scale automatically and ensure that no images are missed. Which of the following is the most appropriate architecture for this requirement?

  1. A

    Set up an Amazon S3 event notification to trigger an AWS Lambda function that processes the image metadata and stores it in DynamoDB.

  2. B

    Use Amazon S3 Transfer Acceleration to send image metadata directly to DynamoDB.

  3. C

    Set up an Amazon S3 event notification to send the image metadata to an Amazon SQS queue, and then create an EC2 instance to process the metadata and store it in DynamoDB.

  4. D

    Create a CloudWatch Events rule to monitor the S3 bucket for new image uploads and trigger a Lambda function to process and store the metadata in DynamoDB.

Show answer and explanation

Correct answer: A

Explanation

The most appropriate solution leverages S3 event notifications to directly trigger an AWS Lambda function. This architecture is serverless, scalable, and simplifies the processing of image metadata. Lambda integrates seamlessly with both S3 and DynamoDB, making it the ideal choice for this requirement.

  • A. Correct.

    This is the correct option. S3 event notifications can directly trigger a Lambda function, which is well-suited for serverless event-driven architectures. The Lambda function can process the image metadata and store it in DynamoDB, ensuring scalability and reliability.

  • B. Incorrect.

    This is incorrect. Amazon S3 Transfer Acceleration is used to accelerate data transfers to S3, not to process or transfer metadata to DynamoDB.

  • C. Incorrect.

    This is incorrect. While SQS could be used as an intermediary, setting up an EC2 instance to process the metadata is not a cost-effective or scalable solution compared to a serverless approach using Lambda.

  • D. Incorrect.

    This is incorrect. CloudWatch Events is not designed to monitor S3 bucket events for object uploads. S3 event notifications are the correct mechanism for this use case.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam