Courseiva

CCNA Detection Questions

20 questions · Detection · All types, answers revealed

1
MCQeasy

A company wants to aggregate security findings from AWS GuardDuty, AWS Inspector, and AWS Macie into a single dashboard for prioritized viewing. Which service should be used to provide this consolidated view of security alerts?

A.Amazon CloudWatch ServiceLens
B.AWS Security Hub
C.AWS Trusted Advisor
D.AWS Config Aggregator
AnswerB

Security Hub acts as a central repository for security findings from various AWS services and partner tools. It automatically normalizes finding data into the AWS Security Finding Format (ASFF), allowing security teams to analyze and respond to threats more efficiently across multiple accounts and regions.

Why this answer

AWS Security Hub is the primary service for aggregating, organizing, and prioritizing security findings from multiple AWS services. It provides a comprehensive view of the security state of an AWS environment by collecting data from GuardDuty, Inspector, Macie, and third-party products, facilitating a more effective incident response and compliance monitoring process.

2
MCQhard

Refer to the exhibit. The log entry shows a denied 'DeleteTable' attempt. Which service, if configured, would have automatically triggered an alert based on this specific log entry?

A.Amazon GuardDuty.
B.Amazon CloudWatch Metric Filters and Alarms.
C.AWS Security Hub.
D.AWS Trusted Advisor.
AnswerB

CloudWatch Metric Filters allow users to search CloudTrail logs for specific patterns, such as denied API calls. Once a pattern is matched, a metric can be incremented and an alarm can be configured to notify security personnel, providing an automated way to detect high-risk denied actions.

Why this answer

This log entry represents an unauthorized attempt to modify critical infrastructure. To alert on this, one must integrate CloudTrail with Amazon CloudWatch Logs and establish a Metric Filter that matches the 'Denied' status and the 'DeleteTable' action. This pattern is essential for incident response, as it allows security teams to distinguish between accidental user error and potential malicious reconnaissance or destructive intent by an insider.

3
MCQmedium

During an investigation into an EC2 instance compromise, a security analyst needs to understand the relationship between different AWS resources, such as which IAM roles were used and which IP addresses interacted with the instance. Which service should the analyst use to perform this graph-based investigation?

A.Amazon CloudWatch Logs Insights
B.AWS CloudTrail
C.Amazon Detective
D.AWS Security Hub
AnswerC

Amazon Detective simplifies the investigation process by aggregating data from CloudTrail, VPC Flow Logs, and GuardDuty. It creates a unified, interactive view that shows how resources interact over time, helping analysts quickly identify the scope and impact of a potential security incident.

Why this answer

Amazon Detective automatically collects log data from AWS resources and uses machine learning, statistical analysis, and graph theory to build a linked data set. This allows analysts to visualize and investigate the root cause of security findings by exploring the relationships and activities between users, roles, and IP addresses.

4
MCQmedium

A security team needs to identify which IAM users have not used their credentials for more than 90 days. Which service should be used to provide this information?

A.AWS CloudTrail.
B.IAM Credential Report.
C.AWS Config.
D.AWS Trusted Advisor.
AnswerB

The IAM Credential Report generates a report that lists all users and includes fields like 'password_last_used' and 'access_key_1_last_used'. This is the most direct and efficient way to identify users who haven't performed any actions in a specific time frame for compliance auditing.

Why this answer

IAM credential reports are the standard way to audit account security. They provide a comprehensive, comma-separated file that contains information about all users in the account and the status of their credentials, including password, access keys, and MFA status. This is critical for security hygiene and compliance, as it allows administrators to proactively disable or remove stale accounts, reducing the risk of unauthorized access via forgotten credentials.

5
MCQmedium

A security engineer needs to detect if any EC2 instances in an account have been launched with a public IP address. Which service should be used to automate this detection?

A.AWS CloudTrail.
B.AWS Config.
C.Amazon GuardDuty.
D.AWS Systems Manager.
AnswerB

AWS Config provides managed rules that continuously monitor resource configurations. By evaluating instances against the 'ec2-instance-no-public-ip' rule, it can automatically detect and alert on any instance that has an assigned public IP, fulfilling the requirement for automated detection of network exposure.

Why this answer

AWS Config is a powerful tool for enforcing compliance with infrastructure policies. By using managed rules like 'ec2-instance-no-public-ip', the engineer can automatically flag any instance that violates the policy. This is a critical detective control for preventing unauthorized network exposure, enabling the team to remediate the violation before a security incident occurs, which is essential for maintaining a hardened, private-by-default cloud environment.

6
MCQmedium

A security engineer wants to enable manual remediation of Security Hub findings directly from the AWS console. They want to be able to select a finding and trigger a specific Lambda function to isolate an instance. What is the correct way to configure this?

A.Create a Security Hub Custom Action and an EventBridge rule that triggers the Lambda function based on the Action ID.
B.Use the Security Hub 'Auto-Remediate' feature to link a finding type directly to a Lambda function.
C.Configure a CloudWatch Alarm to monitor Security Hub findings and trigger an SNS topic for remediation.
D.Enable the 'Remediation' standard in Security Hub and select the 'Isolate EC2' managed rule.
AnswerA

Custom Actions provide a way to integrate human-led decisions into automated workflows. By defining a custom action in Security Hub, you create a target for findings. When triggered, the finding is sent to EventBridge, which then invokes the Lambda function to perform the isolation.

Why this answer

Security Hub Custom Actions allow users to create custom response and remediation workflows. When a custom action is triggered by a user in the console, Security Hub sends the selected finding(s) to Amazon EventBridge. An EventBridge rule then matches the custom action ARN and triggers the associated Lambda function.

7
MCQeasy

Which AWS service uses machine learning to detect unusual activity, such as unauthorized access to S3 buckets or atypical API calls?

A.AWS Macie.
B.AWS GuardDuty.
C.AWS WAF.
D.AWS CloudTrail.
AnswerB

GuardDuty uses machine learning, anomaly detection, and integrated threat intelligence to monitor and protect AWS accounts. It is specifically designed to identify anomalous activity, such as unusual API calls or unauthorized access to sensitive resources like S3 buckets, based on baseline behavioral patterns.

Why this answer

AWS GuardDuty is an intelligent threat detection service that continuously monitors for malicious or unauthorized behavior. It leverages machine learning to analyze CloudTrail events, VPC Flow Logs, and DNS logs. This is essential for organizations because it identifies threats without requiring the management of complex rule sets, helping teams respond quickly to compromised accounts or malicious instances within the environment.

8
MCQhard

An organization is running critical workloads on Amazon EKS and wants to detect suspicious activity at the container runtime level, such as unauthorized process execution or unexpected file access. Which GuardDuty feature should be enabled to achieve this level of visibility?

A.GuardDuty EKS Audit Log Monitoring
B.GuardDuty Runtime Monitoring
C.Amazon Inspector Container Scanning
D.VPC Traffic Mirroring for EKS Worker Nodes
AnswerB

Runtime Monitoring uses a security agent to collect telemetry from individual containers and the underlying host. It identifies malicious behavior by monitoring system calls, providing detection for threats like crypto-mining, reverse shells, and privilege escalation that happen during the execution phase of a container.

Why this answer

GuardDuty Runtime Monitoring for EKS provides deep visibility into container-level activities. It uses a lightweight agent (GuardDuty security agent) deployed as a DaemonSet to monitor system calls and process execution. This allows GuardDuty to detect threats that occur within the container itself, which standard VPC Flow Logs or CloudTrail cannot see.

9
MCQmedium

An organization is concerned about detecting potential SQL injection attacks against their web application hosted on Application Load Balancer. Which service provides the best native detection capability?

A.Amazon GuardDuty.
B.AWS WAF with SQL injection rule sets.
C.Amazon Inspector.
D.AWS CloudTrail.
AnswerB

AWS WAF specifically includes managed rule sets and custom rule capabilities to detect SQL injection patterns in HTTP headers and request bodies. By deploying WAF in front of an ALB, organizations can detect and block these attacks automatically, which is the standard industry approach for web application layer protection.

Why this answer

AWS WAF provides native inspection of web traffic and can detect common patterns of SQL injection. It is the most effective tool to stop these attacks at the edge, before they reach the backend application. Proper configuration of WAF rules is a critical detective and preventative control, ensuring that malicious payloads are identified and filtered in real-time, which protects application databases from compromise and unauthorized data access.

10
MCQmedium

A financial institution requires that all CloudTrail logs be stored for seven years for compliance audits. They also need the ability to run complex SQL queries against these logs to identify specific user actions across all regions. What is the most cost-effective and operationally simple solution?

A.Store logs in an S3 bucket and use Amazon Athena to run SQL queries.
B.Use CloudTrail Lake to create an event data store with a seven-year retention period.
C.Stream logs to Amazon OpenSearch Service for real-time indexing and visualization.
D.Enable CloudWatch Logs for CloudTrail and use Logs Insights for querying.
AnswerB

CloudTrail Lake allows for the creation of an event data store that natively handles ingestion, storage, and querying. It supports the required seven-year retention and provides a familiar SQL interface, making it the most streamlined option for long-term compliance and ad-hoc security investigations.

Why this answer

CloudTrail Lake is a managed data lake that simplifies the storage and analysis of CloudTrail events. It eliminates the need to build complex ETL pipelines between S3, Glue, and Athena. It provides a built-in SQL query engine and supports long-term retention policies suitable for compliance requirements.

11
MCQmedium

An organization requires centralized monitoring of security findings from multiple AWS accounts. Which service should be used to aggregate these findings into a single dashboard?

A.AWS CloudWatch Dashboards.
B.AWS Security Hub.
C.AWS Systems Manager OpsCenter.
D.AWS Config Advanced Query.
AnswerB

Security Hub is specifically designed to aggregate, organize, and prioritize security alerts and findings from various AWS services and partner products. It offers a centralized dashboard that provides a comprehensive view of the security state across all accounts in an AWS Organization, fulfilling the requirement.

Why this answer

AWS Security Hub acts as a central hub for security posture management. By aggregating findings from GuardDuty, Inspector, IAM Access Analyzer, and third-party partners, it provides a unified view of security threats. This consolidation is critical for large-scale environments, as it allows security teams to prioritize alerts effectively, reduce operational overhead, and ensure consistent compliance monitoring across the entire organization via AWS Organizations integration.

12
MCQmedium

A company wants to detect when an IAM user executes a command from a suspicious IP address. Which tool can analyze historical CloudTrail data to establish a baseline of normal behavior and trigger alerts upon deviations?

A.CloudWatch Contributor Insights.
B.Amazon GuardDuty.
C.AWS CloudTrail Insights.
D.AWS Config.
AnswerB

GuardDuty is the purpose-built threat detection service in AWS. It continuously analyzes data sources to detect anomalies like unusual IP activity or API calls from unauthorized locations. Its machine learning models are continuously updated with threat intelligence, making it highly effective at detecting modern credential abuse patterns that bypass traditional firewalls.

Why this answer

Amazon GuardDuty provides automated anomaly detection based on CloudTrail, VPC Flow Logs, and DNS logs. It uses machine learning to profile typical user behavior and detects deviations such as logins from unusual locations or IP addresses associated with known malicious actors. This is crucial for environments where manual rule creation is impossible due to the sheer volume of users, as it identifies threats without requiring static IP allow-lists.

13
MCQmedium

A security team needs to perform deep packet inspection (DPI) on traffic entering and leaving a specific EC2 instance to look for complex attack signatures that VPC Flow Logs cannot detect. Which AWS feature should they use to facilitate this?

A.VPC Flow Logs with custom format fields.
B.VPC Traffic Mirroring
C.Amazon GuardDuty Network Monitoring
D.AWS Network Firewall with stateless rules.
AnswerB

Traffic Mirroring effectively acts as a 'virtual tap' in the cloud. It duplicates the L2 traffic from a source ENI and encapsulates it in VXLAN to be sent to a target (like another EC2 instance or a Network Load Balancer) where specialized security software can analyze the packets.

Why this answer

VPC Traffic Mirroring allows you to copy network traffic from an elastic network interface (ENI) of an EC2 instance and send it to a security appliance for inspection. This is essential for deep packet inspection (DPI), as it provides the actual packet payloads, unlike Flow Logs which only provide metadata.

14
Multi-Selectmedium

An organization wants to improve its vulnerability management posture by ensuring that all Amazon EC2 instances are regularly scanned for software vulnerabilities and unintended network exposure. Which TWO features of Amazon Inspector help achieve this?

Select 2 answers
A.Continuous scanning for software vulnerabilities in installed packages.
B.Network reachability analysis to detect open ports and exposure.
C.Automated remediation of insecure Security Group rules.
D.Real-time detection of brute-force login attempts.
E.Malware scanning for EBS volumes attached to instances.
AnswersA, B

Amazon Inspector uses the AWS Systems Manager (SSM) Agent to collect the inventory of installed software on EC2 instances. It then automatically compares this inventory against known vulnerability databases (CVEs) to identify and report any software that requires patching or updates.

Why this answer

Amazon Inspector is an automated vulnerability management service. It continuously scans EC2 instances for software vulnerabilities (using the SSM Agent) and network reachability issues. This dual approach ensures that both internal software flaws and external configuration weaknesses are identified and reported to the security team.

15
MCQhard

Which TWO actions should be taken to ensure that Amazon GuardDuty has the necessary data to detect unauthorized cryptocurrency mining instances?

A.Enable VPC Flow Logs in all regions.
B.Configure CloudWatch Logs with metric filters.
C.Enable DNS query logging in Route 53.
D.Install the CloudWatch agent on all instances.
E.Create an IAM role for GuardDuty to access S3.
AnswerA, C

VPC Flow Logs provide critical network metadata that GuardDuty analyzes to detect traffic to known malicious IP addresses or unexpected ports. By enabling these logs, GuardDuty gets visibility into the network behavior of EC2 instances, which is the primary indicator of cryptocurrency mining activities occurring within an AWS environment.

Why this answer

GuardDuty relies on both VPC Flow Logs and DNS logs to identify crypto-mining patterns. Flow logs enable the detection of connections to known mining pool endpoints, while DNS logs reveal attempts to resolve these malicious domain names. Providing these inputs ensures GuardDuty's machine learning models can accurately correlate network activity with known bad actors, which is vital for maintaining the performance and integrity of the compute infrastructure against resource hijacking.

16
MCQmedium

A security engineer needs to detect when an EC2 instance is launched with an unapproved Amazon Machine Image (AMI). Which AWS service should be used to automate this detection?

A.Amazon GuardDuty.
B.AWS Config.
C.AWS CloudTrail.
D.Amazon Inspector.
AnswerB

AWS Config allows for the creation of rules that evaluate the configuration of AWS resources. By checking the AMI ID of newly launched instances against an approved list, it provides real-time detection of non-compliant resources. This is the correct tool for enforcing configuration standards and auditing infrastructure against pre-defined organizational policies.

Why this answer

AWS Config is the ideal tool for continuous configuration monitoring. By creating a custom rule, you can evaluate the 'imageId' attribute of all EC2 instances upon launch. If an instance uses an AMI that is not on the approved list, Config marks it as non-compliant and can trigger automated remediation.

This ensures organizational compliance for image standards and prevents the usage of hardened, unapproved, or potentially vulnerable software instances.

17
Multi-Selecthard

A company wants to detect potential brute-force attacks against their public-facing web applications hosted on EC2 instances. Which TWO measures should the security team implement?

Select 2 answers
A.Enable AWS WAF rate-based rules to block IPs exceeding request thresholds.
B.Use AWS Shield Standard to mitigate Layer 7 application attacks.
C.Configure CloudWatch Logs agents to stream system auth logs to CloudWatch.
D.Enable AWS Trusted Advisor to monitor for open security groups.
E.Implement AWS Inspector to scan for vulnerabilities on the instances.
AnswersA, C

Rate-based rules in AWS WAF automatically track the number of requests from specific IP addresses over a rolling five-minute period. When a threshold is breached, the WAF can automatically block requests from those IPs, providing an effective first line of defense against automated brute-force login attempts.

Why this answer

Implementing a multi-layered defense strategy is essential for detecting and mitigating brute-force attacks. By combining network-level blocking through WAF and host-level monitoring via CloudWatch, organizations can ensure that anomalous patterns are detected in real-time. This proactive detection allows for automated responses, such as modifying security group rules, which significantly reduces the window of opportunity for attackers to successfully compromise sensitive workloads and accounts.

18
MCQhard

A security analyst needs to detect potential exfiltration of sensitive data from an S3 bucket that has public access blocked. Which Amazon GuardDuty feature should be configured to detect anomalous data access patterns by internal IAM users?

A.Enable VPC Flow Logs analysis within GuardDuty.
B.Activate S3 Protection in Amazon GuardDuty.
C.Configure AWS CloudTrail Insights for the S3 management events.
D.Deploy Macie to monitor S3 bucket access logs.
AnswerB

GuardDuty S3 Protection specifically monitors CloudTrail data events to detect suspicious behavior like unusual data access patterns or access from malicious IP addresses. It helps detect compromised credentials or insider threats attempting to exfiltrate data from buckets, making it the most effective tool for this specific security requirement.

Why this answer

GuardDuty S3 Protection analyzes CloudTrail S3 data events to detect anomalous activities, such as unusual access patterns or data access from unexpected locations. This feature is essential for identifying compromised identities that attempt to mass-download objects. By focusing on data-level events, it provides visibility into malicious behavior that standard API monitoring might miss, ensuring that even authorized users are monitored for activity that deviates from their historical baseline profile.

19
MCQhard

Refer to the exhibit. This GuardDuty finding indicates that malware was detected on an EC2 instance. What is the process GuardDuty used to perform this scan without installing an agent on the instance?

A.It uses the AWS Systems Manager (SSM) Agent to run a remote anti-virus script on the instance.
B.It takes a snapshot of the EBS volume, restores it to a service-owned account, and scans the volume there.
C.It performs deep packet inspection (DPI) on the VPC traffic to identify malware being downloaded.
D.It uses the GuardDuty Security Agent to perform a memory dump and analyze it for malicious strings.
AnswerB

GuardDuty automates the snapshotting and volume creation process in an isolated environment. By scanning a copy of the volume, GuardDuty avoids performance impacts on the production workload and maintains the integrity of the original data while searching for malicious file signatures and patterns.

Why this answer

GuardDuty Malware Protection performs agentless scans of EBS volumes. When a suspicious finding is triggered (like a command-and-control communication), GuardDuty creates a snapshot of the EBS volumes, shares them with a service-linked account, and then attaches them to a scanning instance to perform a malware analysis.

20
Multi-Selecthard

Which THREE of the following resource types are currently supported by IAM Access Analyzer to identify potential public or cross-account access?

Select 3 answers
A.Amazon S3 Buckets
B.AWS KMS Keys
C.Amazon SQS Queues
D.Amazon DynamoDB Tables
E.Amazon EC2 Security Groups
AnswersA, B, C

IAM Access Analyzer analyzes S3 bucket policies to identify if a bucket is accessible by anyone on the internet or by other AWS accounts. This is one of the most common use cases for the service to prevent data leaks from misconfigured storage permissions.

Why this answer

IAM Access Analyzer helps identify resources in your organization and accounts that are shared with an external entity. It does this by analyzing resource-based policies. This helps security teams identify unintended access to sensitive data or infrastructure and is a critical part of the 'Detection' domain.

Ready to test yourself?

Try a timed practice session using only Detection questions.