Question 250
In a public application protection review, engineers must cover two different requirements: Protect against unwanted DNS redirection through domain management. In addition, Prevent all public access to an internal API endpoint. Which option implements both?
- Use AWS WAF Bot Control managed rule groups where supported; and use API Gateway private endpoint access with an appropriate resource policy
- Apply an AWS WAF IP set match condition on the front-end web ACL; and use AWS WAF Bot Control managed rule groups where supported
- Enable Route 53 domain transfer lock where applicable; and use API Gateway private endpoint access with an appropriate resource policy
- Enable Route 53 domain transfer lock where applicable; and apply an AWS WAF IP set match condition on the front-end web ACL
Explanation
Correct Answer
C:This pairing handles the first requirement (“Protect against unwanted DNS redirection through domain management”) because transfer locking limits unauthorized domain transfers, which is a registrar-level safeguard rather than a WAF request rule; it handles the second (“Prevent all public access to an internal API endpoint”) because A private API can be reached through supported interface endpoints and resource policies rather than a public internet-facing invoke URL; both acceptance criteria are therefore addressed.
Incorrect Answers
A:This solves the second problem (“Prevent all public access to an internal API endpoint”): A private API can be reached through supported interface endpoints and resource policies rather than a public internet-facing invoke URL; however, the first action addresses “Identify and block bot-like HTTP behaviors with application-aware inspection”: Bot Control evaluates bot-related request signals at the web ACL, rather than relying only on Layer 3 network filtering; it does not satisfy “Protect against unwanted DNS redirection through domain management.”.
B:Both mechanisms have legitimate uses, but for other requirements: IP sets match the configured client addresses, whereas DNS routing records do not filter application requests supports “Enforce a narrow set of IP ranges for public HTTP clients”; Bot Control evaluates bot-related request signals at the web ACL, rather than relying only on Layer 3 network filtering supports “Identify and block bot-like HTTP behaviors with application-aware inspection”; this does not resolve the stated “Protect against unwanted DNS redirection through domain management” and “Prevent all public access to an internal API endpoint” findings.
D:One action is correctly chosen for “Protect against unwanted DNS redirection through domain management”: Transfer locking limits unauthorized domain transfers, which is a registrar-level safeguard rather than a WAF request rule; the companion action relates to “Enforce a narrow set of IP ranges for public HTTP clients”: IP sets match the configured client addresses, whereas DNS routing records do not filter application requests; the other requested outcome, “Prevent all public access to an internal API endpoint,” remains outstanding.
Question 251
An assessment of the security event analytics project has two findings. Finding one: Determine which caller changed an IAM trust policy. Finding two: Search raw CloudWatch log messages for failed authentication patterns across streams. Which combination remediates both?
- Inspect CloudTrail UpdateAssumeRolePolicy records and request context; and configure Security Hub insights over normalized security findings
- Inspect CloudTrail UpdateAssumeRolePolicy records and request context; and run a CloudWatch Logs Insights query selecting and filtering relevant fields
- Configure Security Hub insights over normalized security findings; and examine supported KMS API activity in CloudTrail management events
- Examine supported KMS API activity in CloudTrail management events; and run a CloudWatch Logs Insights query selecting and filtering relevant fields
Explanation
Correct Answer
B:The implementation has a specific control for each objective: CloudTrail management events expose who invoked role trust changes and which policy update was submitted for “Determine which caller changed an IAM trust policy”; Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first for “Search raw CloudWatch log messages for failed authentication patterns across streams”; the combined option satisfies the two-part request.
Incorrect Answers
A:The first check would be covered, since CloudTrail management events expose who invoked role trust changes and which policy update was submitted; yet the second choice is associated with “Summarize findings by account, severity, and workflow state,” for which Security Hub insights aggregate finding properties rather than querying raw VPC packet records; no corresponding control satisfies “Search raw CloudWatch log messages for failed authentication patterns across streams.”.
C:The first proposed action addresses “Summarize findings by account, severity, and workflow state”: Security Hub insights aggregate finding properties rather than querying raw VPC packet records; the second addresses “Audit how a customer-managed KMS key has been used by AWS callers”: CloudTrail records supported KMS API calls and caller context, enabling key usage attribution without revealing plaintext cryptographic key bytes; the combination does not achieve the required “Determine which caller changed an IAM trust policy” and “Search raw CloudWatch log messages for failed authentication patterns across streams” outcomes in this security event analytics project.
D:While logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first is relevant to “Search raw CloudWatch log messages for failed authentication patterns across streams,” the other component targets “Audit how a customer-managed KMS key has been used by AWS callers,” where CloudTrail records supported KMS API calls and caller context, enabling key usage attribution without revealing plaintext cryptographic key bytes; the first acceptance criterion (“Determine which caller changed an IAM trust policy”) is not met.
Question 252
A change request in the VPC connectivity and segmentation rollout will be approved only if it delivers both outcomes: Allow only an application tier's security group to connect to database port 5432; Deny a specific unwanted subnet CIDR while allowing other traffic. What should be included?
- Use a stateful VPC security group; and remove the default internet gateway route from the private subnet's route table
- Remove the default internet gateway route from the private subnet's route table; and configure ordered subnet network ACL rules with an explicit deny
- Reference the application security group in the database security group's inbound rule; and use a stateful VPC security group
- Reference the application security group in the database security group's inbound rule; and configure ordered subnet network ACL rules with an explicit deny
Explanation
Correct Answer
D:For the first acceptance test, “Allow only an application tier's security group to connect to database port 5432,” referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses; for the second, “Deny a specific unwanted subnet CIDR while allowing other traffic,” network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
A:Neither action is targeted at the two acceptance tests: Security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed is about “Permit response traffic automatically for an established EC2 connection,” and The subnet route table determines forwarding paths; a private subnet does not gain direct public routing without an appropriate route is about “Keep a private subnet from routing directly to the internet gateway”; the intended “Allow only an application tier's security group to connect to database port 5432” and “Deny a specific unwanted subnet CIDR while allowing other traffic” requirements remain unsatisfied.
B:The mechanism for “Deny a specific unwanted subnet CIDR while allowing other traffic” is present: Network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary; the additional mechanism relates to “Keep a private subnet from routing directly to the internet gateway”: The subnet route table determines forwarding paths; a private subnet does not gain direct public routing without an appropriate route; nothing here completes “Allow only an application tier's security group to connect to database port 5432.”.
C:Referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses supports the “Allow only an application tier's security group to connect to database port 5432” acceptance test; Security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed is pertinent to “Permit response traffic automatically for an established EC2 connection” instead; the change therefore omits the separate requirement “Deny a specific unwanted subnet CIDR while allowing other traffic.”.
Question 253
A security review for a long-term recovery-point strategy identifies one priority: Ensure retention settings cannot be weakened by routine vault administrators. Which control is the best choice?
- Configure AWS Backup Vault Lock with appropriate minimum and maximum retention
- Monitor AWS Backup job status and coverage with suitable notifications
- Configure supported AWS Backup cross-account copy actions
- Define an AWS Backup plan and assign protected resources
Explanation
Correct Answer
A:Vault Lock limits destructive retention changes and complements access permissions on the backup vault; this is the direct solution to the requirement to ensure retention settings cannot be weakened by routine vault administrators in a long-term recovery-point strategy.
Incorrect Answers
B:For the different objective “Detect a missing backup before the end of a recovery service-level agreement,” backup job events and reports reveal unsuccessful or missing protection activities before a restore is urgently needed; the scenario instead requires “Ensure retention settings cannot be weakened by routine vault administrators,” which is a separate security mechanism.
C:Cross-account copies place recovery points in a separate vault/account subject to organization and encryption prerequisites; this addresses the requirement to maintain a second copy of recovery points in another account, not the requirement to ensure retention settings cannot be weakened by routine vault administrators, which is needed in a long-term recovery-point strategy.
D:Backup plans specify schedules, backup rules and lifecycle, enabling centrally managed recovery point creation; its purpose is the requirement to establish policy-based backups across several supported resource types, but the acceptance criterion in a long-term recovery-point strategy is the requirement to ensure retention settings cannot be weakened by routine vault administrators.
Question 254
During an STS federation investigation, the security team has this work item: Provide temporary privileges for a user authenticated with a supported OIDC token. Which AWS action is the most direct implementation?
- Configure an OIDC provider and AssumeRoleWithWebIdentity trust relationship
- Inspect CloudTrail userIdentity and role session context
- Set an appropriate role maximum session duration and request a bounded session
- Use STS AssumeRole with a cross-account role trust policy
Explanation
Correct Answer
A:Web identity federation exchanges a valid identity token for short-lived role credentials without storing an AWS IAM user key; this behavior fulfills the requirement to provide temporary privileges for a user authenticated with a supported OIDC token during an STS federation investigation.
Incorrect Answers
B:For the different objective “Trace which workforce user started an assumed-role API call,” CloudTrail's assumed-role identity fields identify the session and support tracing back to the initiating role assumption; the scenario instead requires “Provide temporary privileges for a user authenticated with a supported OIDC token,” which is a separate security mechanism.
C:Temporary credentials expire at the resulting session lifetime, reducing exposure relative to unrestricted long-term keys; its purpose is the requirement to restrict the duration of an elevated administrative session, but the acceptance criterion in an STS federation investigation is the requirement to provide temporary privileges for a user authenticated with a supported OIDC token.
D:AssumeRole issues expiring credentials for a trusted principal, and the assumed role's permissions determine permitted destination actions; this would help with the requirement to run a workload in a different account without storing destination-account access keys, leaving the requirement to provide temporary privileges for a user authenticated with a supported OIDC token unresolved in an STS federation investigation.
Question 255
Two security control owners share a incident response rehearsal. One is responsible for this outcome: Prevent accidental removal of a forensic evidence object during an investigation. The other needs: Invalidate temporary sessions that might remain after an IAM role credential concern. Which implementation covers both?
- Rotate the stored value through Secrets Manager and update dependent clients; and apply a role session revocation deny to sessions issued before the cutoff
- Establish a dedicated forensic account with emergency cross-account roles; and rotate the stored value through Secrets Manager and update dependent clients
- Use S3 Object Lock retention on the evidence bucket and objects; and apply a role session revocation deny to sessions issued before the cutoff
- Use S3 Object Lock retention on the evidence bucket and objects; and establish a dedicated forensic account with emergency cross-account roles
Explanation
Correct Answer
C:Two different security outcomes are required in this incident response rehearsal; Version-level write-once retention protects retained evidence against deletion or overwriting for the selected period supports “Prevent accidental removal of a forensic evidence object during an investigation,” while Revoking role sessions introduces a time-based deny for previously issued sessions, rather than relying only on rotating unrelated long-term credentials supports “Invalidate temporary sessions that might remain after an IAM role credential concern”; neither check is assumed to follow from the other.
Incorrect Answers
A:The option has a useful control for “Invalidate temporary sessions that might remain after an IAM role credential concern” because revoking role sessions introduces a time-based deny for previously issued sessions, rather than relying only on rotating unrelated long-term credentials; its other control applies to “Rotate an exposed database password without hardcoding the replacement in an application” because Secrets Manager supports controlled secret rotation; callers must retrieve the current secret or refresh cached values to avoid continuing with a compromised password; it misses the first requirement, “Prevent accidental removal of a forensic evidence object during an investigation.”.
B:Separating forensic tooling and artifacts from the production blast radius reduces dependence on possibly compromised accounts is pertinent to “Ensure responders can reach a separate investigative environment if production credentials are compromised,” and Secrets Manager supports controlled secret rotation; callers must retrieve the current secret or refresh cached values to avoid continuing with a compromised password is pertinent to “Rotate an exposed database password without hardcoding the replacement in an application”; the requested controls for “Prevent accidental removal of a forensic evidence object during an investigation” and “Invalidate temporary sessions that might remain after an IAM role credential concern” are absent.
D:This option is only partly effective: Version-level write-once retention protects retained evidence against deletion or overwriting for the selected period supports “Prevent accidental removal of a forensic evidence object during an investigation”; but Separating forensic tooling and artifacts from the production blast radius reduces dependence on possibly compromised accounts supports “Ensure responders can reach a separate investigative environment if production credentials are compromised,” not the required “Invalidate temporary sessions that might remain after an IAM role credential concern” outcome.
Question 256
An assessment of the multi-account infrastructure deployment has two findings. Finding one: Prevent deployment of a CloudFormation stack that violates defined policy requirements. Finding two: Distribute standardized infrastructure stacks to many AWS accounts and Regions. Which combination remediates both?
- Use CloudFormation change sets and an approval workflow; and deploy CloudFormation StackSets with appropriate execution permissions
- Run CloudFormation drift detection on supported stack resources; and use CloudFormation change sets and an approval workflow
- Apply CloudFormation Hooks or supported predeployment policy checks; and deploy CloudFormation StackSets with appropriate execution permissions
- Apply CloudFormation Hooks or supported predeployment policy checks; and run CloudFormation drift detection on supported stack resources
Explanation
Correct Answer
C:The implementation has a specific control for each objective: Preprovision checks can assess proposed resource configurations and fail noncompliant operations before creation for “Prevent deployment of a CloudFormation stack that violates defined policy requirements”; StackSets manage stack instances across accounts and Regions from a central deployment model for “Distribute standardized infrastructure stacks to many AWS accounts and Regions”; the combined option satisfies the two-part request.
Incorrect Answers
A:While stackSets manage stack instances across accounts and Regions from a central deployment model is relevant to “Distribute standardized infrastructure stacks to many AWS accounts and Regions,” the other component targets “Require an explicit review before changing production infrastructure templates,” where change sets preview resource modifications, replacements and deletions so operators can assess consequences prior to execution; the first acceptance criterion (“Prevent deployment of a CloudFormation stack that violates defined policy requirements”) is not met.
B:The first proposed action addresses “Detect manual changes to a resource after CloudFormation deployment”: Drift detection compares actual supported resource properties with declared template expectations; the second addresses “Require an explicit review before changing production infrastructure templates”: Change sets preview resource modifications, replacements and deletions so operators can assess consequences prior to execution; the combination does not achieve the required “Prevent deployment of a CloudFormation stack that violates defined policy requirements” and “Distribute standardized infrastructure stacks to many AWS accounts and Regions” outcomes in this multi-account infrastructure deployment.
D:The first check would be covered, since preprovision checks can assess proposed resource configurations and fail noncompliant operations before creation; yet the second choice is associated with “Detect manual changes to a resource after CloudFormation deployment,” for which drift detection compares actual supported resource properties with declared template expectations; no corresponding control satisfies “Distribute standardized infrastructure stacks to many AWS accounts and Regions.”.
Question 257
Before closing the private network troubleshooting exercise, a team must demonstrate the following: Diagnose missing outbound connectivity from a network firewall deployment; plus Identify suspicious payload signatures crossing an EC2 interface. Which paired change would complete the work?
- Review Route 53 Resolver query logging; and capture copies through VPC Traffic Mirroring for packet inspection
- Inspect the effective subnet route table and propagation sources; and review Route 53 Resolver query logging
- Verify symmetric routing through AWS Network Firewall endpoints; and capture copies through VPC Traffic Mirroring for packet inspection
- Verify symmetric routing through AWS Network Firewall endpoints; and inspect the effective subnet route table and propagation sources
Explanation
Correct Answer
C:The implementation has a specific control for each objective: Stateful inspection depends on traffic traversing the required firewall path; asymmetric routing can disrupt state tracking for “Diagnose missing outbound connectivity from a network firewall deployment”; Packet mirroring supports protocol-level inspection, whereas VPC Flow Logs lack packet payload bytes for “Identify suspicious payload signatures crossing an EC2 interface”; the combined option satisfies the two-part request.
Incorrect Answers
A:While packet mirroring supports protocol-level inspection, whereas VPC Flow Logs lack packet payload bytes is relevant to “Identify suspicious payload signatures crossing an EC2 interface,” the other component targets “Check a suspected DNS resolver misuse using query names rather than just IP flows,” where DNS query logs provide names and query context that basic flow summaries cannot reconstruct; the first acceptance criterion (“Diagnose missing outbound connectivity from a network firewall deployment”) is not met.
B:The first proposed action addresses “Identify an incorrect destination CIDR in a network route table”: Routing decisions use destination prefixes and target selection; security-group rules cannot compensate for an incorrect next hop; the second addresses “Check a suspected DNS resolver misuse using query names rather than just IP flows”: DNS query logs provide names and query context that basic flow summaries cannot reconstruct; the combination does not achieve the required “Diagnose missing outbound connectivity from a network firewall deployment” and “Identify suspicious payload signatures crossing an EC2 interface” outcomes in this private network troubleshooting exercise.
D:The first check would be covered, since stateful inspection depends on traffic traversing the required firewall path; asymmetric routing can disrupt state tracking; yet the second choice is associated with “Identify an incorrect destination CIDR in a network route table,” for which routing decisions use destination prefixes and target selection; security-group rules cannot compensate for an incorrect next hop; no corresponding control satisfies “Identify suspicious payload signatures crossing an EC2 interface.”.
Question 258
A security review for an operations center alarm deployment identifies one priority: Compare workload CPU spikes with suspicious outbound behavior on a single dashboard. Which control is the best choice?
- Forward structured application events into CloudWatch Logs
- Build a CloudWatch dashboard using EC2 metrics and relevant custom or log-derived metrics
- Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
- Instrument the application for AWS X-Ray tracing
Explanation
Correct Answer
B:Dashboards display multiple time series for correlation without themselves blocking network requests; this behavior fulfills the requirement to compare workload CPU spikes with suspicious outbound behavior on a single dashboard during an operations center alarm deployment.
Incorrect Answers
A:Log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries; its purpose is the requirement to provide application logs for real-time filtering and alarms, but the acceptance criterion in an operations center alarm deployment is the requirement to compare workload CPU spikes with suspicious outbound behavior on a single dashboard.
C:Alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required; this addresses the requirement to escalate only sustained error rates rather than transient one-minute spikes, not the requirement to compare workload CPU spikes with suspicious outbound behavior on a single dashboard, which is needed in an operations center alarm deployment.
D:X-Ray collects sampled traces of instrumented requests, unlike CloudTrail which audits AWS API activity; this would help with the requirement to capture a sample of application requests for distributed performance and trace correlation, leaving the requirement to compare workload CPU spikes with suspicious outbound behavior on a single dashboard unresolved in an operations center alarm deployment.
Question 259
During a storage encryption control review, reviewers document two independent acceptance criteria. First: Detect tampering of a downloaded file without requiring confidentiality. Second: Allow authorized governance operators to override certain S3 retention locks. Which combined implementation satisfies both?
- Apply AWS Backup Vault Lock with an appropriate configuration; and configure and lock a Glacier vault access policy with Vault Lock
- Configure and lock a Glacier vault access policy with Vault Lock; and use S3 Object Lock governance mode with controlled bypass permission
- Verify a cryptographic checksum or digital signature from a trusted source; and apply AWS Backup Vault Lock with an appropriate configuration
- Verify a cryptographic checksum or digital signature from a trusted source; and use S3 Object Lock governance mode with controlled bypass permission
Explanation
Correct Answer
D:The first control addresses the check “Detect tampering of a downloaded file without requiring confidentiality”: Hashes and verified signatures detect changed bytes; they do not themselves encrypt the file's contents; the other addresses “Allow authorized governance operators to override certain S3 retention locks”: Governance-mode protection supports narrowly authorized bypass, unlike stricter compliance-mode retention; these two mechanisms cover the complete storage encryption control review.
Incorrect Answers
A:The first action belongs to “Make backups immutable for a specified period” because vault Lock enforces retention controls on protected recovery points, adding protection against destructive backup changes; the second belongs to “Protect a legacy S3 Glacier vault archive against retention-policy alteration” because glacier Vault Lock can make vault policy controls immutable after the lock process is finalized; these are not the required checks, “Detect tampering of a downloaded file without requiring confidentiality” and “Allow authorized governance operators to override certain S3 retention locks.”.
B:Governance-mode protection supports narrowly authorized bypass, unlike stricter compliance-mode retention; this fulfills the second objective (“Allow authorized governance operators to override certain S3 retention locks”); the other action is intended for “Protect a legacy S3 Glacier vault archive against retention-policy alteration”: Glacier Vault Lock can make vault policy controls immutable after the lock process is finalized; it does not meet the requested “Detect tampering of a downloaded file without requiring confidentiality” check.
C:Hashes and verified signatures detect changed bytes; they do not themselves encrypt the file's contents; this is relevant to the first objective (“Detect tampering of a downloaded file without requiring confidentiality”); however, the other action is meant for “Make backups immutable for a specified period”: Vault Lock enforces retention controls on protected recovery points, adding protection against destructive backup changes; it leaves the required “Allow authorized governance operators to override certain S3 retention locks” behavior unimplemented.
Question 260
For a cross-account delegation audit, engineers have been assigned this security outcome: Limit a role's access to resources carrying a matching project tag. What implementation best fits?
- Apply an S3 bucket-policy condition on aws:sourceVpce
- Use an applicable aws:SourceIp condition in the identity or resource policy
- Implement ABAC with principal-tag and resource-tag policy conditions
- Use an aws:RequestedRegion condition in an appropriate SCP
Explanation
Correct Answer
C:Attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project; for a cross-account delegation audit, this is the measure that delivers the requirement to limit a role's access to resources carrying a matching project tag.
Incorrect Answers
A:The endpoint context key ties access to the intended private path, with careful exceptions for services that do not supply that context; the important distinction in a cross-account delegation audit is that this supports the requirement to allow object reads only when requests use a specific VPC endpoint instead of the requirement to limit a role's access to resources carrying a matching project tag.
B:Source IP evaluation can restrict request origins, subject to the actual request context and service-forwarding behavior; its purpose is the requirement to allow administrative actions only from a restricted set of source public IP ranges, but the acceptance criterion in a cross-account delegation audit is the requirement to limit a role's access to resources carrying a matching project tag.
D:A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions; its scope is the requirement to prevent nonapproved Regions for supported AWS API operations, rather than the requirement to limit a role's access to resources carrying a matching project tag for a cross-account delegation audit.