Question 40

An assessment of the AWS Organizations policy program has two findings. Finding one: Prevent developers from leaving the organization by invoking account removal actions. Finding two: Avoid relying on SCPs to restrict principals in the Organizations management account. Which combination remediates both?

  1. Apply a carefully scoped SCP with aws:RequestedRegion conditions; and use organization integration and auto-enable where supported for delegated security administration
  2. Use organization integration and auto-enable where supported for delegated security administration; and enforce controls through management-account IAM and operational separation
  3. Deny relevant Organizations leave-organization operations via member-account SCP controls; and apply a carefully scoped SCP with aws:RequestedRegion conditions
  4. Deny relevant Organizations leave-organization operations via member-account SCP controls; and enforce controls through management-account IAM and operational separation

Explanation

Correct Answer

D:

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”; SCPs do not restrict principals within the management account, so management governance needs separate mechanisms for “Avoid relying on SCPs to restrict principals in the Organizations management account”; the combined option satisfies the two-part request.

Incorrect Answers

A:

The first proposed action addresses “Prevent nonapproved Regions from use by ordinary member-account identities”: Organizations guardrails can enforce Region restrictions, with explicit consideration for global endpoints and service exceptions; the second addresses “Keep newly created accounts enrolled in core security services”: Service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment; the combination does not achieve the required “Prevent developers from leaving the organization by invoking account removal actions” and “Avoid relying on SCPs to restrict principals in the Organizations management account” outcomes in this AWS Organizations policy program.

B:

While SCPs do not restrict principals within the management account, so management governance needs separate mechanisms is relevant to “Avoid relying on SCPs to restrict principals in the Organizations management account,” the other component targets “Keep newly created accounts enrolled in core security services,” where service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment; the first acceptance criterion (“Prevent developers from leaving the organization by invoking account removal actions”) is not met.

C:

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 “Prevent nonapproved Regions from use by ordinary member-account identities,” for which organizations guardrails can enforce Region restrictions, with explicit consideration for global endpoints and service exceptions; no corresponding control satisfies “Avoid relying on SCPs to restrict principals in the Organizations management account.”.

Question 41

For an identity-provider integration test, engineers have been assigned this security outcome: An EC2 SDK cannot retrieve credentials even though an IAM policy grants access. What implementation best fits?

  1. Inspect the role trust policy, provider identifier, and assertion conditions
  2. Adjust role session duration within allowed constraints and refresh credentials
  3. Correct the identity provider client ID and role trust audience condition
  4. Verify the instance profile attachment and IMDS availability

Explanation

Correct Answer

D:

Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel; it addresses the reported condition: an EC2 SDK cannot retrieve credentials even though an IAM policy grants access at the right security boundary during an identity-provider integration test.

Incorrect Answers

A:

For the different objective “A federated role fails to assume despite the user being authenticated with a corporate identity,” authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; the scenario instead requires “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access,” which is a separate security mechanism.

B:

STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys; this addresses the reported condition: a principal's temporary role credentials expire during a long-running process, not the reported condition: an EC2 SDK cannot retrieve credentials even though an IAM policy grants access, which is needed in an identity-provider integration test.

C:

OIDC federation relies on token claims satisfying the trust policy, including the expected audience; this addresses the reported condition: an OIDC role assumption is denied because the token audience does not match, not the reported condition: an EC2 SDK cannot retrieve credentials even though an IAM policy grants access, which is needed in an identity-provider integration test.

Question 42

A proposed solution for the central log collection migration is incomplete unless it addresses both of these checks: Search historical CloudTrail activity with SQL without managing an analytics cluster; and Stream application log events from CloudWatch Logs toward an external SIEM. Which choice provides the necessary controls?

  1. Create or query an appropriate CloudTrail Lake event data store; and create a subscription filter to an authorized Kinesis delivery destination
  2. Create or query an appropriate CloudTrail Lake event data store; and enable CloudTrail log file integrity validation and verify digest files
  3. Configure CloudTrail advanced event selectors for required resource ARNs and event names; and create a subscription filter to an authorized Kinesis delivery destination
  4. Enable CloudTrail log file integrity validation and verify digest files; and configure CloudTrail advanced event selectors for required resource ARNs and event names

Explanation

Correct Answer

A:

For the first acceptance test, “Search historical CloudTrail activity with SQL without managing an analytics cluster,” CloudTrail Lake retains selected event types for SQL analysis subject to configured retention and ingestion choices; for the second, “Stream application log events from CloudWatch Logs toward an external SIEM,” CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

B:

CloudTrail Lake retains selected event types for SQL analysis subject to configured retention and ingestion choices supports the “Search historical CloudTrail activity with SQL without managing an analytics cluster” acceptance test; Signed digest chains allow validation of log-file integrity after delivery; enabling the feature alone is not equivalent to performing verification is pertinent to “Confirm that delivered CloudTrail log objects have not been altered” instead; the change therefore omits the separate requirement “Stream application log events from CloudWatch Logs toward an external SIEM.”.

C:

The mechanism for “Stream application log events from CloudWatch Logs toward an external SIEM” is present: CloudWatch Logs subscriptions forward matching log events continuously, unlike Logs Insights which is primarily an interactive query tool; the additional mechanism relates to “Capture a narrow subset of expensive S3 data events rather than every object read”: Advanced selectors limit the chosen high-volume events and can reduce unnecessary collection costs; nothing here completes “Search historical CloudTrail activity with SQL without managing an analytics cluster.”.

D:

Neither action is targeted at the two acceptance tests: Signed digest chains allow validation of log-file integrity after delivery; enabling the feature alone is not equivalent to performing verification is about “Confirm that delivered CloudTrail log objects have not been altered,” and Advanced selectors limit the chosen high-volume events and can reduce unnecessary collection costs is about “Capture a narrow subset of expensive S3 data events rather than every object read”; the intended “Search historical CloudTrail activity with SQL without managing an analytics cluster” and “Stream application log events from CloudWatch Logs toward an external SIEM” requirements remain unsatisfied.

Question 43

During a KMS key-access review, the security team has this work item: Issue a public TLS certificate for an eligible AWS integrated endpoint. Which AWS action is the most direct implementation?

  1. Revoke the issued certificate through the private CA process and publish revocation information
  2. Configure AWS Private CA and issue certificates through the private CA workflow
  3. Call KMS GenerateDataKey and protect the returned plaintext key in memory
  4. Use distinct KMS key policy statements for key managers and key users
  5. Request and validate an ACM public certificate

Explanation

Correct Answer

E:

ACM manages certificate issuance and renewal for supported integrations after domain-control validation; this is the direct solution to the requirement to issue a public TLS certificate for an eligible AWS integrated endpoint in a KMS key-access review.

Incorrect Answers

A:

Certificate revocation mechanisms help relying parties reject compromised certificates when clients check the issued revocation data; this addresses the requirement to revoke a certificate that should no longer be trusted in a private PKI, not the requirement to issue a public TLS certificate for an eligible AWS integrated endpoint, which is needed in a KMS key-access review.

B:

Private CA supports privately trusted X.509 issuance whose trust chain must be distributed to internal clients; this addresses the requirement to issue private TLS certificates for internal services under a controlled private hierarchy, not the requirement to issue a public TLS certificate for an eligible AWS integrated endpoint, which is needed in a KMS key-access review.

C:

The response provides a plaintext data key and encrypted key copy; the application encrypts bulk data locally and stores only the wrapped key; the important distinction in a KMS key-access review is that this supports the requirement to generate a plaintext data key for local envelope encryption by an authorized application instead of the requirement to issue a public TLS certificate for an eligible AWS integrated endpoint.

D:

Administrative actions and cryptographic actions can be delegated to separate principals, reducing unnecessary decrypt privileges; this would help with the requirement to restrict KMS key administration separately from data-key usage, leaving the requirement to issue a public TLS certificate for an eligible AWS integrated endpoint unresolved in a KMS key-access review.

Question 44

Two security control owners share a VPC connectivity and segmentation rollout. One is responsible for this outcome: Enforce uniform security-group policies across a multi-account organization. The other needs: Prevent a Lambda function in a VPC from having unnecessary internet egress. Which implementation covers both?

  1. Use VPC Network Access Analyzer with a defined access scope; and deploy AWS Network Firewall with appropriate routing through firewall endpoints
  2. Deploy AWS Network Firewall with appropriate routing through firewall endpoints; and restrict Lambda's VPC security group and egress routes
  3. Configure AWS Firewall Manager security-group policies; and use VPC Network Access Analyzer with a defined access scope
  4. Configure AWS Firewall Manager security-group policies; and restrict Lambda's VPC security group and egress routes

Explanation

Correct Answer

D:

Two different security outcomes are required in this VPC connectivity and segmentation rollout; Firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites supports “Enforce uniform security-group policies across a multi-account organization,” while VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access supports “Prevent a Lambda function in a VPC from having unnecessary internet egress”; neither check is assumed to follow from the other.

Incorrect Answers

A:

Network Access Analyzer checks configured resource paths against network access requirements rather than sampling live packets is pertinent to “Assess whether a prohibited network path is possible before deployment,” and Network Firewall provides network filtering including stateful inspection when traffic is explicitly routed through its endpoints is pertinent to “Inspect selected VPC traffic with managed stateful firewall policies”; the requested controls for “Enforce uniform security-group policies across a multi-account organization” and “Prevent a Lambda function in a VPC from having unnecessary internet egress” are absent.

B:

The option has a useful control for “Prevent a Lambda function in a VPC from having unnecessary internet egress” because VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access; its other control applies to “Inspect selected VPC traffic with managed stateful firewall policies” because network Firewall provides network filtering including stateful inspection when traffic is explicitly routed through its endpoints; it misses the first requirement, “Enforce uniform security-group policies across a multi-account organization.”.

C:

This option is only partly effective: Firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites supports “Enforce uniform security-group policies across a multi-account organization”; but Network Access Analyzer checks configured resource paths against network access requirements rather than sampling live packets supports “Assess whether a prohibited network path is possible before deployment,” not the required “Prevent a Lambda function in a VPC from having unnecessary internet egress” outcome.

Question 45

An architect is reviewing a threat-detection coverage review. The acceptance criterion reads: Investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses. Which approach satisfies it?

  1. Use Amazon Detective to pivot through related entities
  2. Enable GuardDuty threat detection for the relevant AWS accounts and Regions
  3. Run IAM Access Analyzer external-access analysis
  4. Run Amazon Macie sensitive-data discovery on selected S3 buckets

Explanation

Correct Answer

A:

Detective organizes security telemetry into related entities and investigation views, assisting root-cause analysis rather than supplying a prevention rule; it addresses the requirement to investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses at the right security boundary during a threat-detection coverage review.

Incorrect Answers

B:

For the different objective “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence,” GuardDuty analyzes supported account and workload signals to generate threat findings without requiring a custom event-correlation pipeline; the scenario instead requires “Investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses,” which is a separate security mechanism.

C:

Access Analyzer evaluates supported resource policies for access outside the configured zone of trust, highlighting unexpected sharing; this would help with the requirement to identify externally accessible resources implied by resource policies, leaving the requirement to investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses unresolved in a threat-detection coverage review.

D:

Macie discovers sensitive data in Amazon S3 and reports locations and categories that need protection or review; this would help with the requirement to find S3 objects containing regulated identifiers at scale, leaving the requirement to investigate relationships among a GuardDuty finding, IAM identities, and communicating IP addresses unresolved in a threat-detection coverage review.

Question 46

In a CloudFormation change-management process, a control owner must address the following requirement: Detect manual changes to a resource after CloudFormation deployment. Which option should be selected?

  1. Use CloudFormation change sets and an approval workflow
  2. Deploy CloudFormation StackSets with appropriate execution permissions
  3. Apply CloudFormation Hooks or supported predeployment policy checks
  4. Run CloudFormation drift detection on supported stack resources

Explanation

Correct Answer

D:

Drift detection compares actual supported resource properties with declared template expectations; this behavior fulfills the requirement to detect manual changes to a resource after CloudFormation deployment during a CloudFormation change-management process.

Incorrect Answers

A:

Change sets preview resource modifications, replacements and deletions so operators can assess consequences prior to execution; this would help with the requirement to require an explicit review before changing production infrastructure templates, leaving the requirement to detect manual changes to a resource after CloudFormation deployment unresolved in a CloudFormation change-management process.

B:

StackSets manage stack instances across accounts and Regions from a central deployment model; the important distinction in a CloudFormation change-management process is that this supports the requirement to distribute standardized infrastructure stacks to many AWS accounts and Regions instead of the requirement to detect manual changes to a resource after CloudFormation deployment.

C:

Preprovision checks can assess proposed resource configurations and fail noncompliant operations before creation; the important distinction in a CloudFormation change-management process is that this supports the requirement to prevent deployment of a CloudFormation stack that violates defined policy requirements instead of the requirement to detect manual changes to a resource after CloudFormation deployment.

Question 47

A proposed solution for the permissions and authorization review is incomplete unless it addresses both of these checks: Limit a role's access to resources carrying a matching project tag; and Require use of a designated encryption key for selected object uploads. Which choice provides the necessary controls?

  1. Implement ABAC with principal-tag and resource-tag policy conditions; and use an aws:RequestedRegion condition in an appropriate SCP
  2. Implement ABAC with principal-tag and resource-tag policy conditions; and enforce S3 request-header and key-ID conditions in a bucket policy
  3. Use an aws:RequestedRegion condition in an appropriate SCP; and apply an S3 bucket-policy condition on aws:sourceVpce
  4. Apply an S3 bucket-policy condition on aws:sourceVpce; and enforce S3 request-header and key-ID conditions in a bucket policy

Explanation

Correct Answer

B:

For the first acceptance test, “Limit a role's access to resources carrying a matching project tag,” attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project; for the second, “Require use of a designated encryption key for selected object uploads,” bucket-policy conditions can deny writes that omit or mismatch required SSE-KMS request encryption parameters; the proposed configuration implements both rather than using one control as a substitute for another.

Incorrect Answers

A:

Attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project supports the “Limit a role's access to resources carrying a matching project tag” acceptance test; A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions is pertinent to “Prevent nonapproved Regions for supported AWS API operations” instead; the change therefore omits the separate requirement “Require use of a designated encryption key for selected object uploads.”.

C:

Neither action is targeted at the two acceptance tests: A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions is about “Prevent nonapproved Regions for supported AWS API operations,” and The endpoint context key ties access to the intended private path, with careful exceptions for services that do not supply that context is about “Allow object reads only when requests use a specific VPC endpoint”; the intended “Limit a role's access to resources carrying a matching project tag” and “Require use of a designated encryption key for selected object uploads” requirements remain unsatisfied.

D:

The mechanism for “Require use of a designated encryption key for selected object uploads” is present: Bucket-policy conditions can deny writes that omit or mismatch required SSE-KMS request encryption parameters; the additional mechanism relates to “Allow object reads only when requests use a specific VPC endpoint”: The endpoint context key ties access to the intended private path, with careful exceptions for services that do not supply that context; nothing here completes “Limit a role's access to resources carrying a matching project tag.”.

Question 48

During a central log collection migration, reviewers document two independent acceptance criteria. First: Prevent attackers from deleting retained audit-log versions for a required period. Second: Allow CloudTrail to deliver logs into a hardened destination bucket. Which combined implementation satisfies both?

  1. Enable AWS Config recording and history delivery; and set each relevant log group's retention policy explicitly
  2. Set each relevant log group's retention policy explicitly; and configure the required CloudTrail service-principal bucket policy permissions
  3. Use S3 Object Lock retention with appropriate mode on versioned log objects; and enable AWS Config recording and history delivery
  4. Use S3 Object Lock retention with appropriate mode on versioned log objects; and configure the required CloudTrail service-principal bucket policy permissions

Explanation

Correct Answer

D:

The first control addresses the check “Prevent attackers from deleting retained audit-log versions for a required period”: Retention enforces per-version write-once protection; lifecycle transitions alone do not prevent early deletion; the other addresses “Allow CloudTrail to deliver logs into a hardened destination bucket”: Trail delivery depends on the destination policy allowing the logging service to write to the correct bucket path; these two mechanisms cover the complete central log collection migration.

Incorrect Answers

A:

The first action belongs to “Observe configuration changes to security-sensitive AWS resources over time” because config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing; the second belongs to “Keep CloudWatch Logs data for a mandated finite retention interval” because log retention settings govern when CloudWatch deletes aged events; the default can retain events indefinitely unless changed; these are not the required checks, “Prevent attackers from deleting retained audit-log versions for a required period” and “Allow CloudTrail to deliver logs into a hardened destination bucket.”.

B:

Trail delivery depends on the destination policy allowing the logging service to write to the correct bucket path; this fulfills the second objective (“Allow CloudTrail to deliver logs into a hardened destination bucket”); the other action is intended for “Keep CloudWatch Logs data for a mandated finite retention interval”: Log retention settings govern when CloudWatch deletes aged events; the default can retain events indefinitely unless changed; it does not meet the requested “Prevent attackers from deleting retained audit-log versions for a required period” check.

C:

Retention enforces per-version write-once protection; lifecycle transitions alone do not prevent early deletion; this is relevant to the first objective (“Prevent attackers from deleting retained audit-log versions for a required period”); however, the other action is meant for “Observe configuration changes to security-sensitive AWS resources over time”: Config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing; it leaves the required “Allow CloudTrail to deliver logs into a hardened destination bucket” behavior unimplemented.

Question 49

An AWS team is correcting two gaps in the key and certificate lifecycle review: Avoid passing a secret in plaintext through a CloudFormation template; and Track when a production secret was retrieved by an unexpected identity. Which proposed set of controls fixes both gaps?

  1. Use Systems Manager Parameter Store with a SecureString parameter when sensitive; and apply resource-scoped Secrets Manager IAM or resource policies and matching KMS access
  2. Apply resource-scoped Secrets Manager IAM or resource policies and matching KMS access; and review Secrets Manager API events in CloudTrail
  3. Use a supported dynamic reference to Secrets Manager or Parameter Store; and use Systems Manager Parameter Store with a SecureString parameter when sensitive
  4. Use a supported dynamic reference to Secrets Manager or Parameter Store; and review Secrets Manager API events in CloudTrail

Explanation

Correct Answer

D:

For “Avoid passing a secret in plaintext through a CloudFormation template,” the governing behavior is: Dynamic references allow CloudFormation to resolve supported secret values without embedding them in the plaintext template source; for the separate check “Track when a production secret was retrieved by an unexpected identity,” it is: CloudTrail records supported secret-management API calls and caller identities, while secret values themselves should not be logged; this is why the two controls belong together in the proposed change.

Incorrect Answers

A:

This combination targets different outcomes: Parameter Store organizes configuration parameters and can encrypt selected values, but does not reproduce every Secrets Manager rotation integration helps with “Store a nonrotating application configuration value with optional encryption”; Retrieval authorization and KMS decryption permissions both matter for sensitive secret values helps with “Prevent application teams from seeing a secret outside their environment”; neither implements the required “Avoid passing a secret in plaintext through a CloudFormation template” and “Track when a production secret was retrieved by an unexpected identity” outcomes together.

B:

Only the second requirement is covered: CloudTrail records supported secret-management API calls and caller identities, while secret values themselves should not be logged supports “Track when a production secret was retrieved by an unexpected identity”; by contrast, Retrieval authorization and KMS decryption permissions both matter for sensitive secret values concerns “Prevent application teams from seeing a secret outside their environment,” leaving “Avoid passing a secret in plaintext through a CloudFormation template” unresolved.

C:

The first part is appropriate for “Avoid passing a secret in plaintext through a CloudFormation template” because dynamic references allow CloudFormation to resolve supported secret values without embedding them in the plaintext template source; the second part addresses a different issue (“Store a nonrotating application configuration value with optional encryption”) because parameter Store organizes configuration parameters and can encrypt selected values, but does not reproduce every Secrets Manager rotation integration; it does not fulfill the “Track when a production secret was retrieved by an unexpected identity” test.

Question 50

An architect is reviewing a VPC reachability troubleshooting session. The acceptance criterion reads: Diagnose a rejected connection using VPC flow records. Which approach satisfies it?

  1. Inspect WAF request logs alongside ALB access logs
  2. Examine routes, network ACLs, host firewalls, and application listeners
  3. Review ENI-scoped Flow Log action and address/port fields
  4. Run VPC Reachability Analyzer from source to destination

Explanation

Correct Answer

C:

Flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; it addresses the requirement to diagnose a rejected connection using VPC flow records at the right security boundary during a VPC reachability troubleshooting session.

Incorrect Answers

A:

WAF logs show web ACL dispositions while ALB logs characterize requests reaching the load balancer; its purpose is the requirement to determine whether a WAF rule or an origin error caused an HTTP rejection, but the acceptance criterion in a VPC reachability troubleshooting session is the requirement to diagnose a rejected connection using VPC flow records.

B:

Security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; its scope is the requirement to diagnose why a security-group rule permits ingress but the app still cannot connect, rather than the requirement to diagnose a rejected connection using VPC flow records for a VPC reachability troubleshooting session.

D:

Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; this addresses the requirement to find which configured VPC component blocks a path between EC2 instances, not the requirement to diagnose a rejected connection using VPC flow records, which is needed in a VPC reachability troubleshooting session.

AWS Certified Security - Specialty SCS-C03 Practice Tests