Curated

Detection (1.1–1.3)

0 votes

Questions48

  1. Question 1

    Detection

    A security team needs an audit record identifying the IAM principal that invoked a sensitive AWS Lambda function. Which log source should the team ingest?

    Show the answer

    Correct answerA. CloudTrail data events

    AWhy this is right: Lambda data events capture Invoke API activity and the identity associated with the request.

    BWhy not this: Management events cover control-plane operations, not Lambda Invoke data-plane activity.

    CWhy not this: Configuration history records resource configuration changes, not individual function invocations.

    DWhy not this: Execution logs capture application output and execution details, not a standard audit record of the invoking IAM principal.

    CloudTrail data events record Lambda Invoke API activity, including caller identity. Management events record control-plane operations such as changing a function's configuration, rather than invoking it.

    Open this question
  2. Question 2

    Detection

    An application uses Amazon CloudFront with an Application Load Balancer origin. Investigators need viewer IP addresses and requested paths for requests served from the edge cache; which log source should they ingest?

    Show the answer

    Correct answerC. CloudFront standard access logs

    AWhy not this: Origin access logs omit requests satisfied by CloudFront's edge cache.

    BWhy not this: Management events record CloudFront configuration API activity, not viewer HTTP requests.

    CWhy this is right: CloudFront access logs include viewer IP addresses and requested paths for cache hits as well as misses.

    DWhy not this: Flow logs contain network flow metadata, not HTTP paths or a record of requests served at the edge.

    CloudFront standard access logs capture viewer requests, including requests served from cache. Application Load Balancer access logs capture only requests that reach the origin, so they omit cache hits.

    Open this question
  3. Question 3

    Detection

    A log archive bucket stores CloudTrail log objects with Object Lock compliance-mode retention of seven years. A new regulation requires ten years for objects already stored, and finance asks whether some objects could instead be released after five years. What can the security team do?

    Show the answer

    Correct answerA. Extend the existing objects' retain-until dates to ten years; no object's retention can be shortened.

    AWhy this is right: Compliance retention can be lengthened on existing versions, but no user can shorten it.

    BWhy not this: Default retention settings apply to new objects, not to versions already stored.

    CWhy not this: s3:BypassGovernanceRetention works only for governance-mode retention.

    DWhy not this: A compliance-mode version cannot be changed to governance mode during its retention period.

    In compliance mode, a version's retention period can be extended but never shortened or removed, and its mode cannot be changed, even by the root user. A bucket's default retention applies only to objects added after the change, and the governance bypass permission does not apply to compliance mode.

    Open this question
  4. Question 4

    Detection

    An application writes security-relevant JSON records to local files on Amazon EC2 instances. Analysts need centralized storage with interactive field-based searches within minutes of ingestion; which destination best fits?

    Show the answer

    Correct answerD. Amazon CloudWatch Logs

    AWhy not this: X-Ray stores distributed traces rather than serving as a general destination for application log files.

    BWhy not this: Deep Archive is intended for archival storage and requires restoration before records can be read.

    CWhy not this: Metrics stores numerical measurements and dimensions, not searchable original application log records.

    DWhy this is right: CloudWatch Logs centralizes application records and supports field-based searches with Logs Insights.

    CloudWatch Logs stores application log records and supports interactive field-based searches through Logs Insights. CloudWatch metrics stores numerical time-series measurements rather than the original JSON records.

    Open this question
  5. Question 5

    Detection

    An application on Amazon EC2 authenticates users against its own database. Security analysts must identify repeated failed user sign-ins; which telemetry should the monitoring requirements include?

    Show the answer

    Correct answerD. Application authentication logs with outcomes and user identifiers

    AWhy not this: Configuration history tracks resource changes rather than application sign-in attempts.

    BWhy not this: CloudTrail management events describe AWS API activity, not sign-ins handled by the application's database.

    CWhy not this: Network flow records do not reveal application authentication outcomes or user identities.

    DWhy this is right: Authentication outcomes and user identifiers allow analysts to correlate repeated failures for individual users.

    Application authentication logs record the outcomes and identities needed to identify repeated failed sign-ins. CloudTrail management events record AWS API activity, not authentication performed within the application.

    Open this question
  6. Question 6

    Detection

    An EC2 workload requires memory-utilization monitoring. Which telemetry must be collected beyond the instance metrics that EC2 publishes by default?

    Show the answer

    Correct answerA. Guest operating system memory metrics

    AWhy this is right: Memory utilization is measured inside the guest operating system and is not a default EC2 metric.

    BWhy not this: Detailed monitoring supplies supported EC2 metrics more frequently without adding memory utilization.

    CWhy not this: Instance status checks indicate instance-level health, not memory utilization.

    DWhy not this: EBS metrics describe storage activity rather than guest operating system memory usage.

    Memory utilization requires guest operating system telemetry, typically collected with the CloudWatch agent. EC2 detailed monitoring increases the frequency of supported EC2 metrics but does not add guest memory utilization.

    Open this question
  7. Question 7

    Detection

    A private application can return HTTP 200 even when its authenticated transaction workflow fails, and its endpoint must remain private. Operations requires an alert after three consecutive failed one-minute checks or when scheduled check results stop arriving; which strategy BEST meets these requirements?

    Show the answer

    Correct answerA. Use a VPC-connected canary to validate the workflow; alarm on three failed periods and treat missing data as breaching.

    AWhy this is right: Private workflow validation detects functional failures, and breaching missing data detects absent check results.

    BWhy not this: Treating missing results as not breaching would suppress the required alert when check results stop arriving.

    CWhy not this: A login-page health check can succeed while the authenticated transaction workflow is broken.

    DWhy not this: An internet-facing proxy violates the requirement to keep the application's endpoint private.

    A VPC-connected CloudWatch Synthetics canary can exercise the private authenticated workflow and validate application results. Three evaluation periods with all three required to breach detect consecutive failures; treating missing data as breaching also detects stopped checks. A login-page health check does not verify transaction success.

    Open this question
  8. Question 8

    Detection

    A company needs an audit record identifying the IAM principal responsible for every object read under an S3 bucket's confidential/ prefix, including reads that trigger no threat finding. Other prefixes generate heavy traffic but require no read auditing; which collection requirement BEST meets the need while limiting ingestion?

    Show the answer

    Correct answerC. Collect CloudTrail read data events filtered to the confidential prefix

    AWhy not this: Threat findings are selective detections, not a record of every object read.

    BWhy not this: Request metrics provide aggregate measurements, not a per-request audit identifying the IAM principal.

    CWhy this is right: Read data events capture object access identities, and prefix filtering avoids collecting unrelated object traffic.

    DWhy not this: Management events do not record object-level reads such as GetObject.

    CloudTrail S3 data events record object-level API activity and the calling identity; advanced event selectors can restrict collection to reads under the required prefix. GuardDuty findings identify suspicious activity rather than provide a complete access audit.

    Open this question
  9. Question 9

    Detection

    A Lambda function runs successfully, but its existing CloudWatch Logs streams receive no events. Its execution role allows logs:CreateLogGroup and logs:CreateLogStream but no other logging actions; which additional permission is required?

    Show the answer

    Correct answerC. Allow logs:PutLogEvents on the execution role.

    AWhy not this: lambda:InvokeFunction authorizes invocation, not writing log events.

    BWhy not this: logs:PutRetentionPolicy changes log retention rather than delivering events.

    CWhy this is right: The execution role needs logs:PutLogEvents to write events to the function's log streams.

    DWhy not this: The invoking user's permissions do not provide credentials for the function's log delivery.

    Lambda uses its execution role to write function logs, which requires logs:PutLogEvents. Giving that permission to the invoking user does not grant it to the running function.

    Open this question
  10. Question 10

    Detection

    Which CloudWatch metric reports whether an Amazon Route 53 health check considers its endpoint healthy?

    Show the answer

    Correct answerC. HealthCheckStatus

    AWhy not this: StatusCheckFailed reports EC2 status-check failures, not Route 53 endpoint health.

    BWhy not this: TargetResponseTime measures target response latency rather than Route 53 health-check status.

    CWhy this is right: HealthCheckStatus represents the healthy or unhealthy status of a Route 53 health check.

    DWhy not this: HealthyHostCount counts healthy load balancer targets, not Route 53 health-check status.

    Route 53 publishes HealthCheckStatus, with 1 indicating healthy and 0 indicating unhealthy. HealthyHostCount measures healthy load balancer targets rather than Route 53 health-check status.

    Open this question
  11. Question 11

    Detection

    Lambda log delivery fails after its log group is associated with an enabled, same-Region symmetric KMS key; the execution role still has all required CloudWatch Logs permissions. The key policy authorizes the execution role but not CloudWatch Logs, and access must be restricted to this log group; which key-policy change is appropriate?

    Show the answer

    Correct answerA. Authorize the regional Logs service principal, restricting kms:EncryptionContext:aws:logs:arn to the log group ARN.

    AWhy this is right: The regional Logs principal needs KMS access, and the log group encryption context provides the required scope.

    BWhy not this: CloudWatch Logs supplies a log group ARN, so a condition requiring a log stream ARN will not match.

    CWhy not this: The Lambda service is not the encrypting principal, and the encryption context is not the function ARN.

    DWhy not this: Lambda's execution role does not perform CloudWatch Logs encryption operations on the stored events.

    CloudWatch Logs performs the KMS operations and supplies the log group ARN as the aws:logs:arn encryption context. Authorizing only the Lambda execution role does not authorize the Logs service, and a log stream ARN would not match the supplied context.

    Open this question
  12. Question 12

    Detection

    An API Gateway REST API stage in eu-west-3 has execution logging enabled, and the CloudWatch Logs role ARN is set in API Gateway's settings for that Region. The role trusts apigateway.amazonaws.com and has the AmazonAPIGatewayPushToCloudWatchLogs policy, yet no execution logs appear. The same setup works in us-east-1. What should the administrator check?

    Show the answer

    Correct answerD. Whether AWS STS is activated for the account in eu-west-3.

    AWhy not this: Detailed metrics affect metric granularity, not API Gateway's ability to assume a role.

    BWhy not this: Data tracing adds request details to execution logs; it does not fix log delivery.

    CWhy not this: The backend function's execution role does not replace API Gateway's configured logging role.

    DWhy this is right: API Gateway needs AWS STS active in the API's Region to assume its CloudWatch Logs role.

    API Gateway calls AWS STS in the API's Region to assume the CloudWatch Logs role, so execution logging fails when the account has deactivated STS in that Region, even with a valid role. Data tracing and detailed metrics change what is recorded, not whether API Gateway can assume the role.

    Open this question
  13. Question 13

    Detection

    An Application Load Balancer routes requests to instances whose web servers remain responsive when a required database connection fails. How should the team detect instances that cannot serve application requests?

    Show the answer

    Correct answerA. Configure HTTP target health checks against a database-aware readiness path.

    AWhy this is right: A dependency-aware readiness path exposes application failures to the load balancer's target health checks.

    BWhy not this: EC2 status checks do not verify that an application can access its required database.

    CWhy not this: Connection counts measure traffic rather than whether an instance can complete application requests.

    DWhy not this: Configuration compliance does not establish the application's current ability to serve requests.

    An application readiness path can return a failure status when a required dependency is unavailable, allowing target health checks to detect unusable targets. EC2 status checks detect infrastructure or instance problems, not application dependency failures.

    Open this question
  14. Question 14

    Detection

    A security team needs AWS and third-party security logs from multiple accounts and Regions stored in a common schema in Amazon S3, with regional data consolidated for investigation. Which design best meets these requirements?

    Show the answer

    Correct answerD. Use Amazon Security Lake with custom sources and designated rollup Regions.

    AWhy not this: Finding aggregation centralizes findings rather than the underlying security logs required here.

    BWhy not this: Cross-account observability shares telemetry views; it does not create the required normalized S3 security data lake.

    CWhy not this: An organization trail centralizes CloudTrail events but does not normalize arbitrary third-party security logs.

    DWhy this is right: Security Lake supports OCSF-normalized data, custom sources, and cross-Region consolidation through rollup Regions.

    Amazon Security Lake normalizes supported security data to OCSF, accepts custom sources, and supports rollup Regions for consolidation. Security Hub CSPM aggregates findings, not the underlying AWS and third-party security logs into an S3 data lake.

    Open this question
  15. Question 15

    Detection

    Which CloudTrail configuration centrally records management events for all accounts in an AWS organization, including accounts added later?

    Show the answer

    Correct answerD. A multi-Region organization trail

    AWhy not this: A dashboard displays telemetry but does not configure organization-wide management event recording.

    BWhy not this: A member-account trail does not extend its coverage to other organization accounts.

    CWhy not this: An AWS Config aggregator collects configuration and compliance data rather than CloudTrail management events.

    DWhy this is right: An organization trail covers organization accounts and automatically applies to newly added member accounts.

    An organization trail applies to organization member accounts, including accounts that join later. A member-account trail records activity only for its own account, even when configured for multiple Regions.

    Open this question
  16. Question 16

    Detection

    A company uses Route 53 failover records in a private hosted zone for a service reachable only inside its VPCs. Which actions let DNS failover use the service's measured availability without exposing it publicly? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Create a CloudWatch alarm that evaluates the published availability metric.E. Run a probe inside the VPC and publish a custom availability metric to CloudWatch.F. Associate an alarm-based Route 53 health check with the primary failover record.

    AWhy not this: Resolver query logs record DNS queries, not service availability, and cannot serve as a record's health check.

    BWhy this is right: The alarm evaluates the availability metric for use by an alarm-based Route 53 health check.

    CWhy not this: Calculated health checks combine child health checks; they do not directly probe a private service.

    DWhy not this: Route 53 endpoint health checkers cannot directly reach private IP addresses.

    EWhy this is right: A probe inside the VPC can reach the private service and publish its observed availability.

    FWhy this is right: The health check connects the alarm's underlying metric evaluation to the primary record's health.

    A VPC-local probe can publish availability to CloudWatch; an alarm-based Route 53 health check can then control the primary failover record. Route 53 endpoint health checkers cannot directly probe private IP addresses, and calculated checks combine other checks rather than probe endpoints.

    Open this question
  17. Question 17

    Detection

    A security appliance runs on Amazon EC2, and its vendor requires monitoring guest operating system memory utilization. Which approach supplies this telemetry to Amazon CloudWatch?

    Show the answer

    Correct answerB. Install and configure the CloudWatch agent on the instance.

    AWhy not this: VPC Flow Logs capture network flow metadata, not guest operating system memory usage.

    BWhy this is right: The CloudWatch agent can collect memory utilization from the guest operating system.

    CWhy not this: CloudTrail management events record API activity rather than operating system resource utilization.

    DWhy not this: Detailed monitoring changes the frequency of supported EC2 metrics; it does not collect guest memory utilization.

    The CloudWatch agent collects guest operating system metrics, including memory utilization. EC2 detailed monitoring increases the frequency of supported EC2 metrics but does not add guest memory metrics.

    Open this question
  18. Question 18

    Detection

    CloudWatch Logs ingestion fails for a new log group using an existing customer managed KMS key, while the old group still works. The key policy allows the regional Logs service principal only when the encryption context matches the old group's ARN; how should an administrator restore ingestion without broadening access to other groups?

    Show the answer

    Correct answerD. Add the new group's ARN to the allowed encryption context.

    AWhy not this: PutLogEvents permissions do not resolve a KMS key policy condition that excludes the new log group.

    BWhy not this: An account-wide wildcard would authorize other groups, violating the requirement to preserve restricted access.

    CWhy not this: The Logs service uses the key for log group encryption; producer permissions do not fix the restrictive key policy condition.

    DWhy this is right: Allowing the new group's encryption context permits its encryption operations without authorizing unrelated groups.

    CloudWatch Logs uses the log group ARN in its KMS encryption context. Allowing the new ARN restores key use while preserving group-level restrictions; granting the producer KMS permissions does not fix the service principal's context restriction.

    Open this question
  19. Question 19

    Detection

    After an application update, the CloudWatch agent still sends system logs but no longer sends application logs. The application now writes to a different directory; what should the administrator do?

    Show the answer

    Correct answerC. Update the agent's file_path and load the revised configuration.

    AWhy not this: Retention controls how long received events remain available, not which local files the agent collects.

    BWhy not this: Restarting with the existing configuration continues monitoring the old file location.

    CWhy this is right: Updating file_path and loading the configuration directs the agent to the new application log location.

    DWhy not this: Additional stream permissions do not correct a collection path that points to the old directory.

    The agent must collect from the application's new file location, and the revised configuration must be loaded. Restarting with the existing configuration leaves the obsolete path unchanged.

    Open this question
  20. Question 20

    Detection

    CloudWatch agents in isolated subnets time out when sending logs; their configurations and IAM permissions are valid, and VPC DNS support and DNS hostnames are enabled. With internet egress prohibited and no existing endpoints, which changes establish private connectivity to CloudWatch Logs? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Allow inbound TCP 443 from the instances on the endpoint security group.C. Create a CloudWatch Logs interface VPC endpoint with private DNS enabled.

    AWhy not this: Agents initiate the connections; stateful security groups permit response traffic without an instance inbound rule.

    BWhy this is right: Agents initiate HTTPS connections, so the endpoint security group must accept their traffic on TCP 443.

    CWhy this is right: The Logs interface endpoint supplies private connectivity, and private DNS directs standard service names to it.

    DWhy not this: The monitoring endpoint serves metrics APIs rather than the CloudWatch Logs ingestion APIs.

    A CloudWatch Logs interface endpoint with private DNS provides the private destination, and its security group must accept HTTPS from the agents. The monitoring endpoint serves CloudWatch metrics APIs, not CloudWatch Logs.

    Open this question
  21. Question 21

    Detection

    A CloudTrail trail delivers S3 object deletion events but no object retrieval events for the same bucket. Its S3 object data event selector includes only write events; which change restores retrieval logging?

    Show the answer

    Correct answerC. Extend the selector to include read data events.

    AWhy not this: Longer retention preserves delivered logs but cannot capture events excluded by the selector.

    BWhy not this: Integrity validation helps detect modification of delivered log files; it does not expand event collection.

    CWhy this is right: Including read data events captures object retrieval operations for the selected bucket.

    DWhy not this: Read-only management events do not include S3 object-level GetObject operations.

    S3 object retrieval operations such as GetObject are read data events, so the data event selector must include them. Read-only management events cover control-plane activity, not object retrieval.

    Open this question
  22. Question 22

    Detection

    The CloudWatch agent sends each line of an application's stack traces as a separate log event. Each new application record starts with a timestamp; what should the administrator configure to preserve each stack trace as one event?

    Show the answer

    Correct answerD. A multiline start pattern matching timestamps

    AWhy not this: Metric filters extract metric values from ingested events rather than combine lines into events.

    BWhy not this: Subscription filters forward already-ingested events; they do not define how the agent groups file lines.

    CWhy not this: Log stream names identify event streams; they do not control multiline event boundaries.

    DWhy this is right: Matching each record's starting timestamp groups its continuation lines into the same log event.

    The agent's multi_line_start_pattern identifies the beginning of each event, grouping subsequent lines until the next match. A subscription filter forwards events after ingestion and cannot repair event boundaries established by the agent.

    Open this question
  23. Question 23

    Detection

    A company is adding a third-party appliance as an Amazon Security Lake custom source. A separate analytics vendor must retrieve the resulting S3 objects and receive notifications of new objects, without querying through Lake Formation; which configurations meet these requirements? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Create a data access subscriber with S3 access and SQS notifications.D. Have the custom source write OCSF-compatible records in Apache Parquet format.

    AWhy not this: Query access subscribers use Lake Formation permissions rather than the requested direct-object access model.

    BWhy this is right: Data access subscribers retrieve S3 objects and can receive new-object notifications through Amazon SQS.

    CWhy not this: Automatic normalization of supported native sources does not extend to arbitrary raw JSON from custom sources.

    DWhy this is right: Custom sources must provide OCSF-compatible data in Apache Parquet format for ingestion into Security Lake.

    Security Lake custom sources must supply OCSF-compatible data in Apache Parquet format. A data access subscriber supports S3 object retrieval and SQS notifications; a query access subscriber instead uses Lake Formation, and custom-source data is not automatically normalized from raw JSON.

    Open this question
  24. Question 24

    Detection

    A team wants CloudTrail management events from an existing trail to reach CloudWatch Logs within minutes so a metric filter can alarm on console sign-ins by the root user. Which trail configuration is required?

    Show the answer

    Correct answerB. Add a CloudWatch Logs log group and a role CloudTrail can assume to the trail.

    AWhy not this: Metric filters evaluate CloudWatch Logs log groups, not objects in S3.

    BWhy this is right: CloudWatch Logs delivery needs a log group and a role CloudTrail can assume to write events.

    CWhy not this: Console sign-in events are management events, so data event selectors are not needed.

    DWhy not this: Insights flags unusual rates of API activity, not each root sign-in.

    A trail sends events to CloudWatch Logs when it is configured with a log group and an IAM role that CloudTrail assumes to create log streams and put events. Metric filters work on log groups, not S3 objects; console sign-ins are management events, and Insights detects unusual API call volumes rather than individual events.

    Open this question
  25. Question 25

    Detection

    An organization requires centralized management-event logging for existing and future member accounts across all enabled AWS Regions, including Regions enabled later. Member administrators must not be able to change the logging configuration; which design meets these requirements?

    Show the answer

    Correct answerD. Create a multi-Region organization trail from the management account, delivering to a central S3 bucket.

    AWhy not this: Cross-account observability shares telemetry visibility; it does not configure organization-wide CloudTrail event collection.

    BWhy not this: Account trails remain modifiable by authorized member administrators; StackSets deployment does not make them organization trails.

    CWhy not this: An organization trail covers member accounts, but single-Region scope does not satisfy the required regional coverage.

    DWhy this is right: An organization trail provides centrally controlled account coverage; multi-Region scope includes subsequently enabled Regions.

    A multi-Region organization trail covers member accounts, includes accounts added later, and extends to subsequently enabled Regions; member administrators cannot modify it. StackSets can deploy account trails, but those remain account-level resources rather than centrally protected organization trails.

    Open this question
  26. Question 26

    Detection

    A security team needs ongoing visibility into which S3 buckets across 200 organization accounts contain personal data, with findings it can alert on. It does not want to create or schedule discovery jobs for each bucket. Which Amazon Macie configuration meets these requirements?

    Show the answer

    Correct answerB. Enable automated sensitive data discovery from the Macie delegated administrator account.

    AWhy not this: One-time jobs must be created per account and do not provide ongoing discovery.

    BWhy this is right: Automated discovery continually samples buckets across the organization without per-bucket jobs.

    CWhy not this: Policy findings report access and encryption settings, not whether buckets contain personal data.

    DWhy not this: An allow list tells Macie which text to ignore; it does not detect sensitive data.

    Automated sensitive data discovery, enabled by the Macie delegated administrator for the organization, continually samples objects across buckets and produces sensitive data findings that can be routed through EventBridge for alerts. Discovery jobs must be created and scheduled, and policy findings report bucket settings rather than contents.

    Open this question
  27. Question 27

    Detection

    A security team wants to search CloudWatch Logs and view CloudWatch metrics from 40 member accounts in one central security account, without copying the log data into that account. Which approach BEST meets these requirements?

    Show the answer

    Correct answerB. Configure CloudWatch cross-account observability with the security account as the monitoring account.

    AWhy not this: A Config aggregator collects configuration and compliance data, not log events or metrics.

    BWhy this is right: Linked source accounts share logs and metrics with the monitoring account without copying them.

    CWhy not this: Subscription filters copy log events to another destination, which the team wants to avoid.

    DWhy not this: Cross-Region aggregation consolidates Security Hub CSPM findings, not CloudWatch logs and metrics.

    CloudWatch cross-account observability links source accounts to a monitoring account, which can then query their logs and view their metrics in place. Subscription filters copy log data, a Config aggregator collects configuration and compliance data, and Security Hub CSPM aggregation consolidates findings rather than logs and metrics.

    Open this question
  28. Question 28

    Detection

    A service publishes one-minute counts of authentication attempts and failures, with traffic varying widely. Analysts require an alert when failures exceed 10% in at least three of five minutes, counting only minutes with at least 100 attempts; which CloudWatch configuration meets these requirements?

    Show the answer

    Correct answerD. Alarm on failure-rate metric math above 10%, gated by at least 100 attempts, using three of five periods.

    AWhy not this: Five breaching periods out of five requires consecutive breaches rather than three within the window.

    BWhy not this: A five-minute aggregate does not evaluate the failure percentage and minimum traffic separately for each minute.

    CWhy not this: A raw failure count does not normalize failures against changing authentication traffic.

    DWhy this is right: The percentage, traffic gate, and three-of-five evaluation jointly implement all the requirements.

    Use one-minute Sum values to calculate the failure percentage, gate it on at least 100 attempts, and configure three breaching datapoints out of five. A five-minute aggregate can conceal individual breaching minutes and does not implement the required voting window.

    Open this question
  29. Question 29

    Detection

    An organization configures AWS Security Hub CSPM (formerly AWS Security Hub) cross-Region aggregation to automatically link new Regions. After launching workloads in another supported Region, analysts find that Security Hub CSPM is disabled there and no findings arrive; what should they do?

    Show the answer

    Correct answerC. Enable Security Hub CSPM for the relevant accounts in the new Region.

    AWhy not this: Changing the home Region does not enable Security Hub CSPM in the source accounts and Region.

    BWhy not this: AWS Config aggregators collect configuration and compliance information, not Security Hub CSPM findings.

    CWhy this is right: Linked Regions must have Security Hub CSPM enabled before their findings can be aggregated.

    DWhy not this: CloudTrail records API activity but does not enable Security Hub CSPM or its finding aggregation.

    Automatic Region linking does not enable Security Hub CSPM in a Region. Enable the service in the relevant accounts there so its findings can participate in aggregation; changing the home Region does not address disabled source-Region coverage.

    Open this question
  30. Question 30

    Detection

    Amazon Security Lake replicates logs from source Regions to a rollup Region. Source copies must expire after 30 days, while rollup copies must remain for 365 days; how should retention be configured?

    Show the answer

    Correct answerC. Set 30-day retention in source Regions and 365-day retention in the rollup Region

    AWhy not this: Removing catalog metadata does not expire the underlying source objects after 30 days.

    BWhy not this: Rollup retention does not configure expiration of objects in source Regions.

    CWhy this is right: Independent regional lifecycle settings provide the required retention for each copy.

    DWhy not this: Replication does not automatically assign a 365-day retention period to rollup copies.

    Security Lake lifecycle settings are regional: source and rollup copies need their own retention settings. Replication does not make the rollup Region's lifecycle policy govern source copies.

    Open this question
  31. Question 31

    Detection

    A third-party SIEM must retrieve newly delivered Amazon Security Lake log objects from Amazon S3 rather than run SQL queries. Which integration should a security engineer configure?

    Show the answer

    Correct answerB. A Security Lake subscriber with data access

    AWhy not this: Query access supports querying Security Lake tables rather than consuming newly delivered S3 objects.

    BWhy this is right: Data access lets the subscriber retrieve S3 objects and receive notifications about new data.

    CWhy not this: A CloudWatch Logs subscription forwards CloudWatch log events, not objects already stored in Security Lake.

    DWhy not this: A crawler discovers metadata; it does not establish subscriber access or delivery notifications.

    A data-access subscriber can retrieve Security Lake objects and receive notifications when new data arrives. Query access instead uses Lake Formation permissions to support querying the lake.

    Open this question
  32. Question 32

    Detection

    An Athena log table is partitioned by a separate date key, but an investigation query filters only the event timestamp and scans months of data. How should an analyst reduce scanned data while preserving every matching event?

    Show the answer

    Correct answerA. Add a partition-key predicate covering the relevant dates

    AWhy this is right: Filtering the partition key excludes irrelevant partitions while the timestamp filter preserves exact matching.

    BWhy not this: Selecting fewer columns does not resolve the missing partition pruning and may not reduce scans of row-oriented logs.

    CWhy not this: A result limit can omit matching events and does not reliably prevent scanning unrelated partitions.

    DWhy not this: Sorting changes result order but does not eliminate unrelated date partitions from the scan.

    A predicate on the date partition key lets Athena prune irrelevant partitions; retain the timestamp filter for exact event selection. A result limit restricts returned rows, not reliably the data scanned, and could omit matching events.

    Open this question
  33. Question 33

    Detection

    Which AWS service builds a security data lake in your account from supported AWS, SaaS, and custom security sources?

    Show the answer

    Correct answerB. Amazon Security Lake

    AWhy not this: OpenSearch Service provides indexing, search, and analytics rather than a managed security data lake.

    BWhy this is right: Security Lake collects supported security sources into a data lake stored in your account.

    CWhy not this: CloudTrail records AWS account activity rather than building a lake from these diverse security sources.

    DWhy not this: CloudWatch Logs centralizes log ingestion and analysis but does not provide the described security data lake.

    Amazon Security Lake builds a security data lake from supported AWS, SaaS, and custom sources. OpenSearch Service provides search and analytics but is not the managed security data lake service.

    Open this question
  34. Question 34

    Detection

    An investigation team has months of logs in Amazon S3 with tables already defined in the AWS Glue Data Catalog. Which service should analysts use for ad hoc SQL analysis without loading the logs into another datastore?

    Show the answer

    Correct answerA. Amazon Athena

    AWhy this is right: Athena queries S3 data directly and uses AWS Glue Data Catalog metadata.

    BWhy not this: Managed Grafana visualizes data from connected sources; it is not the SQL engine for the S3 tables.

    CWhy not this: OpenSearch normally requires ingesting and indexing the archived logs into its datastore.

    DWhy not this: CloudWatch Logs Insights analyzes log groups rather than querying these S3 tables directly.

    Athena runs SQL queries directly against S3 data using catalog table definitions. CloudWatch Logs Insights queries CloudWatch log groups, not arbitrary S3 log archives.

    Open this question
  35. Question 35

    Detection

    A team must run an approved operating-system security assessment every night on Systems Manager managed EC2 instances tagged SecurityAssessment=Enabled, including future matching instances. What should the team configure in State Manager? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. An association referencing the assessment's Systems Manager documentD. Association targets using the SecurityAssessment=Enabled tagE. A recurring nightly schedule for the association

    AWhy not this: An aggregator centralizes AWS Config data; it does not execute the assessment on managed instances.

    BWhy not this: A dashboard displays results but does not define assessment execution or targeting.

    CWhy this is right: The association references the document that defines the assessment to perform.

    DWhy this is right: Tag-based targets let the association apply to current and future matching managed instances.

    EWhy this is right: A recurring association schedule provides the required nightly execution.

    A State Manager association specifies the document to run, its targets, and its execution schedule. Tag-based targeting includes matching managed nodes as the fleet changes; an AWS Config aggregator collects compliance data but does not schedule operating-system assessments.

    Open this question
  36. Question 36

    Detection

    A security team publishes failed-authentication counts to CloudWatch; normal counts vary by hour and weekday. Which alerting design detects unusually high counts relative to that pattern with the least ongoing threshold maintenance?

    Show the answer

    Correct answerA. Create an anomaly detection alarm using the metric's expected upper band.

    AWhy this is right: The expected band adapts to historical patterns and supports alarms for unusually high values.

    BWhy not this: A fixed weekly maximum can miss anomalies during normally quiet periods and requires threshold maintenance.

    CWhy not this: A dashboard supports visual investigation but does not provide the required automated alert.

    DWhy not this: Adjacent-period comparisons can flag normal transitions and miss anomalies that persist across periods.

    CloudWatch anomaly detection models expected metric behavior, including hourly and weekly patterns, and can alarm above the expected band. A previous-period comparison detects changes between adjacent periods rather than deviations from the expected seasonal pattern.

    Open this question
  37. Question 37

    Detection

    An AWS Config rule flags security groups that allow unrestricted SSH, and automatic remediation runs the AWS-DisableIncomingSSHOnPort22 Automation runbook. Every remediation attempt fails with AccessDenied, although AWS Config's service-linked role exists. What should the security engineer configure?

    Show the answer

    Correct answerD. Set the AutomationAssumeRole parameter to a role that allows ec2:RevokeSecurityGroupIngress.

    AWhy not this: Retrying uses the same permissions, so every attempt still fails.

    BWhy not this: Service-linked role permissions are fixed by AWS and cannot be extended.

    CWhy not this: Recording IAM resources changes what Config evaluates, not the permissions the runbook uses.

    DWhy this is right: The runbook acts with its AutomationAssumeRole, which needs the permissions for the remediation.

    AWS Config starts the runbook, but Systems Manager Automation performs the changes with the role given in the AutomationAssumeRole parameter. That role must trust Systems Manager and allow the actions the runbook takes. Service-linked roles cannot be edited, and more retries repeat the same failure.

    Open this question
  38. Question 38

    Detection

    An organization is setting up multi-account management of AWS Security Hub CSPM (formerly AWS Security Hub) for the first time. Security Hub CSPM and the required standards must run in every current and future account and AWS Region, with one control disabled only for accounts in a laboratory OU. Member accounts must not be able to change these settings. Which approach BEST meets these requirements?

    Show the answer

    Correct answerA. Attach a root Security Hub CSPM declarative policy for ALL_SUPPORTED Regions, and a laboratory OU declarative policy that disables the control.

    AWhy this is right: The root policy covers every account and all current and future Regions; the closer OU policy disables the control, and governed accounts cannot change it.

    BWhy not this: A Regional override replaces the configuration for a Region, not an OU, so it would change that Region for every account instead of only laboratory ones.

    CWhy not this: Regions missing from a policy's lists stay ungoverned, so Regions added later would not get the baseline; ALL_SUPPORTED covers future Regions.

    DWhy not this: Local configuration auto-enables only new accounts in the current Region, so existing accounts and other Regions are not configured centrally.

    Security Hub CSPM declarative policies are AWS Organizations policies and the recommended way to manage Security Hub CSPM across an organization. A root policy applies to every account, including accounts that join later, and ALL_SUPPORTED includes current and future Regions; a policy on the laboratory OU, closer to its accounts, disables the one control. Governed accounts cannot change these settings through the console or API. Regional overrides vary settings by Region, not by OU.

    Open this question
  39. Question 39

    Detection

    Which AWS Config feature packages compliance rules and remediation actions into a single deployable template?

    Show the answer

    Correct answerC. Conformance pack

    AWhy not this: A snapshot captures recorded resource configurations rather than defining a deployable compliance package.

    BWhy not this: An aggregator collects configuration and compliance data across accounts and Regions rather than packaging rules.

    CWhy this is right: A conformance pack defines a collection of AWS Config rules and remediation actions in one template.

    DWhy not this: A recorder records supported resource configurations rather than packaging assessments and remediation.

    An AWS Config conformance pack packages rules and remediation actions for deployment together. A configuration aggregator centralizes configuration and compliance data but does not package or deploy assessment rules.

    Open this question
  40. Question 40

    Detection

    Analysts repeatedly use Athena to join a year of JSON security logs in S3, filtering by account and date and reading only a few fields; scan costs are high. Original objects must remain unchanged, but derived datasets are permitted. Which change BEST reduces scanned data while preserving SQL joins?

    Show the answer

    Correct answerB. Create Parquet copies partitioned by account and date, and query the filtered partitions.

    AWhy not this: Columnar storage helps, but leaving the data unpartitioned misses partition pruning for the recurring account-and-date filters.

    BWhy this is right: Partition pruning skips irrelevant accounts and dates; Parquet lets Athena read selected columns from the remaining data.

    CWhy not this: Partition pruning and compression help, but JSON does not provide Parquet's columnar reads for narrow field selections.

    DWhy not this: A scan limit can stop expensive queries; it does not optimize scanned data or ensure the requested results are returned.

    Partitioned Parquet combines partition pruning with columnar reads, reducing scans for account-and-date filters and narrow field selections without modifying originals. Partitioned compressed JSON reduces some scanning but still requires reading records rather than only selected columns.

    Open this question
  41. Question 41

    Detection

    Application JSON logs already retained in CloudWatch Logs contain userId and authenticationResult fields. An analyst needs the users with the most failed authentications during the previous six hours, without deploying additional components. What should the analyst use?

    Show the answer

    Correct answerC. A CloudWatch Logs Insights query that groups failures by userId

    AWhy not this: Athena can query a log group only after its CloudWatch Logs connector is deployed, which the requirement rules out.

    BWhy not this: A newly created metric filter does not process the previously retained events needed for this investigation.

    CWhy this is right: Logs Insights supports filtering stored JSON events, grouping by a field, and sorting aggregated counts.

    DWhy not this: CloudTrail event history contains AWS management events, not arbitrary application authentication records.

    CloudWatch Logs Insights can filter retained events, aggregate failure counts by userId, and sort the results with no setup. Athena needs a deployed CloudWatch Logs connector to query a log group, and metric filters process only events ingested after they are created.

    Open this question
  42. Question 42

    Detection

    Security analysts need shared dashboards that visually correlate Amazon OpenSearch Service log query results with Amazon CloudWatch metrics, without running their own visualization servers. Which AWS service meets this requirement?

    Show the answer

    Correct answerD. Amazon Managed Grafana

    AWhy not this: Security Lake centralizes and normalizes security data rather than providing cross-source dashboards.

    BWhy not this: Data Firehose delivers streaming data to destinations rather than providing interactive correlation dashboards.

    CWhy not this: CloudTrail records AWS account activity; it does not provide dashboards across multiple data sources.

    DWhy this is right: Managed Grafana provides managed dashboards that combine logs and metrics from supported data sources.

    Amazon Managed Grafana provides managed dashboards that combine visualizations from supported data sources such as OpenSearch Service and CloudWatch. Amazon Security Lake centralizes security data in a standardized data lake; it does not provide dashboards across data sources.

    Open this question
  43. Question 43

    Detection

    Two application log streams share a request identifier but represent event time as epoch milliseconds and local-time strings with UTC offsets, respectively. Both feed Amazon OpenSearch Service, where analysts must reliably correlate events by occurrence time rather than delivery time. Which implementation BEST meets this requirement?

    Show the answer

    Correct answerD. Parse each source's timestamp into a common date field before indexing, and retain the request identifier.

    AWhy not this: Ingestion time measures arrival, so different delivery delays can distort the apparent sequence of related events.

    BWhy not this: An index alias provides a shared access name but does not normalize timestamp formats or time-zone offsets.

    CWhy not this: Keyword sorting compares text rather than normalized instants and cannot reliably order these different timestamp formats.

    DWhy this is right: Parsing the source formats and offsets preserves occurrence time in a comparable date field; the identifier links related events.

    Source-aware timestamp parsing produces a common event-time representation that supports chronological correlation across formats and offsets. Ingestion time is easier to standardize but represents arrival, which can differ from occurrence because of buffering or delivery delays.

    Open this question
  44. Question 44

    Detection

    Traffic between VPCs traverses a transit gateway, and investigators suspect missing routes or blackhole routes are dropping packets. Which log source provides attachment identifiers and packet-loss counters for these conditions?

    Show the answer

    Correct answerB. Transit gateway flow logs

    AWhy not this: CloudTrail records route configuration API activity rather than packet-loss counters.

    BWhy this is right: Transit gateway flow logs expose attachment identifiers and no-route and blackhole packet-loss counters.

    CWhy not this: VPC Flow Logs capture network interface traffic, not transit gateway route-loss counters.

    DWhy not this: Resolver query logs describe DNS queries, not packet forwarding failures.

    Transit gateway flow logs include attachment context and counters for packets lost because of missing routes or blackhole routes. VPC Flow Logs describe interface-level traffic but do not provide these transit gateway loss counters.

    Open this question
  45. Question 45

    Detection

    An Application Load Balancer uses an AWS WAF web ACL, and suspicious requests are blocked before reaching application targets. Investigators need the request URI and the exact terminating rule identifier; which logging should they enable?

    Show the answer

    Correct answerC. AWS WAF web ACL logging

    AWhy not this: Flow logs provide connection metadata, not HTTP URIs or WAF rule identifiers.

    BWhy not this: ALB access logs do not identify the exact WAF rule that terminated request evaluation.

    CWhy this is right: WAF logs include the request URI, action, and terminating rule identifier.

    DWhy not this: CloudTrail records WAF configuration API activity rather than individual evaluated web requests.

    AWS WAF logs include HTTP request details and the terminatingRuleId that identifies the rule ending evaluation. ALB access logs can indicate WAF-related handling but do not provide the exact terminating WAF rule identifier.

    Open this question
  46. Question 46

    Detection

    Several private subnets share a NAT gateway, and flow logs may be enabled only on the NAT gateway's network interface. Investigators must link each outbound connection's original private source address to its final internet destination address, destination port and time window. Which flow log configuration meets these requirements?

    Show the answer

    Correct answerB. Use custom flow logs with srcaddr, pkt-dstaddr, dstport, start, and end.

    AWhy not this: On the gateway interface, dstaddr is the NAT gateway's private IP, not the internet destination.

    BWhy this is right: srcaddr gives the instance, and pkt-dstaddr gives the final internet destination of the same packet.

    CWhy not this: The default format lacks pkt-dstaddr, so its dstaddr shows only the gateway for instance-side records.

    DWhy not this: This format lacks the final destination address and the destination port.

    For traffic from an instance to the NAT gateway, the record on the gateway's interface shows the instance's private IP in srcaddr, but dstaddr is the gateway's own private IP. The pkt-dstaddr field holds the final internet destination, so srcaddr with pkt-dstaddr, dstport, start and end links each source to its destination.

    Open this question
  47. Question 47

    Detection

    A security team suspects EC2 instances are resolving command-and-control domains through the Amazon-provided VPC DNS resolver. Which log source records the queried domain names and originating instance context?

    Show the answer

    Correct answerA. Amazon Route 53 Resolver query logs

    AWhy this is right: Resolver query logs capture queried names and source information for VPC resolver queries.

    BWhy not this: Flow logs do not record DNS query names and exclude traffic to the Amazon-provided DNS server.

    CWhy not this: CloudTrail management events record API operations rather than instance DNS queries.

    DWhy not this: Public hosted zone logs cover authoritative queries for those zones rather than VPC resolver activity.

    Route 53 Resolver query logs capture queries handled by the VPC resolver, including queried names and source context. Public hosted zone query logs cover queries to public authoritative zones, not general DNS resolution from VPC instances.

    Open this question
  48. Question 48

    Detection

    Two applications send logs with different timestamp formats and user identifier fields to Amazon CloudWatch Logs. Which actions would standardize these fields before indexing the events in Amazon OpenSearch Service? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Configure OpenSearch ingest pipelines to parse dates and rename fields.D. Use a subscription-triggered Lambda function to map fields into a shared schema.

    AWhy this is right: Ingest pipeline processors can parse timestamps and rename fields before documents are indexed.

    BWhy not this: A crawler discovers metadata; it does not rewrite event timestamps or field names.

    CWhy not this: A dashboard visualizes data but does not standardize the events before indexing.

    DWhy this is right: A Lambda subscription consumer can transform incoming events into a shared schema before sending them to OpenSearch.

    Lambda transformations and OpenSearch ingest pipelines can parse timestamps and map fields into a common schema before indexing. A Glue crawler discovers schemas but does not transform the underlying events.

    Open this question