Question 960

A change request in the permissions and authorization review will be approved only if it delivers both outcomes: Deny an application access to a bucket except through the dedicated network path; Reduce privilege escalation through arbitrary iam:PassRole on service launch. What should be included?

  1. Use aws:PrincipalOrgID in a compatible resource-based policy; and restrict iam:PassRole by role ARN and iam:PassedToService condition
  2. Add sts:ExternalId validation to the cross-account role trust policy; and use aws:PrincipalOrgID in a compatible resource-based policy
  3. Combine explicit-deny bucket-policy conditions with necessary service exceptions; and restrict iam:PassRole by role ARN and iam:PassedToService condition
  4. Combine explicit-deny bucket-policy conditions with necessary service exceptions; and add sts:ExternalId validation to the cross-account role trust policy

Explanation

Correct Answer

C:

For the first acceptance test, “Deny an application access to a bucket except through the dedicated network path,” A deny conditioned on source endpoint can enforce a private path but must account for AWS service requests that lack normal VPC endpoint keys; for the second, “Reduce privilege escalation through arbitrary iam:PassRole on service launch,” limiting both which role may be passed and which service can receive it curtails creation of overprivileged service workloads; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

The mechanism for “Reduce privilege escalation through arbitrary iam:PassRole on service launch” is present: Limiting both which role may be passed and which service can receive it curtails creation of overprivileged service workloads; the additional mechanism relates to “Restrict access based on an organization identifier rather than enumerating every member account”: Organization membership context can simplify trust for accounts in the organization while still requiring careful resource and action scoping; nothing here completes “Deny an application access to a bucket except through the dedicated network path.”.

B:

Neither action is targeted at the two acceptance tests: External ID helps defend against the confused-deputy problem when a third-party service assumes roles for multiple customers is about “Constrain a third-party role assumption to a unique customer relationship,” and Organization membership context can simplify trust for accounts in the organization while still requiring careful resource and action scoping is about “Restrict access based on an organization identifier rather than enumerating every member account”; the intended “Deny an application access to a bucket except through the dedicated network path” and “Reduce privilege escalation through arbitrary iam:PassRole on service launch” requirements remain unsatisfied.

D:

A deny conditioned on source endpoint can enforce a private path but must account for AWS service requests that lack normal VPC endpoint keys supports the “Deny an application access to a bucket except through the dedicated network path” acceptance test; External ID helps defend against the confused-deputy problem when a third-party service assumes roles for multiple customers is pertinent to “Constrain a third-party role assumption to a unique customer relationship” instead; the change therefore omits the separate requirement “Reduce privilege escalation through arbitrary iam:PassRole on service launch.”.

Question 961

The active security incident investigation has two control objectives. Requirement one: Determine whether a suspicious instance communicated with a known bad endpoint. Requirement two: Execute a repeatable account lock-down process across several response stages. Which design passes both checks?

  1. Correlate VPC Flow Logs with GuardDuty network-related findings; and combine EventBridge detection with Step Functions and narrowly scoped Lambda actions
  2. Correlate VPC Flow Logs with GuardDuty network-related findings; and query CloudTrail management events for AuthorizeSecurityGroupIngress and related calls
  3. Restore the snapshot into a forensic VPC with restricted analyst access; and combine EventBridge detection with Step Functions and narrowly scoped Lambda actions
  4. Query CloudTrail management events for AuthorizeSecurityGroupIngress and related calls; and restore the snapshot into a forensic VPC with restricted analyst access

Explanation

Correct Answer

A:

The first control addresses the check “Determine whether a suspicious instance communicated with a known bad endpoint”: Flow records summarize accepted or rejected traffic metadata, supporting a timeline without claiming packet-payload visibility; the other addresses “Execute a repeatable account lock-down process across several response stages”: The event bus triggers an orchestrated workflow, and each action can run with its own least-privilege execution role; these two mechanisms cover the complete active security incident investigation.

Incorrect Answers

B:

Flow records summarize accepted or rejected traffic metadata, supporting a timeline without claiming packet-payload visibility; this is relevant to the first objective (“Determine whether a suspicious instance communicated with a known bad endpoint”); however, the other action is meant for “Identify the cause of a series of unexpected security-group modifications”: Control-plane audit records identify the actor, request parameters, and timing of security-group changes; it leaves the required “Execute a repeatable account lock-down process across several response stages” behavior unimplemented.

C:

The event bus triggers an orchestrated workflow, and each action can run with its own least-privilege execution role; this fulfills the second objective (“Execute a repeatable account lock-down process across several response stages”); the other action is intended for “Examine a suspect EBS snapshot without exposing it to normal production workloads”: An isolated environment allows disk inspection while keeping suspicious binaries and network behavior away from the production data plane; it does not meet the requested “Determine whether a suspicious instance communicated with a known bad endpoint” check.

D:

The first action belongs to “Identify the cause of a series of unexpected security-group modifications” because control-plane audit records identify the actor, request parameters, and timing of security-group changes; the second belongs to “Examine a suspect EBS snapshot without exposing it to normal production workloads” because an isolated environment allows disk inspection while keeping suspicious binaries and network behavior away from the production data plane; these are not the required checks, “Determine whether a suspicious instance communicated with a known bad endpoint” and “Execute a repeatable account lock-down process across several response stages.”.

Question 962

A review board evaluating the cloud security governance assessment rejects fixes that cover just one requirement. The requirements are: Spot unused or idle infrastructure that unnecessarily expands attack surface; and Prioritize publicly exposed resources found during an architectural security review. Which configuration addresses both?

  1. Review AWS Trusted Advisor and Cost Explorer utilization signals; and correlate IAM Access Analyzer exposure with network reachability assessments
  2. Review AWS Trusted Advisor and Cost Explorer utilization signals; and record prioritized Security pillar improvement actions and revisit open risks in the Well-Architected Tool
  3. Review the Security pillar in AWS Well-Architected Tool; and correlate IAM Access Analyzer exposure with network reachability assessments
  4. Record prioritized Security pillar improvement actions and revisit open risks in the Well-Architected Tool; and review the Security pillar in AWS Well-Architected Tool

Explanation

Correct Answer

A:

For “Spot unused or idle infrastructure that unnecessarily expands attack surface,” the governing behavior is: Utilization and cost signals can guide removal of unnecessary assets, but any deletion still requires dependency assessment; for the separate check “Prioritize publicly exposed resources found during an architectural security review,” it is: Policy exposure and network path analysis reveal different ways resources could be reachable by unintended parties; this is why the two controls belong together in the proposed change.

Incorrect Answers

B:

The first part is appropriate for “Spot unused or idle infrastructure that unnecessarily expands attack surface” because utilization and cost signals can guide removal of unnecessary assets, but any deletion still requires dependency assessment; the second part addresses a different issue (“Track closure of previously identified architecture security risks over multiple reviews”) because A documented improvement plan turns review findings into tracked mitigation decisions instead of treating the questionnaire as a one-time score; it does not fulfill the “Prioritize publicly exposed resources found during an architectural security review” test.

C:

Only the second requirement is covered: Policy exposure and network path analysis reveal different ways resources could be reachable by unintended parties supports “Prioritize publicly exposed resources found during an architectural security review”; by contrast, The tool guides a structured workload review and produces improvement guidance based on pillar questions concerns “Find security design gaps against AWS architecture best practices,” leaving “Spot unused or idle infrastructure that unnecessarily expands attack surface” unresolved.

D:

This combination targets different outcomes: A documented improvement plan turns review findings into tracked mitigation decisions instead of treating the questionnaire as a one-time score helps with “Track closure of previously identified architecture security risks over multiple reviews”; the tool guides a structured workload review and produces improvement guidance based on pillar questions helps with “Find security design gaps against AWS architecture best practices”; neither implements the required “Spot unused or idle infrastructure that unnecessarily expands attack surface” and “Prioritize publicly exposed resources found during an architectural security review” outcomes together.

Question 963

Two security control owners share a private network troubleshooting exercise. One is responsible for this outcome: Investigate why S3 endpoint traffic takes the NAT gateway path. The other needs: Explain why a private EC2 instance cannot reach the internet after adding a route. Which implementation covers both?

  1. Verify the gateway endpoint association with the subnet's route table; and check for a usable NAT gateway path and the subnet's route configuration
  2. Verify the gateway endpoint association with the subnet's route table; and verify private DNS settings and VPC DNS resolution options
  3. Check BGP or static route advertisements and route-table propagation; and check for a usable NAT gateway path and the subnet's route configuration
  4. Verify private DNS settings and VPC DNS resolution options; and check BGP or static route advertisements and route-table propagation

Explanation

Correct Answer

A:

Two different security outcomes are required in this private network troubleshooting exercise; Gateway endpoints insert routes into chosen route tables; omitted associations leave instances using other available routes supports “Investigate why S3 endpoint traffic takes the NAT gateway path,” while An internet gateway route alone does not supply public source addresses to private instances that lack public IP mappings supports “Explain why a private EC2 instance cannot reach the internet after adding a route”; neither check is assumed to follow from the other.

Incorrect Answers

B:

This option is only partly effective: Gateway endpoints insert routes into chosen route tables; omitted associations leave instances using other available routes supports “Investigate why S3 endpoint traffic takes the NAT gateway path”; but Interface endpoint private DNS and VPC DNS support control whether normal service names resolve to endpoint addresses supports “Troubleshoot private interface endpoint name resolution failures,” not the required “Explain why a private EC2 instance cannot reach the internet after adding a route” outcome.

C:

The option has a useful control for “Explain why a private EC2 instance cannot reach the internet after adding a route” because an internet gateway route alone does not supply public source addresses to private instances that lack public IP mappings; its other control applies to “Diagnose a VPN tunnel that is up but does not carry expected prefixes” because tunnel establishment and traffic routing are separate; missing prefixes can prevent forwarding despite healthy tunnel status; it misses the first requirement, “Investigate why S3 endpoint traffic takes the NAT gateway path.”.

D:

Interface endpoint private DNS and VPC DNS support control whether normal service names resolve to endpoint addresses is pertinent to “Troubleshoot private interface endpoint name resolution failures,” and Tunnel establishment and traffic routing are separate; missing prefixes can prevent forwarding despite healthy tunnel status is pertinent to “Diagnose a VPN tunnel that is up but does not carry expected prefixes”; the requested controls for “Investigate why S3 endpoint traffic takes the NAT gateway path” and “Explain why a private EC2 instance cannot reach the internet after adding a route” are absent.

Question 964

An implementation in the security event analytics project must solve two separate problems, not merely strengthen one safeguard: Join S3 archived CloudTrail records with a reference table of suspect IPs; Summarize findings by account, severity, and workflow state. Which change meets the full request?

  1. Query the log objects in Athena with an appropriate external table; and configure Security Hub insights over normalized security findings
  2. Query the log objects in Athena with an appropriate external table; and examine supported KMS API activity in CloudTrail management events
  3. Run a CloudWatch Logs Insights query selecting and filtering relevant fields; and configure Security Hub insights over normalized security findings
  4. Examine supported KMS API activity in CloudTrail management events; and run a CloudWatch Logs Insights query selecting and filtering relevant fields

Explanation

Correct Answer

A:

This pairing handles the first requirement (“Join S3 archived CloudTrail records with a reference table of suspect IPs”) because athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; it handles the second (“Summarize findings by account, severity, and workflow state”) because Security Hub insights aggregate finding properties rather than querying raw VPC packet records; both acceptance criteria are therefore addressed.

Incorrect Answers

B:

One action is correctly chosen for “Join S3 archived CloudTrail records with a reference table of suspect IPs”: Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; the companion action relates to “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 other requested outcome, “Summarize findings by account, severity, and workflow state,” remains outstanding.

C:

This solves the second problem (“Summarize findings by account, severity, and workflow state”): Security Hub insights aggregate finding properties rather than querying raw VPC packet records; however, the first action addresses “Search raw CloudWatch log messages for failed authentication patterns across streams”: Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first; it does not satisfy “Join S3 archived CloudTrail records with a reference table of suspect IPs.”.

D:

Both mechanisms have legitimate uses, but for other requirements: CloudTrail records supported KMS API calls and caller context, enabling key usage attribution without revealing plaintext cryptographic key bytes supports “Audit how a customer-managed KMS key has been used by AWS callers”; Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first supports “Search raw CloudWatch log messages for failed authentication patterns across streams”; this does not resolve the stated “Join S3 archived CloudTrail records with a reference table of suspect IPs” and “Summarize findings by account, severity, and workflow state” findings.

Question 965

A security review for an application secret retrieval design identifies one priority: Prevent application teams from seeing a secret outside their environment. Which control is the best choice?

  1. Configure AWS Secrets Manager rotation with a compatible rotation implementation
  2. Use Systems Manager Parameter Store with a SecureString parameter when sensitive
  3. Apply resource-scoped Secrets Manager IAM or resource policies and matching KMS access
  4. Use a supported dynamic reference to Secrets Manager or Parameter Store

Explanation

Correct Answer

C:

Retrieval authorization and KMS decryption permissions both matter for sensitive secret values; for an application secret retrieval design, this is the measure that delivers the requirement to prevent application teams from seeing a secret outside their environment.

Incorrect Answers

A:

Secrets Manager schedules secret rotation, coordinating updates to the stored value and underlying system credentials; this would help with the requirement to rotate a database password automatically on an approved schedule, leaving the requirement to prevent application teams from seeing a secret outside their environment unresolved in an application secret retrieval design.

B:

Parameter Store organizes configuration parameters and can encrypt selected values, but does not reproduce every Secrets Manager rotation integration; its purpose is the requirement to store a nonrotating application configuration value with optional encryption, but the acceptance criterion in an application secret retrieval design is the requirement to prevent application teams from seeing a secret outside their environment.

D:

Dynamic references allow CloudFormation to resolve supported secret values without embedding them in the plaintext template source; this addresses the requirement to avoid passing a secret in plaintext through a CloudFormation template, not the requirement to prevent application teams from seeing a secret outside their environment, which is needed in an application secret retrieval design.

Question 966

A proposed solution for the permissions and authorization review is incomplete unless it addresses both of these checks: An identity has no applicable allow for an AWS operation; and An IAM policy allows an action but an Organizations SCP excludes it. Which choice provides the necessary controls?

  1. Add a narrowly scoped explicit allow where the policy model requires it; and remove or narrow the applicable explicit deny only after validating policy intent
  2. Add a narrowly scoped explicit allow where the policy model requires it; and update the SCP guardrail or choose an allowed operation while retaining least privilege
  3. Remove or narrow the applicable explicit deny only after validating policy intent; and evaluate the intersection of identity policy permissions and the role's boundary
  4. Evaluate the intersection of identity policy permissions and the role's boundary; and update the SCP guardrail or choose an allowed operation while retaining least privilege

Explanation

Correct Answer

B:

For the first acceptance test, “An identity has no applicable allow for an AWS operation,” IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized; for the second, “An IAM policy allows an action but an Organizations SCP excludes it,” SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized supports the “An identity has no applicable allow for an AWS operation” acceptance test; IAM explicit deny takes precedence over allows from other applicable permission policies for the same request is pertinent to “An identity has an IAM allow but a matching explicit deny is also present” instead; the change therefore omits the separate requirement “An IAM policy allows an action but an Organizations SCP excludes it.”.

C:

Neither action is targeted at the two acceptance tests: IAM explicit deny takes precedence over allows from other applicable permission policies for the same request is about “An identity has an IAM allow but a matching explicit deny is also present,” and A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges is about “An IAM role has broad permissions but a permissions boundary limits it”; the intended “An identity has no applicable allow for an AWS operation” and “An IAM policy allows an action but an Organizations SCP excludes it” requirements remain unsatisfied.

D:

The mechanism for “An IAM policy allows an action but an Organizations SCP excludes it” is present: SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail; the additional mechanism relates to “An IAM role has broad permissions but a permissions boundary limits it”: A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges; nothing here completes “An identity has no applicable allow for an AWS operation.”.

Question 967

A security review for an internet-facing API threat assessment identifies one priority: Enforce a narrow set of IP ranges for public HTTP clients. Which control is the best choice?

  1. Use API Gateway private endpoint access with an appropriate resource policy
  2. Use AWS WAF Bot Control managed rule groups where supported
  3. Enable Route 53 domain transfer lock where applicable
  4. Apply an AWS WAF IP set match condition on the front-end web ACL

Explanation

Correct Answer

D:

IP sets match the configured client addresses, whereas DNS routing records do not filter application requests; for an internet-facing API threat assessment, this is the measure that delivers the requirement to enforce a narrow set of IP ranges for public HTTP clients.

Incorrect Answers

A:

For the different objective “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; the scenario instead requires “Enforce a narrow set of IP ranges for public HTTP clients,” which is a separate security mechanism.

B:

Bot Control evaluates bot-related request signals at the web ACL, rather than relying only on Layer 3 network filtering; the important distinction in an internet-facing API threat assessment is that this supports the requirement to identify and block bot-like HTTP behaviors with application-aware inspection instead of the requirement to enforce a narrow set of IP ranges for public HTTP clients.

C:

Transfer locking limits unauthorized domain transfers, which is a registrar-level safeguard rather than a WAF request rule; this addresses the requirement to protect against unwanted DNS redirection through domain management, not the requirement to enforce a narrow set of IP ranges for public HTTP clients, which is needed in an internet-facing API threat assessment.

Question 968

An architect is reviewing a compromised workload containment exercise. The acceptance criterion reads: Preserve volatile evidence that an EBS snapshot would miss. Which approach satisfies it?

  1. Capture a memory image before shutting down the suspect instance
  2. Rotate the secret and force safe refresh of cached credentials
  3. Inspect S3 data events in CloudTrail for the bucket
  4. Apply an AWS WAF IP or rate-based rule to the application edge

Explanation

Correct Answer

A:

EBS snapshots preserve disk blocks, whereas RAM artifacts and active process state require a separate live-memory capture procedure; for a compromised workload containment exercise, this is the measure that delivers the requirement to preserve volatile evidence that an EBS snapshot would miss.

Incorrect Answers

B:

Updating Secrets Manager alone does not invalidate a still-valid downstream credential unless the backing credential is changed and consumers refresh; the important distinction in a compromised workload containment exercise is that this supports the requirement to revoke exposure of a leaked application secret used by Lambda functions instead of the requirement to preserve volatile evidence that an EBS snapshot would miss.

C:

Object-level API events reveal callers and resources when the relevant data-event selectors were enabled during the period; its purpose is the requirement to find which IAM session made a suspicious DeleteObject call, but the acceptance criterion in a compromised workload containment exercise is the requirement to preserve volatile evidence that an EBS snapshot would miss.

D:

WAF filters applicable HTTP(S) requests at supported front ends; it is not a host-level response for arbitrary TCP flows; the important distinction in a compromised workload containment exercise is that this supports the requirement to block repeated malicious web requests while the origin is being investigated instead of the requirement to preserve volatile evidence that an EBS snapshot would miss.

Question 969

An implementation in the cloud security governance assessment must solve two separate problems, not merely strengthen one safeguard: Find old security groups that are no longer attached to workloads; Reduce the attack surface of abandoned access keys. Which change meets the full request?

  1. Inventory security-group references and verify resource dependencies before removal; and compare Cost Explorer usage trends with CloudTrail instance-launch events
  2. Inventory security-group references and verify resource dependencies before removal; and use IAM credential reports and last-used evidence to plan safe deactivation
  3. Compare Cost Explorer usage trends with CloudTrail instance-launch events; and use IAM Access Analyzer findings with S3 Block Public Access guardrails
  4. Use IAM Access Analyzer findings with S3 Block Public Access guardrails; and use IAM credential reports and last-used evidence to plan safe deactivation

Explanation

Correct Answer

B:

This pairing handles the first requirement (“Find old security groups that are no longer attached to workloads”) because unused network controls create configuration clutter, while dependency checks prevent accidental disruption of active attachments; it handles the second (“Reduce the attack surface of abandoned access keys”) because credential hygiene identifies stale long-term access paths that can remain exploitable even when related compute is unused; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

One action is correctly chosen for “Find old security groups that are no longer attached to workloads”: Unused network controls create configuration clutter, while dependency checks prevent accidental disruption of active attachments; the companion action relates to “Identify an unexplained increase in EC2 runtime following unusual API activity”: Cost Explorer reveals consumption patterns and CloudTrail helps attribute provisioning events to caller identities; the other requested outcome, “Reduce the attack surface of abandoned access keys,” remains outstanding.

C:

Both mechanisms have legitimate uses, but for other requirements: Cost Explorer reveals consumption patterns and CloudTrail helps attribute provisioning events to caller identities supports “Identify an unexplained increase in EC2 runtime following unusual API activity”; External-access analysis identifies exposure paths and Block Public Access can constrain accidental public configurations supports “Detect an unexpectedly public S3 resource in a high-risk environment”; this does not resolve the stated “Find old security groups that are no longer attached to workloads” and “Reduce the attack surface of abandoned access keys” findings.

D:

This solves the second problem (“Reduce the attack surface of abandoned access keys”): Credential hygiene identifies stale long-term access paths that can remain exploitable even when related compute is unused; however, the first action addresses “Detect an unexpectedly public S3 resource in a high-risk environment”: External-access analysis identifies exposure paths and Block Public Access can constrain accidental public configurations; it does not satisfy “Find old security groups that are no longer attached to workloads.”.

Question 970

For a security log analytics investigation, engineers have been assigned this security outcome: Investigate a DNS-based exfiltration indicator by queried domain. What implementation best fits?

  1. Create a metric filter from the log pattern and alarm on its resulting metric
  2. Filter VPC Flow Logs by REJECT entries and source/destination details
  3. Define a compatible schema and query the S3 archive with Athena
  4. Analyze Route 53 Resolver query logs for suspicious domain patterns

Explanation

Correct Answer

D:

Resolver logs record query names and associated context, unlike VPC Flow Logs which do not supply full domain names; this behavior fulfills the requirement to investigate a DNS-based exfiltration indicator by queried domain during a security log analytics investigation.

Incorrect Answers

A:

For the different objective “Reduce repeated manual searches for a frequent CloudWatch log anomaly,” metric filters convert qualifying records to numeric series for continuous alerting after the pattern is understood; the scenario instead requires “Investigate a DNS-based exfiltration indicator by queried domain,” which is a separate security mechanism.

B:

Flow metadata includes action and addresses for supported traffic, supporting triage of network policy outcomes; the important distinction in a security log analytics investigation is that this supports the requirement to identify a denied subnet connection from recorded network-flow dispositions instead of the requirement to investigate a DNS-based exfiltration indicator by queried domain.

C:

Structured SQL analysis depends on matching the stored JSON layout; no console event-history filter will parse arbitrary archived app logs; its purpose is the requirement to analyze archived JSON logs with predictable parsing rather than manual grep, but the acceptance criterion in a security log analytics investigation is the requirement to investigate a DNS-based exfiltration indicator by queried domain.

AWS Certified Security - Specialty SCS-C03 Practice Tests