exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 301 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 301
Topic #: 1
[All AWS Certified Developer Associate Questions]

A business intelligence application runs on Amazon Elastic Container Service (Amazon ECS) on AWS Fargate. Application-level audits require a searchable log of all API calls from users to the application. The application’s developers must store the logs centrally on AWS.

Which solution will meet these requirements?

  • A. Install the Amazon CloudWatch agent on the Amazon EC2 host that runs Fargate.
  • B. Configure the awslogs log driver in the ECS task definition.
  • C. Configure AWS CloudTrail for the ECS containers.
  • D. Install the ECS logs collector on the ECS hosts.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
rcaliandro
1 year, 9 months ago
Selected Answer: B
Application-level audits are monitored by using CloudWatch. To enble ECS on Fargate to send logs on Amazon CloudWatch, we need to configure the awslogs log drive in the task definition. B is the correct answer
upvoted 1 times
...
mrbig00
2 years, 4 months ago
Selected Answer: B
The correct solution is option B. Configuring the awslogs log driver in the ECS task definition will allow the application to store the logs centrally on AWS. The awslogs log driver sends logs to Amazon CloudWatch Logs, which is a managed service that provides search and analysis of log data. This solution will meet the requirements of storing the logs centrally on AWS and making them searchable. Installing the Amazon CloudWatch agent on the Amazon EC2 host or installing the ECS logs collector on the ECS hosts will not work because the application is running on AWS Fargate and not on Amazon EC2. AWS CloudTrail is not a suitable solution because it is used to record API calls made to AWS services, not application-level API calls.
upvoted 4 times
...
fabriciollf
2 years, 4 months ago
Selected Answer: B
Reference documentation: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html
upvoted 1 times
...
k1kavi1
2 years, 4 months ago
Selected Answer: B
Choosing B
upvoted 1 times
...
DrCloud
2 years, 4 months ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_awslogs.html Using the awslogs log driver: You can configure the containers in your tasks to send log information to CloudWatch Logs. If you do this, you can view the logs from the containers in your Fargate tasks.
upvoted 1 times
...
JohnStanley
2 years, 4 months ago
Selected Answer: B
B https://www.datadoghq.com/blog/tools-for-collecting-aws-fargate-metrics/
upvoted 1 times
...
kapil206001
2 years, 5 months ago
D https://docs.aws.amazon.com/AmazonECS/latest/developerguide/logging-using-cloudtrail.html
upvoted 1 times
geetha0489
2 years, 4 months ago
unable to find why D is the answer in this reference. Can you please explain
upvoted 1 times
DrCloud
2 years, 4 months ago
Geetha: "D" is not correct. Reason: AWS Fargate is a managed service. We can't install at host level. https://docs.aws.amazon.com/AmazonECS/latest/userguide/what-is-fargate.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