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.”.
Question 521
Before closing the storage encryption control review, a team must demonstrate the following: Encrypt DynamoDB table data at rest using an approved customer-managed KMS key; plus Encrypt new EC2 EBS volumes by default in an account and Region. Which paired change would complete the work?
- Select the customer-managed AWS KMS key for DynamoDB server-side encryption; and enable EBS encryption by default with the approved KMS key
- Select the customer-managed AWS KMS key for DynamoDB server-side encryption; and configure SQS server-side encryption with a suitable KMS key
- Snapshot it, copy the snapshot with encryption, and create a replacement encrypted volume; and enable EBS encryption by default with the approved KMS key
- Configure SQS server-side encryption with a suitable KMS key; and snapshot it, copy the snapshot with encryption, and create a replacement encrypted volume
Explanation
Correct Answer
A:The implementation has a specific control for each objective: DynamoDB integrates encryption at rest with KMS; using a customer-managed key adds customer-controlled key policy and lifecycle considerations for “Encrypt DynamoDB table data at rest using an approved customer-managed KMS key”; EBS account settings make newly created volumes and snapshots use encryption settings without individually configuring every launch path for “Encrypt new EC2 EBS volumes by default in an account and Region”; the combined option satisfies the two-part request.
Incorrect Answers
B:The first check would be covered, since dynamoDB integrates encryption at rest with KMS; using a customer-managed key adds customer-controlled key policy and lifecycle considerations; yet the second choice is associated with “Encrypt application messages stored in an SQS queue,” for which queue-side encryption protects message bodies at rest while application authorization still uses SQS IAM and resource policies; no corresponding control satisfies “Encrypt new EC2 EBS volumes by default in an account and Region.”.
C:While EBS account settings make newly created volumes and snapshots use encryption settings without individually configuring every launch path is relevant to “Encrypt new EC2 EBS volumes by default in an account and Region,” the other component targets “Migrate an unencrypted EBS volume to encrypted storage,” where EBS volume encryption is established on creation; an encrypted snapshot copy enables a controlled migration of existing data; the first acceptance criterion (“Encrypt DynamoDB table data at rest using an approved customer-managed KMS key”) is not met.
D:The first proposed action addresses “Encrypt application messages stored in an SQS queue”: Queue-side encryption protects message bodies at rest while application authorization still uses SQS IAM and resource policies; the second addresses “Migrate an unencrypted EBS volume to encrypted storage”: EBS volume encryption is established on creation; an encrypted snapshot copy enables a controlled migration of existing data; the combination does not achieve the required “Encrypt DynamoDB table data at rest using an approved customer-managed KMS key” and “Encrypt new EC2 EBS volumes by default in an account and Region” outcomes in this storage encryption control review.
Question 522
A security review for an STS federation investigation identifies one priority: Avoid storing static access keys in an EC2 application. Which control is the best choice?
- Deactivate the compromised key in IAM and replace it securely
- Use an IAM role attached through an EC2 instance profile
- Provision IAM Identity Center permission sets for account assignments
- Configure a least-privilege Lambda execution role
- Analyze CloudTrail ConsoleLogin records and sign-in context
Explanation
Correct Answer
B:IMDS v2 can deliver temporary role credentials under the instance profile rather than an administrator-managed permanent key; it addresses the requirement to avoid storing static access keys in an EC2 application at the right security boundary during an STS federation investigation.
Incorrect Answers
A:Disabling the access key prevents subsequent requests signed with that key while preserving an incident record and permitting a controlled replacement; this would help with the requirement to invalidate a leaked IAM access key immediately, leaving the requirement to avoid storing static access keys in an EC2 application unresolved in an STS federation investigation.
C:Permission sets supply consistent role-based entitlements to users and groups across accounts from the central access portal; its purpose is the requirement to reduce repeated console logins to separate AWS member accounts, but the acceptance criterion in an STS federation investigation is the requirement to avoid storing static access keys in an EC2 application.
D:Lambda assumes its execution role to call AWS services; the function should not carry hardcoded access keys; its purpose is the requirement to ensure a Lambda function has temporary AWS credentials scoped to its own operation, but the acceptance criterion in an STS federation investigation is the requirement to avoid storing static access keys in an EC2 application.
E:Console authentication events help attribute sign-ins, while downstream authorization decisions require reviewing the session's policies; this addresses the requirement to determine which IAM user password was used for an unexpected console session, not the requirement to avoid storing static access keys in an EC2 application, which is needed in an STS federation investigation.
Question 523
A review board evaluating the private network troubleshooting exercise rejects fixes that cover just one requirement. The requirements are: Verify a specific route policy does not permit unwanted transitive connectivity; and Investigate why S3 endpoint traffic takes the NAT gateway path. Which configuration addresses both?
- Model the intended source and destination with Network Access Analyzer or Reachability Analyzer; and verify the gateway endpoint association with the subnet's route table
- Model the intended source and destination with Network Access Analyzer or Reachability Analyzer; and check for a usable NAT gateway path and the subnet's route configuration
- Check BGP or static route advertisements and route-table propagation; and verify the gateway endpoint association with the subnet's route table
- Check for a usable NAT gateway path and the subnet's route configuration; and check BGP or static route advertisements and route-table propagation
Explanation
Correct Answer
A:For “Verify a specific route policy does not permit unwanted transitive connectivity,” the governing behavior is: Static network-path analysis reveals configured reachability and policy exposure without relying only on manual CIDR comparison; for the separate check “Investigate why S3 endpoint traffic takes the NAT gateway path,” it is: Gateway endpoints insert routes into chosen route tables; omitted associations leave instances using other available routes; this is why the two controls belong together in the proposed change.
Incorrect Answers
B:The first part is appropriate for “Verify a specific route policy does not permit unwanted transitive connectivity” because static network-path analysis reveals configured reachability and policy exposure without relying only on manual CIDR comparison; the second part addresses a different issue (“Explain why a private EC2 instance cannot reach the internet after adding a route”) because an internet gateway route alone does not supply public source addresses to private instances that lack public IP mappings; it does not fulfill the “Investigate why S3 endpoint traffic takes the NAT gateway path” test.
C:Only the second requirement is covered: Gateway endpoints insert routes into chosen route tables; omitted associations leave instances using other available routes supports “Investigate why S3 endpoint traffic takes the NAT gateway path”; by contrast, Tunnel establishment and traffic routing are separate; missing prefixes can prevent forwarding despite healthy tunnel status concerns “Diagnose a VPN tunnel that is up but does not carry expected prefixes,” leaving “Verify a specific route policy does not permit unwanted transitive connectivity” unresolved.
D:This combination targets different outcomes: An internet gateway route alone does not supply public source addresses to private instances that lack public IP mappings helps with “Explain why a private EC2 instance cannot reach the internet after adding a route”; Tunnel establishment and traffic routing are separate; missing prefixes can prevent forwarding despite healthy tunnel status helps with “Diagnose a VPN tunnel that is up but does not carry expected prefixes”; neither implements the required “Verify a specific route policy does not permit unwanted transitive connectivity” and “Investigate why S3 endpoint traffic takes the NAT gateway path” outcomes together.
Question 524
An AWS team is correcting two gaps in the incident response rehearsal: Bring a human approval step into automated containment of a critical production database; and Ensure responders can reach a separate investigative environment if production credentials are compromised. Which proposed set of controls fixes both gaps?
- Use S3 Object Lock retention on the evidence bucket and objects; and apply a role session revocation deny to sessions issued before the cutoff
- Apply a role session revocation deny to sessions issued before the cutoff; and establish a dedicated forensic account with emergency cross-account roles
- Add a manual approval stage to a Step Functions incident-response workflow; and use S3 Object Lock retention on the evidence bucket and objects
- Add a manual approval stage to a Step Functions incident-response workflow; and establish a dedicated forensic account with emergency cross-account roles
Explanation
Correct Answer
D:For “Bring a human approval step into automated containment of a critical production database,” the governing behavior is: State machines can pause for an external decision before potentially disruptive containment steps execute; for the separate check “Ensure responders can reach a separate investigative environment if production credentials are compromised,” it is: Separating forensic tooling and artifacts from the production blast radius reduces dependence on possibly compromised accounts; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:This combination targets different outcomes: Version-level write-once retention protects retained evidence against deletion or overwriting for the selected period helps with “Prevent accidental removal of a forensic evidence object during an investigation”; Revoking role sessions introduces a time-based deny for previously issued sessions, rather than relying only on rotating unrelated long-term credentials helps with “Invalidate temporary sessions that might remain after an IAM role credential concern”; neither implements the required “Bring a human approval step into automated containment of a critical production database” and “Ensure responders can reach a separate investigative environment if production credentials are compromised” outcomes together.
B:Only the second requirement is covered: Separating forensic tooling and artifacts from the production blast radius reduces dependence on possibly compromised accounts supports “Ensure responders can reach a separate investigative environment if production credentials are compromised”; by contrast, Revoking role sessions introduces a time-based deny for previously issued sessions, rather than relying only on rotating unrelated long-term credentials concerns “Invalidate temporary sessions that might remain after an IAM role credential concern,” leaving “Bring a human approval step into automated containment of a critical production database” unresolved.
C:The first part is appropriate for “Bring a human approval step into automated containment of a critical production database” because state machines can pause for an external decision before potentially disruptive containment steps execute; the second part addresses a different issue (“Prevent accidental removal of a forensic evidence object during an investigation”) because version-level write-once retention protects retained evidence against deletion or overwriting for the selected period; it does not fulfill the “Ensure responders can reach a separate investigative environment if production credentials are compromised” test.
Question 525
The CloudWatch alerting deployment cannot pass unless both of these outcomes are demonstrated: Report a custom application's failed-login count as a CloudWatch time series; Provide application logs for real-time filtering and alarms. Which two-part plan is suitable?
- Build a CloudWatch dashboard using EC2 metrics and relevant custom or log-derived metrics; and set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
- Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately; and forward structured application events into CloudWatch Logs
- Publish a custom metric with consistent namespace and dimensions; and build a CloudWatch dashboard using EC2 metrics and relevant custom or log-derived metrics
- Publish a custom metric with consistent namespace and dimensions; and forward structured application events into CloudWatch Logs
Explanation
Correct Answer
D:Two different security outcomes are required in this CloudWatch alerting deployment; Custom metrics let alarms evaluate application-specific counters that AWS service metrics do not supply automatically supports “Report a custom application's failed-login count as a CloudWatch time series,” while Log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries supports “Provide application logs for real-time filtering and alarms”; neither check is assumed to follow from the other.
Incorrect Answers
A:Dashboards display multiple time series for correlation without themselves blocking network requests is pertinent to “Compare workload CPU spikes with suspicious outbound behavior on a single dashboard,” and Alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required is pertinent to “Escalate only sustained error rates rather than transient one-minute spikes”; the requested controls for “Report a custom application's failed-login count as a CloudWatch time series” and “Provide application logs for real-time filtering and alarms” are absent.
B:The option has a useful control for “Provide application logs for real-time filtering and alarms” because log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries; its other control applies to “Escalate only sustained error rates rather than transient one-minute spikes” because alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required; it misses the first requirement, “Report a custom application's failed-login count as a CloudWatch time series.”.
C:This option is only partly effective: Custom metrics let alarms evaluate application-specific counters that AWS service metrics do not supply automatically supports “Report a custom application's failed-login count as a CloudWatch time series”; but Dashboards display multiple time series for correlation without themselves blocking network requests supports “Compare workload CPU spikes with suspicious outbound behavior on a single dashboard,” not the required “Provide application logs for real-time filtering and alarms” outcome.
Question 526
For a private network transport assessment, engineers have been assigned this security outcome: Use an encrypted link layer on eligible dedicated Direct Connect connections. What implementation best fits?
- Configure MACsec with compatible connection settings
- Set an HTTPS-only or redirect-to-HTTPS CloudFront viewer protocol policy
- Add Site-to-Site VPN over Direct Connect where supported
- Enable the cluster's require-SSL parameter and configure clients for TLS
Explanation
Correct Answer
A:MACsec provides Layer 2 link encryption on supported Direct Connect deployments, distinct from VPN authentication and routing; that AWS behavior meets the requirement to use an encrypted link layer on eligible dedicated Direct Connect connections, the decisive objective for a private network transport assessment.
Incorrect Answers
B:For the different objective “Require HTTPS for all viewer connections through CloudFront,” the viewer policy governs client-to-edge encryption and is independent of how CloudFront contacts the origin; the scenario instead requires “Use an encrypted link layer on eligible dedicated Direct Connect connections,” which is a separate security mechanism.
C:A dedicated private circuit does not inherently guarantee application encryption, while an IPsec overlay protects the carried traffic; this addresses the requirement to encrypt traffic across Direct Connect with an end-to-end IPsec VPN overlay instead of link-layer-only protection, not the requirement to use an encrypted link layer on eligible dedicated Direct Connect connections, which is needed in a private network transport assessment.
D:A database service can enforce protected sessions with engine configuration rather than relying only on subnet isolation; this would help with the requirement to require clients to use TLS when contacting a Redshift cluster, leaving the requirement to use an encrypted link layer on eligible dedicated Direct Connect connections unresolved in a private network transport assessment.
Question 527
A security review for an AWS Config policy review identifies one priority: Run organization-level compliance checks on many accounts. Which control is the best choice?
- Use AWS Audit Manager assessments and evidence collection
- Enable Security Hub security standards and review control findings
- Configure AWS Config organization rules or conformance packs where supported
- Enable an appropriate AWS Config managed rule and compliance evaluation
Explanation
Correct Answer
C:Organization-wide configuration evaluations provide a shared control definition across participating accounts; that AWS behavior meets the requirement to run organization-level compliance checks on many accounts, the decisive objective for an AWS Config policy review.
Incorrect Answers
A:Audit Manager organizes evidence against configured control frameworks but does not itself certify legal compliance; this addresses the requirement to collect control evidence for audits from multiple AWS services, not the requirement to run organization-level compliance checks on many accounts, which is needed in an AWS Config policy review.
B:Security Hub evaluates supported control checks and consolidates findings; remediation remains an independent action; the important distinction in an AWS Config policy review is that this supports the requirement to measure consolidated security posture against security controls instead of the requirement to run organization-level compliance checks on many accounts.
D:Config rules evaluate recorded resource configurations against expected controls and report compliance states; this would help with the requirement to detect when an S3 bucket deviates from an encryption baseline, leaving the requirement to run organization-level compliance checks on many accounts unresolved in an AWS Config policy review.
Question 528
A change request in the VPC connectivity and segmentation rollout will be approved only if it delivers both outcomes: Restrict which S3 buckets applications can reach through a gateway endpoint; Connect on-premises and AWS over an IPsec tunnel across the internet. What should be included?
- Apply a least-privilege VPC endpoint policy; and configure AWS Site-to-Site VPN with suitable customer gateway settings
- Apply a least-privilege VPC endpoint policy; and create an interface VPC endpoint using AWS PrivateLink
- Attach VPCs to a Transit Gateway with controlled route tables; and configure AWS Site-to-Site VPN with suitable customer gateway settings
- Create an interface VPC endpoint using AWS PrivateLink; and attach VPCs to a Transit Gateway with controlled route tables
Explanation
Correct Answer
A:For the first acceptance test, “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; for the second, “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; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
B:Endpoint policies filter requests traversing the endpoint; they complement rather than replace IAM and bucket policies supports the “Restrict which S3 buckets applications can reach through a gateway endpoint” acceptance test; An interface endpoint creates endpoint network interfaces and supports private connections to compatible services is pertinent to “Access a supported AWS service privately through private VPC IP addresses” instead; the change therefore omits the separate requirement “Connect on-premises and AWS over an IPsec tunnel across the internet.”.
C:The mechanism for “Connect on-premises and AWS over an IPsec tunnel across the internet” is present: Site-to-Site VPN encrypts supported network traffic between gateways using IPsec tunnels over the selected transport; the additional mechanism relates to “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; nothing here completes “Restrict which S3 buckets applications can reach through a gateway endpoint.”.
D:Neither action is targeted at the two acceptance tests: An interface endpoint creates endpoint network interfaces and supports private connections to compatible services is about “Access a supported AWS service privately through private VPC IP addresses,” and Transit Gateway centralizes network transit and segmentation through attachments and route-table associations and propagations is about “Connect many VPCs through centralized routing without individual full meshes”; the intended “Restrict which S3 buckets applications can reach through a gateway endpoint” and “Connect on-premises and AWS over an IPsec tunnel across the internet” requirements remain unsatisfied.
Question 529
A security review for an AWS workload credential management review identifies one priority: A federated role fails to assume despite the user being authenticated with a corporate identity. Which control is the best choice?
- Inspect the role trust policy, provider identifier, and assertion conditions
- Federate workforce access through IAM Identity Center
- Correct the identity provider client ID and role trust audience condition
- Adjust role session duration within allowed constraints and refresh credentials
- Verify the instance profile attachment and IMDS availability
Explanation
Correct Answer
A:Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; this behavior fulfills the reported condition: a federated role fails to assume despite the user being authenticated with a corporate identity during an AWS workload credential management review.
Incorrect Answers
B:For the different objective “Give employees single sign-on to multiple AWS accounts using an existing corporate identity provider,” identity Center integrates a workforce identity source with permission sets that provision account access without creating separate long-term IAM users; the scenario instead requires “A federated role fails to assume despite the user being authenticated with a corporate identity,” which is a separate security mechanism.
C:OIDC federation relies on token claims satisfying the trust policy, including the expected audience; its purpose is the reported condition: an OIDC role assumption is denied because the token audience does not match, but the acceptance criterion in an AWS workload credential management review is the reported condition: a federated role fails to assume despite the user being authenticated with a corporate identity.
D:STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys; the important distinction in an AWS workload credential management review is that this supports the reported condition: a principal's temporary role credentials expire during a long-running process instead of the reported condition: a federated role fails to assume despite the user being authenticated with a corporate identity.
E:Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel; its purpose is the reported condition: an EC2 SDK cannot retrieve credentials even though an IAM policy grants access, but the acceptance criterion in an AWS workload credential management review is the reported condition: a federated role fails to assume despite the user being authenticated with a corporate identity.
Question 530
In a suspicious API activity review, a control owner must address the following requirement: Analyze archived JSON logs with predictable parsing rather than manual grep. Which option should be selected?
- Create a metric filter from the log pattern and alarm on its resulting metric
- Analyze Route 53 Resolver query logs for suspicious domain patterns
- Query WAF logs for the matched rule and terminating action
- Define a compatible schema and query the S3 archive with Athena
Explanation
Correct Answer
D:Structured SQL analysis depends on matching the stored JSON layout; no console event-history filter will parse arbitrary archived app logs; it addresses the requirement to analyze archived JSON logs with predictable parsing rather than manual grep at the right security boundary during a suspicious API activity review.
Incorrect Answers
A:Metric filters convert qualifying records to numeric series for continuous alerting after the pattern is understood; the important distinction in a suspicious API activity review is that this supports the requirement to reduce repeated manual searches for a frequent CloudWatch log anomaly instead of the requirement to analyze archived JSON logs with predictable parsing rather than manual grep.
B:Resolver logs record query names and associated context, unlike VPC Flow Logs which do not supply full domain names; the important distinction in a suspicious API activity review is that this supports the requirement to investigate a DNS-based exfiltration indicator by queried domain instead of the requirement to analyze archived JSON logs with predictable parsing rather than manual grep.
C:WAF logs identify web ACL evaluation outcomes and request attributes at the HTTP filtering layer; the important distinction in a suspicious API activity review is that this supports the requirement to find which WAF rule blocked a specific web request instead of the requirement to analyze archived JSON logs with predictable parsing rather than manual grep.