Question 510
During a permission boundary and SCP assessment, the security team has this work item: Ensure a role can be assumed only by the approved external account and principal. Which AWS action is the most direct implementation?
- Remove or narrow the applicable explicit deny only after validating policy intent
- Narrow the IAM role trust policy Principal and conditions
- Grant the resource's specific policy-management actions for its ARN
- Authorize kms:Decrypt through appropriate key policy and IAM conditions
- Enable S3 Block Public Access at the desired account or bucket level
Explanation
Correct Answer
B:The trust policy governs who may assume the role; the role permission policy governs what the resulting session may do; it addresses the requirement to ensure a role can be assumed only by the approved external account and principal at the right security boundary during a permission boundary and SCP assessment.
Incorrect Answers
A:For the different objective “An identity has an IAM allow but a matching explicit deny is also present,” IAM explicit deny takes precedence over allows from other applicable permission policies for the same request; the scenario instead requires “Ensure a role can be assumed only by the approved external account and principal,” which is a separate security mechanism.
C:Service-specific resource policy API rights can be scoped independently from unrelated IAM user and role management privileges; the important distinction in a permission boundary and SCP assessment is that this supports the requirement to delegate permissions to modify one resource's policy without granting broad IAM administration instead of the requirement to ensure a role can be assumed only by the approved external account and principal.
D:KMS requires key-policy authorization and, where applicable, identity-based permissions; a broad S3 permission does not grant cryptographic key use; its purpose is the requirement to permit an application to decrypt only with one designated customer-managed KMS key, but the acceptance criterion in a permission boundary and SCP assessment is the requirement to ensure a role can be assumed only by the approved external account and principal.
E:Block Public Access controls can reject or restrict public-access configurations independently of normal bucket-policy permits; its purpose is the requirement to prevent a public S3 bucket policy even when administrators mistakenly add one, but the acceptance criterion in a permission boundary and SCP assessment is the requirement to ensure a role can be assumed only by the approved external account and principal.
Question 511
During a active security incident investigation, reviewers document two independent acceptance criteria. First: Execute a repeatable account lock-down process across several response stages. Second: Protect collected incident evidence from modifications by production administrators. Which combined implementation satisfies both?
- Query CloudTrail management events for AuthorizeSecurityGroupIngress and related calls; and restore the snapshot into a forensic VPC with restricted analyst access
- Restore the snapshot into a forensic VPC with restricted analyst access; and copy artifacts to a separately administered account with S3 Object Lock
- Combine EventBridge detection with Step Functions and narrowly scoped Lambda actions; and query CloudTrail management events for AuthorizeSecurityGroupIngress and related calls
- Combine EventBridge detection with Step Functions and narrowly scoped Lambda actions; and copy artifacts to a separately administered account with S3 Object Lock
Explanation
Correct Answer
D:The first control addresses the check “Execute a repeatable account lock-down process across several response stages”: The event bus triggers an orchestrated workflow, and each action can run with its own least-privilege execution role; the other addresses “Protect collected incident evidence from modifications by production administrators”: Independent permissions and immutable retention reduce the possibility that a compromised production identity can alter stored evidence; these two mechanisms cover the complete active security incident investigation.
Incorrect Answers
A:The first action belongs to “Identify the cause of a series of unexpected security-group modifications” because control-plane audit records identify the actor, request parameters, and timing of security-group changes; the second belongs to “Examine a suspect EBS snapshot without exposing it to normal production workloads” because an isolated environment allows disk inspection while keeping suspicious binaries and network behavior away from the production data plane; these are not the required checks, “Execute a repeatable account lock-down process across several response stages” and “Protect collected incident evidence from modifications by production administrators.”.
B:Independent permissions and immutable retention reduce the possibility that a compromised production identity can alter stored evidence; this fulfills the second objective (“Protect collected incident evidence from modifications by production administrators”); the other action is intended for “Examine a suspect EBS snapshot without exposing it to normal production workloads”: An isolated environment allows disk inspection while keeping suspicious binaries and network behavior away from the production data plane; it does not meet the requested “Execute a repeatable account lock-down process across several response stages” check.
C:The event bus triggers an orchestrated workflow, and each action can run with its own least-privilege execution role; this is relevant to the first objective (“Execute a repeatable account lock-down process across several response stages”); however, the other action is meant for “Identify the cause of a series of unexpected security-group modifications”: Control-plane audit records identify the actor, request parameters, and timing of security-group changes; it leaves the required “Protect collected incident evidence from modifications by production administrators” behavior unimplemented.
Question 512
A security review for a service portfolio standards review identifies one priority: Require an explicit review before changing production infrastructure templates. Which control is the best choice?
- Run CloudFormation drift detection on supported stack resources
- Deploy CloudFormation StackSets with appropriate execution permissions
- Use CloudFormation change sets and an approval workflow
- Use version-controlled AWS CloudFormation templates with approved parameters
Explanation
Correct Answer
C:Change sets preview resource modifications, replacements and deletions so operators can assess consequences prior to execution; it addresses the requirement to require an explicit review before changing production infrastructure templates at the right security boundary during a service portfolio standards review.
Incorrect Answers
A:Drift detection compares actual supported resource properties with declared template expectations; this addresses the requirement to detect manual changes to a resource after CloudFormation deployment, not the requirement to require an explicit review before changing production infrastructure templates, which is needed in a service portfolio standards review.
B:StackSets manage stack instances across accounts and Regions from a central deployment model; the important distinction in a service portfolio standards review is that this supports the requirement to distribute standardized infrastructure stacks to many AWS accounts and Regions instead of the requirement to require an explicit review before changing production infrastructure templates.
D:Infrastructure as code expresses resource baselines reproducibly and makes unauthorized differences easier to investigate; its purpose is the requirement to deploy the same reviewed infrastructure security settings across environments, but the acceptance criterion in a service portfolio standards review is the requirement to require an explicit review before changing production infrastructure templates.
Question 513
The VPC connectivity and segmentation rollout cannot pass unless both of these outcomes are demonstrated: Inspect selected VPC traffic with managed stateful firewall policies; Prevent a Lambda function in a VPC from having unnecessary internet egress. Which two-part plan is suitable?
- Deploy AWS Network Firewall with appropriate routing through firewall endpoints; and configure AWS Firewall Manager security-group policies
- Deploy AWS Network Firewall with appropriate routing through firewall endpoints; and restrict Lambda's VPC security group and egress routes
- Configure AWS Firewall Manager security-group policies; and configure VPC Traffic Mirroring to an approved traffic analysis target
- Configure VPC Traffic Mirroring to an approved traffic analysis target; and restrict Lambda's VPC security group and egress routes
Explanation
Correct Answer
B:Two different security outcomes are required in this VPC connectivity and segmentation rollout; Network Firewall provides network filtering including stateful inspection when traffic is explicitly routed through its endpoints supports “Inspect selected VPC traffic with managed stateful firewall policies,” while VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access supports “Prevent a Lambda function in a VPC from having unnecessary internet egress”; neither check is assumed to follow from the other.
Incorrect Answers
A:This option is only partly effective: Network Firewall provides network filtering including stateful inspection when traffic is explicitly routed through its endpoints supports “Inspect selected VPC traffic with managed stateful firewall policies”; but Firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites supports “Enforce uniform security-group policies across a multi-account organization,” not the required “Prevent a Lambda function in a VPC from having unnecessary internet egress” outcome.
C:Firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites is pertinent to “Enforce uniform security-group policies across a multi-account organization,” and Traffic Mirroring captures packet copies from supported ENIs, unlike Flow Logs which only publish traffic metadata is pertinent to “Record mirrored packets from an EC2 network interface for deep analysis”; the requested controls for “Inspect selected VPC traffic with managed stateful firewall policies” and “Prevent a Lambda function in a VPC from having unnecessary internet egress” are absent.
D:The option has a useful control for “Prevent a Lambda function in a VPC from having unnecessary internet egress” because VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access; its other control applies to “Record mirrored packets from an EC2 network interface for deep analysis” because traffic Mirroring captures packet copies from supported ENIs, unlike Flow Logs which only publish traffic metadata; it misses the first requirement, “Inspect selected VPC traffic with managed stateful firewall policies.”.
Question 514
In a CloudWatch alerting deployment, engineers must cover two different requirements: Alert on unusual spending that may indicate unauthorized resource provisioning. In addition, Notify operators after an IAM policy is modified in a sensitive account. Which option implements both?
- Configure Security Hub aggregation and insights; and match CloudTrail management API events using an EventBridge rule
- Attach an Amazon SNS action to the alarm; and configure Security Hub aggregation and insights
- Configure AWS Cost Anomaly Detection notifications; and match CloudTrail management API events using an EventBridge rule
- Configure AWS Cost Anomaly Detection notifications; and attach an Amazon SNS action to the alarm
Explanation
Correct Answer
C:This pairing handles the first requirement (“Alert on unusual spending that may indicate unauthorized resource provisioning”) because cost Anomaly Detection examines anomalous spending patterns; it does not inspect process activity or HTTP payloads; it handles the second (“Notify operators after an IAM policy is modified in a sensitive account”) because CloudTrail supplies the control-plane event details and EventBridge evaluates an event pattern to trigger notification or a remediation target; both acceptance criteria are therefore addressed.
Incorrect Answers
A:This solves the second problem (“Notify operators after an IAM policy is modified in a sensitive account”): CloudTrail supplies the control-plane event details and EventBridge evaluates an event pattern to trigger notification or a remediation target; however, the first action addresses “Create a consolidated high-severity security finding view across integrated detectors”: Security Hub consolidates supported security findings and groups them by operational properties for investigation; it does not satisfy “Alert on unusual spending that may indicate unauthorized resource provisioning.”.
B:Both mechanisms have legitimate uses, but for other requirements: SNS delivers subscribed notifications after the CloudWatch alarm evaluates the configured metric and changes state supports “Notify an incident channel when a CloudWatch alarm changes to ALARM state”; Security Hub consolidates supported security findings and groups them by operational properties for investigation supports “Create a consolidated high-severity security finding view across integrated detectors”; this does not resolve the stated “Alert on unusual spending that may indicate unauthorized resource provisioning” and “Notify operators after an IAM policy is modified in a sensitive account” findings.
D:One action is correctly chosen for “Alert on unusual spending that may indicate unauthorized resource provisioning”: Cost Anomaly Detection examines anomalous spending patterns; it does not inspect process activity or HTTP payloads; the companion action relates to “Notify an incident channel when a CloudWatch alarm changes to ALARM state”: SNS delivers subscribed notifications after the CloudWatch alarm evaluates the configured metric and changes state; the other requested outcome, “Notify operators after an IAM policy is modified in a sensitive account,” remains outstanding.
Question 515
A proposed solution for the traffic encryption assessment is incomplete unless it addresses both of these checks: Serve HTTPS API Gateway custom-domain traffic with managed certificates; and Require client connections to an S3 bucket to use TLS. Which choice provides the necessary controls?
- Associate an ACM certificate with the supported API Gateway custom domain; and use AWS Site-to-Site VPN with IPsec and resilient tunnel configuration
- Associate an ACM certificate with the supported API Gateway custom domain; and add a bucket policy deny conditioned on aws:SecureTransport being false
- Use AWS Site-to-Site VPN with IPsec and resilient tunnel configuration; and enforce the supported RDS TLS requirement and install trusted CA certificates on clients
- Enforce the supported RDS TLS requirement and install trusted CA certificates on clients; and add a bucket policy deny conditioned on aws:SecureTransport being false
Explanation
Correct Answer
B:For the first acceptance test, “Serve HTTPS API Gateway custom-domain traffic with managed certificates,” the custom domain's TLS certificate enables verified HTTPS client connections; authorizers and resource policies remain separate access controls; for the second, “Require client connections to an S3 bucket to use TLS,” transport security can be enforced at the S3 resource policy layer independently of whether objects are encrypted at rest; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
A:The custom domain's TLS certificate enables verified HTTPS client connections; authorizers and resource policies remain separate access controls supports the “Serve HTTPS API Gateway custom-domain traffic with managed certificates” acceptance test; IPsec provides encryption and authentication for the supported gateway-to-gateway path over the selected underlying connectivity is pertinent to “Connect a corporate network to AWS using encrypted tunnels” instead; the change therefore omits the separate requirement “Require client connections to an S3 bucket to use TLS.”.
C:Neither action is targeted at the two acceptance tests: IPsec provides encryption and authentication for the supported gateway-to-gateway path over the selected underlying connectivity is about “Connect a corporate network to AWS using encrypted tunnels,” and Database encryption in transit requires an authenticated TLS connection and may need engine-specific configuration is about “Require database clients to connect with encrypted PostgreSQL or MySQL sessions”; the intended “Serve HTTPS API Gateway custom-domain traffic with managed certificates” and “Require client connections to an S3 bucket to use TLS” requirements remain unsatisfied.
D:The mechanism for “Require client connections to an S3 bucket to use TLS” is present: Transport security can be enforced at the S3 resource policy layer independently of whether objects are encrypted at rest; the additional mechanism relates to “Require database clients to connect with encrypted PostgreSQL or MySQL sessions”: Database encryption in transit requires an authenticated TLS connection and may need engine-specific configuration; nothing here completes “Serve HTTPS API Gateway custom-domain traffic with managed certificates.”.
Question 516
A security architecture review for an identity-provider integration test contains 2 independently assessed work items: (1) An EC2 SDK cannot retrieve credentials even though an IAM policy grants access; (2) An OIDC role assumption is denied because the token audience does not match. Which actions directly implement those requirements? Choose TWO.
- Verify the instance profile attachment and IMDS availability
- Check IAM Identity Center account assignments and permission sets
- Adjust role session duration within allowed constraints and refresh credentials
- Correct the identity provider client ID and role trust audience condition
Explanation
Correct Answers
A:Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel; in an identity-provider integration test, this is one of the independently required safeguards because it addresses the reported condition: an EC2 SDK cannot retrieve credentials even though an IAM policy grants access.
D:OIDC federation relies on token claims satisfying the trust policy, including the expected audience; in an identity-provider integration test, this is one of the independently required safeguards because it addresses the reported condition: an OIDC role assumption is denied because the token audience does not match.
Incorrect Answers
B:Authentication to the portal alone grants no account entitlement until an assignment connects the principal and permission set; in an identity-provider integration test, that supports the reported condition: a worker's federated portal login succeeds but no target account is listed, which is distinct from the 2 enumerated security work items.
C:STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys; in an identity-provider integration test, that supports the reported condition: a principal's temporary role credentials expire during a long-running process, which is distinct from the 2 enumerated security work items.
Question 517
The VPC connectivity and segmentation rollout has two control objectives. Requirement one: Use dedicated network connectivity without claiming it is encrypted by default. Requirement two: Restrict which S3 buckets applications can reach through a gateway endpoint. Which design passes both checks?
- Attach VPCs to a Transit Gateway with controlled route tables; and configure AWS Site-to-Site VPN with suitable customer gateway settings
- Configure AWS Site-to-Site VPN with suitable customer gateway settings; and apply a least-privilege VPC endpoint policy
- Provision Direct Connect and add VPN or other encryption when confidentiality is required; and attach VPCs to a Transit Gateway with controlled route tables
- Provision Direct Connect and add VPN or other encryption when confidentiality is required; and apply a least-privilege VPC endpoint policy
Explanation
Correct Answer
D:The first control addresses the check “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; the other addresses “Restrict which S3 buckets applications can reach through a gateway endpoint”: Endpoint policies filter requests traversing the endpoint; they complement rather than replace IAM and bucket policies; these two mechanisms cover the complete VPC connectivity and segmentation rollout.
Incorrect Answers
A:The first action belongs to “Connect many VPCs through centralized routing without individual full meshes” because transit Gateway centralizes network transit and segmentation through attachments and route-table associations and propagations; the second 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; these are not the required checks, “Use dedicated network connectivity without claiming it is encrypted by default” and “Restrict which S3 buckets applications can reach through a gateway endpoint.”.
B:Endpoint policies filter requests traversing the endpoint; they complement rather than replace IAM and bucket policies; this fulfills the second objective (“Restrict which S3 buckets applications can reach through a gateway endpoint”); the other action is intended 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 does not meet the requested “Use dedicated network connectivity without claiming it is encrypted by default” check.
C:Direct Connect provides private connectivity capacity but does not by itself encrypt all customer traffic in transit; this is relevant to the first objective (“Use dedicated network connectivity without claiming it is encrypted by default”); however, the other action is meant for “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; it leaves the required “Restrict which S3 buckets applications can reach through a gateway endpoint” behavior unimplemented.
Question 518
A review board evaluating the incident response rehearsal rejects fixes that cover just one requirement. The requirements are: Preapprove repeatable patch and quarantine operations before an incident; and Prepare a repeatable EC2 quarantine plan that preserves the host and accounts for established sessions. Which configuration addresses both?
- Normalize the findings into AWS Security Finding Format in Security Hub; and match GuardDuty events with an EventBridge rule and invoke a Step Functions workflow
- Match GuardDuty events with an EventBridge rule and invoke a Step Functions workflow; and attach a restrictive isolation security group and verify existing connections
- Prepare Systems Manager Automation runbooks with restricted execution roles; and normalize the findings into AWS Security Finding Format in Security Hub
- Prepare Systems Manager Automation runbooks with restricted execution roles; and attach a restrictive isolation security group and verify existing connections
Explanation
Correct Answer
D:For “Preapprove repeatable patch and quarantine operations before an incident,” the governing behavior is: Automation documents implement consistent response actions and IAM constrains who can start them or affect target resources; for the separate check “Prepare a repeatable EC2 quarantine plan that preserves the host and accounts for established sessions,” it is: Security groups constrain permitted instance traffic, but stateful connection tracking must be considered when isolating sessions already established; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:This combination targets different outcomes: ASFF provides common fields for the finding origin, resources, severity, and workflow state across integrated products helps with “Make findings from multiple AWS security products use a common event structure”; EventBridge matches supported security finding events, while Step Functions coordinates the ordered response steps and human approval gates helps with “Route high-severity GuardDuty findings into an approved response workflow”; neither implements the required “Preapprove repeatable patch and quarantine operations before an incident” and “Prepare a repeatable EC2 quarantine plan that preserves the host and accounts for established sessions” outcomes together.
B:Only the second requirement is covered: Security groups constrain permitted instance traffic, but stateful connection tracking must be considered when isolating sessions already established supports “Prepare a repeatable EC2 quarantine plan that preserves the host and accounts for established sessions”; by contrast, EventBridge matches supported security finding events, while Step Functions coordinates the ordered response steps and human approval gates concerns “Route high-severity GuardDuty findings into an approved response workflow,” leaving “Preapprove repeatable patch and quarantine operations before an incident” unresolved.
C:The first part is appropriate for “Preapprove repeatable patch and quarantine operations before an incident” because automation documents implement consistent response actions and IAM constrains who can start them or affect target resources; the second part addresses a different issue (“Make findings from multiple AWS security products use a common event structure”) because ASFF provides common fields for the finding origin, resources, severity, and workflow state across integrated products; it does not fulfill the “Prepare a repeatable EC2 quarantine plan that preserves the host and accounts for established sessions” test.
Question 519
For a cloud attack-surface reduction project, engineers have been assigned this security outcome: Identify an unexplained increase in EC2 runtime following unusual API activity. What implementation best fits?
- Review the Security pillar in AWS Well-Architected Tool
- Use IAM Access Analyzer findings with S3 Block Public Access guardrails
- Compare Cost Explorer usage trends with CloudTrail instance-launch events
- Review AWS Backup coverage and vault protection against recovery objectives
- Inventory security-group references and verify resource dependencies before removal
Explanation
Correct Answer
C:Cost Explorer reveals consumption patterns and CloudTrail helps attribute provisioning events to caller identities; this is the direct solution to the requirement to identify an unexplained increase in EC2 runtime following unusual API activity in a cloud attack-surface reduction project.
Incorrect Answers
A:For the different objective “Find security design gaps against AWS architecture best practices,” the tool guides a structured workload review and produces improvement guidance based on pillar questions; the scenario instead requires “Identify an unexplained increase in EC2 runtime following unusual API activity,” which is a separate security mechanism.
B:External-access analysis identifies exposure paths and Block Public Access can constrain accidental public configurations; this would help with the requirement to detect an unexpectedly public S3 resource in a high-risk environment, leaving the requirement to identify an unexplained increase in EC2 runtime following unusual API activity unresolved in a cloud attack-surface reduction project.
D:Recovery readiness requires verified backup selection, retention and restoration controls rather than relying solely on low storage cost; its purpose is the requirement to evaluate whether a backup design satisfies recovery and protection requirements, but the acceptance criterion in a cloud attack-surface reduction project is the requirement to identify an unexplained increase in EC2 runtime following unusual API activity.
E: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 cloud attack-surface reduction project is the requirement to identify an unexplained increase in EC2 runtime following unusual API activity.
Question 520
An assessment of the central log collection migration has two findings. Finding one: Stream application log events from CloudWatch Logs toward an external SIEM. Finding two: Audit S3 GetObject operations instead of only bucket-policy changes. Which combination remediates both?
- Configure a multi-Region CloudTrail trail with an S3 destination; and enable CloudTrail log file integrity validation and verify digest files
- Enable CloudTrail log file integrity validation and verify digest files; and enable CloudTrail S3 data event logging for the selected object resources
- Create a subscription filter to an authorized Kinesis delivery destination; and configure a multi-Region CloudTrail trail with an S3 destination
- Create a subscription filter to an authorized Kinesis delivery destination; and enable CloudTrail S3 data event logging for the selected object resources
Explanation
Correct Answer
D:The implementation has a specific control for each objective: CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool for “Stream application log events from CloudWatch Logs toward an external SIEM”; Object-level data-plane reads are not included in ordinary management-event history unless data events are configured for “Audit S3 GetObject operations instead of only bucket-policy changes”; the combined option satisfies the two-part request.
Incorrect Answers
A:The first proposed action addresses “Record AWS management API activity in every Region into protected storage”: A multi-Region trail records supported management events across current and newly added Regions in the account; the second addresses “Confirm that delivered CloudTrail log objects have not been altered”: Signed digest chains allow validation of log-file integrity after delivery; enabling the feature alone is not equivalent to performing verification; the combination does not achieve the required “Stream application log events from CloudWatch Logs toward an external SIEM” and “Audit S3 GetObject operations instead of only bucket-policy changes” outcomes in this central log collection migration.
B:While object-level data-plane reads are not included in ordinary management-event history unless data events are configured is relevant to “Audit S3 GetObject operations instead of only bucket-policy changes,” the other component targets “Confirm that delivered CloudTrail log objects have not been altered,” where signed digest chains allow validation of log-file integrity after delivery; enabling the feature alone is not equivalent to performing verification; the first acceptance criterion (“Stream application log events from CloudWatch Logs toward an external SIEM”) is not met.
C:The first check would be covered, since CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool; yet the second choice is associated with “Record AWS management API activity in every Region into protected storage,” for which A multi-Region trail records supported management events across current and newly added Regions in the account; no corresponding control satisfies “Audit S3 GetObject operations instead of only bucket-policy changes.”.