Question 1
A company runs a public web application, and the security team wants to automatically block IP addresses that GuardDuty reports as attacking the application. Which solution fits BEST?
- A network ACL with a deny rule for every attacking IP, without any limit on the number of rules
- A security group in front of the ALB with deny rules that are added manually for each attacking IP
- EventBridge plus a Lambda function that adds the IPs to an AWS WAF IP set — Correct
- A Route 53 resolver rule that drops DNS queries from the attacking IP addresses
Correct answer
EventBridge plus a Lambda function that adds the IPs to an AWS WAF IP set
Explanation
Automation can update a WAF IP set that blocks attackers at the ALB or CloudFront. Security groups cannot deny. NACLs have a small rule limit. DNS rules do not block inbound web traffic.
Question 2
A security team wants to automatically remediate noncompliant resources, such as S3 buckets without default encryption, across all accounts. Which solution requires the LEAST custom code?
- Create a CloudWatch dashboard listing noncompliant buckets for manual fixing.
- Enable Macie and rely on it to change bucket encryption settings automatically.
- Config rules with Systems Manager Automation remediation in a conformance pack — Correct
- Write a Lambda function that scans every bucket in every account each hour and fixes settings.
Correct answer
Config rules with Systems Manager Automation remediation in a conformance pack
Explanation
Config remediation with managed runbooks, deployed via conformance packs, fixes issues with little code. Custom scanners require code. Dashboards need manual work. Macie does not change settings.
Question 3
A company detects that an attacker created new IAM access keys for several users. After revoking them, which step helps prevent recurrence? (Choose TWO.)
- Disable GuardDuty because it did not prevent the attack
- Create more IAM users so that attackers have a harder time choosing one
- Email all access keys to the security team for safekeeping
- Restrict iam:CreateAccessKey with an SCP and require federation instead of IAM users — Correct
- Investigate how the attacker obtained permissions to create keys and remove that path — Correct
Correct answer
Restrict iam:CreateAccessKey with an SCP and require federation instead of IAM users; Investigate how the attacker obtained permissions to create keys and remove that path
Explanation
Finding the root cause and preventing key creation reduce recurrence. More users, disabling detection, and emailing keys increase risk.
Question 4
A company must investigate an incident in an account where the attacker may still have access. Which approach protects the investigation?
- Analyze copies of the evidence in a separate, restricted forensics account — Correct
- Leave the attacker's access in place until the investigation is fully complete to avoid alerting them
- Investigate directly in the compromised account by using the same administrator role that the attacker may have
- Share investigation notes in the compromised account's S3 bucket so that everyone can access them
Correct answer
Analyze copies of the evidence in a separate, restricted forensics account
Explanation
A separate forensics account isolates evidence and investigators from the attacker. Working inside the compromised account or leaving access in place risks tampering.
Question 5
A company needs to run incident response simulations to validate that its automated runbooks and team processes work. Which practice aligns with AWS incident response guidance?
- Run regular game days that simulate real security events and improve playbooks. — Correct
- Wait for a real incident to test the playbooks, because simulations do not reflect real conditions.
- Run simulations in production without notifying anyone, including the security team.
- Test playbooks only once when they are written and never update them afterward.
Correct answer
Run regular game days that simulate real security events and improve playbooks.
Explanation
Regular simulations and reviews keep incident response effective. Waiting for real incidents, one-time tests, and uncoordinated production tests are poor practices.
Question 6
A company wants to automate isolation of EC2 instances when GuardDuty reports high-severity findings, with an approval step for production instances. Which solution fits BEST?
- A daily Lambda function that reads all GuardDuty findings and emails the instance IDs to the security team.
- An EventBridge rule that starts a Systems Manager Automation runbook with an aws:approve step — Correct
- A CloudWatch alarm on the GuardDuty FindingCount metric that terminates all instances in the affected account.
- A GuardDuty suppression rule that archives high-severity findings for production instances automatically.
Correct answer
An EventBridge rule that starts a Systems Manager Automation runbook with an aws:approve step
Explanation
EventBridge triggers response automation, and Automation runbooks support approval steps. Terminating all instances is destructive. A daily email is slow. Suppressing findings hides real threats.
Question 7
A company must ensure that its incident response team can access any member account during an incident, even if normal administrator roles have been compromised or modified. Which approach is recommended?
- Give every developer administrator access so that someone can always respond to an incident.
- Create the incident response role manually in each account only after an incident has been declared.
- Share the root user credentials of every member account with the incident response team in a spreadsheet.
- A pre-provisioned break-glass incident response role in every account, protected by an SCP — Correct
Correct answer
A pre-provisioned break-glass incident response role in every account, protected by an SCP
Explanation
Pre-provisioned, protected roles ensure access during incidents. Shared root credentials are insecure. Creating roles during an incident is slow and may be impossible. Broad admin access increases risk.
Question 8
A security engineer receives a GuardDuty finding of type UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS for an EC2 instance role. What does this finding indicate, and what should the engineer do FIRST?
- The role's credentials are used outside AWS; revoke its sessions and investigate. — Correct
- An IAM user's console password was used from an unusual country; reset the user's password.
- The instance is mining cryptocurrency; stop the instance and create a new one from the same AMI.
- The instance is sending spam email to external addresses; block outbound port 25 in the instance's security group.
Correct answer
The role's credentials are used outside AWS; revoke its sessions and investigate.
Explanation
This finding means credentials from the instance role were used outside AWS. Revoking the role's sessions (for example with an aws:TokenIssueTime deny policy) stops misuse, then the instance must be investigated. The other options describe different finding types.
Question 9
A security engineer needs to stop an attacker's active console session that uses federated access through IAM Identity Center. Which actions help? (Choose TWO.)
- Rotate the KMS key used by CloudTrail
- Delete the account's billing contact information
- Disable or delete the user in the identity source — Correct
- Revoke active role sessions for the permission set roles — Correct
- Change the AWS account's alias in the IAM console
Correct answer
Disable or delete the user in the identity source; Revoke active role sessions for the permission set roles
Explanation
Disabling the identity stops new sign-ins, and revoking role sessions blocks existing credentials. Account alias, billing contacts, and KMS keys do not affect the session.
Question 10
A company uses AWS Systems Manager Incident Manager. What is its main purpose in incident response?
- To store CloudTrail logs in a managed data lake with SQL queries
- To discover sensitive data in S3 buckets during an investigation
- To manage response plans, escalation, and incident timelines — Correct
- To scan EC2 instances for vulnerabilities and assign severity scores to each finding
Correct answer
To manage response plans, escalation, and incident timelines
Explanation
Incident Manager coordinates response with plans, escalations, runbooks, and timelines. Inspector scans for vulnerabilities, CloudTrail Lake stores events, and Macie discovers sensitive data.