exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 14 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 14
Topic #: 1
[All AWS Certified Security - Specialty Questions]

An organization is using Amazon CloudWatch Logs with agents deployed on its Linux Amazon EC2 instances. The agent configuration files have been checked and the application log files to be pushed are configured correctly. A review has identified that logging from specific instances is missing.
Which steps should be taken to troubleshoot the issue? (Choose two.)

  • A. Use an EC2 run command to confirm that the ג€awslogsג€ service is running on all instances.
  • B. Verify that the permissions used by the agent allow creation of log groups/streams and to put log events.
  • C. Check whether any application log entries were rejected because of invalid time stamps by reviewing /var/cwlogs/rejects.log.
  • D. Check that the trust relationship grants the service ג€cwlogs.amazonaws.comג€ permission to write objects to the Amazon S3 staging bucket.
  • E. Verify that the time zone on the application servers is in UTC.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
BillyC
Highly Voted 3 years, 8 months ago
A and B..
upvoted 37 times
...
josellama2000
Highly Voted 3 years, 8 months ago
C is incorrect. /var/cwlogs/rejects.log does not exists. The correct log file is /var/log/awslogs.log
upvoted 27 times
...
0x00infosec
Most Recent 7 months, 4 weeks ago
A and B
upvoted 1 times
...
0x00infosec
7 months, 4 weeks ago
B&A according to the chatgpt To troubleshoot the issue of missing logs from specific EC2 instances using Amazon CloudWatch Logs, the following steps should be taken: B. Verify that the permissions used by the agent allow creation of log groups/streams and to put log events. This step is crucial to ensure that the CloudWatch Logs agent has the necessary IAM permissions to send logs to CloudWatch. C. Check whether any application log entries were rejected because of invalid time stamps by reviewing /var/cwlogs/rejects.log. This log file can provide insights into any logs that were rejected due to timestamp issues, which is a common problem that can cause logs to not appear in CloudWatch. These two steps will help identify and address potential permission and format issues that could be causing the missing logs.
upvoted 1 times
0x00infosec
7 months, 4 weeks ago
there is a typo in this answer, so please ignore this one.
upvoted 1 times
...
...
Cmst
1 year, 2 months ago
Selected Answer: AB
no rejects.log at all
upvoted 1 times
...
Raphaello
1 year, 3 months ago
Selected Answer: AB
AB are the correct answers. There's nothing called "rejects.log".
upvoted 2 times
...
Benah
1 year, 8 months ago
A & B is correct
upvoted 1 times
...
matrpro
2 years ago
Selected Answer: AB
A y B should be the right ones. I discarded the others: -C: rejects.log does exist -D: the agent does not upload logs to S3 directly -E: the time zone can be LOCAL as well -> time_zone .Specifies the time zone of log event timestamp. The two supported values are UTC and LOCAL. The default is LOCAL, which is used if time zone can't be inferred based on datetime_format. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html)
upvoted 4 times
...
krishccie
2 years, 4 months ago
Selected Answer: AB
A and B
upvoted 1 times
...
[Removed]
2 years, 6 months ago
Selected Answer: AB
A and B is the right answer
upvoted 1 times
...
Mr__
2 years, 8 months ago
Selected Answer: AB
A and B make sense
upvoted 1 times
...
BKV83
2 years, 8 months ago
Selected Answer: AB
A and B is the right answer
upvoted 1 times
...
RajKaj
2 years, 8 months ago
And B is right ans
upvoted 1 times
...
sapien45
2 years, 8 months ago
Selected Answer: AB
C is almost right, if it wasn<t for the made up directories. https://aws.amazon.com/premiumsupport/knowledge-center/push-log-data-cloudwatch-awslogs/ A describes the right service name : https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html B is kind of OK, even if the permissions are defined at the instance level not the agent level
upvoted 2 times
...
dcasabona
2 years, 9 months ago
Selected Answer: AE
Option A and E. Check this amazing article at https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-push-logs-with-unified-agent/ Topic *Resolve timestamp issues* (Option E) and topic *Check your IAM permissions* which excludes option B, since the log stream has already been created and only this instance is having trouble.
upvoted 1 times
...
sapien45
2 years, 10 months ago
Selected Answer: AB
Particular instance issue , probably mussing autorisation
upvoted 1 times
...
TigerInTheCloud
3 years, 1 month ago
Selected Answer: AC
keywords: instance-level logging. (At the first glance, missing the instance-level, I searched file permission in the answers.) A - If the agent stopped not log being pushed B - Permission is not applied on the agent but instance role (if the role is used, I will prefer B to C) C - timestamp: The PutLogEvents command doesn't allow log batches in time frames either older than 14 days or more than two hours in the future. D - I think the agent can calculate the timestamp correctly based on time zone :-)
upvoted 2 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 ...