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

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

A company is running an application on Amazon EC2 instances in an Auto Scaling group. The application stores logs locally. A security engineer noticed that logs were lost after a scale-in event. The security engineer needs to recommend a solution to ensure the durability and availability of log data. All logs must be kept for a minimum of 1 year for auditing purposes.
What should the security engineer recommend?

  • A. Within the Auto Scaling lifecycle, add a hook to create an attach an Amazon Elastic Block Store (Amazon EBS) log volume each time an EC2 instance is created. When the instance is terminated, the EBS volume can be reattached to another instance for log review.
  • B. Create an Amazon Elastic File System (Amazon EFS) file system and add a command in the user data section of the Auto Scaling launch template to mount the EFS file system during EC2 instance creation. Configure a process on the instance to copy the logs once a day from an instance Amazon Elastic Block Store (Amazon EBS) volume to a directory in the EFS file system.
  • C. Build the Amazon CloudWatch agent into the AMI used in the Auto Scaling group. Configure the CloudWatch agent to send the logs to Amazon CloudWatch Logs for review.
  • D. Within the Auto Scaling lifecycle, add a lifecycle hook at the terminating state transition and alert the engineering team by using a lifecycle notification to Amazon Simple Notification Service (Amazon SNS). Configure the hook to remain in the Terminating:Wait state for 1 hour to allow manual review of the security logs prior to instance termination.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
DahMac
Highly Voted 3 years, 8 months ago
None of these answers have a cloudwatch logs retention period in their answer. So here it is, just incase you care. "To get started, see Sending CloudTrail Events to CloudWatch Logs in the AWS CloudTrail User Guide . Log Retention – By default, logs are kept indefinitely and never expire. You can adjust the retention policy for each log group, keeping the indefinite retention, or choosing a retention period between 10 years and one day." https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html So, yea -C-
upvoted 15 times
...
Raphaello
Most Recent 1 year, 4 months ago
Selected Answer: C
While reading the question, you might think of lifecycle hook, but then when you read the option you find out that there's a better way of doing it..CW Logs agent baked into AMI used in ASG launch template. C is the correct answer.
upvoted 1 times
...
ITGURU51
2 years ago
The security engineer should recommend option C. They can build the Amazon CloudWatch agent into the AMI used in the Auto Scaling group and configure the CloudWatch agent to send the logs to Amazon CloudWatch Logs for review. This will ensure the durability and availability of log data and all logs can be kept for a minimum of 1 year for auditing purposes.
upvoted 2 times
...
peddyua
2 years, 3 months ago
A is also a good choice in case you store some other data, but not the best, used this approach in ASG long time ago B is practically the same as A but expensive and has some pros and cons depending on the usecase C would be the easiest and the quickest
upvoted 1 times
...
dcasabona
2 years, 11 months ago
Selected Answer: C
Option C.
upvoted 1 times
...
xaocho
2 years, 11 months ago
Selected Answer: C
C is sure
upvoted 2 times
...
sapien45
2 years, 11 months ago
Selected Answer: C
I could not understand A B and So I chooser C
upvoted 2 times
...
lotfi50
3 years, 4 months ago
Selected Answer: C
Answer C
upvoted 2 times
...
Radhaghosh
3 years, 5 months ago
Only C Make sense and Classical Way
upvoted 1 times
...
SHMEHUL
3 years, 8 months ago
Answer B: Reason: When you first create a security group, it has no inbound rules. Therefore, no inbound traffic originating from another host to your instance is allowed until you add inbound rules to the security group.
upvoted 1 times
MoreOps
3 years, 3 months ago
i think your answer is regarding a different question, here answer B is regarding EFS and copying the logs once a day, once a day is bad since you wont get the logs of the crash since you wont get to the 'once a day' part of the day, answer is C
upvoted 1 times
...
...
hk436
3 years, 8 months ago
C is my answer.!
upvoted 2 times
...
sanjaym
3 years, 8 months ago
Answer: C
upvoted 3 times
...
Tolaji
3 years, 8 months ago
C is the correct answer
upvoted 4 times
Tolaji
3 years, 8 months ago
You can use CloudWatch Logs to store your log data in highly durable storage. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.
upvoted 5 times
...
...
weurseuk
3 years, 8 months ago
C not A on scale-in , instance is terminating not creating
upvoted 1 times
...
weurseuk
3 years, 8 months ago
C agreed : by installing an agent , your instance is logged, even it's terminated
upvoted 1 times
...
ChinkSantana
3 years, 9 months ago
Who chooses these answer ? Why would choosing a solution that allows local storage of logs on EBS volumes? C is the answer no Cap
upvoted 3 times
...
cldy
3 years, 9 months ago
C. text book case ...
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 ...