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 337 discussion

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

A company has a group of Amazon EC2 instances in a single private subnet of a VPC with no internet gateway attached. A security engineer has installed the Amazon CloudWatch agent on all instances in that subnet to capture logs from a specific application. To ensure that the logs flow securely, the company's networking team has created VPC endpoints for CloudWatch monitoring and CloudWatch logs. The networking team has attached the endpoints to the VPC.

The application is generating logs. However, when the security engineer queries CloudWatch, the logs do not appear.

Which combination of steps should the security engineer take to troubleshoot this issue? (Choose three.)

  • A. Ensure that the EC2 instance profile that is attached to the EC2 instances has permissions to create log streams and write logs.
  • B. Create a metric filter on the logs so that they can be viewed in the AWS Management Console.
  • C. Check the CloudWatch agent configuration file on each EC2 instance to make sure that the CloudWatch agent is collecting the proper log files.
  • D. Check the VPC endpoint policies of both VPC endpoints to ensure that the EC2 instances have permissions to use them.
  • E. Create a NAT gateway in the subnet so that the EC2 instances can communicate with CloudWatch.
  • F. Ensure that the security groups allow all the EC2 instances to communicate with each other to aggregate logs before sending.
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️

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
luisfsm_111
Highly Voted 2 years, 8 months ago
Selected Answer: ACD
By elimination, ACD
upvoted 6 times
...
ITGURU51
Most Recent 2 years, 2 months ago
To grant the EC2 instance profile permissions to create log streams and write logs, you need to attach a permissions policy to the IAM role associated with the EC2 instance profile. A C- We need to make the the cloudwatch agent is configured, running and collecting the logs on the endpoint. D-Ensure the EC2 instance has connectivity and the correct permissions to VPC endpoints.
upvoted 1 times
...
Subs2021
2 years, 7 months ago
Selected Answer: ACD
Refer CloudWatch logging troubleshooting and https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html
upvoted 3 times
...
AdamWest
2 years, 8 months ago
Selected Answer: ACD
ACD - Is correct
upvoted 3 times
...
D2
2 years, 8 months ago
Selected Answer: ACD
Answer ACD
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 ...