Security and Compliance Flashcards
Company wishes to force users to change their passwords regularly
Create an IAM password policy and enabled password expiration
Need to restrict access to a bucket based on source IP range
Use bucket policy with “Condition”: “NotIpAddress”: statement
Need to control access to group of EC2 instances with specific tags
Use an IAM policy with a condition element granting access based on the tag and attach an IAM policy to the user or groups that require access
IAM policy for SQS queue allows too much access. Who is responsible for correcting the issue?
According the AWS shared responsibility mode, this is a customer responsibility
Data is encrypted with AWS KMS customer-managed CMKs. Need to enable rotation ensuring the data remains readable
Just enable key rotation in AWS KMS for the CMK (backing key is rotated, data key is not changed)
Company must rotate encryption keys once a year with least effort
Use customer-managed CMK and enabled automatic key rotation
App uses KMS CMK with imported key material and references the CMK by alias in the application. Must be rotated every 6 months
To rotate, create a new CMK with new imported material and update the key alias to point to new CMK
Certificate request rejected by ACM
Submit a request for a certificate using the correct domain name NOT the ALB FQDN
Security findings are missing in Amazon Inspector
Verify agent installed on affected instances and restart agent
Security team need to verify vulnerabilities and exposures are addressed for EC2 instances regularly
Use Amazon Inspector and perform regular assessments
There may be a vulnerable version of software installed on EC2 instances and need to check
Create and run an Amazon Inspector assessment template
Need to use information in request header to count requests from each front-end server
Use a string match statement
Large amount of suspicious HTTP requests hitting an ALB from various source IPs
Block the traffic using AWS WAF with a rate-based rule and a defined threshold
Many 404 errors being sent to one IP address every minute. Bot may be collecting info
Use AWS WAF to block the activity
Website has been deployed and penetration testing shows its vulnerable to cross-site scripting
Use AWS WAF to mitigate cross-site scripting attacks