exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 32 discussion

A company is implementing an Amazon Elastic Container Service (Amazon ECS) cluster to run its workload. The company architecture will run multiple ECS services on the cluster. The architecture includes an Application Load Balancer on the front end and uses multiple target groups to route traffic.
A DevOps engineer must collect application and access logs. The DevOps engineer then needs to send the logs to an Amazon S3 bucket for near-real-time analysis.
Which combination of steps must the DevOps engineer take to meet these requirements? (Choose three.)

  • A. Download the Amazon CloudWatch Logs container instance from AWS. Configure this instance as a task. Update the application service definitions to include the logging task.
  • B. Install the Amazon CloudWatch Logs agent on the ECS instances. Change the logging driver in the ECS task definition to awslogs.
  • C. Use Amazon EventBridge to schedule an AWS Lambda function that will run every 60 seconds and will run the Amazon CloudWatch Logs create-export-task command. Then point the output to the logging S3 bucket.
  • D. Activate access logging on the ALB. Then point the ALB directly to the logging S3 bucket.
  • E. Activate access logging on the target groups that the ECS services use. Then send the logs directly to the logging S3 bucket.
  • F. Create an Amazon Kinesis Data Firehose delivery stream that has a destination of the logging S3 bucket. Then create an Amazon CloudWatch Logs subscription filter for Kinesis Data Firehose.
Show Suggested Answer Hide Answer
Suggested Answer: BDF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tartarus23
Highly Voted 1 year, 10 months ago
Selected Answer: BDF
Explanation: Option B is correct because you can change the logging driver in the ECS task definition to awslogs, which will direct the logs to Amazon CloudWatch Logs. Then, the logs can be forwarded to the Amazon S3 bucket. Option D is correct because enabling access logging on the Application Load Balancer (ALB) allows the collection of access logs that can be sent directly to an S3 bucket. Option F is correct because you can create an Amazon Kinesis Data Firehose delivery stream that can deliver logs from CloudWatch Logs directly to an Amazon S3 bucket in near-real-time.
upvoted 14 times
...
steli0
Most Recent 5 months ago
Selected Answer: BDF
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-logging-monitoring.html
upvoted 2 times
...
4555894
1 year, 1 month ago
Selected Answer: BDF
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-logging-monitoring.html
upvoted 2 times
...
dzn
1 year, 2 months ago
Selected Answer: BDF
Enable access logging using the ALB management console, CLI, or API. Specify the S3 bucket where the logs will be stored and, if necessary, set the log file prefix (e.g., production, staging.) to store the logs in different paths within the bucket.
upvoted 1 times
...
thanhnv142
1 year, 2 months ago
BDF: There are two types of log that needs to be collected B: push app log to Cloudwatch log D: push access log to S3 F: using Kinesis to push app log from cloudwatch log to S3 in near real-time A: wrong - we need cloudwatch agent, not container instance C: No need to use event bridge and lambda to trigger cloudwatch log to push log to s3. E: access logs lie in ALB, not ECS services.
upvoted 4 times
...
z_inderjot
1 year, 4 months ago
Selected Answer: BDF
BDF is the answer . btw, can't we use cloudwatch ingists to collet the logs from containers in ecs there days , and then usign the subscription filter we can sends those logs to s3. without having to install cloud watch agent.
upvoted 2 times
...
imymoco
1 year, 4 months ago
Real time. so not E
upvoted 1 times
...
madperro
1 year, 10 months ago
Selected Answer: BDF
BDF makes sense. E is certainly wrong.
upvoted 1 times
...
bcx
1 year, 11 months ago
Selected Answer: BDF
BDF Access logs cannot be configured by ALB target group https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html
upvoted 2 times
...
hanbj
1 year, 11 months ago
Option B sends data to the Cloudwatch Log. This issue requires that logs be collected in S3.
upvoted 1 times
...
haazybanj
1 year, 11 months ago
Selected Answer: BDF
Answer is bdf
upvoted 2 times
...
ele
2 years ago
Selected Answer: BDF
B - get application logs to CW D - get access logs to S3 F - get application logs from CW to S3 in near-real time
upvoted 4 times
...
jqso234
2 years ago
Selected Answer: BDF
Option BDE can be cumbersome to manage in a large environment and may not be ideal for applications that generate large amounts of logs. Option BDF, on the other hand, captures both application and access logs, and uses the CloudWatch Logs driver to stream logs directly to CloudWatch Logs. This solution is more scalable as it does not require the CloudWatch Logs agent to be installed on each instance, and it can capture logs from multiple ECS tasks running on the same instance. In addition, the logs can be sent to an S3 bucket using a Kinesis Data Firehose delivery stream, which provides near-real-time analysis capabilities.
upvoted 1 times
...
Dimidrol
2 years ago
Selected Answer: BDF
B D F for me
upvoted 2 times
Dimidrol
2 years ago
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_cloudwatch_logs.html
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago