Courseiva

CCNA Incident Response Questions

12 questions · Incident Response · All types, answers revealed

1
Multi-Selectmedium

During a security incident involving suspected data exfiltration from an S3 bucket, which THREE sources provide the most relevant telemetry to determine what files were accessed?

Select 3 answers
A.CloudTrail Data Events
B.VPC Flow Logs
C.AWS WAF Logs
D.S3 Server Access Logs
E.AWS Trusted Advisor reports
AnswersA, B, D

CloudTrail Data Events capture object-level API operations like GetObject, PutObject, and DeleteObject. These logs are crucial for identifying exactly which files were accessed or modified by an attacker, as standard management events do not track data-plane operations for S3 buckets.

Why this answer

Determining S3 data access requires combining different logging layers. S3 Server Access Logs provide basic request data, while CloudTrail Data Events provide granular information about specific object-level API calls. VPC Flow Logs are essential if the access was routed through a VPC endpoint.

Using these three sources allows the investigator to correlate network traffic with specific identity-based API requests, providing a comprehensive view of the exfiltration activity.

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.

3
MCQmedium

An incident response team discovers an unauthorized IAM user created an access key in a production environment. The team must identify the exact time of key creation and the IP address used for the call. Which AWS service provides this forensic detail?

A.AWS Config
B.Amazon GuardDuty
C.AWS CloudTrail
D.AWS CloudWatch Metrics
AnswerC

CloudTrail maintains a complete history of AWS API calls made by users, roles, or services. By querying CloudTrail event logs via CloudWatch Logs Insights or Athena, investigators can pinpoint the exact timestamp, user identity, and source IP address associated with the specific IAM access key creation event.

Why this answer

AWS CloudTrail is the primary service for auditing API calls within an AWS account. It logs the identity of the caller, the time of the event, the source IP address, and the specific request parameters. In incident response, CloudTrail is critical for reconstructing a timeline of events and determining the scope of unauthorized access, ensuring that remediation efforts are targeted and effective based on accurate forensic data.

4
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.

5
Multi-Selectmedium

An organization wants to improve their ability to respond to security incidents. Which TWO of the following services provide centralized visibility and management for security findings?

Select 2 answers
A.AWS Security Hub
B.Amazon Detective
C.Amazon CloudWatch
D.AWS Artifact
E.AWS Systems Manager
AnswersA, B

Security Hub aggregates security findings from across AWS services and partner products into a single location. It provides a centralized view of an organization's security posture and compliance status, which is vital for prioritizing and managing incident response workflows during a security event.

Why this answer

AWS Security Hub and Amazon Detective are designed to aggregate, manage, and investigate security data. Security Hub acts as the central pane of glass for findings from various AWS services, while Detective provides the visualization tools needed to investigate the root cause of those findings. Together, they streamline the identification and triage process, allowing responders to move quickly from alert to conclusion during a security incident.

6
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

Creating a dedicated, separate Log Archive account is the industry standard for centralized log management. By aggregating CloudTrail and other logs into a single, hardened account with restricted access, the organization ensures that even if a production account is fully compromised, the audit trail remains secure and available for forensic investigation. This architecture prevents an attacker from destroying the evidence of their actions within the production environments.

7
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

Isolating the compromised instance using a dedicated security group ensures complete network containment while preventing any state loss. Stopping or terminating the instance would wipe volatile RAM memory, permanently destroying crucial artifacts required for deep forensic investigation. Preserving memory is critical for identifying intrusion vectors and achieving root cause analysis compliance during major security incidents.

8
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.

9
MCQmedium

An organization detects unauthorized access to an Amazon S3 bucket containing sensitive customer data. The Security team needs to immediately isolate the bucket while ensuring logs are preserved for forensic analysis. Which action should the team take first?

A.Delete the S3 bucket to prevent further unauthorized data access.
B.Disable AWS CloudTrail logging to stop generating potentially malicious log entries.
C.Apply a bucket policy that denies all 's3:*' actions for all users except the security incident response role.
D.Revoke all IAM user credentials globally to lock down the entire AWS account.
AnswerC

Applying a restrictive policy effectively contains the breach by blocking all traffic while ensuring the security team retains access for forensic examination. This preserves the environment's state for analysis while immediately halting ongoing unauthorized data exfiltration, satisfying the containment requirement without destroying the underlying data or audit logs.

Why this answer

Immediately restricting access via a restrictive bucket policy is the most effective way to stop data exfiltration while keeping the bucket available for investigation. Unlike deleting the bucket, which destroys evidence, a policy change enforces least privilege while maintaining the integrity of the data store for future forensics. This approach aligns with the containment phase of the AWS incident response lifecycle, prioritizing the cessation of malicious activity before proceeding to deeper investigation.

10
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.

11
MCQmedium

Refer to the exhibit. An incident responder observes that an attacker bypassed this S3 bucket policy and accessed objects from an IP address outside the 192.0.2.0/24 range. What is the most likely reason for this access?

A.The policy uses 'Allow' instead of 'Deny', allowing bypass by any identity with broad IAM permissions.
B.The bucket policy must include a Principal element to restrict access to specific identities.
C.The S3 bucket is configured with a public access block that is too permissive.
D.The 'aws:SourceIp' condition does not function for requests made through an AWS service like CloudFront.
AnswerA

Because the policy is an Allow statement, it acts as an additional permission grant rather than a restriction. IAM entities with sufficient permissions elsewhere in the account are not restricted by this policy because it does not contain a Deny rule to supersede those identity-based permissions.

Why this answer

The bucket policy is a resource-based policy that only grants permissions; it does not explicitly deny access from other IP addresses. In AWS, if an IAM user or role has an identity-based policy allowing 's3:GetObject' on that bucket, the resource-based policy will not restrict them unless it contains an explicit Deny. This behavior highlights the importance of using explicit Deny statements when enforcing network-based access controls on sensitive resources.

12
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 most recent known-good EBS snapshot allows for the rapid recovery of data in a clean state. By leveraging snapshots, the team bypasses the need to decrypt the ransomware-affected data, which is time-consuming and often impossible without the attacker's key. This method is the standard recovery procedure for persistent storage threats in AWS, providing a clear path back to service availability after containment is complete.

Ready to test yourself?

Try a timed practice session using only Incident Response questions.