DEA-C01 exam dumps

DEA-C01 practice question 360 of 550

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

DEA-C01 Question 360

Select 3

You are building a serverless application on AWS and need to log application data for debugging and monitoring purposes. The application processes real-time events and runs on AWS Lambda. Which of the following approaches would you use to effectively log application data?

  1. A

    Use the built-in AWS Lambda logging feature to write log events to Amazon CloudWatch Logs.

  2. B

    Write application logs directly to an Amazon S3 bucket by using the AWS SDK within the Lambda function.

  3. C

    Send logs to Amazon Kinesis Data Firehose for real-time processing and storage in Amazon S3 or Amazon Elasticsearch Service.

  4. D

    Configure the Lambda function to send logs to a DynamoDB table for storage and querying.

  5. E

    Leverage the AWS X-Ray service to trace application requests and capture additional metadata about the application’s behavior.

Show answer and explanation

Correct answers: A, C, E

Explanation

Logging application data in AWS Lambda involves using services that are optimized for log storage, processing, and monitoring. Amazon CloudWatch Logs is the default and standard logging mechanism for AWS Lambda. For advanced use cases, Amazon Kinesis Data Firehose can be used to process logs in real-time and store them in services like Amazon S3 or Amazon Elasticsearch Service. Additionally, AWS X-Ray is valuable for capturing trace-level data and understanding the behavior of the application. Directly writing to S3 or using DynamoDB for logs is not recommended due to inefficiencies and lack of real-time processing capabilities.

  • A. Correct.

    Correct: AWS Lambda has built-in integration with Amazon CloudWatch Logs, making it a standard and effective way to log application data for monitoring and debugging.

  • B. Incorrect.

    Incorrect: Writing logs directly to an S3 bucket using the AWS SDK is not an efficient or recommended approach for logging application data, as it lacks real-time querying and monitoring capabilities.

  • C. Correct.

    Correct: Amazon Kinesis Data Firehose can be used to send logs for real-time processing and storage, providing flexibility for advanced logging solutions.

  • D. Incorrect.

    Incorrect: DynamoDB is not a suitable solution for storing logs, as it is primarily designed for NoSQL data storage and querying, and not optimized for log storage or analytics.

  • E. Correct.

    Correct: AWS X-Ray is a useful tool for tracing application requests and capturing additional metadata, complementing traditional logging mechanisms.

Timed practice exam

Take a DEA-C01 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