Course menuDOP-C02

Exams / DOP-C02 / Study guide / Security Hub, GuardDuty and defense in depth

Security Hub, GuardDuty and defense in depth: DOP-C02 study notes and practice questions

What to know about Security Hub, GuardDuty and defense in depth for the DOP-C02 exam, from the Security and Compliance domain (17% of the exam guide), then 3 free questions to test it. Part of the DOP-C02 study guide.

Last verified against current AWS documentation ·How we write our questions

What to know for the exam

These questions ask how to detect and respond to threats and misconfigurations across many accounts with little manual effort.

Detection

Service Does
GuardDuty Threat detection from CloudTrail, VPC Flow Logs, DNS logs and optional protections (S3, EKS, runtime, malware, RDS, Lambda); extended threat detection links multi-stage attacks
Security Hub CSPM Runs security standards (AWS Foundational Security Best Practices, CIS, PCI DSS) as controls and aggregates findings in ASFF format
Security Hub Correlates and prioritizes findings across AWS security services
Inspector Vulnerability scanning for EC2, ECR images and Lambda
Macie Sensitive data in S3
Detective Investigates the history behind findings

Running them at scale

  • Use a delegated administrator for each service and auto-enable new accounts.
  • Security Hub CSPM central configuration applies standards and controls to every account and Region; cross-Region aggregation gives one view.

Automated response

  • Findings flow to EventBridge, so rules can start Lambda, Step Functions or SSM Automation to, for example, disable a compromised access key, isolate an instance with a quarantine security group, or notify on-call.
  • Security Hub automation rules update or suppress findings automatically.

Network protection

  • AWS WAF on CloudFront, ALB and API Gateway with managed rule groups and rate limits.
  • Shield Advanced for DDoS response and cost protection.
  • Network Firewall in a central inspection VPC reached through Transit Gateway, with stateful domain filtering and logging.
  • Firewall Manager applies WAF, security group, Network Firewall and DNS Firewall policies across accounts.

Common traps

  • Weekly manual reviews of findings that EventBridge can act on instantly.
  • Enabling services account by account instead of through a delegated administrator.
  • Security groups for domain-based egress filtering. Use Network Firewall.

Try the 3 practice questions

A university has 35 AWS accounts and operates in four Regions. The security office wants one place to see security findings from every account and Region, and it wants the standard security checks switched on everywhere.

The security office works in one account, and the other departments should not need to administer the security service themselves. The security office also wants the results to stay visible when a department changes its own account settings, and it reviews the same view every month.

Which approach meets these requirements?

Choose one answer.

  1. A. Enable Amazon Inspector in each account, and have each department review its own findings in the Inspector console on a monthly schedule.
  2. B. Enable AWS Config in each account and Region, and send each account's compliance changes to a shared mailbox so that the security office can review them.
  3. C. Designate the security account as the Security Hub CSPM delegated administrator, use central configuration to enable the standards everywhere, and aggregate findings from all Regions.
  4. D. Enable AWS Security Hub CSPM separately in each account and Region, and have each department turn on the standards it needs in its own account.
Show the answer and explanation

Answer: C

Explanation

Security Hub CSPM with a delegated administrator and central configuration enables the standards in every account and Region, and cross-Region aggregation gives the security office one view of findings. Departments do not run the service themselves. Separate setups, Inspector alone and Config mail each miss the single view or the standards.

Study

A video streaming service runs about 30 VPCs in one Region. Its services in those VPCs call a fixed list of third-party domains for licensing and analytics, and security wants all outbound internet traffic filtered by domain name and inspected centrally.

Some teams need to reach other domains for testing, and the security team wants those requests logged and blocked by default. The inspection must work for the whole estate from one place, with managed rule groups where possible.

Which approach meets these requirements?

Choose one answer.

  1. A. Tighten the security groups of every instance so that they only allow outbound traffic on ports 80 and 443, and rely on the security groups to restrict the destination domains.
  2. B. Add a network ACL to each subnet that denies traffic to any destination that is not on the list of approved IP addresses, and update the list when the third parties change addresses.
  3. C. Route outbound traffic through a transit gateway to an inspection VPC that runs AWS Network Firewall, with stateful domain rules that allow approved domains and drop the rest.
  4. D. Deploy AWS WAF in front of every service, and use a web ACL with a rule that blocks requests to domains that are not on the approved list.
Show the answer and explanation

Answer: C

Explanation

AWS Network Firewall can sit in a central inspection VPC, reached from the other VPCs through a transit gateway, and its stateful rules can allow or drop traffic by domain name while logging each decision. Security groups and network ACLs work on addresses and ports, and WAF protects inbound web requests rather than outbound calls.

Study

A SaaS startup has enabled Amazon GuardDuty in all of its accounts and sends the findings to AWS Security Hub CSPM. Last week a GuardDuty finding reported that an IAM access key used by a build role was calling AWS APIs from an unfamiliar network.

The on-call engineer found the finding eight hours after it was raised, because the security team reviews Security Hub CSPM only during business hours. The startup wants a high-severity finding of this kind to disable the access key and notify the on-call channel within a few minutes, with no manual step in the response.

Which approach meets these requirements?

Choose one answer.

  1. A. Create an EventBridge rule for high-severity GuardDuty key findings that starts a Systems Manager runbook, which deactivates the key and notifies on-call.
  2. B. Set up a weekly review of GuardDuty findings in each account, and have the security team disable any access key that appears in a finding during the review.
  3. C. Add a Config rule that flags access keys older than 90 days, so that old keys are disabled before they can be misused by attackers.
  4. D. Enable Amazon Macie in all accounts so that it reports any access key that appears in S3 objects, and have the security team delete those objects when they are found.
Show the answer and explanation

Answer: A

Explanation

GuardDuty findings can be routed through EventBridge as they are created, so an automation can disable a compromised access key and notify the on-call channel without waiting for a person. A weekly review, key-age rules and Macie do not detect or stop the activity described in the finding.

Automatic remediation of a security event through EventBridge A security finding or API call event, from services such as GuardDuty, Security Hub CSPM or CloudTrail, matches an EventBridge rule. The rule starts a Systems Manager Automation runbook or Lambda function through an IAM role, which fixes the resource and notifies the team. Security event finding or API call GuardDuty, Security Hub, CloudTrail API calls EventBridge rule event pattern matches type, severity or resource Automation runbook or Lambda function started through an IAM role Resource fixed and team notified within minutes, with a record of the run
A high-severity GuardDuty finding matches the rule, and the runbook deactivates the key and alerts on-call within minutes.

Study

Want more on Security Hub, GuardDuty and defense in depth? The 5 full-length practice sets have 13 more Security Hub, GuardDuty and defense in depth questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets

Study Security Hub, GuardDuty and defense in depth

More Security and Compliance topics