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.”.
Question 161
Before closing the incident response rehearsal, a team must demonstrate the following: Prevent a response Lambda from having blanket administrator privileges; plus Stop further use of a disclosed IAM user's long-term API key. Which paired change would complete the work?
- 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
- Assign its execution role only the actions and resources needed by the runbook; and launch replacement capacity from a verified hardened AMI
- Inspect the AssumeRole event and session identity fields in CloudTrail; and deactivate the affected access key and replace it through a controlled process
- Launch replacement capacity from a verified hardened AMI; and inspect the AssumeRole event and session identity fields in CloudTrail
Explanation
Correct Answer
A:The implementation has a specific control for each objective: Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused for “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 for “Stop further use of a disclosed IAM user's long-term API key”; the combined option satisfies the two-part request.
Incorrect Answers
B:The first check would be covered, since Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused; yet the second choice is associated with “Recover a known-good workload after an incident while retaining compromised images for evidence,” for which rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated; no corresponding control satisfies “Stop further use of a disclosed IAM user's long-term API key.”.
C:While an inactive access key cannot authenticate future signed API requests, allowing responders to eliminate the exposed credential while tracing historical use is relevant to “Stop further use of a disclosed IAM user's long-term API key,” the other component targets “Determine which principal originally assumed a suspicious cross-account role,” where CloudTrail records role assumption request context and subsequent session identity information that can tie activity to the originating caller; the first acceptance criterion (“Prevent a response Lambda from having blanket administrator privileges”) is not met.
D:The first proposed action addresses “Recover a known-good workload after an incident while retaining compromised images for evidence”: Rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated; the second addresses “Determine which principal originally assumed a suspicious cross-account role”: CloudTrail records role assumption request context and subsequent session identity information that can tie activity to the originating caller; the combination does not achieve the required “Prevent a response Lambda from having blanket administrator privileges” and “Stop further use of a disclosed IAM user's long-term API key” outcomes in this incident response rehearsal.
Question 162
During a central security service delegation plan, the security team has this work item: Limit who can invite or remove accounts from an organization. Which AWS action is the most direct implementation?
- Review IAM Identity Center assignments and provisioned permission sets
- Restrict Organizations membership API actions to a central administrative role
- Follow an approved account closure and resource offboarding workflow
- Design a documented break-glass role and tightly secured emergency credential process
Explanation
Correct Answer
B:Organizations permissions control account relationships and policy attachment at the organization boundary; that AWS behavior meets the requirement to limit who can invite or remove accounts from an organization, the decisive objective for a central security service delegation plan.
Incorrect Answers
A:Central assignments reveal which users and groups can obtain roles in each managed account; this would help with the requirement to centralize access assignment audits for workforce roles, leaving the requirement to limit who can invite or remove accounts from an organization unresolved in a central security service delegation plan.
C:Formal closure requires inventory, data preservation and service termination rather than simply deleting a row from a billing report; this addresses the requirement to retire an unused AWS member account without leaving running resources, not the requirement to limit who can invite or remove accounts from an organization, which is needed in a central security service delegation plan.
D:Tested alternate access can preserve incident-response authority while separate logging and approval reduce abuse risk; this addresses the requirement to define an emergency administrator access route that does not depend on a compromised identity provider, not the requirement to limit who can invite or remove accounts from an organization, which is needed in a central security service delegation plan.
Question 163
In a container image deployment pipeline, a control owner must address the following requirement: Limit an ECS task's AWS API permissions independently of the host. Which option should be selected?
- Assign a least-privilege ECS task IAM role
- Build and test a hardened AMI with EC2 Image Builder
- Enable Amazon ECR image scanning with an appropriate scanning mode
- Use IAM roles for service accounts for the pod's supported identity pattern
- Retrieve secrets at runtime using the workload's permitted IAM role
Explanation
Correct Answer
A:Task roles supply AWS credentials to containers in the task; the EC2 instance role serves a different execution scope; this is the direct solution to the requirement to limit an ECS task's AWS API permissions independently of the host in a container image deployment pipeline.
Incorrect Answers
B:For the different objective “Deploy a repeatable hardened operating-system image to new instances,” image Builder automates image build pipelines and validation so baseline changes can be propagated consistently; the scenario instead requires “Limit an ECS task's AWS API permissions independently of the host,” which is a separate security mechanism.
C:ECR supports image vulnerability scanning, helping identify vulnerable components before a workload deploys an image; this would help with the requirement to assess known vulnerabilities in container images stored in a registry, leaving the requirement to limit an ECS task's AWS API permissions independently of the host unresolved in a container image deployment pipeline.
D:Pod-scoped IAM role association helps avoid sharing the node's broad credentials with every workload; this addresses the requirement to prevent an EKS pod from inheriting broad worker-node permissions, not the requirement to limit an ECS task's AWS API permissions independently of the host, which is needed in a container image deployment pipeline.
E:Runtime retrieval keeps credentials outside container images, with access governed by both secret policies and execution identity; this would help with the requirement to use Secrets Manager values inside application containers without embedding them in image layers, leaving the requirement to limit an ECS task's AWS API permissions independently of the host unresolved in a container image deployment pipeline.
Question 164
Two security control owners share a telemetry and alarm repair exercise. One is responsible for this outcome: New GuardDuty detections do not appear in an expected account. The other needs: An application sends logs but fails to publish custom metrics. Which implementation covers both?
- Verify GuardDuty is enabled in that account and the relevant Region and protection plan; and use a valid CloudWatch Logs filter pattern for the actual JSON structure
- Verify GuardDuty is enabled in that account and the relevant Region and protection plan; and grant cloudwatch:PutMetricData to the publisher and verify the metric namespace
- Use a valid CloudWatch Logs filter pattern for the actual JSON structure; and check event-pattern fields and permission for EventBridge to invoke the target
- Check event-pattern fields and permission for EventBridge to invoke the target; and grant cloudwatch:PutMetricData to the publisher and verify the metric namespace
Explanation
Correct Answer
B:Two different security outcomes are required in this telemetry and alarm repair exercise; Regional service enablement and feature-specific coverage determine which supported threats can be detected supports “New GuardDuty detections do not appear in an expected account,” while Logging permissions are different from custom metric publication rights; metrics can be absent despite healthy log ingestion supports “An application sends logs but fails to publish custom metrics”; neither check is assumed to follow from the other.
Incorrect Answers
A:This option is only partly effective: Regional service enablement and feature-specific coverage determine which supported threats can be detected supports “New GuardDuty detections do not appear in an expected account”; but Filter expressions must match the logged field names and data types rather than the structure assumed by the operator supports “An alert filter never matches a numeric application status field,” not the required “An application sends logs but fails to publish custom metrics” outcome.
C:Filter expressions must match the logged field names and data types rather than the structure assumed by the operator is pertinent to “An alert filter never matches a numeric application status field,” and Both rule matching and target invocation authorization must succeed before automation starts is pertinent to “EventBridge rules receive CloudTrail events but matching rules never invoke Lambda”; the requested controls for “New GuardDuty detections do not appear in an expected account” and “An application sends logs but fails to publish custom metrics” are absent.
D:The option has a useful control for “An application sends logs but fails to publish custom metrics” because logging permissions are different from custom metric publication rights; metrics can be absent despite healthy log ingestion; its other control applies to “EventBridge rules receive CloudTrail events but matching rules never invoke Lambda” because both rule matching and target invocation authorization must succeed before automation starts; it misses the first requirement, “New GuardDuty detections do not appear in an expected account.”.
Question 165
In a remote access hardening initiative, a control owner must address the following requirement: Require database clients to connect with encrypted PostgreSQL or MySQL sessions. Which option should be selected?
- Add a bucket policy deny conditioned on aws:SecureTransport being false
- Enforce the supported RDS TLS requirement and install trusted CA certificates on clients
- Use AWS Site-to-Site VPN with IPsec and resilient tunnel configuration
- Associate an ACM certificate with the supported API Gateway custom domain
Explanation
Correct Answer
B:Database encryption in transit requires an authenticated TLS connection and may need engine-specific configuration; for a remote access hardening initiative, this is the measure that delivers the requirement to require database clients to connect with encrypted PostgreSQL or MySQL sessions.
Incorrect Answers
A:Transport security can be enforced at the S3 resource policy layer independently of whether objects are encrypted at rest; the important distinction in a remote access hardening initiative is that this supports the requirement to require client connections to an S3 bucket to use TLS instead of the requirement to require database clients to connect with encrypted PostgreSQL or MySQL sessions.
C:IPsec provides encryption and authentication for the supported gateway-to-gateway path over the selected underlying connectivity; its scope is the requirement to connect a corporate network to AWS using encrypted tunnels, rather than the requirement to require database clients to connect with encrypted PostgreSQL or MySQL sessions for a remote access hardening initiative.
D:The custom domain's TLS certificate enables verified HTTPS client connections; authorizers and resource policies remain separate access controls; this addresses the requirement to serve HTTPS API Gateway custom-domain traffic with managed certificates, not the requirement to require database clients to connect with encrypted PostgreSQL or MySQL sessions, which is needed in a remote access hardening initiative.
Question 166
In a permissions and authorization review, engineers must cover two different requirements: Prevent nonapproved Regions for supported AWS API operations. In addition, Allow administrative actions only from a restricted set of source public IP ranges. Which option implements both?
- Enforce S3 request-header and key-ID conditions in a bucket policy; and use an applicable aws:SourceIp condition in the identity or resource policy
- Implement ABAC with principal-tag and resource-tag policy conditions; and enforce S3 request-header and key-ID conditions in a bucket policy
- Use an aws:RequestedRegion condition in an appropriate SCP; and use an applicable aws:SourceIp condition in the identity or resource policy
- Use an aws:RequestedRegion condition in an appropriate SCP; and implement ABAC with principal-tag and resource-tag policy conditions
Explanation
Correct Answer
C:This pairing handles the first requirement (“Prevent nonapproved Regions for supported AWS API operations”) because A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions; it handles the second (“Allow administrative actions only from a restricted set of source public IP ranges”) because source IP evaluation can restrict request origins, subject to the actual request context and service-forwarding behavior; both acceptance criteria are therefore addressed.
Incorrect Answers
A:This solves the second problem (“Allow administrative actions only from a restricted set of source public IP ranges”): Source IP evaluation can restrict request origins, subject to the actual request context and service-forwarding behavior; however, the first action addresses “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; it does not satisfy “Prevent nonapproved Regions for supported AWS API operations.”.
B:Both mechanisms have legitimate uses, but for other requirements: Attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project supports “Limit a role's access to resources carrying a matching project tag”; Bucket-policy conditions can deny writes that omit or mismatch required SSE-KMS request encryption parameters supports “Require use of a designated encryption key for selected object uploads”; this does not resolve the stated “Prevent nonapproved Regions for supported AWS API operations” and “Allow administrative actions only from a restricted set of source public IP ranges” findings.
D:One action is correctly chosen for “Prevent nonapproved Regions for supported AWS API operations”: A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions; the companion action relates to “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; the other requested outcome, “Allow administrative actions only from a restricted set of source public IP ranges,” remains outstanding.
Question 167
A security review for a compute and container hardening review identifies one priority: Detect package vulnerabilities on supported EC2 instances. Which control is the best choice?
- Enable Amazon ECR image scanning with an appropriate scanning mode
- Enable Amazon Inspector EC2 scanning and review its findings
- Use Systems Manager Patch Manager with approved baselines
- Require IMDSv2 on the instance metadata options
- Build and test a hardened AMI with EC2 Image Builder
Explanation
Correct Answer
B:Inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; this behavior fulfills the requirement to detect package vulnerabilities on supported EC2 instances during a compute and container hardening review.
Incorrect Answers
A:For the different objective “Assess known vulnerabilities in container images stored in a registry,” ECR supports image vulnerability scanning, helping identify vulnerable components before a workload deploys an image; the scenario instead requires “Detect package vulnerabilities on supported EC2 instances,” which is a separate security mechanism.
C:Patch Manager coordinates OS patch compliance and installation on managed nodes according to selected patch baselines; the important distinction in a compute and container hardening review is that this supports the requirement to install security patches on a large fleet without individually logging in instead of the requirement to detect package vulnerabilities on supported EC2 instances.
D:Enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios; the important distinction in a compute and container hardening review is that this supports the requirement to block access to the EC2 Instance Metadata Service version 1 instead of the requirement to detect package vulnerabilities on supported EC2 instances.
E:Image Builder automates image build pipelines and validation so baseline changes can be propagated consistently; this addresses the requirement to deploy a repeatable hardened operating-system image to new instances, not the requirement to detect package vulnerabilities on supported EC2 instances, which is needed in a compute and container hardening review.
Question 168
During a active security incident investigation, reviewers document two independent acceptance criteria. First: Restore availability after quarantining an Auto Scaling instance. Second: Reconstruct an incident timeline from management and data-plane evidence. Which combined implementation satisfies both?
- Segment the workload with dedicated security groups and narrowly required ports; and correlate CloudTrail events with timestamps and logged resource identifiers
- Run a game-day exercise with predefined success and rollback criteria; and segment the workload with dedicated security groups and narrowly required ports
- Replace the isolated node from a trusted launch template and validate health checks; and correlate CloudTrail events with timestamps and logged resource identifiers
- Replace the isolated node from a trusted launch template and validate health checks; and run a game-day exercise with predefined success and rollback criteria
Explanation
Correct Answer
C:The first control addresses the check “Restore availability after quarantining an Auto Scaling instance”: Auto Scaling can replenish healthy capacity, but responders must ensure the template and image have not inherited the compromise; the other addresses “Reconstruct an incident timeline from management and data-plane evidence”: Combining actor and resource fields across enabled event types makes a defensible timeline possible despite differences in event-delivery timing; these two mechanisms cover the complete active security incident investigation.
Incorrect Answers
A:Combining actor and resource fields across enabled event types makes a defensible timeline possible despite differences in event-delivery timing; this fulfills the second objective (“Reconstruct an incident timeline from management and data-plane evidence”); the other action is intended for “Limit broad lateral movement while patching a compromised service tier”: Network segmentation restricts east-west paths instead of depending on a single perimeter control; it does not meet the requested “Restore availability after quarantining an Auto Scaling instance” check.
B:The first action belongs to “Measure whether a documented incident playbook actually works” because rehearsals expose missing permissions, notification gaps, and automation failure modes before a live security event; the second belongs to “Limit broad lateral movement while patching a compromised service tier” because network segmentation restricts east-west paths instead of depending on a single perimeter control; these are not the required checks, “Restore availability after quarantining an Auto Scaling instance” and “Reconstruct an incident timeline from management and data-plane evidence.”.
D:Auto Scaling can replenish healthy capacity, but responders must ensure the template and image have not inherited the compromise; this is relevant to the first objective (“Restore availability after quarantining an Auto Scaling instance”); however, the other action is meant for “Measure whether a documented incident playbook actually works”: Rehearsals expose missing permissions, notification gaps, and automation failure modes before a live security event; it leaves the required “Reconstruct an incident timeline from management and data-plane evidence” behavior unimplemented.
Question 169
A security architecture review for a Well-Architected security review contains 2 independently assessed work items: (1) Detect unexpected cost growth that might reflect compromised compute workloads; (2) Spot unused or idle infrastructure that unnecessarily expands attack surface. Which actions directly implement those requirements? Choose TWO.
- Correlate IAM Access Analyzer exposure with network reachability assessments
- Configure AWS Cost Anomaly Detection monitoring
- Review AWS Trusted Advisor and Cost Explorer utilization signals
- Record prioritized Security pillar improvement actions and revisit open risks in the Well-Architected Tool
Explanation
Correct Answers
B:Abnormal spend can flag unexplained resource activity, complementing direct security detectors rather than proving a compromise; in a Well-Architected security review, this is one of the independently required safeguards because it addresses the requirement to detect unexpected cost growth that might reflect compromised compute workloads.
C:Utilization and cost signals can guide removal of unnecessary assets, but any deletion still requires dependency assessment; in a Well-Architected security review, this is one of the independently required safeguards because it addresses the requirement to spot unused or idle infrastructure that unnecessarily expands attack surface.
Incorrect Answers
A:Policy exposure and network path analysis reveal different ways resources could be reachable by unintended parties; in a Well-Architected security review, that supports the requirement to prioritize publicly exposed resources found during an architectural security review, which is distinct from the 2 enumerated security work items.
D:A documented improvement plan turns review findings into tracked mitigation decisions instead of treating the questionnaire as a one-time score; in a Well-Architected security review, that supports the requirement to track closure of previously identified architecture security risks over multiple reviews, which is distinct from the 2 enumerated security work items.
Question 170
In a failed security alarm investigation, a control owner must address the following requirement: New GuardDuty detections do not appear in an expected account. Which option should be selected?
- Check event-pattern fields and permission for EventBridge to invoke the target
- Grant cloudwatch:PutMetricData to the publisher and verify the metric namespace
- Review missing-data treatment and whether the expected metric publishes regularly
- Use a valid CloudWatch Logs filter pattern for the actual JSON structure
- Verify GuardDuty is enabled in that account and the relevant Region and protection plan
Explanation
Correct Answer
E:Regional service enablement and feature-specific coverage determine which supported threats can be detected; it addresses the reported condition: new GuardDuty detections do not appear in an expected account at the right security boundary during a failed security alarm investigation.
Incorrect Answers
A:Both rule matching and target invocation authorization must succeed before automation starts; the important distinction in a failed security alarm investigation is that this supports the reported condition: EventBridge rules receive CloudTrail events but matching rules never invoke Lambda instead of the reported condition: new GuardDuty detections do not appear in an expected account.
B:Logging permissions are different from custom metric publication rights; metrics can be absent despite healthy log ingestion; this would help with the reported condition: an application sends logs but fails to publish custom metrics, leaving the reported condition: new GuardDuty detections do not appear in an expected account unresolved in a failed security alarm investigation.
C:Missing metrics are not necessarily healthy values; alarm evaluation needs an intentional policy for periods without samples; its purpose is the reported condition: CloudWatch alarms remain in INSUFFICIENT_DATA during quiet periods, but the acceptance criterion in a failed security alarm investigation is the reported condition: new GuardDuty detections do not appear in an expected account.
D:Filter expressions must match the logged field names and data types rather than the structure assumed by the operator; the important distinction in a failed security alarm investigation is that this supports the reported condition: an alert filter never matches a numeric application status field instead of the reported condition: new GuardDuty detections do not appear in an expected account.