Courseiva

CCNA Incident Response Questions

42 questions · Incident Response · All types, answers revealed

1
MCQmedium

A security engineer is performing containment during an active incident in which an EC2 instance is suspected of cryptomining and exfiltrating data. The engineer must isolate the instance from all network traffic, including traffic to AWS service endpoints and other resources in the same VPC, while preserving volatile memory and disk state for later forensic analysis. The engineer does not want to stop or terminate the instance. Which action should the engineer take to meet these requirements?

A.Modify the route table associated with the instance's subnet to remove the route to the internet gateway, and remove the local route.
B.Enable AWS Network Firewall in the subnet and create a stateless rule group that drops all packets sourced from the instance's private IP address.
C.Create a new security group with no inbound or outbound rules, and associate it with the instance's primary network interface, replacing the existing security groups.
D.Attach an IAM policy to the instance profile that denies all actions on all resources, forcing the instance's applications to stop communicating.
AnswerC

A security group with no inbound or outbound rules blocks all traffic to and from the instance's ENI, including traffic to VPC endpoints and other resources in the same VPC. Because security groups are stateful and applied at the ENI level, replacing the existing groups provides immediate, reversible containment while the instance keeps running, preserving both memory contents and EBS volume state for forensic acquisition.

Why this answer

Isolation must block traffic at the instance's network interface without stopping the instance, so that volatile memory and disk state survive for forensics. Replacing the attached security groups with an empty group applies a stateful, interface-level deny of all inbound and outbound traffic, including traffic to VPC endpoints and peer resources. Identity-based controls, route-table edits, and subnet-level firewalls either do not filter packets or affect more than the compromised instance.

Exam trap

The trap here is assuming that removing an internet route or denying IAM permissions contains a compromised instance, when only an interface-level network control such as an empty security group blocks all traffic while the instance keeps running.

2
MCQhard

Your company has a multi-account environment managed by AWS Organizations. A security incident reveals that a member account has been compromised. You must prevent the attacker from disabling CloudTrail or deleting logs in that account while maintaining central visibility. What is the most effective approach?

A.Create an IAM policy in the compromised account to deny CloudTrail deletion.
B.Use an Service Control Policy (SCP) to deny CloudTrail and log deletion.
C.Use AWS Config Rules to automatically re-enable CloudTrail if disabled.
D.Enable S3 Object Lock in compliance mode for all log buckets.
AnswerB

SCPs are applied at the Organization or OU level and restrict the permissions of all principals, including administrators within member accounts. By applying an SCP that denies 'cloudtrail:StopLogging' and 's3:DeleteObject', you create a mandatory guardrail that the compromised local administrator cannot override, ensuring logs are preserved for investigation.

Why this answer

Implementing an SCP at the Organizational Unit level is the most effective way to enforce security guardrails that cannot be circumvented by account administrators. By explicitly denying the ability to modify CloudTrail or S3 logging buckets, you ensure that the audit trail remains intact regardless of the level of access the attacker gains within the member account, thereby preserving forensic integrity across the enterprise environment.

Exam trap

Candidates often choose resource-based bucket policies or IAM policies on the member account, forgetting that an autonomous administrator or compromised account user can delete or modify them.

3
MCQhard

A security engineer is investigating an incident where an attacker gained access to an AWS account and modified IAM policies to grant broad permissions. The engineer has identified the compromised IAM user and wants to ensure that the attacker cannot continue to use any existing sessions. The engineer has already attached an inline deny policy to the user. Which additional action should the engineer take to immediately invalidate all active sessions for that IAM user?

A.Add a condition to the deny policy that checks the aws:TokenIssueTime.
B.Rotate the IAM user's access keys and update all applications that use them.
C.Delete the IAM user's access keys.
D.Use the AWS Management Console or API to revoke active sessions for the IAM user.
AnswerD

AWS provides a feature to revoke active sessions for an IAM user, which invalidates all temporary credentials associated with that user. This action can be performed via the IAM console or the AWS API. It immediately terminates existing sessions, ensuring the attacker cannot continue using them. This is the correct action to meet the requirement of invalidating all active sessions.

Why this answer

To immediately invalidate all active sessions for an IAM user, the security engineer must use the revoke sessions feature, which terminates all temporary credentials. Attaching a deny policy blocks new API calls but does not revoke existing sessions. Deleting access keys or rotating them only affects long-term credentials.

The revoke sessions action is the only one that ensures existing sessions are invalidated.

Exam trap

The trap here is assuming that attaching a deny policy or deleting access keys revokes active sessions, but temporary credentials remain valid until explicitly revoked or expired.

4
MCQmedium

Your organization uses AWS GuardDuty to monitor for threats. During an incident, you see a 'UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration' finding. What is the most immediate action the incident response team should take?

A.Update the security group of the instance to block all egress traffic.
B.Revoke active IAM sessions associated with the compromised credentials.
C.Delete the IAM user associated with the instance role.
D.Disable the GuardDuty service to stop the alerts.
AnswerB

Revoking the temporary credentials is the only way to invalidate the specific session tokens that the attacker is actively using. By using an inline policy with 'aws:TokenIssueTime' conditions or simply detaching and reattaching the role, you force the attacker to lose their unauthorized access immediately.

Why this answer

The finding UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration indicates that credentials from an EC2 instance role are being used from outside AWS, meaning the credentials are compromised. The most immediate action is to revoke active IAM sessions associated with those credentials by attaching an inline policy that denies all actions with an aws:TokenIssueTime condition, or by using the AWSRevokeSessionsForRole policy, to stop the attacker's access.

Exam trap

SCS-C03 often tests the misconception that deleting the IAM user or blocking network traffic remediates credential exfiltration, when the correct immediate action is revoking active sessions for the compromised role.

How to eliminate wrong answers

Option A is wrong because blocking egress on the instance's security group does not stop the attacker who already has the credentials and is using them from an external location. Option C is wrong because deleting the IAM user is not applicable — the credentials belong to an instance role, not an IAM user, and deleting the role would break the instance. Option D is wrong because disabling GuardDuty stops the alerts but does nothing to remediate the compromise.

5
MCQmedium

During an incident, a security responder realizes that an attacker has gained persistence by modifying an IAM role. What is the first step to remediate this threat?

A.Terminate all EC2 instances attached to the role.
B.Delete the IAM role and recreate it with the original permissions.
C.Revert the IAM role policy to a known-good configuration.
D.Enable Multi-Factor Authentication (MFA) for the IAM role.
AnswerC

Reverting the policy is the most direct way to remove the attacker's persistence. By returning the role to its verified configuration, the responder denies the attacker the elevated permissions they granted themselves, which is the first and most critical action in containing the impact of the compromise.

Why this answer

When an attacker has modified an IAM role to establish persistence, the first remediation step is to revert the role's policy to a known-good configuration. This immediately removes the attacker's unauthorized permissions while preserving the role's identity and any dependent resources. Deleting and recreating the role would break trust relationships and attached resources, and terminating instances or enabling MFA does not address the policy modification.

Exam trap

SCS-C03 often tests the misconception that deleting and recreating a compromised IAM role is the best remediation, when in fact it breaks dependencies and the correct first step is to revert the policy to a known-good state.

How to eliminate wrong answers

Option A is wrong because terminating EC2 instances does not remove the attacker's persistence mechanism (the modified role policy) and causes unnecessary service disruption. Option B is wrong because deleting and recreating the role changes its ARN and breaks trust relationships, instance profiles, and any resource policies referencing it — it is overly destructive and not the first step. Option D is wrong because MFA for an IAM role is not a standard feature (MFA is for users or for sts:AssumeRole with MFA conditions) and does not revert the malicious policy change.

6
MCQmedium

A security operations team has a GuardDuty finding indicating that an EC2 instance is querying a domain associated with cryptocurrency mining. The team wants to capture volatile memory and network connections from the instance before terminating it, but the instance is in a private subnet with no internet access. Which action should be taken FIRST to preserve forensic evidence?

A.Stop the instance, take a snapshot of its EBS volumes, and then start it again.
B.Create an AMI of the instance and then terminate it.
C.Isolate the instance by replacing its security group with one that allows no inbound or outbound traffic, then use AWS Systems Manager Session Manager to run forensic tools.
D.Enable AWS CloudTrail data events for the instance and wait for further activity.
AnswerC

Isolating the instance with a restrictive security group prevents further communication while preserving the instance's state. Session Manager provides shell access without needing internet connectivity, allowing the team to capture memory and network connections. This method maintains forensic integrity and adheres to AWS best practices for containment and evidence gathering.

Why this answer

The correct approach is to isolate the instance using a security group that blocks all traffic, then use Session Manager to access it without internet. This preserves volatile memory and network connections for forensic analysis while preventing further compromise. Other methods either destroy evidence or fail to capture the necessary live state.

Exam trap

The trap here is assuming that creating an AMI or stopping the instance captures all necessary evidence, when in fact volatile memory and network connections are lost.

7
MCQmedium

A security engineer receives an Amazon GuardDuty finding indicating that an EC2 instance in a production VPC is querying a domain associated with cryptocurrency mining. The engineer needs to isolate the instance from the network while preserving volatile memory and disk state for forensic analysis. The instance is currently running and has no termination protection. Which sequence of actions should the engineer take FIRST to meet these requirements?

A.Isolate the instance by replacing its security group with one that denies all inbound and outbound traffic, then capture memory and disk images.
B.Modify the instance's security group to allow only inbound SSH from the forensic workstation, then capture memory using a tool like LiME.
C.Stop the instance, create an AMI, and then modify the security group to deny all traffic.
D.Create a snapshot of the instance's EBS volumes, then change the security group to deny all inbound and outbound traffic.
AnswerA

Replacing the security group with a deny-all rule immediately cuts network communication, preventing further C2 or mining activity. After isolation, the engineer can safely capture volatile memory (e.g., with LiME or AVML) and create EBS snapshots for disk forensics. This sequence preserves both memory and disk evidence while stopping the threat, which is the correct order for incident response.

Why this answer

The priority in incident response is to contain the threat without destroying evidence. Isolating the instance by denying all network traffic stops ongoing malicious communication. Only after isolation should the responder capture volatile memory, because memory is lost on reboot or stop.

Disk imaging via EBS snapshots can follow. This order ensures both containment and forensic preservation.

Exam trap

The trap here is assuming that stopping the instance is a safe way to isolate it, but stopping destroys volatile memory and may leave the instance running long enough to cause further damage.

8
Multi-Selecthard

A security analyst suspects an EC2 instance is compromised and being used for command and control (C2) communication. Which TWO actions should be performed to preserve evidence while containing the threat?

Select 2 answers
A.Terminate the EC2 instance immediately to stop the malicious traffic.
B.Create a snapshot of the instance's attached EBS volumes for forensic analysis.
C.Modify the instance security group to restrict all inbound and outbound traffic.
D.Reboot the instance to clear any malicious processes running in the background.
E.Delete all snapshots to prevent the attacker from accessing them.
AnswersB, C

Creating an EBS snapshot captures the state of the persistent storage at the time of the incident, preserving all files and logs for later review. This is a standard forensic practice that allows investigators to perform post-mortem analysis without altering the original production environment or losing critical evidence.

Why this answer

To preserve evidence while containing the threat, modifying the security group to block all inbound and outbound traffic (Option C) stops malicious communication while keeping the instance running for memory acquisition. Creating a snapshot of the EBS volumes (Option B) preserves the disk state for later forensic analysis. Terminating or rebooting the instance (Options A and D) destroys volatile memory data (RAM) before it can be captured.

Exam trap

Do not immediately terminate or reboot a compromised instance if you need to perform memory forensics, as volatile data in RAM will be lost.

9
MCQhard

Refer to the exhibit. An incident responder needs to access the production-data bucket to investigate a breach. They apply this policy to their IAM user, but get 'Access Denied' when running 'aws s3 ls s3://production-data'. Why?

A.The user is missing the 's3:GetObject' permission.
B.The policy is missing the 'kms:Decrypt' permission for encrypted objects.
C.The resource ARN is incorrectly formatted for S3.
D.The user needs the 's3:PutObject' permission to list files.
AnswerB

If the bucket uses SSE-KMS, the user requires the 'kms:Decrypt' permission on the specific key used to encrypt the data. Without this permission, the S3 service cannot decrypt the bucket metadata required to list the objects, causing the command to fail with an Access Denied error.

Why this answer

The policy provided only grants the 's3:ListBucket' permission, which allows the user to see the objects within the bucket. However, the 'aws s3 ls' command often requires additional permissions, such as 's3:GetBucketLocation' or 's3:ListBucket'. More importantly, if the bucket is encrypted with a KMS key, the user must also have 'kms:Decrypt' permissions, which are absent here.

This is a common stumbling block in granular IAM policy management.

Exam trap

Candidates often focus solely on the S3 bucket policy and ignore the KMS key policy. Even with 's3:ListBucket', you cannot access encrypted data without decrypt permissions on the key.

10
MCQmedium

An incident responder receives an alert about a potential brute-force attack on an IAM user. What is the most immediate action to contain the threat?

A.Increase the password complexity requirements for all users.
B.Disable the IAM user account immediately.
C.Configure a CloudWatch alarm to notify the security team.
D.Delete the IAM group the user belongs to.
AnswerB

Disabling the user account effectively stops the brute-force attack by rendering the credentials unusable. This is the fastest containment action to prevent the attacker from gaining access to the environment, allowing the team to safely investigate the incident without the risk of further unauthorized login attempts succeeding.

Why this answer

Disabling the IAM user immediately revokes all access for that user, effectively containing the brute-force attack by preventing further authentication attempts. This is the most direct and immediate containment action.

Exam trap

Candidates might choose to delete the user or group, which is destructive and unnecessary for containment, or increase password complexity, which is a preventative measure rather than a containment action.

11
MCQhard

During an incident in which an attacker gained console access to the AWS Management Console of a production account, the responder needs to determine exactly which actions the attacker performed and which resources were touched. The account already delivers CloudTrail management events to a CloudWatch Logs log group in a separate security account. What should the responder do to reconstruct the attacker's activity?

A.Review the AWS Billing and Cost Management console for unexpected charges and infer which services the attacker used from the spending pattern.
B.Enable AWS Config and rely on the configuration history timeline to list every API call made by the attacker during the console session.
C.Inspect the AWS Identity and Access Management Access Analyzer findings for the account to identify the external actions taken by the attacker.
D.Use Amazon CloudWatch Logs Insights to query the CloudTrail log group for events where the userIdentity matches the compromised principal, and review the eventName and requestParameters fields.
AnswerD

CloudTrail management events delivered to CloudWatch Logs contain the full event record, including userIdentity, eventName, sourceIPAddress, and requestParameters. CloudWatch Logs Insights can filter on the compromised principal's ARN and return a chronological list of API calls with the affected resources, which is precisely how an investigator reconstructs console activity. Because the log group lives in a separate security account, the attacker cannot tamper with it.

Why this answer

CloudTrail management events forwarded to CloudWatch Logs preserve the full event payload, and Logs Insights can filter on the compromised principal's userIdentity to produce a chronological account of every API call, including the eventName and requestParameters that identify affected resources. Hosting the log group in a separate security account prevents the attacker from altering the record, which is what makes the reconstruction trustworthy.

Exam trap

The trap here is substituting a configuration or cost service for an audit log, when only the CloudTrail event record contains the caller identity and request parameters needed to attribute actions.

12
MCQhard

A company uses AWS Organizations with all features enabled. A security analyst discovers that an IAM user in the production account has been compromised and is being used to launch unauthorized EC2 instances. The analyst needs to immediately revoke the compromised user's access while ensuring that other users and roles in the account continue to function normally. Which action should the analyst take?

A.Apply a service control policy (SCP) to the production account that denies all EC2 actions for all principals.
B.Delete the IAM user's access keys and console password, then create new credentials for the user.
C.Use AWS Organizations to move the production account to a quarantine organizational unit (OU) with a restrictive SCP.
D.Attach an inline policy to the compromised IAM user that explicitly denies all actions.
AnswerD

Attaching an inline policy that explicitly denies all actions to the compromised IAM user immediately revokes that user's permissions without affecting other principals. This is a targeted containment action that adheres to the principle of least privilege and minimizes business impact. It is the most direct way to disable the user's access while allowing other users and roles to continue functioning normally.

Why this answer

To revoke access for a single compromised IAM user without affecting others, the most precise action is to attach an inline policy that explicitly denies all actions to that user. This immediately neutralizes the threat while preserving normal operations for other principals. Deleting credentials might work but can leave other access methods and destroys evidence.

Broad SCPs or OU moves affect too many entities.

Exam trap

The trap here is opting for broad containment measures like SCPs or OU quarantine when the scenario requires targeted revocation for a single IAM user.

13
MCQhard

An organization experiences a ransomware attack on an EC2-based application. The incident response plan requires restoring from backups stored in an S3 bucket in a separate 'backup' AWS account. How can this be done securely while adhering to the principle of least privilege?

A.Create a cross-account IAM role in the backup account and share the credentials.
B.Use S3 bucket policies in the backup account to grant the production role access.
C.Enable public read access on the backup bucket during the recovery process.
D.Merge the production and backup accounts into a single account.
AnswerB

A bucket policy in the backup account can explicitly grant 's3:GetObject' permissions to the IAM role ARN from the production account. This maintains a clean separation of duties and ensures that the backup account owner maintains control over who can access the sensitive recovery data.

Why this answer

An S3 bucket policy in the backup account can grant the production account's IAM role (or specific principal) the s3:GetObject/s3:ListBucket permissions needed for restore, without sharing credentials or opening the bucket publicly. This keeps the trust boundary intact and follows least privilege because only the named role gets access to only the required objects.

Exam trap

SCS-C03 often tests whether candidates confuse 'sharing credentials' or 'public access' shortcuts with proper cross-account IAM role assumption and bucket-policy patterns — the tempting wrong answers look operationally simple but violate least privilege.

How to eliminate wrong answers

Option A is wrong because sharing IAM role credentials violates least privilege and AWS best practice — credentials should never be shared across accounts; cross-account access should use role assumption (sts:AssumeRole), not credential distribution. Option C is wrong because enabling public read access exposes backup data to the entire internet, a severe security and compliance violation, and is never acceptable even temporarily. Option D is wrong because merging accounts destroys the isolation that makes the backup account resilient to a compromise of the production account — the whole point of a separate backup account is blast-radius containment.

14
Multi-Selecthard

A security engineer is conducting a post-incident review after a compromised IAM user was used to escalate privileges and create a new IAM user with administrative permissions. The engineer needs to identify the root cause and prevent recurrence. Which TWO actions should the engineer take to ensure the incident is thoroughly analyzed? (Choose two.)

Select 2 answers
A.Analyze AWS IAM Access Analyzer findings to identify any external access to the compromised IAM user's resources.
B.Examine AWS Config configuration history for IAM policies to see when the new user was created and what policies were attached.
C.Review AWS CloudTrail logs for the compromised IAM user to identify all API calls made, including the creation of the new IAM user and policy attachments.
D.Check Amazon GuardDuty findings for the compromised IAM user to see if any anomalous behavior was detected.
E.Use AWS Trusted Advisor to check for security best practices violations related to IAM.
AnswersB, C

AWS Config records changes to IAM users, policies, and other resources, providing a timeline of configuration changes. By examining the configuration history, the engineer can see when the new IAM user was created, what policies were attached, and how the configuration changed over time. This complements CloudTrail by showing the state changes and can help confirm the sequence of events.

Why this answer

CloudTrail logs provide the complete audit trail of API calls made by the compromised IAM user, including the creation of the new user and policy attachments. AWS Config configuration history shows the state changes to IAM resources over time, confirming when the new user and policies were created. Together, these two sources allow the engineer to reconstruct the attack and identify the root cause.

Other services like IAM Access Analyzer, GuardDuty, or Trusted Advisor do not provide the necessary detailed historical data for this forensic analysis.

Exam trap

The trap here is relying on proactive or anomaly-based tools like GuardDuty or Trusted Advisor, which do not provide the complete historical API audit trail needed for root cause analysis.

15
MCQmedium

Your organization is performing post-incident analysis on a compromised EC2 instance. The security team needs to verify if the instance was part of a botnet. Which service allows you to inspect network traffic patterns for evidence of malicious communication?

A.VPC Flow Logs
B.VPC Traffic Mirroring
C.AWS CloudTrail
D.Amazon Inspector
AnswerA

VPC Flow Logs capture metadata about network traffic (5-tuple data) but do not capture the payload of the packets. While they help identify potential C2 traffic by looking at IP and port destinations, they cannot confirm botnet behavior through packet-level analysis or command inspection.

Why this answer

While VPC Traffic Mirroring allows for full packet payload inspection, VPC Flow Logs are the industry-standard, cost-effective tool for identifying botnet communication patterns (such as beaconing to C2 servers). The question asks to 'inspect network traffic patterns', which is the primary use case for Flow Logs. If the intent is deep packet inspection, the stem should explicitly mention 'payload analysis' or 'content inspection'.

Exam trap

Candidates often choose Traffic Mirroring because it sounds more 'advanced' or 'forensic', but Flow Logs are the primary tool for analyzing traffic patterns and identifying anomalies at scale.

16
MCQmedium

An incident response team is investigating a security event in an AWS account. They need to determine which IAM principal made a specific API call to modify a security group at a particular time. The team has access to AWS CloudTrail logs stored in an S3 bucket. Which CloudTrail log field should they examine to identify the IAM principal?

A.userIdentity
B.eventSource
C.responseElements
D.requestParameters
AnswerA

The userIdentity field in a CloudTrail log entry contains detailed information about the IAM principal that made the API call, including the type (e.g., IAMUser, AssumedRole), the principal ID, the ARN, and the account ID. This is the exact field needed to identify who modified the security group. It is the correct answer because it directly provides the identity of the caller.

Why this answer

The userIdentity field in CloudTrail logs captures the identity of the IAM principal that made the API call, including the ARN, principal ID, and type. This is essential for attributing actions to a specific user or role during an incident investigation. Other fields like eventSource, requestParameters, and responseElements provide context about the action but not the identity.

Exam trap

The trap here is confusing the eventSource or requestParameters fields with identity information, when only userIdentity provides the IAM principal details.

17
MCQhard

An organization is preparing for a potential incident and wants to ensure that responders can quickly access logs across multiple accounts. Which architecture is recommended for centralized log management?

A.Store logs locally in each account within a private S3 bucket.
B.Aggregate logs into a dedicated, centralized security account.
C.Enable CloudTrail logs to be sent directly to an on-premises SIEM.
D.Use CloudWatch Logs to stream all data to an Amazon OpenSearch cluster.
AnswerB

Centralizing logs into a dedicated account provides an immutable and secure audit trail. By separating the log storage from the production environment, the organization ensures that logs are protected even if an attacker gains administrative privileges within a production account, facilitating faster and more reliable incident investigations.

Why this answer

Centralizing logs into a dedicated security account (often called a log archive account) is the AWS-recommended pattern for multi-account environments. It gives security responders a single place to query, correlate, and retain logs across all accounts, while isolating log data from the accounts that generate it.

Exam trap

SCS-C03 often tests the misconception that per-account log storage or direct SIEM streaming is sufficient, when the exam expects the dedicated centralized security/log-archive account pattern.

How to eliminate wrong answers

Option A is wrong because storing logs locally in each account fragments visibility and forces responders to pivot across many accounts during an incident, slowing response. Option C is wrong because sending CloudTrail directly to an on-premises SIEM is not the recommended primary architecture and adds latency, cost, and dependency on hybrid connectivity. Option D is wrong because streaming all CloudWatch Logs to OpenSearch is a specific analytics pattern, not the recommended centralized log management architecture, and it does not address cross-account aggregation.

18
MCQhard

A security engineer is investigating an incident where an attacker gained access to an AWS account by using compromised IAM user credentials. The engineer needs to determine if the attacker created any new IAM users or access keys. Which AWS service should the engineer use to identify these changes?

A.AWS CloudTrail
B.AWS Organizations
C.AWS Identity and Access Management (IAM) Access Analyzer
D.Amazon GuardDuty
AnswerA

CloudTrail logs all API calls related to IAM, including CreateUser, CreateAccessKey, and AttachUserPolicy. By analyzing CloudTrail logs, the engineer can see exactly when and by whom these actions were performed, and from which IP address. This provides the necessary audit trail to identify unauthorized IAM changes made by the attacker using the compromised credentials.

Why this answer

CloudTrail records all IAM API calls, including those that create users, access keys, and policies. By examining CloudTrail logs, the security engineer can pinpoint the unauthorized actions taken with the compromised credentials, such as new IAM users or access keys, and gather details like the source IP and timestamp. This is essential for understanding the scope of the breach and for remediation.

Other services like IAM Access Analyzer, AWS Organizations, and GuardDuty do not provide the detailed historical API call records needed for this investigation.

Exam trap

The trap here is confusing IAM Access Analyzer, which finds resource policies granting external access, with CloudTrail, which logs API activity.

19
MCQmedium

An organization's security team detects an active data exfiltration event originating from a compromised Amazon EC2 Linux instance. The instance contains critical forensic evidence that must be preserved. What is the most effective immediate containment action that prevents external communication while retaining the memory state for forensic analysis?

A.Stop the EC2 instance immediately to disconnect it from the network and preserve the attached Amazon EBS root volume for offline examination.
B.Terminate the compromised instance and launch a replacement instance from a clean AMI to maintain high availability and service uptime.
C.Modify the security groups attached to the EC2 instance to block all inbound and outbound traffic while keeping the operating system running.
D.Detach the primary Amazon EBS volume from the running instance and attach it to an isolated analysis instance for live scanning.
AnswerC

Applying a restrictive security group containing explicit deny rules or zero allowable traffic isolates the instance instantly. Keeping the instance powered on maintains the volatile memory state, allowing forensic specialists to capture RAM dumps safely before shutdown.

Why this answer

Modifying the security group to block all inbound and outbound traffic immediately severs network communication (stopping exfiltration) while keeping the instance running, which preserves volatile memory (RAM) for forensic capture. This is the standard 'network isolation' containment step in cloud IR playbooks.

Exam trap

SCS-C03 often tests the misconception that stopping an instance is a safe containment step — stopping destroys volatile memory, which is critical forensic evidence, so the correct answer keeps the instance running while isolating the network.

How to eliminate wrong answers

Option A is wrong because stopping an EC2 instance destroys the memory state (RAM is lost on stop), eliminating the ability to capture volatile forensic evidence. Option B is wrong because terminating the instance destroys both memory and the instance store, and it does not preserve evidence. Option D is wrong because detaching the EBS volume from a running instance is not supported cleanly and does not address the running memory state or the active network channel.

20
MCQmedium

A security engineer receives an Amazon GuardDuty finding titled "UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS" for an IAM role attached to an EC2 instance in a production VPC. The engineer must preserve volatile evidence and stop further abuse of the credentials with the least operational disruption. Which action should the engineer take FIRST?

A.Immediately terminate the EC2 instance and delete the IAM role so the attacker can no longer use the credentials.
B.Attach a policy to the instance role that explicitly denies all API actions, then continue monitoring the instance.
C.Isolate the instance by replacing its security group with one that allows no inbound or outbound traffic, and capture an EBS snapshot plus memory dump before terminating it.
D.Rotate the IAM role's credentials by detaching and reattaching the instance profile, then review AWS CloudTrail for the leaked access keys.
AnswerC

Replacing the security group with a deny-all group severs command-and-control and exfiltration paths without destroying the instance, and the EBS snapshot together with a memory capture preserves volatile evidence such as running processes and injected code. This matches AWS incident response guidance to isolate, then collect, before any destructive remediation such as termination.

Why this answer

The finding shows temporary credentials issued to an EC2 instance being used from an IP outside AWS, which typically means the instance is compromised and its credentials were stolen. The correct first step isolates the host from the network while preserving volatile evidence. A deny-all security group cuts off attacker access without destroying the instance, and snapshots plus a memory capture retain the artifacts needed for root-cause analysis before any destructive action.

Exam trap

The trap here is assuming that revoking or rotating credentials alone contains the incident, when the compromised instance itself remains an active foothold that must be isolated and preserved first.

21
MCQmedium

A security incident response team is notified that an Amazon S3 bucket containing sensitive data may have been accessed by an unauthorized party. The team needs to determine if any objects were downloaded and by whom. The bucket has S3 server access logging enabled. Which log fields should the team examine to identify the requester and the operation performed?

A.The `remote IP` and `HTTP status` fields.
B.The `bucket owner` and `object size` fields.
C.The `time` and `turn-around time` fields.
D.The `requester` and `operation` fields.
AnswerD

S3 server access logs include a `requester` field that identifies the AWS account or IAM principal making the request, and an `operation` field that specifies the action performed, such as REST.GET.OBJECT. Examining these fields directly answers who accessed the bucket and what operation was performed. This is the correct way to trace unauthorized downloads using server access logs.

Why this answer

S3 server access logs contain a `requester` field that identifies the AWS account or IAM user making the request, and an `operation` field that specifies the action, such as REST.GET.OBJECT for downloads. By examining these fields, the team can determine who accessed the bucket and what operations were performed. Other fields like remote IP or HTTP status provide supporting context but do not directly identify the requester or operation.

Exam trap

The trap here is focusing on network-level fields like remote IP or HTTP status, but those do not reveal the IAM identity or the specific operation performed.

22
Multi-Selectmedium

A security analyst is responding to an incident where an IAM access key was compromised. The analyst has identified the access key ID and needs to determine what actions were performed with it and whether any resources were modified. Which TWO steps should the analyst take to gather the necessary evidence? (Choose two.)

Select 2 answers
A.Search AWS CloudTrail logs for events where the userIdentity.accessKeyId matches the compromised key.
B.Use AWS Config to review configuration changes to resources that may have been modified by the compromised key.
C.Check Amazon GuardDuty findings for IAM access key usage anomalies.
D.Review AWS Trusted Advisor checks for security recommendations related to IAM keys.
E.Enable AWS CloudTrail data events for all S3 buckets to capture future activity.
AnswersA, B

CloudTrail logs record the accessKeyId in the userIdentity element for API calls made with that key. By filtering for the specific access key ID, the analyst can see all actions performed with it, including the services accessed, the source IP addresses, and the timestamps. This directly identifies what the attacker did and which resources were affected, making it a critical evidence-gathering step.

Why this answer

To investigate a compromised IAM access key, the analyst must review historical API activity and resource changes. CloudTrail logs filtered by the access key ID reveal all actions taken with that key, including the services and resources accessed. AWS Config provides a timeline of resource configuration changes, which helps confirm whether any resources were modified and by whom.

Together, these sources provide the necessary evidence to assess the incident's impact.

Exam trap

The trap here is focusing on preventive or detective services like Trusted Advisor or GuardDuty, which do not provide the detailed historical audit trail needed to reconstruct actions taken with a specific compromised key.

23
MCQeasy

A security analyst is notified by AWS Security Hub of a high-severity finding indicating that an Amazon EC2 instance in a development account may be mining cryptocurrency. The analyst wants to prevent the instance from reaching the mining pool while keeping the instance available for later forensic imaging. What is the SIMPLEST effective containment action?

A.Detach the instance's IAM role so the mining software cannot call AWS APIs, and leave the network configuration unchanged.
B.Modify the instance's security group to remove all outbound rules, then create a snapshot of the attached EBS volumes.
C.Stop the instance and change its instance type to a smaller size to limit the mining capacity available to the attacker.
D.Terminate the instance and rely on the AMI and any attached snapshots for the forensic investigation.
AnswerB

Security groups are stateful and default to allow all outbound traffic, so removing the outbound rules immediately blocks the instance from reaching the mining pool while leaving the instance running and untouched for later imaging. Taking an EBS snapshot at the same time preserves disk evidence. This is the least disruptive containment because it requires no agent, no reboot, and no destruction of the workload.

Why this answer

Removing outbound rules from the security group blocks the instance's outbound connection to the mining pool immediately, and because security groups are evaluated at the network layer no agent or reboot is required. Simultaneously snapshotting the EBS volumes preserves disk evidence. The instance stays running, so memory and process state remain available for later forensic acquisition, satisfying both containment and preservation goals.

Exam trap

The trap here is assuming that revoking the IAM role stops the malicious activity, when the mining traffic is outbound internet communication that security group rules must block.

24
MCQhard

A security incident response team is investigating unauthorized access to an AWS account. They suspect that an IAM role was used to launch an EC2 instance that performed cryptocurrency mining. The team needs to identify the source of the unauthorized activity and determine which API calls were made. Which AWS service should they use to review API activity and identify the principal that made the calls?

A.AWS Config configuration history
B.Amazon GuardDuty findings
C.AWS CloudTrail event history
D.Amazon VPC Flow Logs
AnswerC

AWS CloudTrail event history records API activity in the account, including the identity of the caller, the time of the call, the source IP address, and the request parameters. By filtering for EC2 RunInstances and related events, the team can identify which IAM role or user launched the instance and from where. This directly addresses the need to review API activity and pinpoint the principal responsible.

Why this answer

AWS CloudTrail event history provides a record of API calls made in the account, including the identity of the caller, the source IP, and the parameters. By examining events for EC2 RunInstances and related actions, the team can determine which IAM role launched the instance and trace the unauthorized activity. Other services like GuardDuty, AWS Config, and VPC Flow Logs offer complementary data but lack the detailed API attribution needed.

Exam trap

The trap here is confusing threat detection services like GuardDuty with audit services like CloudTrail, which are required to attribute API calls to a specific principal.

25
MCQmedium

A security engineer is responding to an incident where an EC2 instance in a production VPC is suspected of being compromised and is actively communicating with an external command-and-control server. The engineer needs to capture network traffic for forensic analysis without disrupting the instance. Which AWS service should the engineer use to capture the traffic?

A.Use AWS Traffic Mirroring to copy the instance's network traffic to a monitoring appliance.
B.Configure AWS CloudTrail data events for the EC2 instance.
C.Install a host-based intrusion detection system (HIDS) on the instance.
D.Enable VPC Flow Logs on the instance's elastic network interface.
AnswerA

AWS Traffic Mirroring allows you to copy network traffic from an EC2 instance's elastic network interface and send it to a target, such as a Network Load Balancer or a Gateway Load Balancer, where a monitoring appliance can capture and analyze the full packet payload. This meets the requirement to capture traffic without disrupting the instance.

Why this answer

AWS Traffic Mirroring is designed to copy network traffic from an EC2 instance's ENI to a monitoring appliance for deep packet inspection. This allows the security engineer to capture the full payload of the suspected C2 communication without disrupting the running instance, which is critical for forensic analysis. Other services like VPC Flow Logs provide only metadata, CloudTrail records API activity, and HIDS focuses on host-level events, none of which deliver the required packet capture.

Exam trap

The trap here is confusing VPC Flow Logs, which capture only metadata, with Traffic Mirroring, which captures full packet payloads for forensic analysis.

26
MCQeasy

A company's security team needs to ensure that they can quickly isolate a compromised Amazon EC2 instance from the network while preserving the instance for forensic analysis. They want to automate this process as part of their incident response plan. Which AWS service should they use to create a runbook that automatically applies a restrictive security group to the instance?

A.Amazon EventBridge
B.AWS Systems Manager Automation
C.AWS Lambda
D.AWS Config remediation
AnswerB

AWS Systems Manager Automation allows you to create runbooks that automate common incident response tasks, such as isolating an EC2 instance by replacing its security group with a restrictive one. The runbook can be triggered manually or via Amazon CloudWatch alarms, and it can also capture metadata for forensic purposes. This directly meets the requirement to automate the isolation process.

Why this answer

AWS Systems Manager Automation provides a runbook framework to automate tasks like isolating an EC2 instance by changing its security group. Runbooks can be invoked manually or triggered by events, and they support approval steps and logging. While Lambda, AWS Config remediation, and EventBridge can be part of an automation workflow, Systems Manager Automation is the service specifically designed for creating and executing operational runbooks.

Exam trap

The trap here is assuming that any automation service like Lambda or EventBridge can serve as the primary runbook tool, but Systems Manager Automation is the purpose-built service for defining and running incident response runbooks.

27
Multi-Selecthard

A security incident indicates an EC2 instance is likely compromised and communicating with a C2 server. The security team needs to perform memory forensics and isolate the instance while preserving evidence. Which TWO actions should the team perform?

Select 2 answers
A.Terminate the EC2 instance immediately to stop the data exfiltration.
B.Snapshot the EBS volumes attached to the instance.
C.Attach a new IAM role with administrative privileges to the instance.
D.Capture the instance memory state before isolation.
E.Remove the VPC flow logs to save storage costs during the investigation.
AnswersB, D

Taking an EBS snapshot preserves the state of the file system at the time of the incident. This allows the security team to mount the volume to a separate, isolated forensic workstation for detailed analysis without alerting the attacker or modifying the original data on the production instance.

Why this answer

In an incident response scenario, capturing the volatile state of an instance is vital before isolation or termination occurs. Snapshotting the EBS volume allows for offline disk forensics, while memory dumps capture active threats that do not persist on disk. These actions follow standard digital forensics procedures to ensure evidence integrity, enabling a thorough investigation into the root cause of the compromise without losing critical data residing only in RAM.

Exam trap

Candidates often think isolating or terminating the instance first is the priority, which destroys volatile RAM contents and permanently loses critical forensic evidence required for root-cause analysis.

28
MCQhard

A security analyst is investigating an incident where an IAM role was assumed by an unauthorized principal from another AWS account. The analyst needs to determine the exact sequence of API calls made by that principal and identify any resources that were accessed. Which AWS service should the analyst use to obtain this information?

A.AWS CloudTrail Lake
B.AWS Security Hub findings
C.Amazon GuardDuty findings
D.AWS CloudTrail event history
AnswerA

CloudTrail Lake is a managed data lake that aggregates and immutably stores CloudTrail events for up to 7 years. It allows SQL-based queries to analyze activity across multiple accounts and regions, making it ideal for investigating cross-account IAM role assumption and subsequent API calls. The analyst can query for the role's session and trace all actions taken.

Why this answer

CloudTrail Lake provides a centralized, immutable repository of CloudTrail events that can be queried using SQL. It captures management and data events across accounts and regions, enabling the analyst to trace the exact API calls made by the unauthorized principal after assuming the IAM role. This level of detail and long-term retention is essential for a thorough incident investigation.

Other services like CloudTrail event history have limited retention, while Security Hub and GuardDuty offer aggregated findings rather than raw audit logs.

Exam trap

The trap here is assuming that CloudTrail event history retains logs indefinitely, when in fact it only keeps 90 days of management events, which may be insufficient for older incidents.

29
MCQhard

An incident responder must rotate compromised access keys across 500 AWS accounts. Manually doing this is infeasible. What is the most efficient, programmatic way to automate this rotation while minimizing risk?

A.Write a local Bash script and run it from your laptop.
B.Use AWS Systems Manager Automation documents.
C.Use an S3 bucket to share a list of compromised keys.
D.Use CloudWatch Events to trigger Lambda functions in every account.
AnswerB

Systems Manager Automation is designed for cross-account operational tasks. It allows for the creation of standardized, version-controlled runbooks that can be executed across the entire organization using IAM roles, providing logging, error handling, and a secure, audited method to mass-rotate or delete compromised credentials.

Why this answer

AWS Systems Manager Automation documents allow you to define a runbook that programmatically rotates IAM access keys across many accounts, using cross-account IAM roles and AWS Organizations integration. Automation can be invoked centrally from a delegated admin or management account and executed in parallel across all 500 accounts, providing audit trails, error handling, and idempotency. This is the AWS-native, scalable, and least-privilege approach for mass remediation.

Exam trap

SCS-C03 often tests whether candidates choose centralized, AWS-native orchestration (SSM Automation, Organizations) over distributed or manual approaches — the trap is picking Lambda-per-account because it sounds 'serverless and scalable' but ignores operational overhead.

How to eliminate wrong answers

Option A is wrong because a local Bash script running from a laptop lacks scalability, auditability, credential management, and would require long-lived credentials with cross-account access — a security anti-pattern. Option C is wrong because sharing a list of compromised keys via S3 does nothing to rotate them and could itself leak sensitive credential identifiers. Option D is wrong because CloudWatch Events (EventBridge) triggering Lambda per account requires deploying and maintaining Lambda functions in every account, lacks centralized orchestration, and is far more operationally complex than SSM Automation runbooks.

30
MCQhard

A security engineer is conducting a post-incident review after a data breach involving an Amazon S3 bucket. The engineer needs to determine whether the bucket policy was modified during the incident and, if so, what the previous policy looked like. Which AWS service should the engineer use to retrieve the historical configuration of the S3 bucket policy?

A.AWS Trusted Advisor
B.AWS Config
C.Amazon S3 server access logs
D.AWS CloudTrail
AnswerB

AWS Config continuously records resource configurations and their changes, including S3 bucket policies. It maintains a configuration history for each resource, allowing the engineer to view the previous policy document and compare it with the current one. This directly provides the historical configuration needed to determine what the bucket policy looked like before the incident.

Why this answer

AWS Config records resource configuration changes over time, including S3 bucket policies. It stores a history of configurations, enabling the engineer to retrieve the previous policy document and compare it with the current state. CloudTrail logs the API call that modified the policy but not the full previous policy.

S3 server access logs and Trusted Advisor do not provide configuration history.

Exam trap

The trap here is assuming that CloudTrail, which logs the API call to modify the policy, also stores the full previous policy document; only AWS Config maintains a configuration history.

31
MCQhard

A security analyst is investigating an incident where an IAM access key was compromised and used from an unknown IP address to launch unauthorized EC2 instances. The analyst needs to determine which API calls were made with that access key and from which IP addresses. The access key has already been deactivated. Which AWS service or feature should the analyst use to retrieve this information?

A.AWS IAM Access Analyzer, reviewing the access key's last used information.
B.AWS CloudTrail event history in the AWS Management Console, filtering by the access key ID.
C.Amazon VPC Flow Logs, searching for the access key ID in the logs.
D.Amazon GuardDuty findings, filtering by the access key ID.
AnswerB

CloudTrail event history retains 90 days of management events and includes the access key ID, source IP address, and API calls made. Filtering by the access key ID will show all actions performed with that key, including the IP addresses. Since the key is deactivated, the events are still available in CloudTrail. This is the most direct way to trace the compromised key's usage without additional setup.

Why this answer

AWS CloudTrail records all API activity, including the identity of the caller (access key ID), source IP address, and timestamp. Filtering CloudTrail event history by the compromised access key ID reveals the complete set of actions taken with that key and the originating IPs. Other services like GuardDuty, IAM Access Analyzer, or VPC Flow Logs do not provide this level of API audit detail.

Exam trap

The trap here is assuming that GuardDuty findings or IAM last used data provide a full audit trail, but only CloudTrail captures every API call with the access key and source IP.

32
MCQhard

An incident responder is investigating a potential data breach where an attacker accessed an S3 bucket. The responder wants to confirm the identity that performed the suspicious GetObject calls. Which log source should be reviewed first?

A.AWS CloudTrail Management Events
B.AWS CloudTrail Data Events
C.VPC Flow Logs for the S3 interface endpoint
D.AWS Config compliance history
AnswerB

Data events are specifically designed to log object-level operations in S3, such as GetObject, PutObject, and DeleteObject. This provides the granular detail needed to identify the identity of the user who accessed sensitive information, making it the primary source for investigating data exfiltration.

Why this answer

S3 GetObject calls are data-plane operations, and CloudTrail Data Events are required to log them — management events only capture control-plane actions like CreateBucket or PutBucketPolicy. Reviewing Data Events will show the IAM principal (userIdentity), source IP, bucket, object key, and timestamp for each GetObject call, directly answering who accessed the object. This is the first and most authoritative log source for object-level access attribution.

Exam trap

SCS-C03 often tests the management vs. data event distinction — candidates pick Management Events because they assume 'CloudTrail logs everything,' but GetObject is a data event and requires explicit enablement.

How to eliminate wrong answers

Option A is wrong because CloudTrail Management Events log control-plane operations (bucket creation, policy changes, IAM changes) but do not record GetObject or PutObject data-plane calls. Option C is wrong because VPC Flow Logs capture IP-level metadata for network traffic through the S3 interface endpoint but do not identify the IAM identity or object accessed — they show IPs and ports, not principals. Option D is wrong because AWS Config compliance history tracks resource configuration changes and rule evaluations, not individual object access events or the identities performing them.

33
MCQeasy

A security analyst is investigating a potential security incident and needs to determine if an IAM access key was used from an unauthorized location. The analyst has access to AWS CloudTrail logs. Which CloudTrail event field provides the IP address from which the API call was made?

A.userAgent
B.eventSource
C.recipientAccountId
D.sourceIPAddress
AnswerD

The `sourceIPAddress` field in CloudTrail events contains the IP address of the requester. This is the direct field to check for unauthorized locations. For AWS service calls, it may show the service's IP, but for IAM access key usage, it typically shows the originating IP. This field is essential for geolocation and identifying anomalous access.

Why this answer

The `sourceIPAddress` field in CloudTrail records the IP address of the caller. For an IAM access key, this is the public IP from which the API call was made, allowing the analyst to determine if it originated from an unauthorized location. Other fields like userAgent, eventSource, or recipientAccountId do not provide the source IP address.

Exam trap

The trap here is confusing the user agent or event source with the source IP address, but only the sourceIPAddress field contains the IP.

34
Multi-Selecthard

Which THREE AWS services are critical for automating an incident response plan for detecting and containing unauthorized IAM credential usage?

Select 3 answers
A.AWS CloudTrail
B.Amazon GuardDuty
C.AWS Lambda
D.AWS Glue
E.AWS Direct Connect
AnswersA, B, C

CloudTrail is essential as it provides the detailed audit logs of all API calls made within the account. Without this data, there is no visibility into which credentials were used, when they were used, or the source IP, making it impossible to detect or investigate unauthorized IAM activity.

Why this answer

Integrating AWS CloudTrail, Amazon GuardDuty, and AWS Lambda creates an automated loop: CloudTrail logs the activity, GuardDuty detects the anomaly (unauthorized IAM use), and Lambda executes the remediation (e.g., attaching an inline deny policy). This trifecta is essential for meeting the 'Respond' function of the NIST framework within AWS, as it enables rapid, scalable intervention without requiring human intervention for common, well-defined security threats in the cloud.

Exam trap

Candidates might incorrectly select AWS Glue, assuming it is needed for log analysis, or AWS Direct Connect, confusing network connectivity with security automation.

35
MCQhard

An incident responder is notified that an Amazon S3 bucket in a production account was made public and objects were downloaded by an unknown party. The responder needs a definitive, tamper-evident record of which objects were accessed and by whom, and the account has AWS CloudTrail Lake enabled with an event data store for management and data events. What is the MOST reliable way to obtain this evidence?

A.Run a CloudTrail Lake query against the event data store filtering on the S3 object-level data events for the bucket's ARN and export the results.
B.Inspect Amazon GuardDuty findings for the bucket and correlate the associated threat intelligence to identify the downloading principal.
C.Enable S3 Object Lock in governance mode on the bucket and review the retention metadata to determine which objects were downloaded.
D.Query Amazon S3 server access logs stored in a separate logging account using Amazon Athena to list GET requests per object.
AnswerA

CloudTrail Lake stores immutable, time-stamped events with the caller's identity, source IP, and request parameters, and data events capture individual S3 object-level API calls such as GetObject. Querying the event data store for the bucket ARN yields exactly which objects were read and by which principal, and the results can be exported for chain-of-custody purposes, making this the most reliable evidence source.

Why this answer

CloudTrail Lake event data stores retain immutable data events that capture object-level S3 API calls with the full caller identity and request context. Querying the store for the bucket ARN produces a verifiable list of which objects were read and by whom, and the query results can be exported to support chain of custody. Server access logs, Object Lock, and GuardDuty each address different concerns and cannot substitute for identity-linked, tamper-evident audit records.

Exam trap

The trap here is treating S3 server access logs as a complete forensic record, when they are best-effort delivery and lack the full IAM identity context that CloudTrail data events provide.

36
MCQhard

A security engineer investigating a security alert discovers that an IAM role in an AWS account has been modified by an unknown external entity. The engineer needs to determine the exact API call that introduced the malicious policy change and identify the associated source IP address. Which AWS service provides the most definitive and historically accurate audit trail for this investigation?

A.Query Amazon CloudWatch Logs metric filters to identify anomalous spikes in IAM role modification API error rates.
B.Analyze Amazon VPC Flow Logs to trace inbound TCP connections targeting the AWS Management Console during the suspected modification window.
C.Review AWS Trusted Advisor security recommendations to identify unencrypted IAM policies and overly permissive trust relationships.
D.Search AWS CloudTrail management event history using Amazon Athena or the AWS CLI to extract the specific PutRolePolicy event record.
AnswerD

CloudTrail logs record complete event metadata for management actions, including the precise API action, user agent, and source IP address. This enables security teams to pinpoint the exact moment of compromise and trace the attacker's operational footprint.

Why this answer

AWS CloudTrail records all API calls and management events across the AWS environment, capturing caller identity, source IP addresses, and exact timestamps. By querying CloudTrail logs, security teams can reconstruct the entire attack chain, determine the extent of credential compromise, and identify policy modifications accurately. This historical record is foundational for effective cloud security incident response and forensic analysis.

Exam trap

Candidates choose Config or GuardDuty for historical API event reconstruction, missing that CloudTrail is the definitive service that logs exact API calls, callers, and source IPs.

37
MCQeasy

A security analyst is reviewing AWS CloudTrail logs and notices a series of API calls from an unknown IP address attempting to launch EC2 instances in multiple regions. The calls are failing due to insufficient permissions. The analyst wants to set up an automated alert when similar suspicious API calls occur in the future. Which AWS service should be used to trigger an alert based on specific API activity patterns?

A.Amazon CloudWatch Logs with metric filters and alarms
B.AWS CloudTrail Insights
C.AWS Config
D.Amazon GuardDuty
AnswerA

CloudWatch Logs can ingest CloudTrail logs, and metric filters can be created to match specific API activity patterns, such as failed EC2 RunInstances calls. Alarms can then trigger notifications via Amazon SNS. This provides the automated, customizable alerting required. It is the correct service because it allows the analyst to define precise patterns and receive alerts in real time.

Why this answer

To automate alerts for specific API activity patterns, the analyst should use CloudWatch Logs metric filters and alarms. CloudTrail logs can be streamed to CloudWatch Logs, where metric filters can match patterns like error codes or API names. Alarms then notify via SNS.

Other services like AWS Config or GuardDuty do not offer the same level of custom pattern-based alerting for API calls.

Exam trap

The trap here is assuming that GuardDuty or CloudTrail Insights can be customized to alert on specific API activity patterns, when they are more generalized threat detection services.

38
MCQmedium

A security analyst receives an alert that an Amazon S3 bucket containing sensitive data has been made public. The analyst needs to immediately restrict access to the bucket while preserving the current bucket policy for forensic analysis. What is the MOST efficient way to achieve this?

A.Modify the bucket ACL to remove public read permissions.
B.Enable S3 Block Public Access at the bucket level.
C.Apply a new bucket policy that denies all access, after saving the current policy.
D.Delete the bucket and recreate it with the same name and a private policy.
AnswerB

S3 Block Public Access at the bucket level overrides any existing bucket policy or ACL that grants public access, immediately restricting access without modifying the bucket policy. This preserves the original policy for forensic analysis. It is a quick, one-click action that can be applied directly to the bucket, making it the most efficient containment method.

Why this answer

Enabling S3 Block Public Access at the bucket level immediately overrides any public access granted by bucket policies or ACLs, without altering the existing policy. This preserves the policy for forensic analysis and is the fastest containment method. Other options either modify or delete evidence, or are less comprehensive.

Exam trap

The trap here is thinking that modifying the bucket policy or ACL is the only way to restrict access, when S3 Block Public Access provides an override that preserves the original configuration.

39
MCQeasy

A security incident response team needs to ensure that all actions taken during an investigation are logged and attributable to individual team members. Which AWS service should they use to manage access and capture API activity for forensic purposes?

A.Amazon Cognito user pools for authentication to the AWS Management Console.
B.A shared IAM role with multi-factor authentication (MFA) enabled.
C.AWS Identity and Access Management (IAM) with individual user accounts and CloudTrail logging.
D.AWS Single Sign-On (SSO) with a shared permission set.
AnswerC

Using individual IAM user accounts with CloudTrail logging ensures that all API actions are logged with the identity of the user who performed them. This provides attribution and a clear audit trail for forensic analysis. It is a fundamental practice for accountability during incident response.

Why this answer

IAM user accounts provide unique identities for each team member, and CloudTrail logs API calls with the user's identity, ensuring accountability. This allows forensic analysts to trace actions back to specific individuals. Other options either share identities or are not designed for this purpose.

Exam trap

The trap here is assuming that a shared role with MFA or SSO with a shared permission set provides sufficient attribution, when in fact individual IAM users are needed for clear audit trails.

40
MCQeasy

A security analyst is reviewing AWS CloudTrail logs after a suspected security incident. The analyst needs to determine which IAM principal performed a specific API call that modified a security group to allow unrestricted inbound access. Which CloudTrail log field should the analyst examine to identify the IAM principal?

A.responseElements
B.userIdentity
C.eventSource
D.requestParameters
AnswerB

The userIdentity field contains details about the principal that made the request, including the type (e.g., IAMUser, AssumedRole), the ARN, and the account ID. This is the correct field to identify the IAM principal responsible for modifying the security group. It provides the necessary information to trace the action back to a specific user or role.

Why this answer

CloudTrail logs record the identity of the caller in the userIdentity field. This field includes the type of principal, ARN, account ID, and other details. To determine which IAM principal modified a security group, the analyst must examine userIdentity.

Other fields like eventSource, requestParameters, and responseElements provide context about the action but not the actor.

Exam trap

The trap here is confusing the eventSource with the userIdentity, but eventSource only tells which service was called, not who called it.

41
MCQmedium

An organization experiences a ransomware attack that encrypts data across several EBS volumes. The team needs to restore operations as quickly as possible. Which strategy minimizes the impact of the incident while ensuring data integrity?

A.Attempt to brute-force the ransomware decryption key using high-performance compute instances.
B.Restore the affected volumes from the latest pre-incident EBS snapshots.
C.Copy the encrypted volumes to a new account and run a vulnerability scan.
D.Format the EBS volumes and manually copy data from the underlying S3 logs.
AnswerB

Restoring from snapshots is the most efficient and reliable method to recover from a ransomware incident. It ensures the integrity of the data by rolling back to a known-good state before the encryption occurred, effectively bypassing the malicious encryption and allowing the team to resume operations quickly.

Why this answer

Restoring from the latest pre-incident EBS snapshots is the fastest and most reliable way to recover encrypted volumes because snapshots are point-in-time, immutable copies stored in S3-managed storage that ransomware cannot encrypt. This approach preserves data integrity and lets the team recreate volumes in minutes, then reattach them to instances. It also avoids paying ransoms or relying on unproven decryption methods.

Exam trap

SCS-C03 often tests the misconception that you can 'scan' or 'brute-force' your way out of ransomware, when the exam-correct answer is always restore from immutable backups/snapshots.

How to eliminate wrong answers

Option A is wrong because brute-forcing modern ransomware encryption keys (typically AES-256 with RSA-wrapped keys) is computationally infeasible and wastes critical recovery time. Option C is wrong because copying encrypted volumes to another account and running a vulnerability scan does not decrypt data or restore operations — vulnerability scanners detect software flaws, not ransomware keys. Option D is wrong because EBS volumes do not have 'underlying S3 logs' containing the original data; formatting destroys the encrypted volume and there is no S3 log source to copy from.

42
MCQmedium

A security engineer receives an alert that an Amazon EC2 instance in a production VPC is communicating with a known malicious IP address. The engineer must isolate the instance for forensic analysis while preserving volatile memory and maintaining the ability to capture network traffic. Which action should the engineer take FIRST?

A.Stop the instance to prevent further malicious activity, then create an AMI for analysis.
B.Create a snapshot of the instance's EBS volumes, then terminate the instance to stop the attack.
C.Modify the instance's security group to allow only inbound SSH from the forensic workstation, then capture memory.
D.Isolate the instance by replacing its security group with one that allows no inbound or outbound traffic, then capture memory and network traffic.
AnswerD

Replacing the security group with a restrictive one that denies all inbound and outbound traffic effectively isolates the instance while it remains running. This preserves volatile memory for capture and allows the engineer to use tools like AWS Systems Manager Session Manager or a forensic jump host to capture RAM and network traffic. It prevents further malicious communication without destroying evidence.

Why this answer

The instance must remain running to preserve volatile memory and allow live network traffic capture. Isolating it with a security group that denies all traffic stops command-and-control communication and exfiltration without shutting down the operating system. Other actions like stopping or terminating the instance destroy volatile evidence, and merely restricting inbound SSH does not block outbound malicious traffic.

Exam trap

The trap here is assuming that stopping or terminating the instance is the fastest way to contain the threat, but doing so destroys volatile memory and prevents live forensic capture.

Ready to test yourself?

Try a timed practice session using only Incident Response questions.