Question 150
The VPC connectivity and segmentation rollout has two control objectives. Requirement one: Encrypt suitable Direct Connect links at Layer 2 where supported. Requirement two: Provide separate routing policy for isolated environments sharing Transit Gateway. Which design passes both checks?
- Configure MACsec on supported dedicated Direct Connect connections; and use separate Transit Gateway route tables and association rules
- Configure MACsec on supported dedicated Direct Connect connections; and configure redundant Site-to-Site VPN connections or tunnels with tested failover
- Remove or withhold the prohibited route in the Transit Gateway route table; and use separate Transit Gateway route tables and association rules
- Configure redundant Site-to-Site VPN connections or tunnels with tested failover; and remove or withhold the prohibited route in the Transit Gateway route table
Explanation
Correct Answer
A:The first control addresses the check “Encrypt suitable Direct Connect links at Layer 2 where supported”: MACsec protects supported physical Direct Connect link traffic at Layer 2 and is distinct from IPsec at the VPN layer; the other addresses “Provide separate routing policy for isolated environments sharing Transit Gateway”: Transit Gateway routing isolation can prevent attachments from learning or reaching destinations outside their intended segment; these two mechanisms cover the complete VPC connectivity and segmentation rollout.
Incorrect Answers
B:MACsec protects supported physical Direct Connect link traffic at Layer 2 and is distinct from IPsec at the VPN layer; this is relevant to the first objective (“Encrypt suitable Direct Connect links at Layer 2 where supported”); however, the other action is meant for “Reduce single-point failure for on-premises encrypted connectivity”: Multiple independent tunnels and routing failover improve resilience when one gateway path or tunnel is unavailable; it leaves the required “Provide separate routing policy for isolated environments sharing Transit Gateway” behavior unimplemented.
C:Transit Gateway routing isolation can prevent attachments from learning or reaching destinations outside their intended segment; this fulfills the second objective (“Provide separate routing policy for isolated environments sharing Transit Gateway”); the other action is intended for “Prevent a development VPC from reaching the production CIDR through a central hub”: Traffic isolation needs effective route-table segmentation; attachment to the same transit hub does not imply unrestricted transit; it does not meet the requested “Encrypt suitable Direct Connect links at Layer 2 where supported” check.
D:The first action belongs to “Reduce single-point failure for on-premises encrypted connectivity” because multiple independent tunnels and routing failover improve resilience when one gateway path or tunnel is unavailable; the second belongs to “Prevent a development VPC from reaching the production CIDR through a central hub” because traffic isolation needs effective route-table segmentation; attachment to the same transit hub does not imply unrestricted transit; these are not the required checks, “Encrypt suitable Direct Connect links at Layer 2 where supported” and “Provide separate routing policy for isolated environments sharing Transit Gateway.”.
Question 151
During a central log collection migration, reviewers document two independent acceptance criteria. First: Preserve load balancer request traces for application incident analysis. Second: Record accepted and rejected IP flows on selected VPC network interfaces. Which combined implementation satisfies both?
- Enable CloudFront access logging for the distribution; and enable VPC Flow Logs at the required VPC, subnet, or ENI scope
- Enable WAF logging to a supported delivery destination; and enable CloudFront access logging for the distribution
- Enable Application Load Balancer access logs to a permitted S3 bucket; and enable VPC Flow Logs at the required VPC, subnet, or ENI scope
- Enable Application Load Balancer access logs to a permitted S3 bucket; and enable WAF logging to a supported delivery destination
Explanation
Correct Answer
C:The first control addresses the check “Preserve load balancer request traces for application incident analysis”: ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead; the other addresses “Record accepted and rejected IP flows on selected VPC network interfaces”: Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction; these two mechanisms cover the complete central log collection migration.
Incorrect Answers
A:Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction; this fulfills the second objective (“Record accepted and rejected IP flows on selected VPC network interfaces”); the other action is intended for “Record CloudFront viewer requests for forensic review”: Distribution access logs describe viewer requests at the edge; they differ from control-plane change records; it does not meet the requested “Preserve load balancer request traces for application incident analysis” check.
B:The first action belongs to “Record requests allowed or blocked by AWS WAF web ACLs” because WAF log records include matched rule and request metadata for supported web requests passing through the associated ACL; the second belongs to “Record CloudFront viewer requests for forensic review” because distribution access logs describe viewer requests at the edge; they differ from control-plane change records; these are not the required checks, “Preserve load balancer request traces for application incident analysis” and “Record accepted and rejected IP flows on selected VPC network interfaces.”.
D:ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead; this is relevant to the first objective (“Preserve load balancer request traces for application incident analysis”); however, the other action is meant for “Record requests allowed or blocked by AWS WAF web ACLs”: WAF log records include matched rule and request metadata for supported web requests passing through the associated ACL; it leaves the required “Record accepted and rejected IP flows on selected VPC network interfaces” behavior unimplemented.
Question 152
An AWS team is correcting two gaps in the compute workload hardening effort: Ensure a workload can retrieve a secret only through its approved role; and Detect drift from a golden AMI's approved operating-system configuration. Which proposed set of controls fixes both gaps?
- Combine a resource-scoped workload role with a restrictive secret access policy; and use Systems Manager State Manager associations and compliance reporting
- Combine a resource-scoped workload role with a restrictive secret access policy; and use Inspector findings to prioritize Patch Manager remediation
- Configure the operating system's host firewall in addition to VPC controls; and use Systems Manager State Manager associations and compliance reporting
- Use Inspector findings to prioritize Patch Manager remediation; and configure the operating system's host firewall in addition to VPC controls
Explanation
Correct Answer
A:For “Ensure a workload can retrieve a secret only through its approved role,” the governing behavior is: Secret access is constrained by IAM and applicable resource/KMS permissions, limiting which workload sessions may retrieve credentials; for the separate check “Detect drift from a golden AMI's approved operating-system configuration,” it is: State Manager helps maintain and report desired managed-node configurations rather than rebuilding every instance on each check; this is why the two controls belong together in the proposed change.
Incorrect Answers
B:The first part is appropriate for “Ensure a workload can retrieve a secret only through its approved role” because secret access is constrained by IAM and applicable resource/KMS permissions, limiting which workload sessions may retrieve credentials; the second part addresses a different issue (“Identify a vulnerable package but avoid treating a scanner as a patch engine”) because inspector supplies vulnerability evidence; Systems Manager patch workflows perform the operating-system update actions; it does not fulfill the “Detect drift from a golden AMI's approved operating-system configuration” test.
C:Only the second requirement is covered: State Manager helps maintain and report desired managed-node configurations rather than rebuilding every instance on each check supports “Detect drift from a golden AMI's approved operating-system configuration”; by contrast, A host firewall applies controls within the instance OS and complements security groups and subnet network ACLs concerns “Block host-level outbound traffic that is not needed for a Linux workload,” leaving “Ensure a workload can retrieve a secret only through its approved role” unresolved.
D:This combination targets different outcomes: Inspector supplies vulnerability evidence; Systems Manager patch workflows perform the operating-system update actions helps with “Identify a vulnerable package but avoid treating a scanner as a patch engine”; A host firewall applies controls within the instance OS and complements security groups and subnet network ACLs helps with “Block host-level outbound traffic that is not needed for a Linux workload”; neither implements the required “Ensure a workload can retrieve a secret only through its approved role” and “Detect drift from a golden AMI's approved operating-system configuration” outcomes together.
Question 153
The traffic encryption assessment cannot pass unless both of these outcomes are demonstrated: Serve HTTPS API Gateway custom-domain traffic with managed certificates; Require database clients to connect with encrypted PostgreSQL or MySQL sessions. Which two-part plan is suitable?
- Associate an ACM certificate with the supported API Gateway custom domain; and add a bucket policy deny conditioned on aws:SecureTransport being false
- Associate an ACM certificate with the supported API Gateway custom domain; and enforce the supported RDS TLS requirement and install trusted CA certificates on clients
- Add a bucket policy deny conditioned on aws:SecureTransport being false; and use Systems Manager Session Manager with secure endpoints and authorized session roles
- Use Systems Manager Session Manager with secure endpoints and authorized session roles; and enforce the supported RDS TLS requirement and install trusted CA certificates on clients
Explanation
Correct Answer
B:Two different security outcomes are required in this traffic encryption assessment; the custom domain's TLS certificate enables verified HTTPS client connections; authorizers and resource policies remain separate access controls supports “Serve HTTPS API Gateway custom-domain traffic with managed certificates,” while Database encryption in transit requires an authenticated TLS connection and may need engine-specific configuration supports “Require database clients to connect with encrypted PostgreSQL or MySQL sessions”; neither check is assumed to follow from the other.
Incorrect Answers
A:This option is only partly effective: The custom domain's TLS certificate enables verified HTTPS client connections; authorizers and resource policies remain separate access controls supports “Serve HTTPS API Gateway custom-domain traffic with managed certificates”; but Transport security can be enforced at the S3 resource policy layer independently of whether objects are encrypted at rest supports “Require client connections to an S3 bucket to use TLS,” not the required “Require database clients to connect with encrypted PostgreSQL or MySQL sessions” outcome.
C:Transport security can be enforced at the S3 resource policy layer independently of whether objects are encrypted at rest is pertinent to “Require client connections to an S3 bucket to use TLS,” and Session Manager provides an audited management channel without relying on a publicly reachable SSH service is pertinent to “Avoid opening inbound SSH ports for remote EC2 administration”; the requested controls for “Serve HTTPS API Gateway custom-domain traffic with managed certificates” and “Require database clients to connect with encrypted PostgreSQL or MySQL sessions” are absent.
D:The option has a useful control for “Require database clients to connect with encrypted PostgreSQL or MySQL sessions” because database encryption in transit requires an authenticated TLS connection and may need engine-specific configuration; its other control applies to “Avoid opening inbound SSH ports for remote EC2 administration” because session Manager provides an audited management channel without relying on a publicly reachable SSH service; it misses the first requirement, “Serve HTTPS API Gateway custom-domain traffic with managed certificates.”.
Question 154
In a permissions and authorization review, engineers must cover two different requirements: A developer needs to see whether an S3 bucket is exposed beyond an account trust zone. In addition, An assumed role is denied by a resource policy that names the wrong principal. Which option implements both?
- Review IAM Access Analyzer external access findings for supported resource policies; and test the applicable policies with IAM policy simulator and check CloudTrail evidence
- Review IAM Access Analyzer external access findings for supported resource policies; and update the resource policy to reference the intended role or session principal
- Test the applicable policies with IAM policy simulator and check CloudTrail evidence; and use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input
- Use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input; and update the resource policy to reference the intended role or session principal
Explanation
Correct Answer
B:This pairing handles the first requirement (“A developer needs to see whether an S3 bucket is exposed beyond an account trust zone”) because access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; it handles the second (“An assumed role is denied by a resource policy that names the wrong principal”) because authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities; both acceptance criteria are therefore addressed.
Incorrect Answers
A:One action is correctly chosen for “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone”: Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents; the companion action relates to “An operator needs to determine why a specific AWS API call is denied”: Simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request; the other requested outcome, “An assumed role is denied by a resource policy that names the wrong principal,” remains outstanding.
C:Both mechanisms have legitimate uses, but for other requirements: Simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request supports “An operator needs to determine why a specific AWS API call is denied”; Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources supports “An overly broad policy includes actions never used by the principal”; this does not resolve the stated “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone” and “An assumed role is denied by a resource policy that names the wrong principal” findings.
D:This solves the second problem (“An assumed role is denied by a resource policy that names the wrong principal”): Authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities; however, the first action addresses “An overly broad policy includes actions never used by the principal”: Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; it does not satisfy “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone.”.
Question 155
An architect is reviewing a root-cause investigation. The acceptance criterion reads: Reconstruct an incident timeline from management and data-plane evidence. Which approach satisfies it?
- Segment the workload with dedicated security groups and narrowly required ports
- Send audit records from the forensic account to a protected CloudTrail trail
- Correlate CloudTrail events with timestamps and logged resource identifiers
- Run a game-day exercise with predefined success and rollback criteria
Explanation
Correct Answer
C:Combining actor and resource fields across enabled event types makes a defensible timeline possible despite differences in event-delivery timing; that AWS behavior meets the requirement to reconstruct an incident timeline from management and data-plane evidence, the decisive objective for a root-cause investigation.
Incorrect Answers
A:Network segmentation restricts east-west paths instead of depending on a single perimeter control; its purpose is the requirement to limit broad lateral movement while patching a compromised service tier, but the acceptance criterion in a root-cause investigation is the requirement to reconstruct an incident timeline from management and data-plane evidence.
B:Independent API activity logging makes evidence handling reviewable, including who changed artifact access or retention settings; this would help with the requirement to confirm which forensic AWS API actions investigators performed, leaving the requirement to reconstruct an incident timeline from management and data-plane evidence unresolved in a root-cause investigation.
D:Rehearsals expose missing permissions, notification gaps, and automation failure modes before a live security event; its scope is the requirement to measure whether a documented incident playbook actually works, rather than the requirement to reconstruct an incident timeline from management and data-plane evidence for a root-cause investigation.
Question 156
A security review for an AWS Organizations guardrail design identifies one priority: Prevent developers from leaving the organization by invoking account removal actions. Which control is the best choice?
- Enforce controls through management-account IAM and operational separation
- Apply a carefully scoped SCP with aws:RequestedRegion conditions
- Use organization integration and auto-enable where supported for delegated security administration
- Deny relevant Organizations leave-organization operations via member-account SCP controls
Explanation
Correct Answer
D:SCPs can block selected member principal actions even when their IAM identity policies would otherwise permit them; that AWS behavior meets the requirement to prevent developers from leaving the organization by invoking account removal actions, the decisive objective for an AWS Organizations guardrail design.
Incorrect Answers
A:SCPs do not restrict principals within the management account, so management governance needs separate mechanisms; the important distinction in an AWS Organizations guardrail design is that this supports the requirement to avoid relying on SCPs to restrict principals in the Organizations management account instead of the requirement to prevent developers from leaving the organization by invoking account removal actions.
B:Organizations guardrails can enforce Region restrictions, with explicit consideration for global endpoints and service exceptions; this addresses the requirement to prevent nonapproved Regions from use by ordinary member-account identities, not the requirement to prevent developers from leaving the organization by invoking account removal actions, which is needed in an AWS Organizations guardrail design.
C:Service-specific organization configuration helps apply baseline coverage to new member accounts without manual one-off enrollment; its purpose is the requirement to keep newly created accounts enrolled in core security services, but the acceptance criterion in an AWS Organizations guardrail design is the requirement to prevent developers from leaving the organization by invoking account removal actions.
Question 157
In an EC2 and EKS workload security assessment, a control owner must address the following requirement: Block access to the EC2 Instance Metadata Service version 1. Which option should be selected?
- Enable Amazon Inspector EC2 scanning and review its findings
- Build and test a hardened AMI with EC2 Image Builder
- Require IMDSv2 on the instance metadata options
- Attach an IAM instance profile with a least-privilege role
Explanation
Correct Answer
C:Enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios; for an EC2 and EKS workload security assessment, this is the measure that delivers the requirement to block access to the EC2 Instance Metadata Service version 1.
Incorrect Answers
A:Inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; this addresses the requirement to detect package vulnerabilities on supported EC2 instances, not the requirement to block access to the EC2 Instance Metadata Service version 1, which is needed in an EC2 and EKS workload security assessment.
B:Image Builder automates image build pipelines and validation so baseline changes can be propagated consistently; its scope is the requirement to deploy a repeatable hardened operating-system image to new instances, rather than the requirement to block access to the EC2 Instance Metadata Service version 1 for an EC2 and EKS workload security assessment.
D:Instance profiles expose temporary role credentials to instance software, reducing the need for embedded static keys; this addresses the requirement to avoid storing long-term AWS access keys on an EC2 instance, not the requirement to block access to the EC2 Instance Metadata Service version 1, which is needed in an EC2 and EKS workload security assessment.
Question 158
A review board evaluating the central log collection migration rejects fixes that cover just one requirement. The requirements are: Record CloudFront viewer requests for forensic review; and Capture DNS query names resolved through Route 53 Resolver in a VPC. Which configuration addresses both?
- Enable CloudFront access logging for the distribution; and enable Application Load Balancer access logs to a permitted S3 bucket
- Enable CloudFront access logging for the distribution; and configure Route 53 Resolver query logging for the relevant VPCs
- Enable Application Load Balancer access logs to a permitted S3 bucket; and enable VPC Flow Logs at the required VPC, subnet, or ENI scope
- Enable VPC Flow Logs at the required VPC, subnet, or ENI scope; and configure Route 53 Resolver query logging for the relevant VPCs
Explanation
Correct Answer
B:For “Record CloudFront viewer requests for forensic review,” the governing behavior is: Distribution access logs describe viewer requests at the edge; they differ from control-plane change records; for the separate check “Capture DNS query names resolved through Route 53 Resolver in a VPC,” it is: Resolver query logs provide domain query details and can be centralized for DNS-based security analysis; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “Record CloudFront viewer requests for forensic review” because distribution access logs describe viewer requests at the edge; they differ from control-plane change records; the second part addresses a different issue (“Preserve load balancer request traces for application incident analysis”) because ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead; it does not fulfill the “Capture DNS query names resolved through Route 53 Resolver in a VPC” test.
C:This combination targets different outcomes: ALB access logs report HTTP request processing details, while CloudTrail captures configuration API operations instead helps with “Preserve load balancer request traces for application incident analysis”; Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction helps with “Record accepted and rejected IP flows on selected VPC network interfaces”; neither implements the required “Record CloudFront viewer requests for forensic review” and “Capture DNS query names resolved through Route 53 Resolver in a VPC” outcomes together.
D:Only the second requirement is covered: Resolver query logs provide domain query details and can be centralized for DNS-based security analysis supports “Capture DNS query names resolved through Route 53 Resolver in a VPC”; by contrast, Flow Logs describe traffic metadata and accept/reject disposition, not packet payloads or every application-level transaction concerns “Record accepted and rejected IP flows on selected VPC network interfaces,” leaving “Record CloudFront viewer requests for forensic review” unresolved.
Question 159
In a storage encryption control review, engineers must cover two different requirements: Enforce a specific SSE-KMS key for new uploads. In addition, Prevent public reads of any S3 buckets in an AWS account. Which option implements both?
- Configure default bucket encryption with SSE-KMS and the chosen customer-managed key; and use SSE-S3 for the objects
- Use SSE-S3 for the objects; and enable account-level S3 Block Public Access
- Deny noncompliant PutObject requests with S3 bucket-policy encryption conditions; and configure default bucket encryption with SSE-KMS and the chosen customer-managed key
- Deny noncompliant PutObject requests with S3 bucket-policy encryption conditions; and enable account-level S3 Block Public Access
Explanation
Correct Answer
D:This pairing handles the first requirement (“Enforce a specific SSE-KMS key for new uploads”) because bucket policies can inspect encryption-related request headers and key IDs to reject uploads that violate mandated encryption settings; it handles the second (“Prevent public reads of any S3 buckets in an AWS account”) because account-level controls provide a broad safety boundary against public bucket and access point configuration mistakes; both acceptance criteria are therefore addressed.
Incorrect Answers
A:Both mechanisms have legitimate uses, but for other requirements: SSE-KMS integrates S3 object encryption with KMS authorization and key-use auditing beyond S3-managed key controls supports “Use a customer-managed KMS key for S3 object encryption with key-level access controls”; SSE-S3 encrypts stored objects with S3-managed keys and does not provide customer-managed KMS key-policy control supports “Encrypt S3 object payloads with keys managed entirely by the S3 service”; this does not resolve the stated “Enforce a specific SSE-KMS key for new uploads” and “Prevent public reads of any S3 buckets in an AWS account” findings.
B:This solves the second problem (“Prevent public reads of any S3 buckets in an AWS account”): Account-level controls provide a broad safety boundary against public bucket and access point configuration mistakes; however, the first action addresses “Encrypt S3 object payloads with keys managed entirely by the S3 service”: SSE-S3 encrypts stored objects with S3-managed keys and does not provide customer-managed KMS key-policy control; it does not satisfy “Enforce a specific SSE-KMS key for new uploads.”.
C:One action is correctly chosen for “Enforce a specific SSE-KMS key for new uploads”: Bucket policies can inspect encryption-related request headers and key IDs to reject uploads that violate mandated encryption settings; the companion action relates to “Use a customer-managed KMS key for S3 object encryption with key-level access controls”: SSE-KMS integrates S3 object encryption with KMS authorization and key-use auditing beyond S3-managed key controls; the other requested outcome, “Prevent public reads of any S3 buckets in an AWS account,” remains outstanding.
Question 160
An assessment of the credential and federation review has two findings. Finding one: Authenticate mobile-app end users without granting them AWS account user identities. Finding two: Give an authenticated mobile user limited temporary AWS permissions. Which combination remediates both?
- Configure an IAM SAML identity provider and trusting role; and enforce MFA on the relevant workforce or IAM sign-in pathway
- Enforce MFA on the relevant workforce or IAM sign-in pathway; and use Cognito identity pools to exchange supported identities for AWS credentials
- Use Amazon Cognito user pools for application authentication; and configure an IAM SAML identity provider and trusting role
- Use Amazon Cognito user pools for application authentication; and use Cognito identity pools to exchange supported identities for AWS credentials
Explanation
Correct Answer
D:The implementation has a specific control for each objective: User pools handle application-user sign-up and sign-in, separating consumer identity from workforce IAM account administration for “Authenticate mobile-app end users without granting them AWS account user identities”; Identity pools broker temporary AWS credentials through roles for application users, distinct from user-pool authentication itself for “Give an authenticated mobile user limited temporary AWS permissions”; the combined option satisfies the two-part request.
Incorrect Answers
A:The first proposed action addresses “Allow an external enterprise identity provider to exchange signed SAML assertions for AWS role sessions”: STS can issue temporary role credentials when a properly configured SAML trust relationship accepts the assertion; the second addresses “Require a second authentication factor for privileged console sessions”: MFA adds possession or another factor to the authentication step and limits damage from a password-only compromise; the combination does not achieve the required “Authenticate mobile-app end users without granting them AWS account user identities” and “Give an authenticated mobile user limited temporary AWS permissions” outcomes in this credential and federation review.
B:While identity pools broker temporary AWS credentials through roles for application users, distinct from user-pool authentication itself is relevant to “Give an authenticated mobile user limited temporary AWS permissions,” the other component targets “Require a second authentication factor for privileged console sessions,” where MFA adds possession or another factor to the authentication step and limits damage from a password-only compromise; the first acceptance criterion (“Authenticate mobile-app end users without granting them AWS account user identities”) is not met.
C:The first check would be covered, since user pools handle application-user sign-up and sign-in, separating consumer identity from workforce IAM account administration; yet the second choice is associated with “Allow an external enterprise identity provider to exchange signed SAML assertions for AWS role sessions,” for which STS can issue temporary role credentials when a properly configured SAML trust relationship accepts the assertion; no corresponding control satisfies “Give an authenticated mobile user limited temporary AWS permissions.”.