Question 220

An architect is reviewing a suspicious API activity review. The acceptance criterion reads: Search raw CloudWatch log messages for failed authentication patterns across streams. Which approach satisfies it?

  1. Inspect CloudTrail UpdateAssumeRolePolicy records and request context
  2. Examine supported KMS API activity in CloudTrail management events
  3. Query the log objects in Athena with an appropriate external table
  4. Run a CloudWatch Logs Insights query selecting and filtering relevant fields

Explanation

Correct Answer

D:

Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first; this is the direct solution to the requirement to search raw CloudWatch log messages for failed authentication patterns across streams in a suspicious API activity review.

Incorrect Answers

A:

CloudTrail management events expose who invoked role trust changes and which policy update was submitted; this addresses the requirement to determine which caller changed an IAM trust policy, not the requirement to search raw CloudWatch log messages for failed authentication patterns across streams, which is needed in a suspicious API activity review.

B:

CloudTrail records supported KMS API calls and caller context, enabling key usage attribution without revealing plaintext cryptographic key bytes; the important distinction in a suspicious API activity review is that this supports the requirement to audit how a customer-managed KMS key has been used by AWS callers instead of the requirement to search raw CloudWatch log messages for failed authentication patterns across streams.

C:

Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; the important distinction in a suspicious API activity review is that this supports the requirement to join S3 archived CloudTrail records with a reference table of suspect IPs instead of the requirement to search raw CloudWatch log messages for failed authentication patterns across streams.

Question 221

Before closing the storage encryption control review, a team must demonstrate the following: Allow an authorized principal to use a KMS key for decryption rather than just list it; plus Keep hardware-security-module key operations under a customer-managed HSM cluster. Which paired change would complete the work?

  1. Disable the key while coordinating a recovery and re-encryption plan; and use a KMS encryption context for supported symmetric KMS operations
  2. Use a KMS encryption context for supported symmetric KMS operations; and use AWS CloudHSM for supported HSM-controlled key workloads
  3. Grant kms:Decrypt through the key policy and necessary IAM authorization; and disable the key while coordinating a recovery and re-encryption plan
  4. Grant kms:Decrypt through the key policy and necessary IAM authorization; and use AWS CloudHSM for supported HSM-controlled key workloads

Explanation

Correct Answer

D:

The implementation has a specific control for each objective: KMS cryptographic permissions depend on key-policy access and any required identity policy, which is distinct from metadata visibility for “Allow an authorized principal to use a KMS key for decryption rather than just list it”; CloudHSM gives customers dedicated HSM administration and key control with different operations from a managed KMS key for “Keep hardware-security-module key operations under a customer-managed HSM cluster”; the combined option satisfies the two-part request.

Incorrect Answers

A:

The first proposed action addresses “Stop further encrypted data operations with a compromised customer-managed KMS key”: A disabled KMS key cannot perform new cryptographic operations, which can also make dependent encrypted data inaccessible; the second addresses “Protect encryption operations with authenticated associated data that must match at decryption”: An encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption; the combination does not achieve the required “Allow an authorized principal to use a KMS key for decryption rather than just list it” and “Keep hardware-security-module key operations under a customer-managed HSM cluster” outcomes in this storage encryption control review.

B:

While CloudHSM gives customers dedicated HSM administration and key control with different operations from a managed KMS key is relevant to “Keep hardware-security-module key operations under a customer-managed HSM cluster,” the other component targets “Protect encryption operations with authenticated associated data that must match at decryption,” where an encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption; the first acceptance criterion (“Allow an authorized principal to use a KMS key for decryption rather than just list it”) is not met.

C:

The first check would be covered, since KMS cryptographic permissions depend on key-policy access and any required identity policy, which is distinct from metadata visibility; yet the second choice is associated with “Stop further encrypted data operations with a compromised customer-managed KMS key,” for which A disabled KMS key cannot perform new cryptographic operations, which can also make dependent encrypted data inaccessible; no corresponding control satisfies “Keep hardware-security-module key operations under a customer-managed HSM cluster.”.

Question 222

The permissions and authorization review has two control objectives. Requirement one: An overly broad policy includes actions never used by the principal. Requirement two: A developer needs to see whether an S3 bucket is exposed beyond an account trust zone. Which design passes both checks?

  1. Use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input; and review IAM Access Analyzer external access findings for supported resource policies
  2. Use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input; and grant tightly scoped iam:PassRole to the approved service role
  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. Grant tightly scoped iam:PassRole to the approved service role; and update the resource policy to reference the intended role or session principal

Explanation

Correct Answer

A:

The first control addresses the check “An overly broad policy includes actions never used by the principal”: Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; the other addresses “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone”: Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; these two mechanisms cover the complete permissions and authorization review.

Incorrect Answers

B:

Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; this is relevant to the first objective (“An overly broad policy includes actions never used by the principal”); however, the other action is meant for “A developer can create roles but cannot pass them to an EC2 service”: Passing a role to a service requires separate iam:PassRole authorization and is not implied by ec2:RunInstances alone; it leaves the required “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone” behavior unimplemented.

C:

Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; this fulfills the second objective (“A developer needs to see whether an S3 bucket is exposed beyond an account trust zone”); the other action is intended for “An assumed role is denied by a resource policy that names the wrong principal”: Authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities; it does not meet the requested “An overly broad policy includes actions never used by the principal” check.

D:

The first action belongs 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; the second belongs to “An assumed role is denied by a resource policy that names the wrong principal” because authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities; these are not the required checks, “An overly broad policy includes actions never used by the principal” and “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone.”.

Question 223

During a VPC connectivity and segmentation rollout, reviewers document two independent acceptance criteria. First: Access a supported AWS service privately through private VPC IP addresses. Second: Connect many VPCs through centralized routing without individual full meshes. Which combined implementation satisfies both?

  1. Provision Direct Connect and add VPN or other encryption when confidentiality is required; and attach VPCs to a Transit Gateway with controlled route tables
  2. Configure AWS Site-to-Site VPN with suitable customer gateway settings; and provision Direct Connect and add VPN or other encryption when confidentiality is required
  3. Create an interface VPC endpoint using AWS PrivateLink; and attach VPCs to a Transit Gateway with controlled route tables
  4. Create an interface VPC endpoint using AWS PrivateLink; and configure AWS Site-to-Site VPN with suitable customer gateway settings

Explanation

Correct Answer

C:

The first control addresses the check “Access a supported AWS service privately through private VPC IP addresses”: An interface endpoint creates endpoint network interfaces and supports private connections to compatible services; the other addresses “Connect many VPCs through centralized routing without individual full meshes”: Transit Gateway centralizes network transit and segmentation through attachments and route-table associations and propagations; these two mechanisms cover the complete VPC connectivity and segmentation rollout.

Incorrect Answers

A:

Transit Gateway centralizes network transit and segmentation through attachments and route-table associations and propagations; this fulfills the second objective (“Connect many VPCs through centralized routing without individual full meshes”); the other action is intended for “Use dedicated network connectivity without claiming it is encrypted by default”: Direct Connect provides private connectivity capacity but does not by itself encrypt all customer traffic in transit; it does not meet the requested “Access a supported AWS service privately through private VPC IP addresses” check.

B:

The first action belongs to “Connect on-premises and AWS over an IPsec tunnel across the internet” because site-to-Site VPN encrypts supported network traffic between gateways using IPsec tunnels over the selected transport; the second belongs to “Use dedicated network connectivity without claiming it is encrypted by default” because direct Connect provides private connectivity capacity but does not by itself encrypt all customer traffic in transit; these are not the required checks, “Access a supported AWS service privately through private VPC IP addresses” and “Connect many VPCs through centralized routing without individual full meshes.”.

D:

An interface endpoint creates endpoint network interfaces and supports private connections to compatible services; this is relevant to the first objective (“Access a supported AWS service privately through private VPC IP addresses”); however, the other action is meant for “Connect on-premises and AWS over an IPsec tunnel across the internet”: Site-to-Site VPN encrypts supported network traffic between gateways using IPsec tunnels over the selected transport; it leaves the required “Connect many VPCs through centralized routing without individual full meshes” behavior unimplemented.

Question 224

During a forensic readiness checklist, the security team has this work item: Route high-severity GuardDuty findings into an approved response workflow. Which AWS action is the most direct implementation?

  1. Prepare Systems Manager Automation runbooks with restricted execution roles
  2. Create an EBS snapshot and restrict its sharing and KMS access
  3. Match GuardDuty events with an EventBridge rule and invoke a Step Functions workflow
  4. Attach a restrictive isolation security group and verify existing connections
  5. Normalize the findings into AWS Security Finding Format in Security Hub

Explanation

Correct Answer

C:

EventBridge matches supported security finding events, while Step Functions coordinates the ordered response steps and human approval gates; this is the direct solution to the requirement to route high-severity GuardDuty findings into an approved response workflow in a forensic readiness checklist.

Incorrect Answers

A:

Automation documents implement consistent response actions and IAM constrains who can start them or affect target resources; the important distinction in a forensic readiness checklist is that this supports the requirement to preapprove repeatable patch and quarantine operations before an incident instead of the requirement to route high-severity GuardDuty findings into an approved response workflow.

B:

A snapshot preserves the volume's blocks for forensic analysis, with access to an encrypted copy controlled by the relevant KMS key permissions; this would help with the requirement to preserve an encrypted EBS volume's point-in-time contents before destructive remediation, leaving the requirement to route high-severity GuardDuty findings into an approved response workflow unresolved in a forensic readiness checklist.

D:

Security groups constrain permitted instance traffic, but stateful connection tracking must be considered when isolating sessions already established; its purpose is the requirement to prepare a repeatable EC2 quarantine plan that preserves the host and accounts for established sessions, but the acceptance criterion in a forensic readiness checklist is the requirement to route high-severity GuardDuty findings into an approved response workflow.

E:

ASFF provides common fields for the finding origin, resources, severity, and workflow state across integrated products; its purpose is the requirement to make findings from multiple AWS security products use a common event structure, but the acceptance criterion in a forensic readiness checklist is the requirement to route high-severity GuardDuty findings into an approved response workflow.

Question 225

During a landing-zone identity baseline, the security team has this work item: Define an emergency administrator access route that does not depend on a compromised identity provider. Which AWS action is the most direct implementation?

  1. Register a supported security-service delegated administrator in a member account
  2. Restrict Organizations membership API actions to a central administrative role
  3. Design a documented break-glass role and tightly secured emergency credential process
  4. Review IAM Identity Center assignments and provisioned permission sets

Explanation

Correct Answer

C:

Tested alternate access can preserve incident-response authority while separate logging and approval reduce abuse risk; for a landing-zone identity baseline, this is the measure that delivers the requirement to define an emergency administrator access route that does not depend on a compromised identity provider.

Incorrect Answers

A:

For the different objective “Transfer governance of routine security operations away from the management account,” service-specific delegation limits day-to-day use of the most privileged organization account without bypassing the overall service guardrails; the scenario instead requires “Define an emergency administrator access route that does not depend on a compromised identity provider,” which is a separate security mechanism.

B:

Organizations permissions control account relationships and policy attachment at the organization boundary; this would help with the requirement to limit who can invite or remove accounts from an organization, leaving the requirement to define an emergency administrator access route that does not depend on a compromised identity provider unresolved in a landing-zone identity baseline.

D:

Central assignments reveal which users and groups can obtain roles in each managed account; the important distinction in a landing-zone identity baseline is that this supports the requirement to centralize access assignment audits for workforce roles instead of the requirement to define an emergency administrator access route that does not depend on a compromised identity provider.

Question 226

In a central log collection migration, engineers must cover two different requirements: Keep a central log bucket inaccessible to public principals. In addition, Allow CloudTrail to deliver logs into a hardened destination bucket. Which option implements both?

  1. Apply S3 Block Public Access and restrictive bucket policy conditions; and configure the required CloudTrail service-principal bucket policy permissions
  2. Apply S3 Block Public Access and restrictive bucket policy conditions; and apply an S3 Lifecycle transition policy to the log archive
  3. Use S3 Object Lock retention with appropriate mode on versioned log objects; and configure the required CloudTrail service-principal bucket policy permissions
  4. Apply an S3 Lifecycle transition policy to the log archive; and use S3 Object Lock retention with appropriate mode on versioned log objects

Explanation

Correct Answer

A:

This pairing handles the first requirement (“Keep a central log bucket inaccessible to public principals”) because blocking public access and limiting principals protects delivered log objects independently from the logging service configuration; it handles the second (“Allow CloudTrail to deliver logs into a hardened destination bucket”) because trail delivery depends on the destination policy allowing the logging service to write to the correct bucket path; both acceptance criteria are therefore addressed.

Incorrect Answers

B:

One action is correctly chosen for “Keep a central log bucket inaccessible to public principals”: Blocking public access and limiting principals protects delivered log objects independently from the logging service configuration; the companion action relates to “Archive security logs at lower storage cost after the investigation window”: Lifecycle rules transition or expire object versions under configured conditions; immutability requirements must be handled separately; the other requested outcome, “Allow CloudTrail to deliver logs into a hardened destination bucket,” remains outstanding.

C:

This solves the second problem (“Allow CloudTrail to deliver logs into a hardened destination bucket”): Trail delivery depends on the destination policy allowing the logging service to write to the correct bucket path; however, the first action addresses “Prevent attackers from deleting retained audit-log versions for a required period”: Retention enforces per-version write-once protection; lifecycle transitions alone do not prevent early deletion; it does not satisfy “Keep a central log bucket inaccessible to public principals.”.

D:

Both mechanisms have legitimate uses, but for other requirements: Lifecycle rules transition or expire object versions under configured conditions; immutability requirements must be handled separately supports “Archive security logs at lower storage cost after the investigation window”; Retention enforces per-version write-once protection; lifecycle transitions alone do not prevent early deletion supports “Prevent attackers from deleting retained audit-log versions for a required period”; this does not resolve the stated “Keep a central log bucket inaccessible to public principals” and “Allow CloudTrail to deliver logs into a hardened destination bucket” findings.

Question 227

A proposed solution for the storage encryption control review is incomplete unless it addresses both of these checks: Allow authorized governance operators to override certain S3 retention locks; and Make backups immutable for a specified period. Which choice provides the necessary controls?

  1. Use S3 Object Lock governance mode with controlled bypass permission; and apply AWS Backup Vault Lock with an appropriate configuration
  2. Use S3 Object Lock governance mode with controlled bypass permission; and verify a cryptographic checksum or digital signature from a trusted source
  3. Use S3 Object Lock in compliance mode for the required retention; and apply AWS Backup Vault Lock with an appropriate configuration
  4. Verify a cryptographic checksum or digital signature from a trusted source; and use S3 Object Lock in compliance mode for the required retention

Explanation

Correct Answer

A:

For the first acceptance test, “Allow authorized governance operators to override certain S3 retention locks,” governance-mode protection supports narrowly authorized bypass, unlike stricter compliance-mode retention; for the second, “Make backups immutable for a specified period,” vault Lock enforces retention controls on protected recovery points, adding protection against destructive backup changes; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

B:

Governance-mode protection supports narrowly authorized bypass, unlike stricter compliance-mode retention supports the “Allow authorized governance operators to override certain S3 retention locks” acceptance test; Hashes and verified signatures detect changed bytes; they do not themselves encrypt the file's contents is pertinent to “Detect tampering of a downloaded file without requiring confidentiality” instead; the change therefore omits the separate requirement “Make backups immutable for a specified period.”.

C:

The mechanism for “Make backups immutable for a specified period” is present: Vault Lock enforces retention controls on protected recovery points, adding protection against destructive backup changes; the additional mechanism relates to “Prevent changes to an S3 object version for a fixed compliance retention period”: Compliance-mode retention cannot be shortened or removed by ordinary administrators while the retention period is active; nothing here completes “Allow authorized governance operators to override certain S3 retention locks.”.

D:

Neither action is targeted at the two acceptance tests: Hashes and verified signatures detect changed bytes; they do not themselves encrypt the file's contents is about “Detect tampering of a downloaded file without requiring confidentiality,” and Compliance-mode retention cannot be shortened or removed by ordinary administrators while the retention period is active is about “Prevent changes to an S3 object version for a fixed compliance retention period”; the intended “Allow authorized governance operators to override certain S3 retention locks” and “Make backups immutable for a specified period” requirements remain unsatisfied.

Question 228

An architect is reviewing a public web application perimeter review. The acceptance criterion reads: Identify and block bot-like HTTP behaviors with application-aware inspection. Which approach satisfies it?

  1. Use AWS WAF Bot Control managed rule groups where supported
  2. Apply an AWS WAF IP set match condition on the front-end web ACL
  3. Use API Gateway private endpoint access with an appropriate resource policy
  4. Configure the CloudFront viewer protocol policy to redirect or require HTTPS

Explanation

Correct Answer

A:

Bot Control evaluates bot-related request signals at the web ACL, rather than relying only on Layer 3 network filtering; for a public web application perimeter review, this is the measure that delivers the requirement to identify and block bot-like HTTP behaviors with application-aware inspection.

Incorrect Answers

B:

IP sets match the configured client addresses, whereas DNS routing records do not filter application requests; its purpose is the requirement to enforce a narrow set of IP ranges for public HTTP clients, but the acceptance criterion in a public web application perimeter review is the requirement to identify and block bot-like HTTP behaviors with application-aware inspection.

C:

A private API can be reached through supported interface endpoints and resource policies rather than a public internet-facing invoke URL; the important distinction in a public web application perimeter review is that this supports the requirement to prevent all public access to an internal API endpoint instead of the requirement to identify and block bot-like HTTP behaviors with application-aware inspection.

D:

The viewer-side protocol policy governs HTTP-to-HTTPS behavior independently of origin protocol configuration; the important distinction in a public web application perimeter review is that this supports the requirement to require viewer connections to a CloudFront distribution to use HTTPS instead of the requirement to identify and block bot-like HTTP behaviors with application-aware inspection.

Question 229

The permissions and authorization review has two control objectives. Requirement one: An overly broad policy includes actions never used by the principal. Requirement two: A developer can create roles but cannot pass them to an EC2 service. Which design passes both checks?

  1. Use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input; and grant tightly scoped iam:PassRole to the approved service role
  2. Use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input; and test the applicable policies with IAM policy simulator and check CloudTrail evidence
  3. Review IAM Access Analyzer external access findings for supported resource policies; and grant tightly scoped iam:PassRole to the approved service role
  4. Test the applicable policies with IAM policy simulator and check CloudTrail evidence; and review IAM Access Analyzer external access findings for supported resource policies

Explanation

Correct Answer

A:

The first control addresses the check “An overly broad policy includes actions never used by the principal”: Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; the other addresses “A developer can create roles but cannot pass them to an EC2 service”: Passing a role to a service requires separate iam:PassRole authorization and is not implied by ec2:RunInstances alone; these two mechanisms cover the complete permissions and authorization review.

Incorrect Answers

B:

Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; this is relevant to the first objective (“An overly broad policy includes actions never used by the principal”); however, the other action is meant for “An operator needs to determine why a specific AWS API call is denied”: Simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request; it leaves the required “A developer can create roles but cannot pass them to an EC2 service” behavior unimplemented.

C:

Passing a role to a service requires separate iam:PassRole authorization and is not implied by ec2:RunInstances alone; this fulfills the second objective (“A developer can create roles but cannot pass them to an EC2 service”); the other action is intended for “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone”: Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; it does not meet the requested “An overly broad policy includes actions never used by the principal” check.

D:

The first action belongs to “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; the second belongs to “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone” because access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; these are not the required checks, “An overly broad policy includes actions never used by the principal” and “A developer can create roles but cannot pass them to an EC2 service.”.

Question 230

A security review for a multi-source evidence correlation exercise identifies one priority: Audit how a customer-managed KMS key has been used by AWS callers. Which control is the best choice?

  1. Inspect CloudTrail UpdateAssumeRolePolicy records and request context
  2. Examine supported KMS API activity in CloudTrail management events
  3. Run a CloudWatch Logs Insights query selecting and filtering relevant fields
  4. Query the log objects in Athena with an appropriate external table
  5. Enable CloudTrail Insights for the supported management-event analysis

Explanation

Correct Answer

B:

CloudTrail records supported KMS API calls and caller context, enabling key usage attribution without revealing plaintext cryptographic key bytes; it addresses the requirement to audit how a customer-managed KMS key has been used by AWS callers at the right security boundary during a multi-source evidence correlation exercise.

Incorrect Answers

A:

CloudTrail management events expose who invoked role trust changes and which policy update was submitted; its scope is the requirement to determine which caller changed an IAM trust policy, rather than the requirement to audit how a customer-managed KMS key has been used by AWS callers for a multi-source evidence correlation exercise.

C:

Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first; this would help with the requirement to search raw CloudWatch log messages for failed authentication patterns across streams, leaving the requirement to audit how a customer-managed KMS key has been used by AWS callers unresolved in a multi-source evidence correlation exercise.

D:

Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; the important distinction in a multi-source evidence correlation exercise is that this supports the requirement to join S3 archived CloudTrail records with a reference table of suspect IPs instead of the requirement to audit how a customer-managed KMS key has been used by AWS callers.

E:

Insights identifies unusual API activity trends when configured, whereas ordinary event history simply lists observed operations; its scope is the requirement to find unusual API call rates rather than just inspect routine event counts, rather than the requirement to audit how a customer-managed KMS key has been used by AWS callers for a multi-source evidence correlation exercise.

AWS Certified Security - Specialty SCS-C03 Practice Tests