Question 860

An AWS team is correcting two gaps in the credential and federation review: A federated role fails to assume despite the user being authenticated with a corporate identity; and An OIDC role assumption is denied because the token audience does not match. Which proposed set of controls fixes both gaps?

  1. Inspect the role trust policy, provider identifier, and assertion conditions; and adjust role session duration within allowed constraints and refresh credentials
  2. Inspect the role trust policy, provider identifier, and assertion conditions; and correct the identity provider client ID and role trust audience condition
  3. Adjust role session duration within allowed constraints and refresh credentials; and verify the instance profile attachment and IMDS availability
  4. Verify the instance profile attachment and IMDS availability; and correct the identity provider client ID and role trust audience condition

Explanation

Correct Answer

B:

For “A federated role fails to assume despite the user being authenticated with a corporate identity,” the governing behavior is: Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; for the separate check “An OIDC role assumption is denied because the token audience does not match,” it is: OIDC federation relies on token claims satisfying the trust policy, including the expected audience; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

The first part is appropriate for “A federated role fails to assume despite the user being authenticated with a corporate identity” because authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; the second part addresses a different issue (“A principal's temporary role credentials expire during a long-running process”) because STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys; it does not fulfill the “An OIDC role assumption is denied because the token audience does not match” test.

C:

This combination targets different outcomes: STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys helps with “A principal's temporary role credentials expire during a long-running process”; Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel helps with “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access”; neither implements the required “A federated role fails to assume despite the user being authenticated with a corporate identity” and “An OIDC role assumption is denied because the token audience does not match” outcomes together.

D:

Only the second requirement is covered: OIDC federation relies on token claims satisfying the trust policy, including the expected audience supports “An OIDC role assumption is denied because the token audience does not match”; by contrast, Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel concerns “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access,” leaving “A federated role fails to assume despite the user being authenticated with a corporate identity” unresolved.

Question 861

A security review for an evidence preservation incident identifies one priority: Revoke exposure of a leaked application secret used by Lambda functions. Which control is the best choice?

  1. Copy artifacts to a separately administered account with S3 Object Lock
  2. Capture a memory image before shutting down the suspect instance
  3. Inspect S3 data events in CloudTrail for the bucket
  4. Rotate the secret and force safe refresh of cached credentials
  5. Quarantine its network interfaces with restrictive security-group rules

Explanation

Correct Answer

D:

Updating Secrets Manager alone does not invalidate a still-valid downstream credential unless the backing credential is changed and consumers refresh; for an evidence preservation incident, this is the measure that delivers the requirement to revoke exposure of a leaked application secret used by Lambda functions.

Incorrect Answers

A:

For the different objective “Protect collected incident evidence from modifications by production administrators,” independent permissions and immutable retention reduce the possibility that a compromised production identity can alter stored evidence; the scenario instead requires “Revoke exposure of a leaked application secret used by Lambda functions,” which is a separate security mechanism.

B:

EBS snapshots preserve disk blocks, whereas RAM artifacts and active process state require a separate live-memory capture procedure; this would help with the requirement to preserve volatile evidence that an EBS snapshot would miss, leaving the requirement to revoke exposure of a leaked application secret used by Lambda functions unresolved in an evidence preservation incident.

C:

Object-level API events reveal callers and resources when the relevant data-event selectors were enabled during the period; this addresses the requirement to find which IAM session made a suspicious DeleteObject call, not the requirement to revoke exposure of a leaked application secret used by Lambda functions, which is needed in an evidence preservation incident.

E:

Network isolation can stop new unwanted communication while preserving the host for examination and snapshot capture; this would help with the requirement to contain an EC2 instance showing command-and-control traffic without deleting the machine, leaving the requirement to revoke exposure of a leaked application secret used by Lambda functions unresolved in an evidence preservation incident.

Question 862

In a cloud security governance assessment, engineers must cover two different requirements: Find old security groups that are no longer attached to workloads. In addition, Detect an unexpectedly public S3 resource in a high-risk environment. Which option implements both?

  1. Review AWS Backup coverage and vault protection against recovery objectives; and use IAM Access Analyzer findings with S3 Block Public Access guardrails
  2. Use IAM credential reports and last-used evidence to plan safe deactivation; and review AWS Backup coverage and vault protection against recovery objectives
  3. Inventory security-group references and verify resource dependencies before removal; and use IAM Access Analyzer findings with S3 Block Public Access guardrails
  4. Inventory security-group references and verify resource dependencies before removal; and use IAM credential reports and last-used evidence to plan safe deactivation

Explanation

Correct Answer

C:

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 (“Detect an unexpectedly public S3 resource in a high-risk environment”) because external-access analysis identifies exposure paths and Block Public Access can constrain accidental public configurations; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

This solves the second problem (“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; however, the first action addresses “Evaluate whether a backup design satisfies recovery and protection requirements”: Recovery readiness requires verified backup selection, retention and restoration controls rather than relying solely on low storage cost; it does not satisfy “Find old security groups that are no longer attached to workloads.”.

B:

Both mechanisms have legitimate uses, but for other requirements: Credential hygiene identifies stale long-term access paths that can remain exploitable even when related compute is unused supports “Reduce the attack surface of abandoned access keys”; Recovery readiness requires verified backup selection, retention and restoration controls rather than relying solely on low storage cost supports “Evaluate whether a backup design satisfies recovery and protection requirements”; this does not resolve the stated “Find old security groups that are no longer attached to workloads” and “Detect an unexpectedly public S3 resource in a high-risk environment” findings.

D:

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 “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; the other requested outcome, “Detect an unexpectedly public S3 resource in a high-risk environment,” remains outstanding.

Question 863

An assessment of the public application protection review has two findings. Finding one: Restrict access to a website from selected geographic countries. Finding two: Block HTTP requests carrying a disallowed header value. Which combination remediates both?

  1. Configure an AWS WAF rate-based rule with an appropriate evaluation limit; and use an AWS WAF byte-match statement on the specified header
  2. Associate an appropriate AWS WAF managed rule group with the front-end resource; and configure an AWS WAF rate-based rule with an appropriate evaluation limit
  3. Apply an AWS WAF geographic match rule; and use an AWS WAF byte-match statement on the specified header
  4. Apply an AWS WAF geographic match rule; and associate an appropriate AWS WAF managed rule group with the front-end resource

Explanation

Correct Answer

C:

The implementation has a specific control for each objective: Geo match conditions use the source geolocation determination for applicable web requests and can block specified countries for “Restrict access to a website from selected geographic countries”; Byte matching inspects configured parts of an HTTP request, providing an application-layer condition rather than a transport-layer port rule for “Block HTTP requests carrying a disallowed header value”; the combined option satisfies the two-part request.

Incorrect Answers

A:

While byte matching inspects configured parts of an HTTP request, providing an application-layer condition rather than a transport-layer port rule is relevant to “Block HTTP requests carrying a disallowed header value,” the other component targets “Apply a defined per-IP request-rate threshold to an HTTP API without writing bot classification rules,” where A rate-based web ACL rule counts matching requests over an evaluation window and can restrict abusive HTTP clients; the first acceptance criterion (“Restrict access to a website from selected geographic countries”) is not met.

B:

The first proposed action addresses “Apply a maintained collection of common web exploit signatures without individually authoring each rule”: Managed rule groups apply curated signatures and rules for common web exploits while allowing tuning of false positives; the second addresses “Apply a defined per-IP request-rate threshold to an HTTP API without writing bot classification rules”: A rate-based web ACL rule counts matching requests over an evaluation window and can restrict abusive HTTP clients; the combination does not achieve the required “Restrict access to a website from selected geographic countries” and “Block HTTP requests carrying a disallowed header value” outcomes in this public application protection review.

D:

The first check would be covered, since geo match conditions use the source geolocation determination for applicable web requests and can block specified countries; yet the second choice is associated with “Apply a maintained collection of common web exploit signatures without individually authoring each rule,” for which managed rule groups apply curated signatures and rules for common web exploits while allowing tuning of false positives; no corresponding control satisfies “Block HTTP requests carrying a disallowed header value.”.

Question 864

An architect is reviewing a log storage and retention architecture. The acceptance criterion reads: Audit S3 GetObject operations instead of only bucket-policy changes. Which approach satisfies it?

  1. Enable CloudTrail S3 data event logging for the selected object resources
  2. Configure CloudTrail advanced event selectors for required resource ARNs and event names
  3. Create or query an appropriate CloudTrail Lake event data store
  4. Create a subscription filter to an authorized Kinesis delivery destination

Explanation

Correct Answer

A:

Object-level data-plane reads are not included in ordinary management-event history unless data events are configured; for a log storage and retention architecture, this is the measure that delivers the requirement to audit S3 GetObject operations instead of only bucket-policy changes.

Incorrect Answers

B:

Advanced selectors limit the chosen high-volume events and can reduce unnecessary collection costs; this addresses the requirement to capture a narrow subset of expensive S3 data events rather than every object read, not the requirement to audit S3 GetObject operations instead of only bucket-policy changes, which is needed in a log storage and retention architecture.

C:

CloudTrail Lake retains selected event types for SQL analysis subject to configured retention and ingestion choices; its scope is the requirement to search historical CloudTrail activity with SQL without managing an analytics cluster, rather than the requirement to audit S3 GetObject operations instead of only bucket-policy changes for a log storage and retention architecture.

D:

CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool; the important distinction in a log storage and retention architecture is that this supports the requirement to stream application log events from CloudWatch Logs toward an external SIEM instead of the requirement to audit S3 GetObject operations instead of only bucket-policy changes.

Question 865

For an in-transit encryption design, engineers have been assigned this security outcome: Require clients to use TLS when contacting a Redshift cluster. What implementation best fits?

  1. Set the distribution's origin protocol policy to HTTPS only
  2. Configure MACsec with compatible connection settings
  3. Add Site-to-Site VPN over Direct Connect where supported
  4. Enable the cluster's require-SSL parameter and configure clients for TLS

Explanation

Correct Answer

D:

A database service can enforce protected sessions with engine configuration rather than relying only on subnet isolation; it addresses the requirement to require clients to use TLS when contacting a Redshift cluster at the right security boundary during an in-transit encryption design.

Incorrect Answers

A:

For the different objective “Encrypt traffic between CloudFront and a custom HTTPS origin,” origin-side HTTPS protects the edge-to-origin hop; enforcing viewer HTTPS alone does not establish origin TLS; the scenario instead requires “Require clients to use TLS when contacting a Redshift cluster,” which is a separate security mechanism.

B:

MACsec provides Layer 2 link encryption on supported Direct Connect deployments, distinct from VPN authentication and routing; its purpose is the requirement to use an encrypted link layer on eligible dedicated Direct Connect connections, but the acceptance criterion in an in-transit encryption design is the requirement to require clients to use TLS when contacting a Redshift cluster.

C:

A dedicated private circuit does not inherently guarantee application encryption, while an IPsec overlay protects the carried traffic; its scope is the requirement to encrypt traffic across Direct Connect with an end-to-end IPsec VPN overlay instead of link-layer-only protection, rather than the requirement to require clients to use TLS when contacting a Redshift cluster for an in-transit encryption design.

Question 866

The credential and federation review cannot pass unless both of these outcomes are demonstrated: An OIDC role assumption is denied because the token audience does not match; A worker's federated portal login succeeds but no target account is listed. Which two-part plan is suitable?

  1. Correct the identity provider client ID and role trust audience condition; and check IAM Identity Center account assignments and permission sets
  2. Correct the identity provider client ID and role trust audience condition; and adjust role session duration within allowed constraints and refresh credentials
  3. Inspect the role trust policy, provider identifier, and assertion conditions; and check IAM Identity Center account assignments and permission sets
  4. Adjust role session duration within allowed constraints and refresh credentials; and inspect the role trust policy, provider identifier, and assertion conditions

Explanation

Correct Answer

A:

Two different security outcomes are required in this credential and federation review; OIDC federation relies on token claims satisfying the trust policy, including the expected audience supports “An OIDC role assumption is denied because the token audience does not match,” while Authentication to the portal alone grants no account entitlement until an assignment connects the principal and permission set supports “A worker's federated portal login succeeds but no target account is listed”; neither check is assumed to follow from the other.

Incorrect Answers

B:

This option is only partly effective: OIDC federation relies on token claims satisfying the trust policy, including the expected audience supports “An OIDC role assumption is denied because the token audience does not match”; but STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys supports “A principal's temporary role credentials expire during a long-running process,” not the required “A worker's federated portal login succeeds but no target account is listed” outcome.

C:

The option has a useful control for “A worker's federated portal login succeeds but no target account is listed” because authentication to the portal alone grants no account entitlement until an assignment connects the principal and permission set; its other control applies to “A federated role fails to assume despite the user being authenticated with a corporate identity” because authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; it misses the first requirement, “An OIDC role assumption is denied because the token audience does not match.”.

D:

STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys is pertinent to “A principal's temporary role credentials expire during a long-running process,” and Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims is pertinent to “A federated role fails to assume despite the user being authenticated with a corporate identity”; the requested controls for “An OIDC role assumption is denied because the token audience does not match” and “A worker's federated portal login succeeds but no target account is listed” are absent.

Question 867

For a network path incident investigation, engineers have been assigned this security outcome: Explain why return packets fail when a network ACL allows only the request port. What implementation best fits?

  1. Run VPC Reachability Analyzer from source to destination
  2. Add stateless NACL return-path rules for the relevant ephemeral ports
  3. Review ENI-scoped Flow Log action and address/port fields
  4. Examine routes, network ACLs, host firewalls, and application listeners

Explanation

Correct Answer

B:

Network ACLs evaluate inbound and outbound packets independently and cannot infer state from an allowed request; it addresses the requirement to explain why return packets fail when a network ACL allows only the request port at the right security boundary during a network path incident investigation.

Incorrect Answers

A:

Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; its purpose is the requirement to find which configured VPC component blocks a path between EC2 instances, but the acceptance criterion in a network path incident investigation is the requirement to explain why return packets fail when a network ACL allows only the request port.

C:

Flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; this would help with the requirement to diagnose a rejected connection using VPC flow records, leaving the requirement to explain why return packets fail when a network ACL allows only the request port unresolved in a network path incident investigation.

D:

Security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; the important distinction in a network path incident investigation is that this supports the requirement to diagnose why a security-group rule permits ingress but the app still cannot connect instead of the requirement to explain why return packets fail when a network ACL allows only the request port.

Question 868

For a forensic readiness checklist, engineers have been assigned this security outcome: Bring a human approval step into automated containment of a critical production database. What implementation best fits?

  1. Match GuardDuty events with an EventBridge rule and invoke a Step Functions workflow
  2. Establish a dedicated forensic account with emergency cross-account roles
  3. Use S3 Object Lock retention on the evidence bucket and objects
  4. Apply a role session revocation deny to sessions issued before the cutoff
  5. Add a manual approval stage to a Step Functions incident-response workflow

Explanation

Correct Answer

E:

State machines can pause for an external decision before potentially disruptive containment steps execute; this is the direct solution to the requirement to bring a human approval step into automated containment of a critical production database in a forensic readiness checklist.

Incorrect Answers

A:

For the different objective “Route high-severity GuardDuty findings into an approved response workflow,” EventBridge matches supported security finding events, while Step Functions coordinates the ordered response steps and human approval gates; the scenario instead requires “Bring a human approval step into automated containment of a critical production database,” which is a separate security mechanism.

B:

Separating forensic tooling and artifacts from the production blast radius reduces dependence on possibly compromised accounts; this would help with the requirement to ensure responders can reach a separate investigative environment if production credentials are compromised, leaving the requirement to bring a human approval step into automated containment of a critical production database unresolved in a forensic readiness checklist.

C:

Version-level write-once retention protects retained evidence against deletion or overwriting for the selected period; this would help with the requirement to prevent accidental removal of a forensic evidence object during an investigation, leaving the requirement to bring a human approval step into automated containment of a critical production database unresolved in a forensic readiness checklist.

D:

Revoking role sessions introduces a time-based deny for previously issued sessions, rather than relying only on rotating unrelated long-term credentials; the important distinction in a forensic readiness checklist is that this supports the requirement to invalidate temporary sessions that might remain after an IAM role credential concern instead of the requirement to bring a human approval step into automated containment of a critical production database.

Question 869

A change request in the compliance evidence and drift review will be approved only if it delivers both outcomes: Preserve compliance history of changes to resource configurations; Determine whether a security group ever allowed public administrative ports. What should be included?

  1. Enable AWS Config recorders and delivery to controlled storage; and cross-reference CloudTrail API activity with AWS Config configuration history
  2. Enable AWS Config recorders and delivery to controlled storage; and query historical AWS Config configuration items and rule evaluations
  3. Cross-reference CloudTrail API activity with AWS Config configuration history; and associate an AWS Systems Manager Automation remediation action with a Config rule
  4. Associate an AWS Systems Manager Automation remediation action with a Config rule; and query historical AWS Config configuration items and rule evaluations

Explanation

Correct Answer

B:

For the first acceptance test, “Preserve compliance history of changes to resource configurations,” configuration item history supports reconstruction of resource state changes rather than tracking only a current compliance flag; for the second, “Determine whether a security group ever allowed public administrative ports,” config history records supported configuration states, providing evidence of earlier insecure ingress settings; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Configuration item history supports reconstruction of resource state changes rather than tracking only a current compliance flag supports the “Preserve compliance history of changes to resource configurations” acceptance test; CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts is pertinent to “Demonstrate which account actions changed a security posture setting” instead; the change therefore omits the separate requirement “Determine whether a security group ever allowed public administrative ports.”.

C:

Neither action is targeted at the two acceptance tests: CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts is about “Demonstrate which account actions changed a security posture setting,” and Config detects a violation and automation can apply a predefined corrective runbook with authorized permissions is about “Create automated remediation for noncompliant resources detected by Config”; the intended “Preserve compliance history of changes to resource configurations” and “Determine whether a security group ever allowed public administrative ports” requirements remain unsatisfied.

D:

The mechanism for “Determine whether a security group ever allowed public administrative ports” is present: Config history records supported configuration states, providing evidence of earlier insecure ingress settings; the additional mechanism relates to “Create automated remediation for noncompliant resources detected by Config”: Config detects a violation and automation can apply a predefined corrective runbook with authorized permissions; nothing here completes “Preserve compliance history of changes to resource configurations.”.

Question 870

A proposed solution for the logging access troubleshooting session is incomplete unless it addresses both of these checks: Flow logs show no records for a new ENI outside the original logging scope; and A trail reports S3 delivery errors after a bucket-policy hardening change. Which choice provides the necessary controls?

  1. Expand or create Flow Logs coverage for that network interface or containing subnet; and review the key policy for the CloudTrail log-encryption service permissions
  2. Expand or create Flow Logs coverage for that network interface or containing subnet; and restore the precise S3 bucket policy statements that permit CloudTrail delivery
  3. Review the key policy for the CloudTrail log-encryption service permissions; and add the necessary S3 object data-event selectors to the trail
  4. Add the necessary S3 object data-event selectors to the trail; and restore the precise S3 bucket policy statements that permit CloudTrail delivery

Explanation

Correct Answer

B:

For the first acceptance test, “Flow logs show no records for a new ENI outside the original logging scope,” flow Logs capture only interfaces covered by the configured scope and supported traffic records; for the second, “A trail reports S3 delivery errors after a bucket-policy hardening change,” A restrictive destination policy can block PutObject even when the trail and event selectors remain configured correctly; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Flow Logs capture only interfaces covered by the configured scope and supported traffic records supports the “Flow logs show no records for a new ENI outside the original logging scope” acceptance test; SSE-KMS log delivery requires usable cryptographic authorization; an S3 write allowance alone cannot fix rejected key operations is pertinent to “CloudTrail events stop arriving after the KMS key policy is tightened” instead; the change therefore omits the separate requirement “A trail reports S3 delivery errors after a bucket-policy hardening change.”.

C:

Neither action is targeted at the two acceptance tests: SSE-KMS log delivery requires usable cryptographic authorization; an S3 write allowance alone cannot fix rejected key operations is about “CloudTrail events stop arriving after the KMS key policy is tightened,” and Management-event collection does not imply coverage of object-level operations, even in the same account is about “S3 GetObject calls are absent while management calls remain visible”; the intended “Flow logs show no records for a new ENI outside the original logging scope” and “A trail reports S3 delivery errors after a bucket-policy hardening change” requirements remain unsatisfied.

D:

The mechanism for “A trail reports S3 delivery errors after a bucket-policy hardening change” is present: A restrictive destination policy can block PutObject even when the trail and event selectors remain configured correctly; the additional mechanism relates to “S3 GetObject calls are absent while management calls remain visible”: Management-event collection does not imply coverage of object-level operations, even in the same account; nothing here completes “Flow logs show no records for a new ENI outside the original logging scope.”.

AWS Certified Security - Specialty SCS-C03 Practice Tests