AWS Certified Security - Specialty

AWS Certified Security - Specialty practice questions, page 4 of 21, with answer review and explanations.

Question 16

A company has complex connectivity rules governing ingress, egress, and communications between Amazon EC2 instances. The rules are so complex that they cannot be implemented within the limits of the maximum number of security groups and network access control lists (network ACLs). What mechanism will allow the company to implement all required network rules without incurring additional cost?

  1. Configure AWS WAF rules to implement the required rules.
  2. Use the operating system built-in, host-based firewall to implement the required rules.
  3. Use a NAT gateway to control ingress and egress according to the requirements.
  4. Launch an EC2-based firewall product from the AWS Marketplace, and implement the required rules in that product.

Question 17

An IAM user with fill EC2 permissions could bot start an Amazon EC2 instance after it was stopped for a maintenance task. Upon starting the instance, the instance state would change to `Pending`, but after a few seconds, it would switch back to `Stopped`. An inspection revealed that the instance has attached Amazon EBS volumes that were encrypted by using a Customer Master Key (CMK). When these encrypted volumes were detached, the IAM user was able to start the EC2 instances. The IAM user policy is as follows: What additional items need to be added to the IAM user policy? (Choose two.)

  1. kms:GenerateDataKey
  2. kms:Decrypt
  3. kms:CreateGrant
  4. ג€Conditionג€: { ג€Boolג€: { ג€kms:ViaServiceג€: ג€ec2.us-west-2.amazonaws.comג€ } }
  5. ג€Conditionג€: { ג€Boolג€: { ג€kms:GrantIsForAWSResourceג€: true } }

Question 18

A Security Administrator has a website hosted in Amazon S3. The Administrator has been given the following requirements: ✑ Users may access the website by using an Amazon CloudFront distribution. ✑ Users may not access the website directly by using an Amazon S3 URL. Which configurations will support these requirements? (Choose two.)

  1. Associate an origin access identity with the CloudFront distribution.
  2. Implement a ג€Principalג€: ג€cloudfront.amazonaws.comג€ condition in the S3 bucket policy.
  3. Modify the S3 bucket permissions so that only the origin access identity can access the bucket contents.
  4. Implement security groups so that the S3 bucket can be accessed only by using the intended CloudFront distribution.
  5. Configure the S3 bucket policy so that it is accessible only through VPC endpoints, and place the CloudFront distribution into the specified VPC.

Question 19

A Security Engineer has created an Amazon CloudWatch event that invokes an AWS Lambda function daily. The Lambda function runs an Amazon Athena query that checks AWS CloudTrail logs in Amazon S3 to detect whether any IAM user accounts or credentials have been created in the past 30 days. The results of the Athena query are created in the same S3 bucket. The Engineer runs a test execution of the Lambda function via the AWS Console, and the function runs successfully. After several minutes, the Engineer finds that his Athena query has failed with the error message: `Insufficient Permissions`. The IAM permissions of the Security Engineer and the Lambda function are shown below: Security Engineer - Lambda function execution role - What is causing the error?

  1. The Lambda function does not have permissions to start the Athena query execution.
  2. The Security Engineer does not have permissions to start the Athena query execution.
  3. The Athena service does not support invocation through Lambda.
  4. The Lambda function does not have permissions to access the CloudTrail S3 bucket.

Question 20

A company requires that IP packet data be inspected for invalid or malicious content. Which of the following approaches achieve this requirement? (Choose two.)

  1. Configure a proxy solution on Amazon EC2 and route all outbound VPC traffic through it. Perform inspection within proxy software on the EC2 instance.
  2. Configure the host-based agent on each EC2 instance within the VPC. Perform inspection within the host-based agent.
  3. Enable VPC Flow Logs for all subnets in the VPC. Perform inspection from the Flow Log data within Amazon CloudWatch Logs.
  4. Configure Elastic Load Balancing (ELB) access logs. Perform inspection from the log data within the ELB access log files.
  5. Configure the CloudWatch Logs agent on each EC2 instance within the VPC. Perform inspection from the log data within CloudWatch Logs.