Question 410

A review board evaluating the permissions and authorization review rejects fixes that cover just one requirement. The requirements are: Restrict access based on an organization identifier rather than enumerating every member account; and Identify exactly what authorizes cross-account access to a specific KMS key. Which configuration addresses both?

  1. Add sts:ExternalId validation to the cross-account role trust policy; and evaluate the key policy, grantee permissions, and relevant identity policy
  2. Restrict iam:PassRole by role ARN and iam:PassedToService condition; and add sts:ExternalId validation to the cross-account role trust policy
  3. Use aws:PrincipalOrgID in a compatible resource-based policy; and evaluate the key policy, grantee permissions, and relevant identity policy
  4. Use aws:PrincipalOrgID in a compatible resource-based policy; and restrict iam:PassRole by role ARN and iam:PassedToService condition

Explanation

Correct Answer

C:

For “Restrict access based on an organization identifier rather than enumerating every member account,” the governing behavior is: Organization membership context can simplify trust for accounts in the organization while still requiring careful resource and action scoping; for the separate check “Identify exactly what authorizes cross-account access to a specific KMS key,” it is: Cross-account cryptographic use depends on permissions on both sides plus key-policy authorization, not simply a role name match; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

Only the second requirement is covered: Cross-account cryptographic use depends on permissions on both sides plus key-policy authorization, not simply a role name match supports “Identify exactly what authorizes cross-account access to a specific KMS key”; by contrast, External ID helps defend against the confused-deputy problem when a third-party service assumes roles for multiple customers concerns “Constrain a third-party role assumption to a unique customer relationship,” leaving “Restrict access based on an organization identifier rather than enumerating every member account” unresolved.

B:

This combination targets different outcomes: Limiting both which role may be passed and which service can receive it curtails creation of overprivileged service workloads helps with “Reduce privilege escalation through arbitrary iam:PassRole on service launch”; External ID helps defend against the confused-deputy problem when a third-party service assumes roles for multiple customers helps with “Constrain a third-party role assumption to a unique customer relationship”; neither implements the required “Restrict access based on an organization identifier rather than enumerating every member account” and “Identify exactly what authorizes cross-account access to a specific KMS key” outcomes together.

D:

The first part is appropriate for “Restrict access based on an organization identifier rather than enumerating every member account” because organization membership context can simplify trust for accounts in the organization while still requiring careful resource and action scoping; the second part addresses a different issue (“Reduce privilege escalation through arbitrary iam:PassRole on service launch”) because limiting both which role may be passed and which service can receive it curtails creation of overprivileged service workloads; it does not fulfill the “Identify exactly what authorizes cross-account access to a specific KMS key” test.

Question 411

A security review for a production service recovery review identifies one priority: Identify the cause of a series of unexpected security-group modifications. Which control is the best choice?

  1. Copy artifacts to a separately administered account with S3 Object Lock
  2. Correlate VPC Flow Logs with GuardDuty network-related findings
  3. Combine EventBridge detection with Step Functions and narrowly scoped Lambda actions
  4. Query CloudTrail management events for AuthorizeSecurityGroupIngress and related calls

Explanation

Correct Answer

D:

Control-plane audit records identify the actor, request parameters, and timing of security-group changes; for a production service recovery review, this is the measure that delivers the requirement to identify the cause of a series of unexpected security-group modifications.

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 “Identify the cause of a series of unexpected security-group modifications,” which is a separate security mechanism.

B:

Flow records summarize accepted or rejected traffic metadata, supporting a timeline without claiming packet-payload visibility; this addresses the requirement to determine whether a suspicious instance communicated with a known bad endpoint, not the requirement to identify the cause of a series of unexpected security-group modifications, which is needed in a production service recovery review.

C:

The event bus triggers an orchestrated workflow, and each action can run with its own least-privilege execution role; the important distinction in a production service recovery review is that this supports the requirement to execute a repeatable account lock-down process across several response stages instead of the requirement to identify the cause of a series of unexpected security-group modifications.

Question 412

For an audit framework control evaluation, engineers have been assigned this security outcome: Identify sensitive personal data in S3 archives. What implementation best fits?

  1. Enable an appropriate AWS Config managed rule and compliance evaluation
  2. Run Amazon Macie sensitive-data discovery jobs
  3. Use AWS Audit Manager assessments and evidence collection
  4. Enable Security Hub security standards and review control findings

Explanation

Correct Answer

B:

Macie analyzes S3 content to surface sensitive-data locations for classification and follow-up controls; this is the direct solution to the requirement to identify sensitive personal data in S3 archives in an audit framework control evaluation.

Incorrect Answers

A:

Config rules evaluate recorded resource configurations against expected controls and report compliance states; the important distinction in an audit framework control evaluation is that this supports the requirement to detect when an S3 bucket deviates from an encryption baseline instead of the requirement to identify sensitive personal data in S3 archives.

C:

Audit Manager organizes evidence against configured control frameworks but does not itself certify legal compliance; this addresses the requirement to collect control evidence for audits from multiple AWS services, not the requirement to identify sensitive personal data in S3 archives, which is needed in an audit framework control evaluation.

D:

Security Hub evaluates supported control checks and consolidates findings; remediation remains an independent action; its purpose is the requirement to measure consolidated security posture against security controls, but the acceptance criterion in an audit framework control evaluation is the requirement to identify sensitive personal data in S3 archives.

Question 413

A security architecture review for an EC2 and EKS workload security assessment contains 2 independently assessed work items: (1) Detect package vulnerabilities on supported EC2 instances; (2) Avoid storing long-term AWS access keys on an EC2 instance. Which actions directly implement those requirements? Choose TWO.

  1. Build and test a hardened AMI with EC2 Image Builder
  2. Use Systems Manager Patch Manager with approved baselines
  3. Require IMDSv2 on the instance metadata options
  4. Attach an IAM instance profile with a least-privilege role
  5. Enable Amazon Inspector EC2 scanning and review its findings

Explanation

Correct Answers

D:

Instance profiles expose temporary role credentials to instance software, reducing the need for embedded static keys; in an EC2 and EKS workload security assessment, this is one of the independently required safeguards because it addresses the requirement to avoid storing long-term AWS access keys on an EC2 instance.

E:

Inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; in an EC2 and EKS workload security assessment, this is one of the independently required safeguards because it addresses the requirement to detect package vulnerabilities on supported EC2 instances.

Incorrect Answers

A:

Image Builder automates image build pipelines and validation so baseline changes can be propagated consistently; in an EC2 and EKS workload security assessment, that supports the requirement to deploy a repeatable hardened operating-system image to new instances, which is distinct from the 2 enumerated security work items.

B:

Patch Manager coordinates OS patch compliance and installation on managed nodes according to selected patch baselines; in an EC2 and EKS workload security assessment, that supports the requirement to install security patches on a large fleet without individually logging in, which is distinct from the 2 enumerated security work items.

C:

Enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios; in an EC2 and EKS workload security assessment, that supports the requirement to block access to the EC2 Instance Metadata Service version 1, which is distinct from the 2 enumerated security work items.

Question 414

A proposed solution for the logging access troubleshooting session is incomplete unless it addresses both of these checks: CloudWatch Logs Insights users receive an authorization error during queries; and A destination bucket accepts logs but investigators cannot read them. Which choice provides the necessary controls?

  1. Allow the needed logs query API actions on appropriate resources; and fix the delivery role's S3 write and applicable KMS permissions
  2. Allow the needed logs query API actions on appropriate resources; and grant least-privilege S3 object read access and any required KMS decrypt rights
  3. Fix the delivery role's S3 write and applicable KMS permissions; and add restrictive bucket controls and object retention, not just lifecycle rules
  4. Add restrictive bucket controls and object retention, not just lifecycle rules; and grant least-privilege S3 object read access and any required KMS decrypt rights

Explanation

Correct Answer

B:

For the first acceptance test, “CloudWatch Logs Insights users receive an authorization error during queries,” reading log streams and running Logs Insights queries involve different API permissions; query execution is subject to IAM authorization; for the second, “A destination bucket accepts logs but investigators cannot read them,” successful logging and successful analysis are separate permissions; encryption can require an additional key grant to readers; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Reading log streams and running Logs Insights queries involve different API permissions; query execution is subject to IAM authorization supports the “CloudWatch Logs Insights users receive an authorization error during queries” acceptance test; the Firehose role must be authorized for destination storage and encryption, separately from the upstream log producer is pertinent to “A Kinesis Firehose delivery stream cannot write log objects to S3” instead; the change therefore omits the separate requirement “A destination bucket accepts logs but investigators cannot read them.”.

C:

Neither action is targeted at the two acceptance tests: The Firehose role must be authorized for destination storage and encryption, separately from the upstream log producer is about “A Kinesis Firehose delivery stream cannot write log objects to S3,” and Access authorization and retention safeguards protect evidence; lifecycle configuration determines object aging rather than who can modify it is about “An S3 log archive is editable by identities outside the security account”; the intended “CloudWatch Logs Insights users receive an authorization error during queries” and “A destination bucket accepts logs but investigators cannot read them” requirements remain unsatisfied.

D:

The mechanism for “A destination bucket accepts logs but investigators cannot read them” is present: Successful logging and successful analysis are separate permissions; encryption can require an additional key grant to readers; the additional mechanism relates to “An S3 log archive is editable by identities outside the security account”: Access authorization and retention safeguards protect evidence; lifecycle configuration determines object aging rather than who can modify it; nothing here completes “CloudWatch Logs Insights users receive an authorization error during queries.”.

Question 415

A review board evaluating the storage encryption control review rejects fixes that cover just one requirement. The requirements are: Protect encryption operations with authenticated associated data that must match at decryption; and Keep hardware-security-module key operations under a customer-managed HSM cluster. Which configuration addresses both?

  1. Use a KMS encryption context for supported symmetric KMS operations; and use AWS CloudHSM for supported HSM-controlled key workloads
  2. Use a KMS encryption context for supported symmetric KMS operations; and constrain the KMS key policy using kms:ViaService where supported
  3. Disable the key while coordinating a recovery and re-encryption plan; and use AWS CloudHSM for supported HSM-controlled key workloads
  4. Constrain the KMS key policy using kms:ViaService where supported; and disable the key while coordinating a recovery and re-encryption plan

Explanation

Correct Answer

A:

For “Protect encryption operations with authenticated associated data that must match at decryption,” the governing behavior is: An encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption; for the separate check “Keep hardware-security-module key operations under a customer-managed HSM cluster,” it is: CloudHSM gives customers dedicated HSM administration and key control with different operations from a managed KMS key; this is why the two controls belong together in the proposed change.

Incorrect Answers

B:

The first part is appropriate for “Protect encryption operations with authenticated associated data that must match at decryption” because an encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption; the second part addresses a different issue (“Limit sensitive KMS key use to one AWS service integration”) because service-context conditions limit when the KMS key may be used through an approved integrated AWS service; it does not fulfill the “Keep hardware-security-module key operations under a customer-managed HSM cluster” test.

C:

Only the second requirement is covered: CloudHSM gives customers dedicated HSM administration and key control with different operations from a managed KMS key supports “Keep hardware-security-module key operations under a customer-managed HSM cluster”; by contrast, A disabled KMS key cannot perform new cryptographic operations, which can also make dependent encrypted data inaccessible concerns “Stop further encrypted data operations with a compromised customer-managed KMS key,” leaving “Protect encryption operations with authenticated associated data that must match at decryption” unresolved.

D:

This combination targets different outcomes: Service-context conditions limit when the KMS key may be used through an approved integrated AWS service helps with “Limit sensitive KMS key use to one AWS service integration”; A disabled KMS key cannot perform new cryptographic operations, which can also make dependent encrypted data inaccessible helps with “Stop further encrypted data operations with a compromised customer-managed KMS key”; neither implements the required “Protect encryption operations with authenticated associated data that must match at decryption” and “Keep hardware-security-module key operations under a customer-managed HSM cluster” outcomes together.

Question 416

Two security control owners share a permissions and authorization review. One is responsible for this outcome: An assumed role is denied by a resource policy that names the wrong principal. The other needs: An operator needs to determine why a specific AWS API call is denied. Which implementation covers both?

  1. Review IAM Access Analyzer external access findings for supported resource policies; and grant tightly scoped iam:PassRole to the approved service role
  2. Grant tightly scoped iam:PassRole to the approved service role; and test the applicable policies with IAM policy simulator and check CloudTrail evidence
  3. Update the resource policy to reference the intended role or session principal; and review IAM Access Analyzer external access findings for supported resource policies
  4. Update the resource policy to reference the intended role or session principal; and test the applicable policies with IAM policy simulator and check CloudTrail evidence

Explanation

Correct Answer

D:

Two different security outcomes are required in this permissions and authorization review; Authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities supports “An assumed role is denied by a resource policy that names the wrong principal,” while Simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request supports “An operator needs to determine why a specific AWS API call is denied”; neither check is assumed to follow from the other.

Incorrect Answers

A:

Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents is pertinent to “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone,” and Passing a role to a service requires separate iam:PassRole authorization and is not implied by ec2:RunInstances alone is pertinent to “A developer can create roles but cannot pass them to an EC2 service”; the requested controls for “An assumed role is denied by a resource policy that names the wrong principal” and “An operator needs to determine why a specific AWS API call is denied” are absent.

B:

The option has a useful control for “An operator needs to determine why a specific AWS API call is denied” because simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request; its other control applies to “A developer can create roles but cannot pass them to an EC2 service” because passing a role to a service requires separate iam:PassRole authorization and is not implied by ec2:RunInstances alone; it misses the first requirement, “An assumed role is denied by a resource policy that names the wrong principal.”.

C:

This option is only partly effective: Authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities supports “An assumed role is denied by a resource policy that names the wrong principal”; but Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents supports “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone,” not the required “An operator needs to determine why a specific AWS API call is denied” outcome.

Question 417

During a VPC reachability troubleshooting session, the security team has this work item: Explain why a private EC2 instance cannot reach the internet after adding a route. Which AWS action is the most direct implementation?

  1. Model the intended source and destination with Network Access Analyzer or Reachability Analyzer
  2. Check for a usable NAT gateway path and the subnet's route configuration
  3. Verify private DNS settings and VPC DNS resolution options
  4. Verify the gateway endpoint association with the subnet's route table

Explanation

Correct Answer

B:

An internet gateway route alone does not supply public source addresses to private instances that lack public IP mappings; for a VPC reachability troubleshooting session, this is the measure that delivers the requirement to explain why a private EC2 instance cannot reach the internet after adding a route.

Incorrect Answers

A:

Static network-path analysis reveals configured reachability and policy exposure without relying only on manual CIDR comparison; this would help with the requirement to verify a specific route policy does not permit unwanted transitive connectivity, leaving the requirement to explain why a private EC2 instance cannot reach the internet after adding a route unresolved in a VPC reachability troubleshooting session.

C:

Interface endpoint private DNS and VPC DNS support control whether normal service names resolve to endpoint addresses; this would help with the requirement to troubleshoot private interface endpoint name resolution failures, leaving the requirement to explain why a private EC2 instance cannot reach the internet after adding a route unresolved in a VPC reachability troubleshooting session.

D:

Gateway endpoints insert routes into chosen route tables; omitted associations leave instances using other available routes; this addresses the requirement to investigate why S3 endpoint traffic takes the NAT gateway path, not the requirement to explain why a private EC2 instance cannot reach the internet after adding a route, which is needed in a VPC reachability troubleshooting session.

Question 418

Before closing the managed threat detection rollout, a team must demonstrate the following: Identify security findings that remain unresolved despite repeated alerts; plus Identify a change in user behavior from an unusual sequence of AWS API calls. Which paired change would complete the work?

  1. Verify its namespace, metric dimensions, period, and alarm threshold; and query S3-delivered records with Athena using a suitable table schema
  2. Query S3-delivered records with Athena using a suitable table schema; and inspect GuardDuty anomaly findings with relevant CloudTrail events
  3. Create a Security Hub custom insight grouped by workflow status and severity; and verify its namespace, metric dimensions, period, and alarm threshold
  4. Create a Security Hub custom insight grouped by workflow status and severity; and inspect GuardDuty anomaly findings with relevant CloudTrail events

Explanation

Correct Answer

D:

The implementation has a specific control for each objective: Insights filter and aggregate standardized findings for prioritization; they do not replace detector collection for “Identify security findings that remain unresolved despite repeated alerts”; Threat findings provide an anomaly lead, while CloudTrail records show the specific API actor and sequence for verification for “Identify a change in user behavior from an unusual sequence of AWS API calls”; the combined option satisfies the two-part request.

Incorrect Answers

A:

The first proposed action addresses “Find why a custom CloudWatch alarm never triggered during an incident”: CloudWatch alarms evaluate a particular metric time series; incorrect dimensions or period selection can make the intended events invisible; the second addresses “Search a month of archived CloudTrail JSON records for calls from an IP address”: Athena performs SQL queries over stored log objects without requiring ingestion of the entire archive into a running database; the combination does not achieve the required “Identify security findings that remain unresolved despite repeated alerts” and “Identify a change in user behavior from an unusual sequence of AWS API calls” outcomes in this managed threat detection rollout.

B:

While threat findings provide an anomaly lead, while CloudTrail records show the specific API actor and sequence for verification is relevant to “Identify a change in user behavior from an unusual sequence of AWS API calls,” the other component targets “Search a month of archived CloudTrail JSON records for calls from an IP address,” where athena performs SQL queries over stored log objects without requiring ingestion of the entire archive into a running database; the first acceptance criterion (“Identify security findings that remain unresolved despite repeated alerts”) is not met.

C:

The first check would be covered, since insights filter and aggregate standardized findings for prioritization; they do not replace detector collection; yet the second choice is associated with “Find why a custom CloudWatch alarm never triggered during an incident,” for which CloudWatch alarms evaluate a particular metric time series; incorrect dimensions or period selection can make the intended events invisible; no corresponding control satisfies “Identify a change in user behavior from an unusual sequence of AWS API calls.”.

Question 419

An assessment of the compliance evidence and drift review has two findings. Finding one: Create automated remediation for noncompliant resources detected by Config. Finding two: Determine whether a security group ever allowed public administrative ports. Which combination remediates both?

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

Explanation

Correct Answer

B:

The implementation has a specific control for each objective: Config detects a violation and automation can apply a predefined corrective runbook with authorized permissions for “Create automated remediation for noncompliant resources detected by Config”; Config history records supported configuration states, providing evidence of earlier insecure ingress settings for “Determine whether a security group ever allowed public administrative ports”; the combined option satisfies the two-part request.

Incorrect Answers

A:

The first check would be covered, since config detects a violation and automation can apply a predefined corrective runbook with authorized permissions; yet the second choice is associated with “Demonstrate which account actions changed a security posture setting,” for which CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts; no corresponding control satisfies “Determine whether a security group ever allowed public administrative ports.”.

C:

The first proposed action addresses “Demonstrate which account actions changed a security posture setting”: CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts; the second addresses “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; the combination does not achieve the required “Create automated remediation for noncompliant resources detected by Config” and “Determine whether a security group ever allowed public administrative ports” outcomes in this compliance evidence and drift review.

D:

While config history records supported configuration states, providing evidence of earlier insecure ingress settings is relevant to “Determine whether a security group ever allowed public administrative ports,” the other component targets “Preserve compliance history of changes to resource configurations,” where configuration item history supports reconstruction of resource state changes rather than tracking only a current compliance flag; the first acceptance criterion (“Create automated remediation for noncompliant resources detected by Config”) is not met.

Question 420

A change request in the telemetry and alarm repair exercise will be approved only if it delivers both outcomes: An application sends logs but fails to publish custom metrics; CloudWatch alarms remain in INSUFFICIENT_DATA during quiet periods. What should be included?

  1. Check event-pattern fields and permission for EventBridge to invoke the target; and use a valid CloudWatch Logs filter pattern for the actual JSON structure
  2. Use a valid CloudWatch Logs filter pattern for the actual JSON structure; and review missing-data treatment and whether the expected metric publishes regularly
  3. Grant cloudwatch:PutMetricData to the publisher and verify the metric namespace; and check event-pattern fields and permission for EventBridge to invoke the target
  4. Grant cloudwatch:PutMetricData to the publisher and verify the metric namespace; and review missing-data treatment and whether the expected metric publishes regularly

Explanation

Correct Answer

D:

For the first acceptance test, “An application sends logs but fails to publish custom metrics,” logging permissions are different from custom metric publication rights; metrics can be absent despite healthy log ingestion; for the second, “CloudWatch alarms remain in INSUFFICIENT_DATA during quiet periods,” missing metrics are not necessarily healthy values; alarm evaluation needs an intentional policy for periods without samples; 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: Both rule matching and target invocation authorization must succeed before automation starts is about “EventBridge rules receive CloudTrail events but matching rules never invoke Lambda,” and Filter expressions must match the logged field names and data types rather than the structure assumed by the operator is about “An alert filter never matches a numeric application status field”; the intended “An application sends logs but fails to publish custom metrics” and “CloudWatch alarms remain in INSUFFICIENT_DATA during quiet periods” requirements remain unsatisfied.

B:

The mechanism for “CloudWatch alarms remain in INSUFFICIENT_DATA during quiet periods” is present: Missing metrics are not necessarily healthy values; alarm evaluation needs an intentional policy for periods without samples; the additional mechanism relates to “An alert filter never matches a numeric application status field”: Filter expressions must match the logged field names and data types rather than the structure assumed by the operator; nothing here completes “An application sends logs but fails to publish custom metrics.”.

C:

Logging permissions are different from custom metric publication rights; metrics can be absent despite healthy log ingestion supports the “An application sends logs but fails to publish custom metrics” acceptance test; both rule matching and target invocation authorization must succeed before automation starts is pertinent to “EventBridge rules receive CloudTrail events but matching rules never invoke Lambda” instead; the change therefore omits the separate requirement “CloudWatch alarms remain in INSUFFICIENT_DATA during quiet periods.”.

AWS Certified Security - Specialty SCS-C03 Practice Tests