DOP-C02 exam dumps

DOP-C02 practice question 208 of 411

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

DOP-C02 Question 208

Select 3

An e-commerce company runs its application on Amazon ECS using Fargate. The company wants to configure centralized logging to monitor application logs and metrics across multiple services in real-time. They also need to ensure logs are stored in a durable and cost-effective manner for future analysis. Which solution meets these requirements?

  1. A

    Configure Fluent Bit as a sidecar container in each ECS task to send logs to Amazon CloudWatch Logs and set a retention period.

  2. B

    Enable AWS CloudTrail logging to capture ECS application logs and metrics.

  3. C

    Use Amazon CloudWatch Container Insights to monitor ECS metrics and configure a metric filter to capture specific log patterns.

  4. D

    Set up an Amazon Kinesis Data Firehose delivery stream to aggregate logs from CloudWatch Logs and store them in Amazon S3.

  5. E

    Deploy a custom solution that uses EC2 instances to collect logs and push them to an external logging service.

Show answer and explanation

Correct answers: A, C, D

Explanation

To meet the requirements of centralized logging and real-time monitoring, Fluent Bit as a sidecar and CloudWatch Container Insights provide the necessary tools for log collection and ECS metric monitoring. Using Kinesis Data Firehose to store logs in S3 ensures durability and cost-effectiveness for long-term storage. AWS-native solutions offer seamless integration and scalability, making them the preferred choice over custom EC2-based solutions or services like CloudTrail, which are not designed for application log collection.

  • A. Correct.

    Correct. Configuring Fluent Bit as a sidecar container is an effective way to collect and forward logs from ECS tasks to Amazon CloudWatch Logs. Setting a retention period ensures cost-effective log storage.

  • B. Incorrect.

    Incorrect. AWS CloudTrail is used for capturing API activity and account-level events, not for collecting application logs or ECS metrics.

  • C. Correct.

    Correct. Amazon CloudWatch Container Insights provides monitoring for ECS metrics and allows the creation of metric filters to analyze logs and identify patterns.

  • D. Correct.

    Correct. Kinesis Data Firehose can be used to aggregate and deliver logs from CloudWatch Logs to Amazon S3, providing a durable and cost-effective storage solution for future analysis.

  • E. Incorrect.

    Incorrect. Deploying a custom solution on EC2 adds unnecessary complexity and management overhead compared to the native AWS services available for logging and metrics collection.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

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

Start timed exam