Question 320
In a log storage and retention architecture, a control owner must address the following requirement: Record requests allowed or blocked by AWS WAF web ACLs. Which option should be selected?
- Enable VPC Flow Logs at the required VPC, subnet, or ENI scope
- Enable Application Load Balancer access logs to a permitted S3 bucket
- Configure Route 53 Resolver query logging for the relevant VPCs
- Enable WAF logging to a supported delivery destination
Explanation
Correct Answer
D:WAF log records include matched rule and request metadata for supported web requests passing through the associated ACL; that AWS behavior meets the requirement to record requests allowed or blocked by AWS WAF web ACLs, the decisive objective for a log storage and retention architecture.
Incorrect Answers
A:Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction; the important distinction in a log storage and retention architecture is that this supports the requirement to record accepted and rejected IP flows on selected VPC network interfaces instead of the requirement to record requests allowed or blocked by AWS WAF web ACLs.
B:ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead; this addresses the requirement to preserve load balancer request traces for application incident analysis, not the requirement to record requests allowed or blocked by AWS WAF web ACLs, which is needed in a log storage and retention architecture.
C:Resolver query logs provide domain query details and can be centralized for DNS-based security analysis; the important distinction in a log storage and retention architecture is that this supports the requirement to capture DNS query names resolved through Route 53 Resolver in a VPC instead of the requirement to record requests allowed or blocked by AWS WAF web ACLs.
Question 321
An architect is reviewing a data-retention policy deployment. The acceptance criterion reads: Expire old ECR images according to repository policy. Which approach satisfies it?
- Configure AWS Backup Vault Lock with appropriate minimum and maximum retention
- Define an AWS Backup plan and assign protected resources
- Monitor AWS Backup job status and coverage with suitable notifications
- Define Amazon ECR lifecycle policies for image tags and age
- Configure supported AWS Backup cross-account copy actions
Explanation
Correct Answer
D:Registry lifecycle policies manage container image retention, rather than affecting EBS volume snapshot storage; it addresses the requirement to expire old ECR images according to repository policy at the right security boundary during a data-retention policy deployment.
Incorrect Answers
A:Vault Lock limits destructive retention changes and complements access permissions on the backup vault; the important distinction in a data-retention policy deployment is that this supports the requirement to ensure retention settings cannot be weakened by routine vault administrators instead of the requirement to expire old ECR images according to repository policy.
B:Backup plans specify schedules, backup rules and lifecycle, enabling centrally managed recovery point creation; its purpose is the requirement to establish policy-based backups across several supported resource types, but the acceptance criterion in a data-retention policy deployment is the requirement to expire old ECR images according to repository policy.
C:Backup job events and reports reveal unsuccessful or missing protection activities before a restore is urgently needed; its scope is the requirement to detect a missing backup before the end of a recovery service-level agreement, rather than the requirement to expire old ECR images according to repository policy for a data-retention policy deployment.
E:Cross-account copies place recovery points in a separate vault/account subject to organization and encryption prerequisites; this would help with the requirement to maintain a second copy of recovery points in another account, leaving the requirement to expire old ECR images according to repository policy unresolved in a data-retention policy deployment.
Question 322
An architect is reviewing a permission boundary and SCP assessment. The acceptance criterion reads: A developer can create roles but cannot pass them to an EC2 service. Which approach satisfies it?
- Grant tightly scoped iam:PassRole to the approved service role
- Update the resource policy to reference the intended role or session principal
- Review IAM Access Analyzer external access findings for supported resource policies
- Use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input
- Test the applicable policies with IAM policy simulator and check CloudTrail evidence
Explanation
Correct Answer
A:Passing a role to a service requires separate iam:PassRole authorization and is not implied by ec2:RunInstances alone; this behavior fulfills the reported condition: a developer can create roles but cannot pass them to an EC2 service during a permission boundary and SCP assessment.
Incorrect Answers
B:Authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities; this addresses the reported condition: an assumed role is denied by a resource policy that names the wrong principal, not the reported condition: a developer can create roles but cannot pass them to an EC2 service, which is needed in a permission boundary and SCP assessment.
C:Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; this addresses the reported condition: a developer needs to see whether an S3 bucket is exposed beyond an account trust zone, not the reported condition: a developer can create roles but cannot pass them to an EC2 service, which is needed in a permission boundary and SCP assessment.
D:Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; its scope is the reported condition: an overly broad policy includes actions never used by the principal, rather than the reported condition: a developer can create roles but cannot pass them to an EC2 service for a permission boundary and SCP assessment.
E:Simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request; its scope is the reported condition: an operator needs to determine why a specific AWS API call is denied, rather than the reported condition: a developer can create roles but cannot pass them to an EC2 service for a permission boundary and SCP assessment.
Question 323
In a network path incident investigation, a control owner must address the following requirement: Identify an incorrect destination CIDR in a network route table. Which option should be selected?
- Run VPC Reachability Analyzer from source to destination
- Capture copies through VPC Traffic Mirroring for packet inspection
- Review Route 53 Resolver query logging
- Inspect the effective subnet route table and propagation sources
Explanation
Correct Answer
D:Routing decisions use destination prefixes and target selection; security-group rules cannot compensate for an incorrect next hop; this is the direct solution to the requirement to identify an incorrect destination CIDR in a network route table in a network path incident investigation.
Incorrect Answers
A:For the different objective “Find which configured VPC component blocks a path between EC2 instances,” reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; the scenario instead requires “Identify an incorrect destination CIDR in a network route table,” which is a separate security mechanism.
B:Packet mirroring supports protocol-level inspection, whereas VPC Flow Logs lack packet payload bytes; its purpose is the requirement to identify suspicious payload signatures crossing an EC2 interface, but the acceptance criterion in a network path incident investigation is the requirement to identify an incorrect destination CIDR in a network route table.
C:DNS query logs provide names and query context that basic flow summaries cannot reconstruct; the important distinction in a network path incident investigation is that this supports the requirement to check a suspected DNS resolver misuse using query names rather than just IP flows instead of the requirement to identify an incorrect destination CIDR in a network route table.
Question 324
During a active security incident investigation, reviewers document two independent acceptance criteria. First: Contain an EC2 instance showing command-and-control traffic without deleting the machine. Second: Preserve volatile evidence that an EBS snapshot would miss. Which combined implementation satisfies both?
- Quarantine its network interfaces with restrictive security-group rules; and capture a memory image before shutting down the suspect instance
- Quarantine its network interfaces with restrictive security-group rules; and apply an AWS WAF IP or rate-based rule to the application edge
- Rotate the secret and force safe refresh of cached credentials; and capture a memory image before shutting down the suspect instance
- Apply an AWS WAF IP or rate-based rule to the application edge; and rotate the secret and force safe refresh of cached credentials
Explanation
Correct Answer
A:The first control addresses the check “Contain an EC2 instance showing command-and-control traffic without deleting the machine”: Network isolation can stop new unwanted communication while preserving the host for examination and snapshot capture; the other addresses “Preserve volatile evidence that an EBS snapshot would miss”: EBS snapshots preserve disk blocks, whereas RAM artifacts and active process state require a separate live-memory capture procedure; these two mechanisms cover the complete active security incident investigation.
Incorrect Answers
B:Network isolation can stop new unwanted communication while preserving the host for examination and snapshot capture; this is relevant to the first objective (“Contain an EC2 instance showing command-and-control traffic without deleting the machine”); however, the other action is meant for “Block repeated malicious web requests while the origin is being investigated”: WAF filters applicable HTTP(S) requests at supported front ends; it is not a host-level response for arbitrary TCP flows; it leaves the required “Preserve volatile evidence that an EBS snapshot would miss” behavior unimplemented.
C:EBS snapshots preserve disk blocks, whereas RAM artifacts and active process state require a separate live-memory capture procedure; this fulfills the second objective (“Preserve volatile evidence that an EBS snapshot would miss”); the other action is intended for “Revoke exposure of a leaked application secret used by Lambda functions”: Updating Secrets Manager alone does not invalidate a still-valid downstream credential unless the backing credential is changed and consumers refresh; it does not meet the requested “Contain an EC2 instance showing command-and-control traffic without deleting the machine” check.
D:The first action belongs to “Block repeated malicious web requests while the origin is being investigated” because WAF filters applicable HTTP(S) requests at supported front ends; it is not a host-level response for arbitrary TCP flows; the second belongs to “Revoke exposure of a leaked application secret used by Lambda functions” because updating Secrets Manager alone does not invalidate a still-valid downstream credential unless the backing credential is changed and consumers refresh; these are not the required checks, “Contain an EC2 instance showing command-and-control traffic without deleting the machine” and “Preserve volatile evidence that an EBS snapshot would miss.”.
Question 325
The AWS Organizations policy program has two control objectives. Requirement one: Aggregate AWS Config compliance data from many accounts and Regions. Requirement two: Apply common permission guardrails across member AWS accounts. Which design passes both checks?
- Create trusted cross-account IAM roles and controlled STS assumption paths; and configure AWS Organizations service control policies at the appropriate hierarchy
- Configure a delegated administrator for AWS Security Hub; and create trusted cross-account IAM roles and controlled STS assumption paths
- Configure an AWS Config aggregator with appropriate authorization; and configure AWS Organizations service control policies at the appropriate hierarchy
- Configure an AWS Config aggregator with appropriate authorization; and configure a delegated administrator for AWS Security Hub
Explanation
Correct Answer
C:The first control addresses the check “Aggregate AWS Config compliance data from many accounts and Regions”: Config aggregators centralize resource configuration and compliance views without themselves changing the member resources; the other addresses “Apply common permission guardrails across member AWS accounts”: SCPs constrain affected principals' maximum permissions in member accounts, independently from the IAM policies that grant actions; these two mechanisms cover the complete AWS Organizations policy program.
Incorrect Answers
A:SCPs constrain affected principals' maximum permissions in member accounts, independently from the IAM policies that grant actions; this fulfills the second objective (“Apply common permission guardrails across member AWS accounts”); the other action is intended for “Give security staff cross-account administrative access without sharing root passwords”: Cross-account role sessions supply temporary access bounded by the target role's trust and permission policies; it does not meet the requested “Aggregate AWS Config compliance data from many accounts and Regions” check.
B:The first action belongs to “Provide a central place to manage security findings for multiple accounts” because delegated administration allows a designated member account to administer a security service's supported organization-wide features; the second belongs to “Give security staff cross-account administrative access without sharing root passwords” because cross-account role sessions supply temporary access bounded by the target role's trust and permission policies; these are not the required checks, “Aggregate AWS Config compliance data from many accounts and Regions” and “Apply common permission guardrails across member AWS accounts.”.
D:Config aggregators centralize resource configuration and compliance views without themselves changing the member resources; this is relevant to the first objective (“Aggregate AWS Config compliance data from many accounts and Regions”); however, the other action is meant for “Provide a central place to manage security findings for multiple accounts”: Delegated administration allows a designated member account to administer a security service's supported organization-wide features; it leaves the required “Apply common permission guardrails across member AWS accounts” behavior unimplemented.
Question 326
The security event analytics project cannot pass unless both of these outcomes are demonstrated: Summarize findings by account, severity, and workflow state; Determine which caller changed an IAM trust policy. Which two-part plan is suitable?
- Configure Security Hub insights over normalized security findings; and inspect CloudTrail UpdateAssumeRolePolicy records and request context
- Configure Security Hub insights over normalized security findings; and query the log objects in Athena with an appropriate external table
- Enable CloudTrail Insights for the supported management-event analysis; and inspect CloudTrail UpdateAssumeRolePolicy records and request context
- Query the log objects in Athena with an appropriate external table; and enable CloudTrail Insights for the supported management-event analysis
Explanation
Correct Answer
A:Two different security outcomes are required in this security event analytics project; Security Hub insights aggregate finding properties rather than querying raw VPC packet records supports “Summarize findings by account, severity, and workflow state,” while CloudTrail management events expose who invoked role trust changes and which policy update was submitted supports “Determine which caller changed an IAM trust policy”; neither check is assumed to follow from the other.
Incorrect Answers
B:This option is only partly effective: Security Hub insights aggregate finding properties rather than querying raw VPC packet records supports “Summarize findings by account, severity, and workflow state”; but Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly supports “Join S3 archived CloudTrail records with a reference table of suspect IPs,” not the required “Determine which caller changed an IAM trust policy” outcome.
C:The option has a useful control for “Determine which caller changed an IAM trust policy” because CloudTrail management events expose who invoked role trust changes and which policy update was submitted; its other control applies to “Find unusual API call rates rather than just inspect routine event counts” because insights identifies unusual API activity trends when configured, whereas ordinary event history simply lists observed operations; it misses the first requirement, “Summarize findings by account, severity, and workflow state.”.
D:Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly is pertinent to “Join S3 archived CloudTrail records with a reference table of suspect IPs,” and Insights identifies unusual API activity trends when configured, whereas ordinary event history simply lists observed operations is pertinent to “Find unusual API call rates rather than just inspect routine event counts”; the requested controls for “Summarize findings by account, severity, and workflow state” and “Determine which caller changed an IAM trust policy” are absent.
Question 327
An architect is reviewing a production secret-rotation project. The acceptance criterion reads: Avoid passing a secret in plaintext through a CloudFormation template. Which approach satisfies it?
- Use a supported dynamic reference to Secrets Manager or Parameter Store
- Review Secrets Manager API events in CloudTrail
- Use Systems Manager Parameter Store with a SecureString parameter when sensitive
- Configure AWS Secrets Manager rotation with a compatible rotation implementation
Explanation
Correct Answer
A:Dynamic references allow CloudFormation to resolve supported secret values without embedding them in the plaintext template source; that AWS behavior meets the requirement to avoid passing a secret in plaintext through a CloudFormation template, the decisive objective for a production secret-rotation project.
Incorrect Answers
B:CloudTrail records supported secret-management API calls and caller identities, while secret values themselves should not be logged; its scope is the requirement to track when a production secret was retrieved by an unexpected identity, rather than the requirement to avoid passing a secret in plaintext through a CloudFormation template for a production secret-rotation project.
C:Parameter Store organizes configuration parameters and can encrypt selected values, but does not reproduce every Secrets Manager rotation integration; this addresses the requirement to store a nonrotating application configuration value with optional encryption, not the requirement to avoid passing a secret in plaintext through a CloudFormation template, which is needed in a production secret-rotation project.
D:Secrets Manager schedules secret rotation, coordinating updates to the stored value and underlying system credentials; the important distinction in a production secret-rotation project is that this supports the requirement to rotate a database password automatically on an approved schedule instead of the requirement to avoid passing a secret in plaintext through a CloudFormation template.
Question 328
An implementation in the VPC connectivity and segmentation rollout must solve two separate problems, not merely strengthen one safeguard: Deny a specific unwanted subnet CIDR while allowing other traffic; Allow egress to S3 without crossing the public internet through NAT. Which change meets the full request?
- Configure ordered subnet network ACL rules with an explicit deny; and create an S3 gateway VPC endpoint and update applicable route tables
- Configure ordered subnet network ACL rules with an explicit deny; and use a stateful VPC security group
- Remove the default internet gateway route from the private subnet's route table; and create an S3 gateway VPC endpoint and update applicable route tables
- Use a stateful VPC security group; and remove the default internet gateway route from the private subnet's route table
Explanation
Correct Answer
A:This pairing handles the first requirement (“Deny a specific unwanted subnet CIDR while allowing other traffic”) because network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary; it handles the second (“Allow egress to S3 without crossing the public internet through NAT”) because A gateway endpoint supplies a private route for supported S3 traffic in the VPC, with endpoint policy restrictions available; both acceptance criteria are therefore addressed.
Incorrect Answers
B:One action is correctly chosen for “Deny a specific unwanted subnet CIDR while allowing other traffic”: Network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary; the companion action relates to “Permit response traffic automatically for an established EC2 connection”: Security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed; the other requested outcome, “Allow egress to S3 without crossing the public internet through NAT,” remains outstanding.
C:This solves the second problem (“Allow egress to S3 without crossing the public internet through NAT”): A gateway endpoint supplies a private route for supported S3 traffic in the VPC, with endpoint policy restrictions available; however, the first action addresses “Keep a private subnet from routing directly to the internet gateway”: The subnet route table determines forwarding paths; a private subnet does not gain direct public routing without an appropriate route; it does not satisfy “Deny a specific unwanted subnet CIDR while allowing other traffic.”.
D:Both mechanisms have legitimate uses, but for other requirements: Security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed supports “Permit response traffic automatically for an established EC2 connection”; the subnet route table determines forwarding paths; a private subnet does not gain direct public routing without an appropriate route supports “Keep a private subnet from routing directly to the internet gateway”; this does not resolve the stated “Deny a specific unwanted subnet CIDR while allowing other traffic” and “Allow egress to S3 without crossing the public internet through NAT” findings.
Question 329
During a least-privilege IAM authorization review, the security team has this work item: Prevent member account administrators from disabling baseline security controls. Which AWS action is the most direct implementation?
- Grant read-only IAM and relevant Access Analyzer inspection actions
- Define a narrow support role with resource ARNs and bounded session duration
- Apply an appropriate Organizations SCP deny to member accounts
- Split data-access and IAM-management duties across separate roles
Explanation
Correct Answer
C:SCPs constrain member-account principals including their root identities, but do not grant permissions and have management-account exceptions; it addresses the requirement to prevent member account administrators from disabling baseline security controls at the right security boundary during a least-privilege IAM authorization review.
Incorrect Answers
A:Visibility into policies and analysis results can be delegated separately from policy-editing actions to preserve separation of duties; this would help with the requirement to allow a user to inspect effective permissions without modifying policies, leaving the requirement to prevent member account administrators from disabling baseline security controls unresolved in a least-privilege IAM authorization review.
B:Resource-scoped role policies and temporary sessions limit both what support staff can touch and how long credentials persist; this addresses the requirement to grant temporary support access to one project rather than an entire account, not the requirement to prevent member account administrators from disabling baseline security controls, which is needed in a least-privilege IAM authorization review.
D:Segregated roles limit privilege escalation paths by preventing the application identity from changing its own authorization perimeter; the important distinction in a least-privilege IAM authorization review is that this supports the reported condition: a workload should read secrets but never manage the IAM roles that authorize it instead of the requirement to prevent member account administrators from disabling baseline security controls.
Question 330
The central log collection migration has two control objectives. Requirement one: Search historical CloudTrail activity with SQL without managing an analytics cluster. Requirement two: Capture a narrow subset of expensive S3 data events rather than every object read. Which design passes both checks?
- Create or query an appropriate CloudTrail Lake event data store; and configure CloudTrail advanced event selectors for required resource ARNs and event names
- Create or query an appropriate CloudTrail Lake event data store; and configure a multi-Region CloudTrail trail with an S3 destination
- Enable CloudTrail log file integrity validation and verify digest files; and configure CloudTrail advanced event selectors for required resource ARNs and event names
- Configure a multi-Region CloudTrail trail with an S3 destination; and enable CloudTrail log file integrity validation and verify digest files
Explanation
Correct Answer
A:The first control addresses the check “Search historical CloudTrail activity with SQL without managing an analytics cluster”: CloudTrail Lake retains selected event types for SQL analysis subject to configured retention and ingestion choices; the other addresses “Capture a narrow subset of expensive S3 data events rather than every object read”: Advanced selectors limit the chosen high-volume events and can reduce unnecessary collection costs; these two mechanisms cover the complete central log collection migration.
Incorrect Answers
B:CloudTrail Lake retains selected event types for SQL analysis subject to configured retention and ingestion choices; this is relevant to the first objective (“Search historical CloudTrail activity with SQL without managing an analytics cluster”); however, the other action is meant for “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; it leaves the required “Capture a narrow subset of expensive S3 data events rather than every object read” behavior unimplemented.
C:Advanced selectors limit the chosen high-volume events and can reduce unnecessary collection costs; this fulfills the second objective (“Capture a narrow subset of expensive S3 data events rather than every object read”); the other action is intended for “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; it does not meet the requested “Search historical CloudTrail activity with SQL without managing an analytics cluster” check.
D:The first action belongs to “Record AWS management API activity in every Region into protected storage” because A multi-Region trail records supported management events across current and newly added Regions in the account; the second belongs to “Confirm that delivered CloudTrail log objects have not been altered” because signed digest chains allow validation of log-file integrity after delivery; enabling the feature alone is not equivalent to performing verification; these are not the required checks, “Search historical CloudTrail activity with SQL without managing an analytics cluster” and “Capture a narrow subset of expensive S3 data events rather than every object read.”.