Question 920

An architect is reviewing a log query optimization project. The acceptance criterion reads: Find which WAF rule blocked a specific web request. Which approach satisfies it?

  1. Query WAF logs for the matched rule and terminating action
  2. Analyze Route 53 Resolver query logs for suspicious domain patterns
  3. Define a compatible schema and query the S3 archive with Athena
  4. Filter VPC Flow Logs by REJECT entries and source/destination details

Explanation

Correct Answer

A:

WAF logs identify web ACL evaluation outcomes and request attributes at the HTTP filtering layer; this behavior fulfills the requirement to find which WAF rule blocked a specific web request during a log query optimization project.

Incorrect Answers

B:

Resolver logs record query names and associated context, unlike VPC Flow Logs which do not supply full domain names; this addresses the requirement to investigate a DNS-based exfiltration indicator by queried domain, not the requirement to find which WAF rule blocked a specific web request, which is needed in a log query optimization project.

C:

Structured SQL analysis depends on matching the stored JSON layout; no console event-history filter will parse arbitrary archived app logs; this addresses the requirement to analyze archived JSON logs with predictable parsing rather than manual grep, not the requirement to find which WAF rule blocked a specific web request, which is needed in a log query optimization project.

D:

Flow metadata includes action and addresses for supported traffic, supporting triage of network policy outcomes; this addresses the requirement to identify a denied subnet connection from recorded network-flow dispositions, not the requirement to find which WAF rule blocked a specific web request, which is needed in a log query optimization project.

Question 921

An implementation in the storage encryption control review must solve two separate problems, not merely strengthen one safeguard: Allow an authorized principal to use a KMS key for decryption rather than just list it; Protect encryption operations with authenticated associated data that must match at decryption. Which change meets the full request?

  1. Use AWS CloudHSM for supported HSM-controlled key workloads; and constrain the KMS key policy using kms:ViaService where supported
  2. Constrain the KMS key policy using kms:ViaService where supported; and use a KMS encryption context for supported symmetric KMS operations
  3. Grant kms:Decrypt through the key policy and necessary IAM authorization; and use AWS CloudHSM for supported HSM-controlled key workloads
  4. Grant kms:Decrypt through the key policy and necessary IAM authorization; and use a KMS encryption context for supported symmetric KMS operations

Explanation

Correct Answer

D:

This pairing handles the first requirement (“Allow an authorized principal to use a KMS key for decryption rather than just list it”) because KMS cryptographic permissions depend on key-policy access and any required identity policy, which is distinct from metadata visibility; it handles the second (“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; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

Both mechanisms have legitimate uses, but for other requirements: 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”; Service-context conditions limit when the KMS key may be used through an approved integrated AWS service supports “Limit sensitive KMS key use to one AWS service integration”; this does not resolve the stated “Allow an authorized principal to use a KMS key for decryption rather than just list it” and “Protect encryption operations with authenticated associated data that must match at decryption” findings.

B:

This solves the second problem (“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; however, the first action addresses “Limit sensitive KMS key use to one AWS service integration”: Service-context conditions limit when the KMS key may be used through an approved integrated AWS service; it does not satisfy “Allow an authorized principal to use a KMS key for decryption rather than just list it.”.

C:

One action is correctly chosen for “Allow an authorized principal to use a KMS key for decryption rather than just list it”: KMS cryptographic permissions depend on key-policy access and any required identity policy, which is distinct from metadata visibility; the companion action relates to “Keep hardware-security-module key operations under a customer-managed HSM cluster”: CloudHSM gives customers dedicated HSM administration and key control with different operations from a managed KMS key; the other requested outcome, “Protect encryption operations with authenticated associated data that must match at decryption,” remains outstanding.

Question 922

In a credential and federation review, engineers must cover two different requirements: A worker's federated portal login succeeds but no target account is listed. In addition, A federated role fails to assume despite the user being authenticated with a corporate identity. Which option implements both?

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

Explanation

Correct Answer

D:

This pairing handles the first requirement (“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; it handles the second (“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; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

Both mechanisms have legitimate uses, but for other requirements: 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”; 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”; this does not resolve the stated “A worker's federated portal login succeeds but no target account is listed” and “A federated role fails to assume despite the user being authenticated with a corporate identity” findings.

B:

This solves the second problem (“A federated role fails to assume despite the user being authenticated with a corporate identity”): Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; however, the first action addresses “A principal's temporary role credentials expire during a long-running process”: STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys; it does not satisfy “A worker's federated portal login succeeds but no target account is listed.”.

C:

One action is correctly chosen for “A worker's federated portal login succeeds but no target account is listed”: Authentication to the portal alone grants no account entitlement until an assignment connects the principal and permission set; the companion action relates to “An OIDC role assumption is denied because the token audience does not match”: OIDC federation relies on token claims satisfying the trust policy, including the expected audience; the other requested outcome, “A federated role fails to assume despite the user being authenticated with a corporate identity,” remains outstanding.

Question 923

An assessment of the compute workload hardening effort has two findings. Finding one: Avoid storing long-term AWS access keys on an EC2 instance. Finding two: Block access to the EC2 Instance Metadata Service version 1. Which combination remediates both?

  1. Enable Amazon Inspector EC2 scanning and review its findings; and build and test a hardened AMI with EC2 Image Builder
  2. Build and test a hardened AMI with EC2 Image Builder; and require IMDSv2 on the instance metadata options
  3. Attach an IAM instance profile with a least-privilege role; and enable Amazon Inspector EC2 scanning and review its findings
  4. Attach an IAM instance profile with a least-privilege role; and require IMDSv2 on the instance metadata options

Explanation

Correct Answer

D:

The implementation has a specific control for each objective: Instance profiles expose temporary role credentials to instance software, reducing the need for embedded static keys for “Avoid storing long-term AWS access keys on an EC2 instance”; Enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios for “Block access to the EC2 Instance Metadata Service version 1”; the combined option satisfies the two-part request.

Incorrect Answers

A:

The first proposed action addresses “Detect package vulnerabilities on supported EC2 instances”: Inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; the second addresses “Deploy a repeatable hardened operating-system image to new instances”: Image Builder automates image build pipelines and validation so baseline changes can be propagated consistently; the combination does not achieve the required “Avoid storing long-term AWS access keys on an EC2 instance” and “Block access to the EC2 Instance Metadata Service version 1” outcomes in this compute workload hardening effort.

B:

While enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios is relevant to “Block access to the EC2 Instance Metadata Service version 1,” the other component targets “Deploy a repeatable hardened operating-system image to new instances,” where image Builder automates image build pipelines and validation so baseline changes can be propagated consistently; the first acceptance criterion (“Avoid storing long-term AWS access keys on an EC2 instance”) is not met.

C:

The first check would be covered, since instance profiles expose temporary role credentials to instance software, reducing the need for embedded static keys; yet the second choice is associated with “Detect package vulnerabilities on supported EC2 instances,” for which inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; no corresponding control satisfies “Block access to the EC2 Instance Metadata Service version 1.”.

Question 924

A change request in the managed threat detection rollout will be approved only if it delivers both outcomes: Identify externally accessible resources implied by resource policies; Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence. What should be included?

  1. Run IAM Access Analyzer external-access analysis; and enable GuardDuty S3 Protection for supported object activity
  2. Run IAM Access Analyzer external-access analysis; and enable GuardDuty threat detection for the relevant AWS accounts and Regions
  3. Enable GuardDuty S3 Protection for supported object activity; and use Amazon Detective to pivot through related entities
  4. Use Amazon Detective to pivot through related entities; and enable GuardDuty threat detection for the relevant AWS accounts and Regions

Explanation

Correct Answer

B:

For the first acceptance test, “Identify externally accessible resources implied by resource policies,” access Analyzer evaluates supported resource policies for access outside the configured zone of trust, highlighting unexpected sharing; for the second, “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence,” GuardDuty analyzes supported account and workload signals to generate threat findings without requiring a custom event-correlation pipeline; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Access Analyzer evaluates supported resource policies for access outside the configured zone of trust, highlighting unexpected sharing supports the “Identify externally accessible resources implied by resource policies” acceptance test; GuardDuty S3 Protection analyzes relevant S3 object activity for potential threats, while ordinary CloudTrail management history does not cover all object operations is pertinent to “Detect anomalous API activity against S3 objects with managed threat monitoring” instead; the change therefore omits the separate requirement “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence.”.

C:

Neither action is targeted at the two acceptance tests: GuardDuty S3 Protection analyzes relevant S3 object activity for potential threats, while ordinary CloudTrail management history does not cover all object operations is about “Detect anomalous API activity against S3 objects with managed threat monitoring,” and Detective organizes security telemetry into related entities and investigation views, assisting root-cause analysis rather than supplying a prevention rule is about “Investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses”; the intended “Identify externally accessible resources implied by resource policies” and “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence” requirements remain unsatisfied.

D:

The mechanism for “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence” is present: GuardDuty analyzes supported account and workload signals to generate threat findings without requiring a custom event-correlation pipeline; the additional mechanism relates to “Investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses”: Detective organizes security telemetry into related entities and investigation views, assisting root-cause analysis rather than supplying a prevention rule; nothing here completes “Identify externally accessible resources implied by resource policies.”.

Question 925

An AWS team is correcting two gaps in the central log collection migration: Allow CloudTrail to deliver logs into a hardened destination bucket; and Observe configuration changes to security-sensitive AWS resources over time. Which proposed set of controls fixes both gaps?

  1. Apply S3 Block Public Access and restrictive bucket policy conditions; and enable AWS Config recording and history delivery
  2. Apply an S3 Lifecycle transition policy to the log archive; and apply S3 Block Public Access and restrictive bucket policy conditions
  3. Configure the required CloudTrail service-principal bucket policy permissions; and enable AWS Config recording and history delivery
  4. Configure the required CloudTrail service-principal bucket policy permissions; and apply an S3 Lifecycle transition policy to the log archive

Explanation

Correct Answer

C:

For “Allow CloudTrail to deliver logs into a hardened destination bucket,” the governing behavior is: Trail delivery depends on the destination policy allowing the logging service to write to the correct bucket path; for the separate check “Observe configuration changes to security-sensitive AWS resources over time,” it is: Config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

Only the second requirement is covered: Config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing supports “Observe configuration changes to security-sensitive AWS resources over time”; by contrast, Blocking public access and limiting principals protects delivered log objects independently from the logging service configuration concerns “Keep a central log bucket inaccessible to public principals,” leaving “Allow CloudTrail to deliver logs into a hardened destination bucket” unresolved.

B:

This combination targets different outcomes: Lifecycle rules transition or expire object versions under configured conditions; immutability requirements must be handled separately helps with “Archive security logs at lower storage cost after the investigation window”; Blocking public access and limiting principals protects delivered log objects independently from the logging service configuration helps with “Keep a central log bucket inaccessible to public principals”; neither implements the required “Allow CloudTrail to deliver logs into a hardened destination bucket” and “Observe configuration changes to security-sensitive AWS resources over time” outcomes together.

D:

The first part is appropriate for “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; the second part addresses a different issue (“Archive security logs at lower storage cost after the investigation window”) because lifecycle rules transition or expire object versions under configured conditions; immutability requirements must be handled separately; it does not fulfill the “Observe configuration changes to security-sensitive AWS resources over time” test.

Question 926

A security review for a data-retention policy deployment identifies one priority: Automate retention of daily EBS snapshots across matching volumes. Which control is the best choice?

  1. Create an Amazon Data Lifecycle Manager policy
  2. Configure S3 Object Lock retention alongside lifecycle management
  3. Configure S3 Lifecycle transition actions
  4. Configure separate versioned-bucket Lifecycle expiration rules

Explanation

Correct Answer

A:

Data Lifecycle Manager orchestrates eligible EBS snapshot and AMI lifecycles using schedules and retention rules; this behavior fulfills the requirement to automate retention of daily EBS snapshots across matching volumes during a data-retention policy deployment.

Incorrect Answers

B:

For the different objective “Prevent regulated records from being deleted until their retention date,” retention protection can block deletion even if a lifecycle expiration rule targets an object version; the scenario instead requires “Automate retention of daily EBS snapshots across matching volumes,” which is a separate security mechanism.

C:

Lifecycle transition automates storage-class movement after configured criteria without itself enforcing tamper-proof retention; its scope is the requirement to move cold S3 archive objects into a lower-cost storage class after a defined age, rather than the requirement to automate retention of daily EBS snapshots across matching volumes for a data-retention policy deployment.

D:

Versioned buckets can retain noncurrent versions with distinct expiration behavior from the current version; its purpose is the requirement to delete expired object versions while keeping active S3 versions longer, but the acceptance criterion in a data-retention policy deployment is the requirement to automate retention of daily EBS snapshots across matching volumes.

Question 927

In a AWS Organizations policy program, engineers must cover two different requirements: Keep newly created accounts enrolled in core security services. In addition, Protect each AWS account root user from password-only compromise. Which option implements both?

  1. Apply a carefully scoped SCP with aws:RequestedRegion conditions; and deny relevant Organizations leave-organization operations via member-account SCP controls
  2. Deny relevant Organizations leave-organization operations via member-account SCP controls; and enable supported MFA and secure root account recovery information
  3. Use organization integration and auto-enable where supported for delegated security administration; and apply a carefully scoped SCP with aws:RequestedRegion conditions
  4. Use organization integration and auto-enable where supported for delegated security administration; and enable supported MFA and secure root account recovery information

Explanation

Correct Answer

D:

This pairing handles the first requirement (“Keep newly created accounts enrolled in core security services”) because service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment; it handles the second (“Protect each AWS account root user from password-only compromise”) because root credentials deserve strong protection because root possesses broad account authority and should not be used routinely; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

Both mechanisms have legitimate uses, but for other requirements: Organizations guardrails can enforce Region restrictions, with explicit consideration for global endpoints and service exceptions supports “Prevent nonapproved Regions from use by ordinary member-account identities”; SCPs can block selected member principal actions even when their IAM identity policies would otherwise permit them supports “Prevent developers from leaving the organization by invoking account removal actions”; this does not resolve the stated “Keep newly created accounts enrolled in core security services” and “Protect each AWS account root user from password-only compromise” findings.

B:

This solves the second problem (“Protect each AWS account root user from password-only compromise”): Root credentials deserve strong protection because root possesses broad account authority and should not be used routinely; however, the first action addresses “Prevent developers from leaving the organization by invoking account removal actions”: SCPs can block selected member principal actions even when their IAM identity policies would otherwise permit them; it does not satisfy “Keep newly created accounts enrolled in core security services.”.

C:

One action is correctly chosen for “Keep newly created accounts enrolled in core security services”: Service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment; the companion action relates to “Prevent nonapproved Regions from use by ordinary member-account identities”: Organizations guardrails can enforce Region restrictions, with explicit consideration for global endpoints and service exceptions; the other requested outcome, “Protect each AWS account root user from password-only compromise,” remains outstanding.

Question 928

An implementation in the private network troubleshooting exercise must solve two separate problems, not merely strengthen one safeguard: Explain why S3 access fails only when requests go through a VPC endpoint; Diagnose missing outbound connectivity from a network firewall deployment. Which change meets the full request?

  1. Capture copies through VPC Traffic Mirroring for packet inspection; and inspect the effective subnet route table and propagation sources
  2. Inspect the effective subnet route table and propagation sources; and verify symmetric routing through AWS Network Firewall endpoints
  3. Inspect endpoint policy permissions alongside IAM and the bucket policy; and capture copies through VPC Traffic Mirroring for packet inspection
  4. Inspect endpoint policy permissions alongside IAM and the bucket policy; and verify symmetric routing through AWS Network Firewall endpoints

Explanation

Correct Answer

D:

This pairing handles the first requirement (“Explain why S3 access fails only when requests go through a VPC endpoint”) because requests through an endpoint can be restricted by endpoint policy in addition to the underlying identity and resource authorization; it handles the second (“Diagnose missing outbound connectivity from a network firewall deployment”) because stateful inspection depends on traffic traversing the required firewall path; asymmetric routing can disrupt state tracking; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

Both mechanisms have legitimate uses, but for other requirements: Packet mirroring supports protocol-level inspection, whereas VPC Flow Logs lack packet payload bytes supports “Identify suspicious payload signatures crossing an EC2 interface”; Routing decisions use destination prefixes and target selection; security-group rules cannot compensate for an incorrect next hop supports “Identify an incorrect destination CIDR in a network route table”; this does not resolve the stated “Explain why S3 access fails only when requests go through a VPC endpoint” and “Diagnose missing outbound connectivity from a network firewall deployment” findings.

B:

This solves the second problem (“Diagnose missing outbound connectivity from a network firewall deployment”): Stateful inspection depends on traffic traversing the required firewall path; asymmetric routing can disrupt state tracking; however, the first action addresses “Identify an incorrect destination CIDR in a network route table”: Routing decisions use destination prefixes and target selection; security-group rules cannot compensate for an incorrect next hop; it does not satisfy “Explain why S3 access fails only when requests go through a VPC endpoint.”.

C:

One action is correctly chosen for “Explain why S3 access fails only when requests go through a VPC endpoint”: Requests through an endpoint can be restricted by endpoint policy in addition to the underlying identity and resource authorization; the companion action relates to “Identify suspicious payload signatures crossing an EC2 interface”: Packet mirroring supports protocol-level inspection, whereas VPC Flow Logs lack packet payload bytes; the other requested outcome, “Diagnose missing outbound connectivity from a network firewall deployment,” remains outstanding.

Question 929

A security review for a resource-policy access decision identifies one priority: Prevent nonapproved Regions for supported AWS API operations. Which control is the best choice?

  1. Use an aws:RequestedRegion condition in an appropriate SCP
  2. Implement ABAC with principal-tag and resource-tag policy conditions
  3. Use an applicable aws:SourceIp condition in the identity or resource policy
  4. Enforce S3 request-header and key-ID conditions in a bucket policy

Explanation

Correct Answer

A:

A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions; it addresses the requirement to prevent nonapproved Regions for supported AWS API operations at the right security boundary during a resource-policy access decision.

Incorrect Answers

B:

Attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project; this addresses the requirement to limit a role's access to resources carrying a matching project tag, not the requirement to prevent nonapproved Regions for supported AWS API operations, which is needed in a resource-policy access decision.

C:

Source IP evaluation can restrict request origins, subject to the actual request context and service-forwarding behavior; its purpose is the requirement to allow administrative actions only from a restricted set of source public IP ranges, but the acceptance criterion in a resource-policy access decision is the requirement to prevent nonapproved Regions for supported AWS API operations.

D:

Bucket-policy conditions can deny writes that omit or mismatch required SSE-KMS request encryption parameters; this would help with the requirement to require use of a designated encryption key for selected object uploads, leaving the requirement to prevent nonapproved Regions for supported AWS API operations unresolved in a resource-policy access decision.

Question 930

The logging access troubleshooting session has two control objectives. Requirement one: A trail reports S3 delivery errors after a bucket-policy hardening change. Requirement two: CloudTrail events stop arriving after the KMS key policy is tightened. Which design passes both checks?

  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. Add the necessary S3 object data-event selectors to the trail; and expand or create Flow Logs coverage for that network interface or containing subnet
  3. Restore the precise S3 bucket policy statements that permit CloudTrail delivery; and review the key policy for the CloudTrail log-encryption service permissions
  4. Restore the precise S3 bucket policy statements that permit CloudTrail delivery; and add the necessary S3 object data-event selectors to the trail

Explanation

Correct Answer

C:

The first control addresses the check “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 other addresses “CloudTrail events stop arriving after the KMS key policy is tightened”: SSE-KMS log delivery requires usable cryptographic authorization; an S3 write allowance alone cannot fix rejected key operations; these two mechanisms cover the complete logging access troubleshooting session.

Incorrect Answers

A:

SSE-KMS log delivery requires usable cryptographic authorization; an S3 write allowance alone cannot fix rejected key operations; this fulfills the second objective (“CloudTrail events stop arriving after the KMS key policy is tightened”); the other action is intended for “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; it does not meet the requested “A trail reports S3 delivery errors after a bucket-policy hardening change” check.

B:

The first action belongs to “S3 GetObject calls are absent while management calls remain visible” because management-event collection does not imply coverage of object-level operations, even in the same account; the second belongs to “Flow logs show no records for a new ENI outside the original logging scope” because flow Logs capture only interfaces covered by the configured scope and supported traffic records; these are not the required checks, “A trail reports S3 delivery errors after a bucket-policy hardening change” and “CloudTrail events stop arriving after the KMS key policy is tightened.”.

D:

A restrictive destination policy can block PutObject even when the trail and event selectors remain configured correctly; this is relevant to the first objective (“A trail reports S3 delivery errors after a bucket-policy hardening change”); however, the other action is meant for “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; it leaves the required “CloudTrail events stop arriving after the KMS key policy is tightened” behavior unimplemented.

AWS Certified Security - Specialty SCS-C03 Practice Tests