exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 931 discussion

Exam question from Amazon's AWS-SysOps
Question #: 931
Topic #: 1
[All AWS-SysOps Questions]

A company is hosting a website on an Amazon EC2 instance that runs in a public subnet inside a VPC. The company uses Amazon CloudWatch Logs for web server log analysis.
A SysOps administrator has installed and configured the CloudWatch Logs agent on the EC2 instance and has confirmed that the agent is running. However, logs are not showing up in CloudWatch Logs.
Which solution will resolve this issue?

  • A. Modify the EC2 instance security group rules to allow inbound traffic on port 80.
  • B. Create an IAM user that has the proper permissions for CloudWatch logs. Create an IAM instance profile, and associate it with the IAM user. Associate the instance profile with the EC2 instance.
  • C. Create an IAM role that has the proper permissions for CloudWatch logs. Create an IAM instance profile, and associate it with the IAM role. Associate the instance profile with the EC2 instance.
  • D. Modify the VPC's network ACL rules for the public subnet to allow inbound traffic on port 80.
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
albert_kuo
9 months, 1 week ago
Selected Answer: C
When using the CloudWatch Logs agent to send logs from an EC2 instance to CloudWatch Logs, the EC2 instance needs an IAM role with the necessary permissions to write log data to CloudWatch Logs. This is achieved by creating an IAM role that grants the appropriate permissions for CloudWatch Logs, and then associating that role with the EC2 instance using an IAM instance profile.
upvoted 1 times
...
gulu73
1 year, 2 months ago
Selected Answer: C
C is the answer
upvoted 1 times
...
random_007
2 years, 5 months ago
cloudwatch agent requires the IAM role to send the EC2 data to cloudwatch Answer : C
upvoted 1 times
...
ahaffar
2 years, 6 months ago
Repeated C
upvoted 1 times
...
haim96
2 years, 6 months ago
C. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create-iam-roles-for-cloudwatch-agent.html
upvoted 1 times
...
sankhar
2 years, 6 months ago
Answer is C
upvoted 1 times
...
USR
2 years, 7 months ago
Answer :C
upvoted 3 times
...
qurren
2 years, 7 months ago
I'm sure it is C
upvoted 3 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