exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 859 discussion

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

A SysOps Administrator is maintaining an application running on Amazon EBS-backed Amazon EC2 instances in an Amazon EC2 Auto Scaling group. The application is set to automatically terminate unhealthy instances. The Administrator wants to preserve application logs from these instances for future analysis.
Which action will accomplish this?

  • A. Change the storage type from EBS to instance store.
  • B. Configure an Amazon CloudWatch Events rule to transfer the logs to Amazon S3 upon an EC2 state change to terminated.
  • C. Configure the unified CloudWatch agent to stream the logs to Amazon CloudWatch Logs.
  • D. Configure VPC Flow Logs for the subnet hosting the EC2 instance.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html

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
Newguru2020
Highly Voted 2 years, 7 months ago
Ans: C https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/UseCloudWatchUnifiedAgent.html
upvoted 9 times
...
albert_kuo
Most Recent 10 months ago
Selected Answer: B
Option B involves using Amazon CloudWatch Events to capture EC2 instance state change events. When an EC2 instance is terminated, a state change event is triggered, and you can configure a CloudWatch Events rule to respond to this event. By setting up a CloudWatch Events rule with a target to transfer the logs to Amazon S3 when an EC2 instance state changes to "terminated," you can automatically copy the application logs to Amazon S3 for future analysis. This ensures that even when the instances are terminated, you have a reliable and durable storage location for the logs.
upvoted 1 times
...
gulu73
1 year, 3 months ago
Selected Answer: C
C is the answer
upvoted 1 times
...
wahlbergusa
2 years, 6 months ago
"... upon an EC2 state change to terminated" , once the EC2 instance is terminated Lambda function will not be able to pull any logs cause logs will be long gone alongside the EC2 instance. Only way is pulling/pushing the logs as soon as events occur. Hence the answer is C.
upvoted 1 times
...
Pupina
2 years, 6 months ago
Why not b? Create a rule that trigger a lambda function that transfer the logs to a S3 bucket. https://docs.aws.amazon.com/autoscaling/ec2/userguide/cloud-watch-events.html
upvoted 2 times
wahlbergusa
2 years, 6 months ago
"... upon an EC2 state change to terminated" , once the EC2 instance is terminated Lambda function will not be able to pull any logs cause logs will be long gone alongside the EC2 instance. Only way is pulling/pushing the logs as soon as events occur. Hence the answer is C.
upvoted 1 times
...
...
abhishek_m_86
2 years, 6 months ago
C. Configure the unified CloudWatch agent to stream the logs to Amazon CloudWatch Logs.
upvoted 2 times
...
jackdryan
2 years, 6 months ago
I'll go with C
upvoted 1 times
...
weril
2 years, 7 months ago
Ans C: CloudWatch agent to write logs to the Cloudwatch
upvoted 1 times
...
ImranR
2 years, 7 months ago
C is looking efficient...
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