Question 140

An AWS team is correcting two gaps in the multi-account infrastructure deployment: Distribute standardized infrastructure stacks to many AWS accounts and Regions; and Deploy the same reviewed infrastructure security settings across environments. Which proposed set of controls fixes both gaps?

  1. Deploy CloudFormation StackSets with appropriate execution permissions; and use CloudFormation change sets and an approval workflow
  2. Deploy CloudFormation StackSets with appropriate execution permissions; and use version-controlled AWS CloudFormation templates with approved parameters
  3. Use CloudFormation change sets and an approval workflow; and run CloudFormation drift detection on supported stack resources
  4. Run CloudFormation drift detection on supported stack resources; and use version-controlled AWS CloudFormation templates with approved parameters

Explanation

Correct Answer

B:

For “Distribute standardized infrastructure stacks to many AWS accounts and Regions,” the governing behavior is: StackSets manage stack instances across accounts and Regions from a central deployment model; for the separate check “Deploy the same reviewed infrastructure security settings across environments,” it is: Infrastructure as code expresses resource baselines reproducibly and makes unauthorized differences easier to investigate; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

The first part is appropriate for “Distribute standardized infrastructure stacks to many AWS accounts and Regions” because stackSets manage stack instances across accounts and Regions from a central deployment model; the second part addresses a different issue (“Require an explicit review before changing production infrastructure templates”) because change sets preview resource modifications, replacements and deletions so operators can assess consequences prior to execution; it does not fulfill the “Deploy the same reviewed infrastructure security settings across environments” test.

C:

This combination targets different outcomes: Change sets preview resource modifications, replacements and deletions so operators can assess consequences prior to execution helps with “Require an explicit review before changing production infrastructure templates”; Drift detection compares actual supported resource properties with declared template expectations helps with “Detect manual changes to a resource after CloudFormation deployment”; neither implements the required “Distribute standardized infrastructure stacks to many AWS accounts and Regions” and “Deploy the same reviewed infrastructure security settings across environments” outcomes together.

D:

Only the second requirement is covered: Infrastructure as code expresses resource baselines reproducibly and makes unauthorized differences easier to investigate supports “Deploy the same reviewed infrastructure security settings across environments”; by contrast, Drift detection compares actual supported resource properties with declared template expectations concerns “Detect manual changes to a resource after CloudFormation deployment,” leaving “Distribute standardized infrastructure stacks to many AWS accounts and Regions” unresolved.

Question 141

During a permission boundary and SCP assessment, the security team has this work item: An IAM policy allows an action but an Organizations SCP excludes it. Which AWS action is the most direct implementation?

  1. Pass a restrictive STS session policy when assuming the role
  2. Evaluate the intersection of identity policy permissions and the role's boundary
  3. Update the SCP guardrail or choose an allowed operation while retaining least privilege
  4. Add a narrowly scoped explicit allow where the policy model requires it

Explanation

Correct Answer

C:

SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail; this behavior fulfills the reported condition: an IAM policy allows an action but an Organizations SCP excludes it during a permission boundary and SCP assessment.

Incorrect Answers

A:

Session policies further limit the temporary session's effective permissions instead of expanding the base role; its purpose is the reported condition: a role session should have fewer privileges than its parent role policy, but the acceptance criterion in a permission boundary and SCP assessment is the reported condition: an IAM policy allows an action but an Organizations SCP excludes it.

B:

A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges; this addresses the reported condition: an IAM role has broad permissions but a permissions boundary limits it, not the reported condition: an IAM policy allows an action but an Organizations SCP excludes it, which is needed in a permission boundary and SCP assessment.

D:

IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized; its purpose is the reported condition: an identity has no applicable allow for an AWS operation, but the acceptance criterion in a permission boundary and SCP assessment is the reported condition: an IAM policy allows an action but an Organizations SCP excludes it.

Question 142

A security review for a multi-source evidence correlation exercise identifies one priority: Summarize findings by account, severity, and workflow state. Which control is the best choice?

  1. Inspect CloudTrail UpdateAssumeRolePolicy records and request context
  2. Run a CloudWatch Logs Insights query selecting and filtering relevant fields
  3. Examine supported KMS API activity in CloudTrail management events
  4. Configure Security Hub insights over normalized security findings

Explanation

Correct Answer

D:

Security Hub insights aggregate finding properties rather than querying raw VPC packet records; this is the direct solution to the requirement to summarize findings by account, severity, and workflow state in a multi-source evidence correlation exercise.

Incorrect Answers

A:

CloudTrail management events expose who invoked role trust changes and which policy update was submitted; the important distinction in a multi-source evidence correlation exercise is that this supports the requirement to determine which caller changed an IAM trust policy instead of the requirement to summarize findings by account, severity, and workflow state.

B:

Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first; this addresses the requirement to search raw CloudWatch log messages for failed authentication patterns across streams, not the requirement to summarize findings by account, severity, and workflow state, which is needed in a multi-source evidence correlation exercise.

C:

CloudTrail records supported KMS API calls and caller context, enabling key usage attribution without revealing plaintext cryptographic key bytes; this would help with the requirement to audit how a customer-managed KMS key has been used by AWS callers, leaving the requirement to summarize findings by account, severity, and workflow state unresolved in a multi-source evidence correlation exercise.

Question 143

A security review for an immutable evidence protection review identifies one priority: Encrypt application messages stored in an SQS queue. Which control is the best choice?

  1. Select the customer-managed AWS KMS key for DynamoDB server-side encryption
  2. Snapshot it, copy the snapshot with encryption, and create a replacement encrypted volume
  3. Enable RDS storage encryption and select a suitable KMS key
  4. Configure SQS server-side encryption with a suitable KMS key

Explanation

Correct Answer

D:

Queue-side encryption protects message bodies at rest while application authorization still uses SQS IAM and resource policies; this behavior fulfills the requirement to encrypt application messages stored in an SQS queue during an immutable evidence protection review.

Incorrect Answers

A:

DynamoDB integrates encryption at rest with KMS; using a customer-managed key adds customer-controlled key policy and lifecycle considerations; the important distinction in an immutable evidence protection review is that this supports the requirement to encrypt DynamoDB table data at rest using an approved customer-managed KMS key instead of the requirement to encrypt application messages stored in an SQS queue.

B:

EBS volume encryption is established on creation; an encrypted snapshot copy enables a controlled migration of existing data; its scope is the requirement to migrate an unencrypted EBS volume to encrypted storage, rather than the requirement to encrypt application messages stored in an SQS queue for an immutable evidence protection review.

C:

RDS at-rest encryption protects supported storage components and must be planned at creation or through an appropriate snapshot migration; its purpose is the requirement to encrypt an RDS database's storage at creation, but the acceptance criterion in an immutable evidence protection review is the requirement to encrypt application messages stored in an SQS queue.

Question 144

A change request in the private network troubleshooting exercise will be approved only if it delivers both outcomes: Diagnose why a security-group rule permits ingress but the app still cannot connect; Diagnose a rejected connection using VPC flow records. What should be included?

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

Explanation

Correct Answer

B:

For the first acceptance test, “Diagnose why a security-group rule permits ingress but the app still cannot connect,” security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; for the second, “Diagnose a rejected connection using VPC flow records,” flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection supports the “Diagnose why a security-group rule permits ingress but the app still cannot connect” acceptance test; Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers is pertinent to “Find which configured VPC component blocks a path between EC2 instances” instead; the change therefore omits the separate requirement “Diagnose a rejected connection using VPC flow records.”.

C:

Neither action is targeted at the two acceptance tests: Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers is about “Find which configured VPC component blocks a path between EC2 instances,” and Network ACLs evaluate inbound and outbound packets independently and cannot infer state from an allowed request is about “Explain why return packets fail when a network ACL allows only the request port”; the intended “Diagnose why a security-group rule permits ingress but the app still cannot connect” and “Diagnose a rejected connection using VPC flow records” requirements remain unsatisfied.

D:

The mechanism for “Diagnose a rejected connection using VPC flow records” is present: Flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; the additional mechanism relates to “Explain why return packets fail when a network ACL allows only the request port”: Network ACLs evaluate inbound and outbound packets independently and cannot infer state from an allowed request; nothing here completes “Diagnose why a security-group rule permits ingress but the app still cannot connect.”.

Question 145

The incident response rehearsal has two control objectives. Requirement one: Determine which principal originally assumed a suspicious cross-account role. Requirement two: Prevent a response Lambda from having blanket administrator privileges. Which design passes both checks?

  1. Launch replacement capacity from a verified hardened AMI; and assign its execution role only the actions and resources needed by the runbook
  2. Route the finding event through EventBridge to an SNS topic; and launch replacement capacity from a verified hardened AMI
  3. Inspect the AssumeRole event and session identity fields in CloudTrail; and assign its execution role only the actions and resources needed by the runbook
  4. Inspect the AssumeRole event and session identity fields in CloudTrail; and route the finding event through EventBridge to an SNS topic

Explanation

Correct Answer

C:

The first control addresses the check “Determine which principal originally assumed a suspicious cross-account role”: CloudTrail records role assumption request context and subsequent session identity information that can tie activity to the originating caller; the other addresses “Prevent a response Lambda from having blanket administrator privileges”: Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused; these two mechanisms cover the complete incident response rehearsal.

Incorrect Answers

A:

Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused; this fulfills the second objective (“Prevent a response Lambda from having blanket administrator privileges”); the other action is intended for “Recover a known-good workload after an incident while retaining compromised images for evidence”: Rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated; it does not meet the requested “Determine which principal originally assumed a suspicious cross-account role” check.

B:

The first action belongs to “Send incident alerts to an on-call distribution group after matching a security finding” because SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention; the second belongs to “Recover a known-good workload after an incident while retaining compromised images for evidence” because rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated; these are not the required checks, “Determine which principal originally assumed a suspicious cross-account role” and “Prevent a response Lambda from having blanket administrator privileges.”.

D:

CloudTrail records role assumption request context and subsequent session identity information that can tie activity to the originating caller; this is relevant to the first objective (“Determine which principal originally assumed a suspicious cross-account role”); however, the other action is meant for “Send incident alerts to an on-call distribution group after matching a security finding”: SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention; it leaves the required “Prevent a response Lambda from having blanket administrator privileges” behavior unimplemented.

Question 146

A security review for a workload risk assessment identifies one priority: Reduce the attack surface of abandoned access keys. Which control is the best choice?

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

Explanation

Correct Answer

A:

Credential hygiene identifies stale long-term access paths that can remain exploitable even when related compute is unused; that AWS behavior meets the requirement to reduce the attack surface of abandoned access keys, the decisive objective for a workload risk assessment.

Incorrect Answers

B:

External-access analysis identifies exposure paths and Block Public Access can constrain accidental public configurations; this addresses the requirement to detect an unexpectedly public S3 resource in a high-risk environment, not the requirement to reduce the attack surface of abandoned access keys, which is needed in a workload risk assessment.

C:

Unused network controls create configuration clutter, while dependency checks prevent accidental disruption of active attachments; its purpose is the requirement to find old security groups that are no longer attached to workloads, but the acceptance criterion in a workload risk assessment is the requirement to reduce the attack surface of abandoned access keys.

D:

Cost Explorer reveals consumption patterns and CloudTrail helps attribute provisioning events to caller identities; this addresses the requirement to identify an unexplained increase in EC2 runtime following unusual API activity, not the requirement to reduce the attack surface of abandoned access keys, which is needed in a workload risk assessment.

Question 147

During a cross-account delegation audit, the security team has this work item: Allow a designated role in another account to read specific S3 objects. Which AWS action is the most direct implementation?

  1. Grant the resource's specific policy-management actions for its ARN
  2. Narrow the IAM role trust policy Principal and conditions
  3. Enable S3 Block Public Access at the desired account or bucket level
  4. Authorize kms:Decrypt through appropriate key policy and IAM conditions
  5. Configure an S3 bucket policy with the intended principal and object resources

Explanation

Correct Answer

E:

S3 resource policies can grant specific cross-account access subject to applicable identity and guardrail evaluation; this is the direct solution to the requirement to allow a designated role in another account to read specific S3 objects in a cross-account delegation audit.

Incorrect Answers

A:

Service-specific resource policy API rights can be scoped independently from unrelated IAM user and role management privileges; its scope is the requirement to delegate permissions to modify one resource's policy without granting broad IAM administration, rather than the requirement to allow a designated role in another account to read specific S3 objects for a cross-account delegation audit.

B:

The trust policy governs who may assume the role; the role permission policy governs what the resulting session may do; the important distinction in a cross-account delegation audit is that this supports the requirement to ensure a role can be assumed only by the approved external account and principal instead of the requirement to allow a designated role in another account to read specific S3 objects.

C:

Block Public Access controls can reject or restrict public-access configurations independently of normal bucket-policy permits; this would help with the requirement to prevent a public S3 bucket policy even when administrators mistakenly add one, leaving the requirement to allow a designated role in another account to read specific S3 objects unresolved in a cross-account delegation audit.

D:

KMS requires key-policy authorization and, where applicable, identity-based permissions; a broad S3 permission does not grant cryptographic key use; its scope is the requirement to permit an application to decrypt only with one designated customer-managed KMS key, rather than the requirement to allow a designated role in another account to read specific S3 objects for a cross-account delegation audit.

Question 148

An implementation in the central log collection migration must solve two separate problems, not merely strengthen one safeguard: Capture DNS query names resolved through Route 53 Resolver in a VPC; Preserve load balancer request traces for application incident analysis. Which change meets the full request?

  1. Configure Route 53 Resolver query logging for the relevant VPCs; and enable WAF logging to a supported delivery destination
  2. Configure Route 53 Resolver query logging for the relevant VPCs; and enable Application Load Balancer access logs to a permitted S3 bucket
  3. Enable WAF logging to a supported delivery destination; and enable CloudFront access logging for the distribution
  4. Enable CloudFront access logging for the distribution; and enable Application Load Balancer access logs to a permitted S3 bucket

Explanation

Correct Answer

B:

This pairing handles the first requirement (“Capture DNS query names resolved through Route 53 Resolver in a VPC”) because resolver query logs provide domain query details and can be centralized for DNS-based security analysis; it handles the second (“Preserve load balancer request traces for application incident analysis”) because ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead; both acceptance criteria are therefore addressed.

Incorrect Answers

A:

One action is correctly chosen for “Capture DNS query names resolved through Route 53 Resolver in a VPC”: Resolver query logs provide domain query details and can be centralized for DNS-based security analysis; the companion action relates to “Record requests allowed or blocked by AWS WAF web ACLs”: WAF log records include matched rule and request metadata for supported web requests passing through the associated ACL; the other requested outcome, “Preserve load balancer request traces for application incident analysis,” remains outstanding.

C:

Both mechanisms have legitimate uses, but for other requirements: WAF log records include matched rule and request metadata for supported web requests passing through the associated ACL supports “Record requests allowed or blocked by AWS WAF web ACLs”; Distribution access logs describe viewer requests at the edge; they differ from control-plane change records supports “Record CloudFront viewer requests for forensic review”; this does not resolve the stated “Capture DNS query names resolved through Route 53 Resolver in a VPC” and “Preserve load balancer request traces for application incident analysis” findings.

D:

This solves the second problem (“Preserve load balancer request traces for application incident analysis”): ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead; however, the first action addresses “Record CloudFront viewer requests for forensic review”: Distribution access logs describe viewer requests at the edge; they differ from control-plane change records; it does not satisfy “Capture DNS query names resolved through Route 53 Resolver in a VPC.”.

Question 149

Before closing the storage encryption control review, a team must demonstrate the following: Protect encryption operations with authenticated associated data that must match at decryption; plus Limit sensitive KMS key use to one AWS service integration. Which paired change would complete the work?

  1. Grant kms:Decrypt through the key policy and necessary IAM authorization; and constrain the KMS key policy using kms:ViaService where supported
  2. Disable the key while coordinating a recovery and re-encryption plan; and grant kms:Decrypt through the key policy and necessary IAM authorization
  3. Use a KMS encryption context for supported symmetric KMS operations; and constrain the KMS key policy using kms:ViaService where supported
  4. Use a KMS encryption context for supported symmetric KMS operations; and disable the key while coordinating a recovery and re-encryption plan

Explanation

Correct Answer

C:

The implementation has a specific control for each objective: An encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption for “Protect encryption operations with authenticated associated data that must match at decryption”; Service-context conditions limit when the KMS key may be used through an approved integrated AWS service for “Limit sensitive KMS key use to one AWS service integration”; the combined option satisfies the two-part request.

Incorrect Answers

A:

While service-context conditions limit when the KMS key may be used through an approved integrated AWS service is relevant to “Limit sensitive KMS key use to one AWS service integration,” the other component targets “Allow an authorized principal to use a KMS key for decryption rather than just list it,” where KMS cryptographic permissions depend on key-policy access and any required identity policy, which is distinct from metadata visibility; the first acceptance criterion (“Protect encryption operations with authenticated associated data that must match at decryption”) is not met.

B:

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 “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 combination does not achieve the required “Protect encryption operations with authenticated associated data that must match at decryption” and “Limit sensitive KMS key use to one AWS service integration” outcomes in this storage encryption control review.

D:

The first check would be covered, since an encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption; 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 “Limit sensitive KMS key use to one AWS service integration.”.

Question 150

The VPC connectivity and segmentation rollout has two control objectives. Requirement one: Encrypt suitable Direct Connect links at Layer 2 where supported. Requirement two: Provide separate routing policy for isolated environments sharing Transit Gateway. Which design passes both checks?

  1. Configure MACsec on supported dedicated Direct Connect connections; and use separate Transit Gateway route tables and association rules
  2. Configure MACsec on supported dedicated Direct Connect connections; and configure redundant Site-to-Site VPN connections or tunnels with tested failover
  3. Remove or withhold the prohibited route in the Transit Gateway route table; and use separate Transit Gateway route tables and association rules
  4. Configure redundant Site-to-Site VPN connections or tunnels with tested failover; and remove or withhold the prohibited route in the Transit Gateway route table

Explanation

Correct Answer

A:

The first control addresses the check “Encrypt suitable Direct Connect links at Layer 2 where supported”: MACsec protects supported physical Direct Connect link traffic at Layer 2 and is distinct from IPsec at the VPN layer; the other addresses “Provide separate routing policy for isolated environments sharing Transit Gateway”: Transit Gateway routing isolation can prevent attachments from learning or reaching destinations outside their intended segment; these two mechanisms cover the complete VPC connectivity and segmentation rollout.

Incorrect Answers

B:

MACsec protects supported physical Direct Connect link traffic at Layer 2 and is distinct from IPsec at the VPN layer; this is relevant to the first objective (“Encrypt suitable Direct Connect links at Layer 2 where supported”); however, the other action is meant for “Reduce single-point failure for on-premises encrypted connectivity”: Multiple independent tunnels and routing failover improve resilience when one gateway path or tunnel is unavailable; it leaves the required “Provide separate routing policy for isolated environments sharing Transit Gateway” behavior unimplemented.

C:

Transit Gateway routing isolation can prevent attachments from learning or reaching destinations outside their intended segment; this fulfills the second objective (“Provide separate routing policy for isolated environments sharing Transit Gateway”); the other action is intended for “Prevent a development VPC from reaching the production CIDR through a central hub”: Traffic isolation needs effective route-table segmentation; attachment to the same transit hub does not imply unrestricted transit; it does not meet the requested “Encrypt suitable Direct Connect links at Layer 2 where supported” check.

D:

The first action belongs to “Reduce single-point failure for on-premises encrypted connectivity” because multiple independent tunnels and routing failover improve resilience when one gateway path or tunnel is unavailable; the second belongs to “Prevent a development VPC from reaching the production CIDR through a central hub” because traffic isolation needs effective route-table segmentation; attachment to the same transit hub does not imply unrestricted transit; these are not the required checks, “Encrypt suitable Direct Connect links at Layer 2 where supported” and “Provide separate routing policy for isolated environments sharing Transit Gateway.”.

AWS Certified Security - Specialty SCS-C03 Practice Tests