A company has hundreds of AWS accounts in an organization in AWS Organizations. The company operates out of a single AWS Region. The company has a dedicated security tooling AWS account in the organization. The security tooling account is configured as the organization's delegated administrator for Amazon GuardDuty and AWS Security Hub. The company has configured the environment to automatically enable GuardDuty and Security Hub for existing AWS accounts and new AWS accounts. The company is performing control tests on specific GuardDuty findings to make sure that the company's security team can detect and respond to security events. The security team launched an Amazon EC2 instance and attempted to run DNS requests against a test domain, example.com, to generate a DNS finding. However, the GuardDuty finding was never created in the Security Hub delegated administrator account. Why was the finding was not created in the Security Hub delegated administrator account?
VPC flow logs were not turned on for the VPC where the EC2 instance was launched.
The VPC where the EC2 instance was launched had the DHCP option configured for a custom OpenDNS resolver.
The GuardDuty integration with Security Hub was never activated in the AWS account where the finding was generated.
Cross-Region aggregation in Security Hub was not configured.
Answer: B. The VPC where the EC2 instance was launched had the DHCP option configured for a custom OpenDNS resolver.
Question 32
A security engineer discovers that a company’s user passwords have no required minimum length. The company is using the following two identity providers (IdPs): AWS Identity and Access Management (IAM) federated with on-premises Active Directory Amazon Cognito user pools that contain the user database for an AWS Cloud application that the company developed Which combination of actions should the security engineer take to implement a required minimum length for the passwords? (Choose two.)
Update the password length policy in the IAM configuration.
Update the password length policy in the Cognito configuration.
Update the password length policy in the on-premises Active Directory configuration
Create an SCP in AWS Organizations. Configure the SCP to enforce a minimum password length for IAM and Cognito.
Create an IAM policy that includes a condition for minimum password length. Enforce the policy for IAM and Cognito.
Answers: B. Update the password length policy in the Cognito configuration.; C. Update the password length policy in the on-premises Active Directory configuration
Question 33
A company has a web-based application that runs behind an Application Load Balancer (ALB). The application is experiencing a credential stuffing attack that is producing many failed login attempts. The attack is coming from many IP addresses. The login attempts are using a user agent string of a known mobile device emulator. A security engineer needs to implement a solution to mitigate the credential stuffing attack. The solution must still allow legitimate logins to the application. Which solution will meet these requirements?
Create an Amazon CloudWatch alarm that reacts to login attempts that contain the specified user agent string Add an Amazon Simple Notification Service (Amazon SNS) topic to the alarm.
Modify the inbound security group on the ALB to deny traffic from the IP addresses that are involved in the attack.
Create an AWS WAF web ACL for the ALB Create a custom rule that blocks requests that contain the user agent string of the device emulator.
Create an AWS WAF web ACL for the ALB. Create a custom rule that allows requests from legitimate user agent strings.
Answer: C. Create an AWS WAF web ACL for the ALB Create a custom rule that blocks requests that contain the user agent string of the device emulator.
Question 34
A company is operating an open-source software platform that is internet facing. The legacy software platform no longer receives security updates. The software platform operates using Amazon Route 53 weighted load balancing to send traffic to two Amazon EC2 instances that connect to an Amazon RDS cluster. A recent report suggests this software platform is vulnerable to SQL injection attacks, with samples of attacks provided. The company’s security engineer must secure this system against SQL injection attacks within 24 hours. The security engineer’s solution must involve the least amount of effort and maintain normal operations during implementation. What should the security engineer do to meet these requirements?
Create an Application Load Balancer with the existing EC2 instances as a target group. Create an AWS WAF web ACL containing rules that protect the application from this attack, then apply it to the ALB. Test to ensure the vulnerability has been mitigated, then redirect the Route 53 records to point to the ALB. Update security groups on the EC2 instances to prevent direct access from the internet.
Create an Amazon CloudFront distribution specifying one EC2 instance as an origin. Create an AWS WAF web ACL containing rules that protect the application from this attack, then apply it to the distribution. Test to ensure the vulnerability has been mitigated, then redirect the Route 53 records to point to CloudFront.
Obtain the latest source code for the platform and make the necessary updates. Test the updated code to ensure that the vulnerability has been mitigated, then deploy the patched version of the platform to the EC2 instances.
Update the security group that is attached to the EC2 instances, removing access from the internet to the TCP port used by the SQL database. Create an AWS WAF web ACL containing rules that protect the application from this attack, then apply it to the EC2 instances. Test to ensure the vulnerability has been mitigated, then restore the security group to the original setting.
Answer: A. Create an Application Load Balancer with the existing EC2 instances as a target group. Create an AWS WAF web ACL containing rules that protect the application from this attack, then apply it to the ALB. Test to ensure the vulnerability has been mitigated, then redirect the Route 53 records to point to the ALB. Update security groups on the EC2 instances to prevent direct access from the internet.
Question 35
A security engineer recently rotated the host keys for an Amazon EC2 instance. The security engineer is trying to access the EC2 instance by using the EC2 Instance Connect feature. However, the security engineer receives an error for failed host key validation. Before the rotation of the host keys, EC2 Instance Connect worked correctly with this EC2 instance. What should the security engineer do lo resolve this error?
Import the key material into AWS Key Management Service (AWS KMS).
Manually upload the new host key to the AWS trusted host keys database
Ensure that the AmazonSSMManagedInstanceCore policy is attached to the EC2 instance profile.
Create a new SSH key pair for the EC2 instance.
Answer: B. Manually upload the new host key to the AWS trusted host keys database