Question 970

For a security log analytics investigation, engineers have been assigned this security outcome: Investigate a DNS-based exfiltration indicator by queried domain. What implementation best fits?

  1. Create a metric filter from the log pattern and alarm on its resulting metric
  2. Filter VPC Flow Logs by REJECT entries and source/destination details
  3. Define a compatible schema and query the S3 archive with Athena
  4. Analyze Route 53 Resolver query logs for suspicious domain patterns

Explanation

Correct Answer

D:

Resolver logs record query names and associated context, unlike VPC Flow Logs which do not supply full domain names; this behavior fulfills the requirement to investigate a DNS-based exfiltration indicator by queried domain during a security log analytics investigation.

Incorrect Answers

A:

For the different objective “Reduce repeated manual searches for a frequent CloudWatch log anomaly,” metric filters convert qualifying records to numeric series for continuous alerting after the pattern is understood; the scenario instead requires “Investigate a DNS-based exfiltration indicator by queried domain,” which is a separate security mechanism.

B:

Flow metadata includes action and addresses for supported traffic, supporting triage of network policy outcomes; the important distinction in a security log analytics investigation is that this supports the requirement to identify a denied subnet connection from recorded network-flow dispositions instead of the requirement to investigate a DNS-based exfiltration indicator by queried domain.

C:

Structured SQL analysis depends on matching the stored JSON layout; no console event-history filter will parse arbitrary archived app logs; its purpose is the requirement to analyze archived JSON logs with predictable parsing rather than manual grep, but the acceptance criterion in a security log analytics investigation is the requirement to investigate a DNS-based exfiltration indicator by queried domain.

Question 971

For a private network transport assessment, engineers have been assigned this security outcome: Serve HTTPS API Gateway custom-domain traffic with managed certificates. What implementation best fits?

  1. Associate an ACM certificate with the supported API Gateway custom domain
  2. Set an HTTPS-only or redirect-to-HTTPS CloudFront viewer protocol policy
  3. Use AWS Site-to-Site VPN with IPsec and resilient tunnel configuration
  4. Use Systems Manager Session Manager with secure endpoints and authorized session roles
  5. Enforce the supported RDS TLS requirement and install trusted CA certificates on clients

Explanation

Correct Answer

A:

The custom domain's TLS certificate enables verified HTTPS client connections; authorizers and resource policies remain separate access controls; this is the direct solution to the requirement to serve HTTPS API Gateway custom-domain traffic with managed certificates in 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 “Serve HTTPS API Gateway custom-domain traffic with managed certificates,” which is a separate security mechanism.

C:

IPsec provides encryption and authentication for the supported gateway-to-gateway path over the selected underlying connectivity; this would help with the requirement to connect a corporate network to AWS using encrypted tunnels, leaving the requirement to serve HTTPS API Gateway custom-domain traffic with managed certificates unresolved in a private network transport assessment.

D:

Session Manager provides an audited management channel without relying on a publicly reachable SSH service; this addresses the requirement to avoid opening inbound SSH ports for remote EC2 administration, not the requirement to serve HTTPS API Gateway custom-domain traffic with managed certificates, which is needed in a private network transport assessment.

E:

Database encryption in transit requires an authenticated TLS connection and may need engine-specific configuration; the important distinction in a private network transport assessment is that this supports the requirement to require database clients to connect with encrypted PostgreSQL or MySQL sessions instead of the requirement to serve HTTPS API Gateway custom-domain traffic with managed certificates.

Question 972

During a permissions and authorization review, reviewers document two independent acceptance criteria. First: Allow a designated role in another account to read specific S3 objects. Second: Permit an application to decrypt only with one designated customer-managed KMS key. Which combined implementation satisfies both?

  1. Configure an S3 bucket policy with the intended principal and object resources; and authorize kms:Decrypt through appropriate key policy and IAM conditions
  2. Configure an S3 bucket policy with the intended principal and object resources; and enable S3 Block Public Access at the desired account or bucket level
  3. Narrow the IAM role trust policy Principal and conditions; and authorize kms:Decrypt through appropriate key policy and IAM conditions
  4. Enable S3 Block Public Access at the desired account or bucket level; and narrow the IAM role trust policy Principal and conditions

Explanation

Correct Answer

A:

The first control addresses the check “Allow a designated role in another account to read specific S3 objects”: S3 resource policies can grant specific cross-account access subject to applicable identity and guardrail evaluation; the other addresses “Permit an application to decrypt only with one designated customer-managed KMS key”: KMS requires key-policy authorization and, where applicable, identity-based permissions; a broad S3 permission does not grant cryptographic key use; these two mechanisms cover the complete permissions and authorization review.

Incorrect Answers

B:

S3 resource policies can grant specific cross-account access subject to applicable identity and guardrail evaluation; this is relevant to the first objective (“Allow a designated role in another account to read specific S3 objects”); however, the other action is meant for “Prevent a public S3 bucket policy even when administrators mistakenly add one”: Block Public Access controls can reject or restrict public-access configurations independently of normal bucket-policy permits; it leaves the required “Permit an application to decrypt only with one designated customer-managed KMS key” behavior unimplemented.

C:

KMS requires key-policy authorization and, where applicable, identity-based permissions; a broad S3 permission does not grant cryptographic key use; this fulfills the second objective (“Permit an application to decrypt only with one designated customer-managed KMS key”); the other action is intended for “Ensure a role can be assumed only by the approved external account and principal”: The trust policy governs who may assume the role; the role permission policy governs what the resulting session may do; it does not meet the requested “Allow a designated role in another account to read specific S3 objects” check.

D:

The first action belongs to “Prevent a public S3 bucket policy even when administrators mistakenly add one” because block Public Access controls can reject or restrict public-access configurations independently of normal bucket-policy permits; the second belongs to “Ensure a role can be assumed only by the approved external account and principal” because the trust policy governs who may assume the role; the role permission policy governs what the resulting session may do; these are not the required checks, “Allow a designated role in another account to read specific S3 objects” and “Permit an application to decrypt only with one designated customer-managed KMS key.”.

Question 973

An AWS team is correcting two gaps in the private network troubleshooting exercise: Explain why a private EC2 instance cannot reach the internet after adding a route; and Diagnose a VPN tunnel that is up but does not carry expected prefixes. Which proposed set of controls fixes both gaps?

  1. Check for a usable NAT gateway path and the subnet's route configuration; and verify private DNS settings and VPC DNS resolution options
  2. Check for a usable NAT gateway path and the subnet's route configuration; and check BGP or static route advertisements and route-table propagation
  3. Verify private DNS settings and VPC DNS resolution options; and model the intended source and destination with Network Access Analyzer or Reachability Analyzer
  4. Model the intended source and destination with Network Access Analyzer or Reachability Analyzer; and check BGP or static route advertisements and route-table propagation

Explanation

Correct Answer

B:

For “Explain why a private EC2 instance cannot reach the internet after adding a route,” the governing behavior is: An internet gateway route alone does not supply public source addresses to private instances that lack public IP mappings; for the separate check “Diagnose a VPN tunnel that is up but does not carry expected prefixes,” it is: Tunnel establishment and traffic routing are separate; missing prefixes can prevent forwarding despite healthy tunnel status; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

The first part is appropriate for “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; the second part addresses a different issue (“Troubleshoot private interface endpoint name resolution failures”) because interface endpoint private DNS and VPC DNS support control whether normal service names resolve to endpoint addresses; it does not fulfill the “Diagnose a VPN tunnel that is up but does not carry expected prefixes” test.

C:

This combination targets different outcomes: Interface endpoint private DNS and VPC DNS support control whether normal service names resolve to endpoint addresses helps with “Troubleshoot private interface endpoint name resolution failures”; Static network-path analysis reveals configured reachability and policy exposure without relying only on manual CIDR comparison helps with “Verify a specific route policy does not permit unwanted transitive connectivity”; neither implements the required “Explain why a private EC2 instance cannot reach the internet after adding a route” and “Diagnose a VPN tunnel that is up but does not carry expected prefixes” outcomes together.

D:

Only the second requirement is covered: Tunnel establishment and traffic routing are separate; missing prefixes can prevent forwarding despite healthy tunnel status supports “Diagnose a VPN tunnel that is up but does not carry expected prefixes”; by contrast, Static network-path analysis reveals configured reachability and policy exposure without relying only on manual CIDR comparison concerns “Verify a specific route policy does not permit unwanted transitive connectivity,” leaving “Explain why a private EC2 instance cannot reach the internet after adding a route” unresolved.

Question 974

A review board evaluating the incident response rehearsal rejects fixes that cover just one requirement. The requirements are: Send incident alerts to an on-call distribution group after matching a security finding; and Recover a known-good workload after an incident while retaining compromised images for evidence. Which configuration addresses both?

  1. Assign its execution role only the actions and resources needed by the runbook; and deactivate the affected access key and replace it through a controlled process
  2. Deactivate the affected access key and replace it through a controlled process; and launch replacement capacity from a verified hardened AMI
  3. Route the finding event through EventBridge to an SNS topic; and assign its execution role only the actions and resources needed by the runbook
  4. Route the finding event through EventBridge to an SNS topic; and launch replacement capacity from a verified hardened AMI

Explanation

Correct Answer

D:

For “Send incident alerts to an on-call distribution group after matching a security finding,” the governing behavior is: SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention; for the separate check “Recover a known-good workload after an incident while retaining compromised images for evidence,” it is: Rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

This combination targets different outcomes: Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused helps with “Prevent a response Lambda from having blanket administrator privileges”; An inactive access key cannot authenticate future signed API requests, allowing responders to eliminate the exposed credential while tracing historical use helps with “Stop further use of a disclosed IAM user's long-term API key”; neither implements the required “Send incident alerts to an on-call distribution group after matching a security finding” and “Recover a known-good workload after an incident while retaining compromised images for evidence” outcomes together.

B:

Only the second requirement is covered: Rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated supports “Recover a known-good workload after an incident while retaining compromised images for evidence”; by contrast, An inactive access key cannot authenticate future signed API requests, allowing responders to eliminate the exposed credential while tracing historical use concerns “Stop further use of a disclosed IAM user's long-term API key,” leaving “Send incident alerts to an on-call distribution group after matching a security finding” unresolved.

C:

The first part is appropriate for “Send incident alerts to an on-call distribution group after matching a security finding” because SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention; the second part addresses a different issue (“Prevent a response Lambda from having blanket administrator privileges”) because Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused; it does not fulfill the “Recover a known-good workload after an incident while retaining compromised images for evidence” test.

Question 975

For a log storage and retention architecture, engineers have been assigned this security outcome: Keep CloudWatch Logs data for a mandated finite retention interval. What implementation best fits?

  1. Set each relevant log group's retention policy explicitly
  2. Apply S3 Block Public Access and restrictive bucket policy conditions
  3. Enable AWS Config recording and history delivery
  4. Configure the required CloudTrail service-principal bucket policy permissions

Explanation

Correct Answer

A:

Log retention settings govern when CloudWatch deletes aged events; the default can retain events indefinitely unless changed; that AWS behavior meets the requirement to keep CloudWatch Logs data for a mandated finite retention interval, the decisive objective for a log storage and retention architecture.

Incorrect Answers

B:

Blocking public access and limiting principals protects delivered log objects independently from the logging service configuration; its purpose is the requirement to keep a central log bucket inaccessible to public principals, but the acceptance criterion in a log storage and retention architecture is the requirement to keep CloudWatch Logs data for a mandated finite retention interval.

C:

Config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing; this would help with the requirement to observe configuration changes to security-sensitive AWS resources over time, leaving the requirement to keep CloudWatch Logs data for a mandated finite retention interval unresolved in a log storage and retention architecture.

D:

Trail delivery depends on the destination policy allowing the logging service to write to the correct bucket path; its scope is the requirement to allow CloudTrail to deliver logs into a hardened destination bucket, rather than the requirement to keep CloudWatch Logs data for a mandated finite retention interval for a log storage and retention architecture.

Question 976

For an immutable evidence protection review, engineers have been assigned this security outcome: Protect a legacy S3 Glacier vault archive against retention-policy alteration. What implementation best fits?

  1. Use S3 Object Lock in compliance mode for the required retention
  2. Configure and lock a Glacier vault access policy with Vault Lock
  3. Verify a cryptographic checksum or digital signature from a trusted source
  4. Apply AWS Backup Vault Lock with an appropriate configuration

Explanation

Correct Answer

B:

Glacier Vault Lock can make vault policy controls immutable after the lock process is finalized; for an immutable evidence protection review, this is the measure that delivers the requirement to protect a legacy S3 Glacier vault archive against retention-policy alteration.

Incorrect Answers

A:

For the different objective “Prevent changes to an S3 object version for a fixed compliance retention period,” compliance-mode retention cannot be shortened or removed by ordinary administrators while the retention period is active; the scenario instead requires “Protect a legacy S3 Glacier vault archive against retention-policy alteration,” which is a separate security mechanism.

C:

Hashes and verified signatures detect changed bytes; they do not themselves encrypt the file's contents; this addresses the requirement to detect tampering of a downloaded file without requiring confidentiality, not the requirement to protect a legacy S3 Glacier vault archive against retention-policy alteration, which is needed in an immutable evidence protection review.

D:

Vault Lock enforces retention controls on protected recovery points, adding protection against destructive backup changes; this would help with the requirement to make backups immutable for a specified period, leaving the requirement to protect a legacy S3 Glacier vault archive against retention-policy alteration unresolved in an immutable evidence protection review.

Question 977

Before closing the AWS Organizations policy program, a team must demonstrate the following: Prevent developers from leaving the organization by invoking account removal actions; plus Keep newly created accounts enrolled in core security services. Which paired change would complete the work?

  1. Deny relevant Organizations leave-organization operations via member-account SCP controls; and use organization integration and auto-enable where supported for delegated security administration
  2. Deny relevant Organizations leave-organization operations via member-account SCP controls; and enforce controls through management-account IAM and operational separation
  3. Enable supported MFA and secure root account recovery information; and use organization integration and auto-enable where supported for delegated security administration
  4. Enforce controls through management-account IAM and operational separation; and enable supported MFA and secure root account recovery information

Explanation

Correct Answer

A:

The implementation has a specific control for each objective: SCPs can block selected member principal actions even when their IAM identity policies would otherwise permit them for “Prevent developers from leaving the organization by invoking account removal actions”; Service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment for “Keep newly created accounts enrolled in core security services”; the combined option satisfies the two-part request.

Incorrect Answers

B:

The first check would be covered, since SCPs can block selected member principal actions even when their IAM identity policies would otherwise permit them; yet the second choice is associated with “Avoid relying on SCPs to restrict principals in the Organizations management account,” for which SCPs do not restrict principals within the management account, so management governance needs separate mechanisms; no corresponding control satisfies “Keep newly created accounts enrolled in core security services.”.

C:

While service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment is relevant to “Keep newly created accounts enrolled in core security services,” the other component targets “Protect each AWS account root user from password-only compromise,” where root credentials deserve strong protection because root possesses broad account authority and should not be used routinely; the first acceptance criterion (“Prevent developers from leaving the organization by invoking account removal actions”) is not met.

D:

The first proposed action addresses “Avoid relying on SCPs to restrict principals in the Organizations management account”: SCPs do not restrict principals within the management account, so management governance needs separate mechanisms; the second addresses “Protect each AWS account root user from password-only compromise”: Root credentials deserve strong protection because root possesses broad account authority and should not be used routinely; the combination does not achieve the required “Prevent developers from leaving the organization by invoking account removal actions” and “Keep newly created accounts enrolled in core security services” outcomes in this AWS Organizations policy program.

Question 978

A proposed solution for the VPC connectivity and segmentation rollout is incomplete unless it addresses both of these checks: Connect many VPCs through centralized routing without individual full meshes; and Use dedicated network connectivity without claiming it is encrypted by default. Which choice provides the necessary controls?

  1. Attach VPCs to a Transit Gateway with controlled route tables; and create an interface VPC endpoint using AWS PrivateLink
  2. Attach VPCs to a Transit Gateway with controlled route tables; and provision Direct Connect and add VPN or other encryption when confidentiality is required
  3. Create an interface VPC endpoint using AWS PrivateLink; and apply a least-privilege VPC endpoint policy
  4. Apply a least-privilege VPC endpoint policy; and provision Direct Connect and add VPN or other encryption when confidentiality is required

Explanation

Correct Answer

B:

For the first acceptance test, “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; for the second, “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 proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Transit Gateway centralizes network transit and segmentation through attachments and route-table associations and propagations supports the “Connect many VPCs through centralized routing without individual full meshes” 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 “Use dedicated network connectivity without claiming it is encrypted by default.”.

C:

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 Endpoint policies filter requests traversing the endpoint; they complement rather than replace IAM and bucket policies is about “Restrict which S3 buckets applications can reach through a gateway endpoint”; the intended “Connect many VPCs through centralized routing without individual full meshes” and “Use dedicated network connectivity without claiming it is encrypted by default” requirements remain unsatisfied.

D:

The mechanism for “Use dedicated network connectivity without claiming it is encrypted by default” is present: Direct Connect provides private connectivity capacity but does not by itself encrypt all customer traffic in transit; the additional mechanism relates to “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; nothing here completes “Connect many VPCs through centralized routing without individual full meshes.”.

Question 979

During a permissions and authorization review, reviewers document two independent acceptance criteria. First: Ensure a role can be assumed only by the approved external account and principal. Second: Allow a designated role in another account to read specific S3 objects. Which combined implementation satisfies both?

  1. Narrow the IAM role trust policy Principal and conditions; and enable S3 Block Public Access at the desired account or bucket level
  2. Narrow the IAM role trust policy Principal and conditions; and configure an S3 bucket policy with the intended principal and object resources
  3. Enable S3 Block Public Access at the desired account or bucket level; and grant the resource's specific policy-management actions for its ARN
  4. Grant the resource's specific policy-management actions for its ARN; and configure an S3 bucket policy with the intended principal and object resources

Explanation

Correct Answer

B:

The first control addresses the check “Ensure a role can be assumed only by the approved external account and principal”: The trust policy governs who may assume the role; the role permission policy governs what the resulting session may do; the other addresses “Allow a designated role in another account to read specific S3 objects”: S3 resource policies can grant specific cross-account access subject to applicable identity and guardrail evaluation; these two mechanisms cover the complete permissions and authorization review.

Incorrect Answers

A:

The trust policy governs who may assume the role; the role permission policy governs what the resulting session may do; this is relevant to the first objective (“Ensure a role can be assumed only by the approved external account and principal”); however, the other action is meant for “Prevent a public S3 bucket policy even when administrators mistakenly add one”: Block Public Access controls can reject or restrict public-access configurations independently of normal bucket-policy permits; it leaves the required “Allow a designated role in another account to read specific S3 objects” behavior unimplemented.

C:

The first action belongs to “Prevent a public S3 bucket policy even when administrators mistakenly add one” because block Public Access controls can reject or restrict public-access configurations independently of normal bucket-policy permits; the second belongs to “Delegate permissions to modify one resource's policy without granting broad IAM administration” because service-specific resource policy API rights can be scoped independently from unrelated IAM user and role management privileges; these are not the required checks, “Ensure a role can be assumed only by the approved external account and principal” and “Allow a designated role in another account to read specific S3 objects.”.

D:

S3 resource policies can grant specific cross-account access subject to applicable identity and guardrail evaluation; this fulfills the second objective (“Allow a designated role in another account to read specific S3 objects”); the other action is intended for “Delegate permissions to modify one resource's policy without granting broad IAM administration”: Service-specific resource policy API rights can be scoped independently from unrelated IAM user and role management privileges; it does not meet the requested “Ensure a role can be assumed only by the approved external account and principal” check.

Question 980

Two security control owners share a central log collection migration. One is responsible for this outcome: Record AWS management API activity in every Region into protected storage. The other needs: Confirm that delivered CloudTrail log objects have not been altered. Which implementation covers both?

  1. Configure a multi-Region CloudTrail trail with an S3 destination; and enable CloudTrail log file integrity validation and verify digest files
  2. Configure a multi-Region CloudTrail trail with an S3 destination; and create a subscription filter to an authorized Kinesis delivery destination
  3. Enable CloudTrail S3 data event logging for the selected object resources; and enable CloudTrail log file integrity validation and verify digest files
  4. 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

A:

Two different security outcomes are required in this central log collection migration; A multi-Region trail records supported management events across current and newly added Regions in the account supports “Record AWS management API activity in every Region into protected storage,” while Signed digest chains allow validation of log-file integrity after delivery; enabling the feature alone is not equivalent to performing verification supports “Confirm that delivered CloudTrail log objects have not been altered”; neither check is assumed to follow from the other.

Incorrect Answers

B:

This option is only partly effective: A multi-Region trail records supported management events across current and newly added Regions in the account supports “Record AWS management API activity in every Region into protected storage”; but CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool supports “Stream application log events from CloudWatch Logs toward an external SIEM,” not the required “Confirm that delivered CloudTrail log objects have not been altered” outcome.

C:

The option has a useful control for “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; its other control applies to “Audit S3 GetObject operations instead of only bucket-policy changes” because object-level data-plane reads are not included in ordinary management-event history unless data events are configured; it misses the first requirement, “Record AWS management API activity in every Region into protected storage.”.

D:

CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool is pertinent to “Stream application log events from CloudWatch Logs toward an external SIEM,” and Object-level data-plane reads are not included in ordinary management-event history unless data events are configured is pertinent to “Audit S3 GetObject operations instead of only bucket-policy changes”; the requested controls for “Record AWS management API activity in every Region into protected storage” and “Confirm that delivered CloudTrail log objects have not been altered” are absent.

AWS Certified Security - Specialty SCS-C03 Practice Tests