Question 260
For a cross-account delegation audit, engineers have been assigned this security outcome: Limit a role's access to resources carrying a matching project tag. What implementation best fits?
- Apply an S3 bucket-policy condition on aws:sourceVpce
- Use an applicable aws:SourceIp condition in the identity or resource policy
- Implement ABAC with principal-tag and resource-tag policy conditions
- Use an aws:RequestedRegion condition in an appropriate SCP
Explanation
Correct Answer
C:Attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project; for a cross-account delegation audit, this is the measure that delivers the requirement to limit a role's access to resources carrying a matching project tag.
Incorrect Answers
A:The endpoint context key ties access to the intended private path, with careful exceptions for services that do not supply that context; the important distinction in a cross-account delegation audit is that this supports the requirement to allow object reads only when requests use a specific VPC endpoint instead of the requirement to limit a role's access to resources carrying a matching project tag.
B:Source IP evaluation can restrict request origins, subject to the actual request context and service-forwarding behavior; its purpose is the requirement to allow administrative actions only from a restricted set of source public IP ranges, but the acceptance criterion in a cross-account delegation audit is the requirement to limit a role's access to resources carrying a matching project tag.
D:A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions; its scope is the requirement to prevent nonapproved Regions for supported AWS API operations, rather than the requirement to limit a role's access to resources carrying a matching project tag for a cross-account delegation audit.
Question 261
The active security incident investigation cannot pass unless both of these outcomes are demonstrated: Block repeated malicious web requests while the origin is being investigated; Find which IAM session made a suspicious DeleteObject call. Which two-part plan is suitable?
- Capture a memory image before shutting down the suspect instance; and inspect S3 data events in CloudTrail for the bucket
- Quarantine its network interfaces with restrictive security-group rules; 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 inspect S3 data events in CloudTrail for the bucket
- Apply an AWS WAF IP or rate-based rule to the application edge; and quarantine its network interfaces with restrictive security-group rules
Explanation
Correct Answer
C:Two different security outcomes are required in this active security incident investigation; WAF filters applicable HTTP(S) requests at supported front ends; it is not a host-level response for arbitrary TCP flows supports “Block repeated malicious web requests while the origin is being investigated,” while Object-level API events reveal callers and resources when the relevant data-event selectors were enabled during the period supports “Find which IAM session made a suspicious DeleteObject call”; neither check is assumed to follow from the other.
Incorrect Answers
A:The option has a useful control for “Find which IAM session made a suspicious DeleteObject call” because object-level API events reveal callers and resources when the relevant data-event selectors were enabled during the period; its other control applies to “Preserve volatile evidence that an EBS snapshot would miss” because EBS snapshots preserve disk blocks, whereas RAM artifacts and active process state require a separate live-memory capture procedure; it misses the first requirement, “Block repeated malicious web requests while the origin is being investigated.”.
B:Network isolation can stop new unwanted communication while preserving the host for examination and snapshot capture is pertinent to “Contain an EC2 instance showing command-and-control traffic without deleting the machine,” and EBS snapshots preserve disk blocks, whereas RAM artifacts and active process state require a separate live-memory capture procedure is pertinent to “Preserve volatile evidence that an EBS snapshot would miss”; the requested controls for “Block repeated malicious web requests while the origin is being investigated” and “Find which IAM session made a suspicious DeleteObject call” are absent.
D:This option is only partly effective: WAF filters applicable HTTP(S) requests at supported front ends; it is not a host-level response for arbitrary TCP flows supports “Block repeated malicious web requests while the origin is being investigated”; but Network isolation can stop new unwanted communication while preserving the host for examination and snapshot capture supports “Contain an EC2 instance showing command-and-control traffic without deleting the machine,” not the required “Find which IAM session made a suspicious DeleteObject call” outcome.
Question 262
For an AWS Organizations guardrail design, engineers have been assigned this security outcome: Provision a governed set of accounts with baseline logging and identity controls. What implementation best fits?
- Establish an AWS Control Tower landing zone with account governance
- Configure an AWS Config aggregator with appropriate authorization
- Configure AWS Organizations service control policies at the appropriate hierarchy
- Configure a delegated administrator for AWS Security Hub
Explanation
Correct Answer
A:Control Tower orchestrates account setup and preventive/detective controls on top of Organizations and related services; for an AWS Organizations guardrail design, this is the measure that delivers the requirement to provision a governed set of accounts with baseline logging and identity controls.
Incorrect Answers
B:Config aggregators centralize resource configuration and compliance views without themselves changing the member resources; this addresses the requirement to aggregate AWS Config compliance data from many accounts and Regions, not the requirement to provision a governed set of accounts with baseline logging and identity controls, which is needed in an AWS Organizations guardrail design.
C:SCPs constrain affected principals' maximum permissions in member accounts, independently from the IAM policies that grant actions; its scope is the requirement to apply common permission guardrails across member AWS accounts, rather than the requirement to provision a governed set of accounts with baseline logging and identity controls for an AWS Organizations guardrail design.
D:Delegated administration allows a designated member account to administer a security service's supported organization-wide features; this would help with the requirement to provide a central place to manage security findings for multiple accounts, leaving the requirement to provision a governed set of accounts with baseline logging and identity controls unresolved in an AWS Organizations guardrail design.
Question 263
A security review for a hybrid network access redesign identifies one priority: Record mirrored packets from an EC2 network interface for deep analysis. Which control is the best choice?
- Configure VPC Traffic Mirroring to an approved traffic analysis target
- Deploy AWS Network Firewall with appropriate routing through firewall endpoints
- Restrict Lambda's VPC security group and egress routes
- Use VPC Network Access Analyzer with a defined access scope
- Configure AWS Firewall Manager security-group policies
Explanation
Correct Answer
A:Traffic Mirroring captures packet copies from supported ENIs, unlike Flow Logs which only publish traffic metadata; this behavior fulfills the requirement to record mirrored packets from an EC2 network interface for deep analysis during a hybrid network access redesign.
Incorrect Answers
B:Network Firewall provides network filtering including stateful inspection when traffic is explicitly routed through its endpoints; this would help with the requirement to inspect selected VPC traffic with managed stateful firewall policies, leaving the requirement to record mirrored packets from an EC2 network interface for deep analysis unresolved in a hybrid network access redesign.
C:VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access; this addresses the requirement to prevent a Lambda function in a VPC from having unnecessary internet egress, not the requirement to record mirrored packets from an EC2 network interface for deep analysis, which is needed in a hybrid network access redesign.
D:Network Access Analyzer checks configured resource paths against network access requirements rather than sampling live packets; its purpose is the requirement to assess whether a prohibited network path is possible before deployment, but the acceptance criterion in a hybrid network access redesign is the requirement to record mirrored packets from an EC2 network interface for deep analysis.
E:Firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites; the important distinction in a hybrid network access redesign is that this supports the requirement to enforce uniform security-group policies across a multi-account organization instead of the requirement to record mirrored packets from an EC2 network interface for deep analysis.
Question 264
A change request in the central log collection migration will be approved only if it delivers both outcomes: Record requests allowed or blocked by AWS WAF web ACLs; Record CloudFront viewer requests for forensic review. What should be included?
- Configure Route 53 Resolver query logging for the relevant VPCs; and enable CloudFront access logging for the distribution
- Enable VPC Flow Logs at the required VPC, subnet, or ENI scope; and configure Route 53 Resolver query logging for the relevant VPCs
- Enable WAF logging to a supported delivery destination; and enable CloudFront access logging for the distribution
- Enable WAF logging to a supported delivery destination; and enable VPC Flow Logs at the required VPC, subnet, or ENI scope
Explanation
Correct Answer
C:For the first acceptance test, “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; for the second, “Record CloudFront viewer requests for forensic review,” distribution access logs describe viewer requests at the edge; they differ from control-plane change records; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
A:The mechanism for “Record CloudFront viewer requests for forensic review” is present: Distribution access logs describe viewer requests at the edge; they differ from control-plane change records; the additional mechanism relates to “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; nothing here completes “Record requests allowed or blocked by AWS WAF web ACLs.”.
B:Neither action is targeted at the two acceptance tests: Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction is about “Record accepted and rejected IP flows on selected VPC network interfaces,” and Resolver query logs provide domain query details and can be centralized for DNS-based security analysis is about “Capture DNS query names resolved through Route 53 Resolver in a VPC”; the intended “Record requests allowed or blocked by AWS WAF web ACLs” and “Record CloudFront viewer requests for forensic review” requirements remain unsatisfied.
D:WAF log records include matched rule and request metadata for supported web requests passing through the associated ACL supports the “Record requests allowed or blocked by AWS WAF web ACLs” acceptance test; Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction is pertinent to “Record accepted and rejected IP flows on selected VPC network interfaces” instead; the change therefore omits the separate requirement “Record CloudFront viewer requests for forensic review.”.
Question 265
A security review for a KMS and S3 confidentiality audit identifies one priority: Prevent changes to an S3 object version for a fixed compliance retention period. Which control is the best choice?
- Configure and lock a Glacier vault access policy with Vault Lock
- Verify a cryptographic checksum or digital signature from a trusted source
- Use S3 Object Lock governance mode with controlled bypass permission
- Use S3 Object Lock in compliance mode for the required retention
Explanation
Correct Answer
D:Compliance-mode retention cannot be shortened or removed by ordinary administrators while the retention period is active; this is the direct solution to the requirement to prevent changes to an S3 object version for a fixed compliance retention period in a KMS and S3 confidentiality audit.
Incorrect Answers
A:Glacier Vault Lock can make vault policy controls immutable after the lock process is finalized; this addresses the requirement to protect a legacy S3 Glacier vault archive against retention-policy alteration, not the requirement to prevent changes to an S3 object version for a fixed compliance retention period, which is needed in a KMS and S3 confidentiality audit.
B:Hashes and verified signatures detect changed bytes; they do not themselves encrypt the file's contents; its purpose is the requirement to detect tampering of a downloaded file without requiring confidentiality, but the acceptance criterion in a KMS and S3 confidentiality audit is the requirement to prevent changes to an S3 object version for a fixed compliance retention period.
C:Governance-mode protection supports narrowly authorized bypass, unlike stricter compliance-mode retention; this would help with the requirement to allow authorized governance operators to override certain S3 retention locks, leaving the requirement to prevent changes to an S3 object version for a fixed compliance retention period unresolved in a KMS and S3 confidentiality audit.
Question 266
A review board evaluating the permissions and authorization review rejects fixes that cover just one requirement. The requirements are: An IAM role has broad permissions but a permissions boundary limits it; and An identity has no applicable allow for an AWS operation. Which configuration addresses both?
- Evaluate the intersection of identity policy permissions and the role's boundary; and pass a restrictive STS session policy when assuming the role
- Evaluate the intersection of identity policy permissions and the role's boundary; and add a narrowly scoped explicit allow where the policy model requires it
- Pass a restrictive STS session policy when assuming the role; and remove or narrow the applicable explicit deny only after validating policy intent
- Remove or narrow the applicable explicit deny only after validating policy intent; and add a narrowly scoped explicit allow where the policy model requires it
Explanation
Correct Answer
B:For “An IAM role has broad permissions but a permissions boundary limits it,” the governing behavior is: A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges; for the separate check “An identity has no applicable allow for an AWS operation,” it is: IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “An IAM role has broad permissions but a permissions boundary limits it” because A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges; the second part addresses a different issue (“A role session should have fewer privileges than its parent role policy”) because session policies further limit the temporary session's effective permissions instead of expanding the base role; it does not fulfill the “An identity has no applicable allow for an AWS operation” test.
C:This combination targets different outcomes: Session policies further limit the temporary session's effective permissions instead of expanding the base role helps with “A role session should have fewer privileges than its parent role policy”; IAM explicit deny takes precedence over allows from other applicable permission policies for the same request helps with “An identity has an IAM allow but a matching explicit deny is also present”; neither implements the required “An IAM role has broad permissions but a permissions boundary limits it” and “An identity has no applicable allow for an AWS operation” outcomes together.
D:Only the second requirement is covered: IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized supports “An identity has no applicable allow for an AWS operation”; by contrast, IAM explicit deny takes precedence over allows from other applicable permission policies for the same request concerns “An identity has an IAM allow but a matching explicit deny is also present,” leaving “An IAM role has broad permissions but a permissions boundary limits it” unresolved.
Question 267
In a VPC connectivity and segmentation rollout, engineers must cover two different requirements: Allow egress to S3 without crossing the public internet through NAT. In addition, Allow only an application tier's security group to connect to database port 5432. Which option implements both?
- Use a stateful VPC security group; and configure ordered subnet network ACL rules with an explicit deny
- Configure ordered subnet network ACL rules with an explicit deny; and reference the application security group in the database security group's inbound rule
- Create an S3 gateway VPC endpoint and update applicable route tables; and use a stateful VPC security group
- Create an S3 gateway VPC endpoint and update applicable route tables; and reference the application security group in the database security group's inbound rule
Explanation
Correct Answer
D:This pairing handles the first requirement (“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; it handles the second (“Allow only an application tier's security group to connect to database port 5432”) because referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses; both acceptance criteria are therefore addressed.
Incorrect Answers
A: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”; Network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary supports “Deny a specific unwanted subnet CIDR while allowing other traffic”; this does not resolve the stated “Allow egress to S3 without crossing the public internet through NAT” and “Allow only an application tier's security group to connect to database port 5432” findings.
B:This solves the second problem (“Allow only an application tier's security group to connect to database port 5432”): Referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses; however, the first action addresses “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; it does not satisfy “Allow egress to S3 without crossing the public internet through NAT.”.
C:One action is correctly chosen for “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; 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 only an application tier's security group to connect to database port 5432,” remains outstanding.
Question 268
An implementation in the managed threat detection rollout must solve two separate problems, not merely strengthen one safeguard: Search a month of archived CloudTrail JSON records for calls from an IP address; Identify a change in user behavior from an unusual sequence of AWS API calls. Which change meets the full request?
- Verify its namespace, metric dimensions, period, and alarm threshold; and create a Security Hub custom insight grouped by workflow status and severity
- Create a Security Hub custom insight grouped by workflow status and severity; and inspect GuardDuty anomaly findings with relevant CloudTrail events
- Query S3-delivered records with Athena using a suitable table schema; and verify its namespace, metric dimensions, period, and alarm threshold
- Query S3-delivered records with Athena using a suitable table schema; and inspect GuardDuty anomaly findings with relevant CloudTrail events
Explanation
Correct Answer
D:This pairing handles the first requirement (“Search a month of archived CloudTrail JSON records for calls from an IP address”) because athena performs SQL queries over stored log objects without requiring ingestion of the entire archive into a running database; it handles the second (“Identify a change in user behavior from an unusual sequence of AWS API calls”) because threat findings provide an anomaly lead, while CloudTrail records show the specific API actor and sequence for verification; both acceptance criteria are therefore addressed.
Incorrect Answers
A:Both mechanisms have legitimate uses, but for other requirements: CloudWatch alarms evaluate a particular metric time series; incorrect dimensions or period selection can make the intended events invisible supports “Find why a custom CloudWatch alarm never triggered during an incident”; Insights filter and aggregate standardized findings for prioritization; they do not replace detector collection supports “Identify security findings that remain unresolved despite repeated alerts”; this does not resolve the stated “Search a month of archived CloudTrail JSON records for calls from an IP address” and “Identify a change in user behavior from an unusual sequence of AWS API calls” findings.
B:This solves the second problem (“Identify a change in user behavior from an unusual sequence of AWS API calls”): Threat findings provide an anomaly lead, while CloudTrail records show the specific API actor and sequence for verification; however, the first action addresses “Identify security findings that remain unresolved despite repeated alerts”: Insights filter and aggregate standardized findings for prioritization; they do not replace detector collection; it does not satisfy “Search a month of archived CloudTrail JSON records for calls from an IP address.”.
C:One action is correctly chosen for “Search a month of archived CloudTrail JSON records for calls from an IP address”: Athena performs SQL queries over stored log objects without requiring ingestion of the entire archive into a running database; the companion action relates to “Find why a custom CloudWatch alarm never triggered during an incident”: CloudWatch alarms evaluate a particular metric time series; incorrect dimensions or period selection can make the intended events invisible; the other requested outcome, “Identify a change in user behavior from an unusual sequence of AWS API calls,” remains outstanding.
Question 269
For a landing-zone identity baseline, engineers have been assigned this security outcome: Keep newly created accounts enrolled in core security services. What implementation best fits?
- Apply a carefully scoped SCP with aws:RequestedRegion conditions
- Enable supported MFA and secure root account recovery information
- Use organization integration and auto-enable where supported for delegated security administration
- Enforce controls through management-account IAM and operational separation
- Deny relevant Organizations leave-organization operations via member-account SCP controls
Explanation
Correct Answer
C:Service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment; that AWS behavior meets the requirement to keep newly created accounts enrolled in core security services, the decisive objective for a landing-zone identity baseline.
Incorrect Answers
A:Organizations guardrails can enforce Region restrictions, with explicit consideration for global endpoints and service exceptions; its scope is the requirement to prevent nonapproved Regions from use by ordinary member-account identities, rather than the requirement to keep newly created accounts enrolled in core security services for a landing-zone identity baseline.
B:Root credentials deserve strong protection because root possesses broad account authority and should not be used routinely; this addresses the requirement to protect each AWS account root user from password-only compromise, not the requirement to keep newly created accounts enrolled in core security services, which is needed in a landing-zone identity baseline.
D:SCPs do not restrict principals within the management account, so management governance needs separate mechanisms; the important distinction in a landing-zone identity baseline is that this supports the requirement to avoid relying on SCPs to restrict principals in the Organizations management account instead of the requirement to keep newly created accounts enrolled in core security services.
E:SCPs can block selected member principal actions even when their IAM identity policies would otherwise permit them; the important distinction in a landing-zone identity baseline is that this supports the requirement to prevent developers from leaving the organization by invoking account removal actions instead of the requirement to keep newly created accounts enrolled in core security services.
Question 270
The security event analytics project has two control objectives. Requirement one: Search raw CloudWatch log messages for failed authentication patterns across streams. Requirement two: Join S3 archived CloudTrail records with a reference table of suspect IPs. Which design passes both checks?
- Inspect CloudTrail UpdateAssumeRolePolicy records and request context; and query the log objects in Athena with an appropriate external table
- Configure Security Hub insights over normalized security findings; and inspect CloudTrail UpdateAssumeRolePolicy records and request context
- Run a CloudWatch Logs Insights query selecting and filtering relevant fields; and query the log objects in Athena with an appropriate external table
- Run a CloudWatch Logs Insights query selecting and filtering relevant fields; and configure Security Hub insights over normalized security findings
Explanation
Correct Answer
C:The first control addresses the check “Search raw CloudWatch log messages for failed authentication patterns across streams”: Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first; the other addresses “Join S3 archived CloudTrail records with a reference table of suspect IPs”: Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; these two mechanisms cover the complete security event analytics project.
Incorrect Answers
A:Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; this fulfills the second objective (“Join S3 archived CloudTrail records with a reference table of suspect IPs”); the other action is intended for “Determine which caller changed an IAM trust policy”: CloudTrail management events expose who invoked role trust changes and which policy update was submitted; it does not meet the requested “Search raw CloudWatch log messages for failed authentication patterns across streams” check.
B:The first action belongs to “Summarize findings by account, severity, and workflow state” because Security Hub insights aggregate finding properties rather than querying raw VPC packet records; the second belongs to “Determine which caller changed an IAM trust policy” because CloudTrail management events expose who invoked role trust changes and which policy update was submitted; these are not the required checks, “Search raw CloudWatch log messages for failed authentication patterns across streams” and “Join S3 archived CloudTrail records with a reference table of suspect IPs.”.
D:Logs Insights can parse and aggregate stored log events for ad hoc investigation without writing a permanent metric filter first; this is relevant to the first objective (“Search raw CloudWatch log messages for failed authentication patterns across streams”); however, the other action is meant for “Summarize findings by account, severity, and workflow state”: Security Hub insights aggregate finding properties rather than querying raw VPC packet records; it leaves the required “Join S3 archived CloudTrail records with a reference table of suspect IPs” behavior unimplemented.