ExamQuestions.com

Register
Login
AWS Certified Security Specialty Exam Questions

Amazon

AWS Certified Security Specialty

259 / 310

Question 259:

You have deployed an important application in a custom VPC. In order to capture information about the IP traffic going to and from network interfaces in the VPC, you need to enable VPC Flow Logs and publish the records to a CloudWatch Log Group. An IAM role is required to be associated with the Flow Logs. Which option describes the correct IAM policy attached in the IAM role?

Answer options:

A.{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogGroups",
"logs:DescribeLogStreams"
],
"Effect": "Allow",
"Resource": "*"
}
]
} 
B.{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "vpc-flow-logs.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
C.{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"cloudwatch:CreateLogGroup",
"cloudwatch:CreateLogStream",
"cloudwatch:PutLogEvents"
],
"Effect": "Allow",
"Resource": "flow_log_arn"
}
]
}
D.{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
],
"Effect": "Allow",
"Resource": "*",
"Principal": "vpc-flow-logs.amazonaws.com",
}
]
}