Question 650
A review board evaluating the compute workload hardening effort rejects fixes that cover just one requirement. The requirements are: Block host-level outbound traffic that is not needed for a Linux workload; and Avoid interactive SSH exposure while administering private EC2 instances. Which configuration addresses both?
- Combine a resource-scoped workload role with a restrictive secret access policy; and use Systems Manager State Manager associations and compliance reporting
- Use Systems Manager State Manager associations and compliance reporting; and use Systems Manager Session Manager with appropriate agent and role configuration
- Configure the operating system's host firewall in addition to VPC controls; and combine a resource-scoped workload role with a restrictive secret access policy
- Configure the operating system's host firewall in addition to VPC controls; and use Systems Manager Session Manager with appropriate agent and role configuration
Explanation
Correct Answer
D:For “Block host-level outbound traffic that is not needed for a Linux workload,” the governing behavior is: A host firewall applies controls within the instance OS and complements security groups and subnet network ACLs; for the separate check “Avoid interactive SSH exposure while administering private EC2 instances,” it is: Session Manager provides controlled session access without requiring inbound SSH ports, subject to its endpoint and permission prerequisites; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:This combination targets different outcomes: Secret access is constrained by IAM and applicable resource/KMS permissions, limiting which workload sessions may retrieve credentials helps with “Ensure a workload can retrieve a secret only through its approved role”; State Manager helps maintain and report desired managed-node configurations rather than rebuilding every instance on each check helps with “Detect drift from a golden AMI's approved operating-system configuration”; neither implements the required “Block host-level outbound traffic that is not needed for a Linux workload” and “Avoid interactive SSH exposure while administering private EC2 instances” outcomes together.
B:Only the second requirement is covered: Session Manager provides controlled session access without requiring inbound SSH ports, subject to its endpoint and permission prerequisites supports “Avoid interactive SSH exposure while administering private EC2 instances”; by contrast, State Manager helps maintain and report desired managed-node configurations rather than rebuilding every instance on each check concerns “Detect drift from a golden AMI's approved operating-system configuration,” leaving “Block host-level outbound traffic that is not needed for a Linux workload” unresolved.
C:The first part is appropriate for “Block host-level outbound traffic that is not needed for a Linux workload” because A host firewall applies controls within the instance OS and complements security groups and subnet network ACLs; the second part addresses a different issue (“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; it does not fulfill the “Avoid interactive SSH exposure while administering private EC2 instances” test.
Question 651
In a CloudWatch alerting deployment, engineers must cover two different requirements: Compare workload CPU spikes with suspicious outbound behavior on a single dashboard. In addition, Provide application logs for real-time filtering and alarms. Which option implements both?
- Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately; and forward structured application events into CloudWatch Logs
- Publish a custom metric with consistent namespace and dimensions; and set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
- Build a CloudWatch dashboard using EC2 metrics and relevant custom or log-derived metrics; and forward structured application events into CloudWatch Logs
- Build a CloudWatch dashboard using EC2 metrics and relevant custom or log-derived metrics; and publish a custom metric with consistent namespace and dimensions
Explanation
Correct Answer
C:This pairing handles the first requirement (“Compare workload CPU spikes with suspicious outbound behavior on a single dashboard”) because dashboards display multiple time series for correlation without themselves blocking network requests; it handles the second (“Provide application logs for real-time filtering and alarms”) because log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries; both acceptance criteria are therefore addressed.
Incorrect Answers
A:This solves the second problem (“Provide application logs for real-time filtering and alarms”): Log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries; however, the first action addresses “Escalate only sustained error rates rather than transient one-minute spikes”: Alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required; it does not satisfy “Compare workload CPU spikes with suspicious outbound behavior on a single dashboard.”.
B:Both mechanisms have legitimate uses, but for other requirements: Custom metrics let alarms evaluate application-specific counters that AWS service metrics do not supply automatically supports “Report a custom application's failed-login count as a CloudWatch time series”; Alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required supports “Escalate only sustained error rates rather than transient one-minute spikes”; this does not resolve the stated “Compare workload CPU spikes with suspicious outbound behavior on a single dashboard” and “Provide application logs for real-time filtering and alarms” findings.
D:One action is correctly chosen for “Compare workload CPU spikes with suspicious outbound behavior on a single dashboard”: Dashboards display multiple time series for correlation without themselves blocking network requests; the companion action relates to “Report a custom application's failed-login count as a CloudWatch time series”: Custom metrics let alarms evaluate application-specific counters that AWS service metrics do not supply automatically; the other requested outcome, “Provide application logs for real-time filtering and alarms,” remains outstanding.
Question 652
For an internet-facing API threat assessment, engineers have been assigned this security outcome: Apply a maintained collection of common web exploit signatures without individually authoring each rule. What implementation best fits?
- Configure an AWS WAF rate-based rule with an appropriate evaluation limit
- Associate an appropriate AWS WAF managed rule group with the front-end resource
- Enable AWS WAF SQL injection match or an appropriate managed rule group
- Apply an AWS WAF geographic match rule
Explanation
Correct Answer
B:Managed rule groups apply curated signatures and rules for common web exploits while allowing tuning of false positives; it addresses the requirement to apply a maintained collection of common web exploit signatures without individually authoring each rule at the right security boundary during an internet-facing API threat assessment.
Incorrect Answers
A:A rate-based web ACL rule counts matching requests over an evaluation window and can restrict abusive HTTP clients; its scope is the requirement to apply a defined per-IP request-rate threshold to an HTTP API without writing bot classification rules, rather than the requirement to apply a maintained collection of common web exploit signatures without individually authoring each rule for an internet-facing API threat assessment.
C:Web ACL inspection can identify suspicious SQL payload patterns before the application processes the HTTP request; this would help with the requirement to match SQL injection signatures in a specific HTTP request field using a custom WAF rule, leaving the requirement to apply a maintained collection of common web exploit signatures without individually authoring each rule unresolved in an internet-facing API threat assessment.
D:Geo match conditions use the source geolocation determination for applicable web requests and can block specified countries; its scope is the requirement to restrict access to a website from selected geographic countries, rather than the requirement to apply a maintained collection of common web exploit signatures without individually authoring each rule for an internet-facing API threat assessment.
Question 653
In a protected backup lifecycle review, a control owner must address the following requirement: Delete expired object versions while keeping active S3 versions longer. Which option should be selected?
- Configure separate versioned-bucket Lifecycle expiration rules
- Create an Amazon Data Lifecycle Manager policy
- Configure the log group's retention setting
- Configure S3 Lifecycle transition actions
Explanation
Correct Answer
A:Versioned buckets can retain noncurrent versions with distinct expiration behavior from the current version; this behavior fulfills the requirement to delete expired object versions while keeping active S3 versions longer during a protected backup lifecycle review.
Incorrect Answers
B:Data Lifecycle Manager orchestrates eligible EBS snapshot and AMI lifecycles using schedules and retention rules; this would help with the requirement to automate retention of daily EBS snapshots across matching volumes, leaving the requirement to delete expired object versions while keeping active S3 versions longer unresolved in a protected backup lifecycle review.
C:CloudWatch deletes log events after the configured age, separate from S3 Lifecycle on archived objects; this addresses the requirement to retain CloudWatch Logs events only for a fixed number of days, not the requirement to delete expired object versions while keeping active S3 versions longer, which is needed in a protected backup lifecycle review.
D:Lifecycle transition automates storage-class movement after configured criteria without itself enforcing tamper-proof retention; its purpose is the requirement to move cold S3 archive objects into a lower-cost storage class after a defined age, but the acceptance criterion in a protected backup lifecycle review is the requirement to delete expired object versions while keeping active S3 versions longer.
Question 654
A proposed solution for the permissions and authorization review is incomplete unless it addresses both of these checks: An IAM policy allows an action but an Organizations SCP excludes it; and A role session should have fewer privileges than its parent role policy. Which choice provides the necessary controls?
- Evaluate the intersection of identity policy permissions and the role's boundary; and pass a restrictive STS session policy when assuming the role
- Remove or narrow the applicable explicit deny only after validating policy intent; and evaluate the intersection of identity policy permissions and the role's boundary
- Update the SCP guardrail or choose an allowed operation while retaining least privilege; and pass a restrictive STS session policy when assuming the role
- Update the SCP guardrail or choose an allowed operation while retaining least privilege; and remove or narrow the applicable explicit deny only after validating policy intent
Explanation
Correct Answer
C:For the first acceptance test, “An IAM policy allows an action but an Organizations SCP excludes it,” SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail; for the second, “A role session should have fewer privileges than its parent role policy,” session policies further limit the temporary session's effective permissions instead of expanding the base role; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
A:The mechanism for “A role session should have fewer privileges than its parent role policy” is present: Session policies further limit the temporary session's effective permissions instead of expanding the base role; the additional mechanism relates to “An IAM role has broad permissions but a permissions boundary limits it”: A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges; nothing here completes “An IAM policy allows an action but an Organizations SCP excludes it.”.
B:Neither action is targeted at the two acceptance tests: IAM explicit deny takes precedence over allows from other applicable permission policies for the same request is about “An identity has an IAM allow but a matching explicit deny is also present,” and A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges is about “An IAM role has broad permissions but a permissions boundary limits it”; the intended “An IAM policy allows an action but an Organizations SCP excludes it” and “A role session should have fewer privileges than its parent role policy” requirements remain unsatisfied.
D:SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail supports the “An IAM policy allows an action but an Organizations SCP excludes it” acceptance test; IAM explicit deny takes precedence over allows from other applicable permission policies for the same request is pertinent to “An identity has an IAM allow but a matching explicit deny is also present” instead; the change therefore omits the separate requirement “A role session should have fewer privileges than its parent role policy.”.
Question 655
A review board evaluating the active security incident investigation rejects fixes that cover just one requirement. The requirements are: Confirm which forensic AWS API actions investigators performed; and Restore availability after quarantining an Auto Scaling instance. Which configuration addresses both?
- Send audit records from the forensic account to a protected CloudTrail trail; and run a game-day exercise with predefined success and rollback criteria
- Send audit records from the forensic account to a protected CloudTrail trail; and replace the isolated node from a trusted launch template and validate health checks
- Run a game-day exercise with predefined success and rollback criteria; and segment the workload with dedicated security groups and narrowly required ports
- Segment the workload with dedicated security groups and narrowly required ports; and replace the isolated node from a trusted launch template and validate health checks
Explanation
Correct Answer
B:For “Confirm which forensic AWS API actions investigators performed,” the governing behavior is: Independent API activity logging makes evidence handling reviewable, including who changed artifact access or retention settings; for the separate check “Restore availability after quarantining an Auto Scaling instance,” it is: Auto Scaling can replenish healthy capacity, but responders must ensure the template and image have not inherited the compromise; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “Confirm which forensic AWS API actions investigators performed” because independent API activity logging makes evidence handling reviewable, including who changed artifact access or retention settings; the second part addresses a different issue (“Measure whether a documented incident playbook actually works”) because rehearsals expose missing permissions, notification gaps, and automation failure modes before a live security event; it does not fulfill the “Restore availability after quarantining an Auto Scaling instance” test.
C:This combination targets different outcomes: Rehearsals expose missing permissions, notification gaps, and automation failure modes before a live security event helps with “Measure whether a documented incident playbook actually works”; Network segmentation restricts east-west paths instead of depending on a single perimeter control helps with “Limit broad lateral movement while patching a compromised service tier”; neither implements the required “Confirm which forensic AWS API actions investigators performed” and “Restore availability after quarantining an Auto Scaling instance” outcomes together.
D:Only the second requirement is covered: Auto Scaling can replenish healthy capacity, but responders must ensure the template and image have not inherited the compromise supports “Restore availability after quarantining an Auto Scaling instance”; by contrast, Network segmentation restricts east-west paths instead of depending on a single perimeter control concerns “Limit broad lateral movement while patching a compromised service tier,” leaving “Confirm which forensic AWS API actions investigators performed” unresolved.
Question 656
Two security control owners share a AWS Organizations policy program. One is responsible for this outcome: Centralize access assignment audits for workforce roles. The other needs: Define an emergency administrator access route that does not depend on a compromised identity provider. Which implementation covers both?
- Review IAM Identity Center assignments and provisioned permission sets; and restrict Organizations membership API actions to a central administrative role
- Review IAM Identity Center assignments and provisioned permission sets; and design a documented break-glass role and tightly secured emergency credential process
- Restrict Organizations membership API actions to a central administrative role; and register a supported security-service delegated administrator in a member account
- Register a supported security-service delegated administrator in a member account; and design a documented break-glass role and tightly secured emergency credential process
Explanation
Correct Answer
B:Two different security outcomes are required in this AWS Organizations policy program; Central assignments reveal which users and groups can obtain roles in each managed account supports “Centralize access assignment audits for workforce roles,” while Tested alternate access can preserve incident-response authority while separate logging and approval reduce abuse risk supports “Define an emergency administrator access route that does not depend on a compromised identity provider”; neither check is assumed to follow from the other.
Incorrect Answers
A:This option is only partly effective: Central assignments reveal which users and groups can obtain roles in each managed account supports “Centralize access assignment audits for workforce roles”; but Organizations permissions control account relationships and policy attachment at the organization boundary supports “Limit who can invite or remove accounts from an organization,” not the required “Define an emergency administrator access route that does not depend on a compromised identity provider” outcome.
C:Organizations permissions control account relationships and policy attachment at the organization boundary is pertinent to “Limit who can invite or remove accounts from an organization,” and Service-specific delegation limits day-to-day use of the most privileged organization account without bypassing the overall service guardrails is pertinent to “Transfer governance of routine security operations away from the management account”; the requested controls for “Centralize access assignment audits for workforce roles” and “Define an emergency administrator access route that does not depend on a compromised identity provider” are absent.
D:The option has a useful control for “Define an emergency administrator access route that does not depend on a compromised identity provider” because tested alternate access can preserve incident-response authority while separate logging and approval reduce abuse risk; its other control applies to “Transfer governance of routine security operations away from the management account” because service-specific delegation limits day-to-day use of the most privileged organization account without bypassing the overall service guardrails; it misses the first requirement, “Centralize access assignment audits for workforce roles.”.
Question 657
A security review for a content delivery security deployment identifies one priority: Protect an Application Load Balancer from application-layer attack signatures. Which control is the best choice?
- Configure an AWS WAF rate-based rule with an appropriate evaluation limit
- Configure CloudFront origin access control and restrict the bucket policy
- Associate a regional AWS WAF web ACL with the load balancer
- Enroll eligible resources in AWS Shield Advanced
- Use AWS Shield Standard protections on supported AWS resources
Explanation
Correct Answer
C:WAF evaluates supported HTTP(S) requests at the ALB, which is not the same as changing instance network security-group rules; this is the direct solution to the requirement to protect an Application Load Balancer from application-layer attack signatures in a content delivery security deployment.
Incorrect Answers
A:For the different objective “Apply a defined per-IP request-rate threshold to an HTTP API without writing bot classification rules,” A rate-based web ACL rule counts matching requests over an evaluation window and can restrict abusive HTTP clients; the scenario instead requires “Protect an Application Load Balancer from application-layer attack signatures,” which is a separate security mechanism.
B:Origin access control lets CloudFront sign origin requests so the S3 bucket can reject direct public reads; this addresses the requirement to prevent viewers from directly fetching private S3 objects behind CloudFront, not the requirement to protect an Application Load Balancer from application-layer attack signatures, which is needed in a content delivery security deployment.
D:Shield Advanced adds enhanced protection capabilities and access to specialized response support subject to its subscription and service scope; this would help with the requirement to provide enhanced DDoS protections and response-team assistance for critical internet services, leaving the requirement to protect an Application Load Balancer from application-layer attack signatures unresolved in a content delivery security deployment.
E:Shield Standard provides built-in network and transport layer DDoS protection for supported services without requiring a WAF rule; its scope is the requirement to provide baseline Layer 3 and Layer 4 DDoS mitigation for supported AWS resources without an extra security subscription, rather than the requirement to protect an Application Load Balancer from application-layer attack signatures for a content delivery security deployment.
Question 658
Before closing the CloudWatch alerting deployment, a team must demonstrate the following: Capture a sample of application requests for distributed performance and trace correlation; plus Report a custom application's failed-login count as a CloudWatch time series. Which paired change would complete the work?
- Instrument the application for AWS X-Ray tracing; and forward structured application events into CloudWatch Logs
- Instrument the application for AWS X-Ray tracing; and publish a custom metric with consistent namespace and dimensions
- Forward structured application events into CloudWatch Logs; and set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
- Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately; and publish a custom metric with consistent namespace and dimensions
Explanation
Correct Answer
B:The implementation has a specific control for each objective: X-Ray collects sampled traces of instrumented requests, unlike CloudTrail which audits AWS API activity for “Capture a sample of application requests for distributed performance and trace correlation”; Custom metrics let alarms evaluate application-specific counters that AWS service metrics do not supply automatically for “Report a custom application's failed-login count as a CloudWatch time series”; the combined option satisfies the two-part request.
Incorrect Answers
A:The first check would be covered, since X-Ray collects sampled traces of instrumented requests, unlike CloudTrail which audits AWS API activity; yet the second choice is associated with “Provide application logs for real-time filtering and alarms,” for which log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries; no corresponding control satisfies “Report a custom application's failed-login count as a CloudWatch time series.”.
C:The first proposed action addresses “Provide application logs for real-time filtering and alarms”: Log groups and streams collect application messages; metric filters and Logs Insights can then analyze the stored entries; the second addresses “Escalate only sustained error rates rather than transient one-minute spikes”: Alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required; the combination does not achieve the required “Capture a sample of application requests for distributed performance and trace correlation” and “Report a custom application's failed-login count as a CloudWatch time series” outcomes in this CloudWatch alerting deployment.
D:While custom metrics let alarms evaluate application-specific counters that AWS service metrics do not supply automatically is relevant to “Report a custom application's failed-login count as a CloudWatch time series,” the other component targets “Escalate only sustained error rates rather than transient one-minute spikes,” where alarms use configured evaluation windows, avoiding a trigger from a single brief fluctuation when sustained breaches are required; the first acceptance criterion (“Capture a sample of application requests for distributed performance and trace correlation”) is not met.
Question 659
An assessment of the key and certificate lifecycle review has two findings. Finding one: Track when a production secret was retrieved by an unexpected identity. Finding two: Store a nonrotating application configuration value with optional encryption. Which combination remediates both?
- Configure AWS Secrets Manager rotation with a compatible rotation implementation; and use Systems Manager Parameter Store with a SecureString parameter when sensitive
- Use a supported dynamic reference to Secrets Manager or Parameter Store; and configure AWS Secrets Manager rotation with a compatible rotation implementation
- Review Secrets Manager API events in CloudTrail; and use Systems Manager Parameter Store with a SecureString parameter when sensitive
- Review Secrets Manager API events in CloudTrail; and use a supported dynamic reference to Secrets Manager or Parameter Store
Explanation
Correct Answer
C:The implementation has a specific control for each objective: CloudTrail records supported secret-management API calls and caller identities, while secret values themselves should not be logged for “Track when a production secret was retrieved by an unexpected identity”; Parameter Store organizes configuration parameters and can encrypt selected values, but does not reproduce every Secrets Manager rotation integration for “Store a nonrotating application configuration value with optional encryption”; the combined option satisfies the two-part request.
Incorrect Answers
A:While parameter Store organizes configuration parameters and can encrypt selected values, but does not reproduce every Secrets Manager rotation integration is relevant to “Store a nonrotating application configuration value with optional encryption,” the other component targets “Rotate a database password automatically on an approved schedule,” where Secrets Manager schedules secret rotation, coordinating updates to the stored value and underlying system credentials; the first acceptance criterion (“Track when a production secret was retrieved by an unexpected identity”) is not met.
B:The first proposed action addresses “Avoid passing a secret in plaintext through a CloudFormation template”: Dynamic references allow CloudFormation to resolve supported secret values without embedding them in the plaintext template source; the second addresses “Rotate a database password automatically on an approved schedule”: Secrets Manager schedules secret rotation, coordinating updates to the stored value and underlying system credentials; the combination does not achieve the required “Track when a production secret was retrieved by an unexpected identity” and “Store a nonrotating application configuration value with optional encryption” outcomes in this key and certificate lifecycle review.
D:The first check would be covered, since CloudTrail records supported secret-management API calls and caller identities, while secret values themselves should not be logged; yet the second choice is associated with “Avoid passing a secret in plaintext through a CloudFormation template,” for which dynamic references allow CloudFormation to resolve supported secret values without embedding them in the plaintext template source; no corresponding control satisfies “Store a nonrotating application configuration value with optional encryption.”.
Question 660
A change request in the credential and federation review will be approved only if it delivers both outcomes: Restrict the duration of an elevated administrative session; Require IAM users to activate MFA before performing sensitive API operations. What should be included?
- Set an appropriate role maximum session duration and request a bounded session; and apply a policy condition on aws:MultiFactorAuthPresent in the applicable context
- Set an appropriate role maximum session duration and request a bounded session; and use STS AssumeRole with a cross-account role trust policy
- Configure an OIDC provider and AssumeRoleWithWebIdentity trust relationship; and apply a policy condition on aws:MultiFactorAuthPresent in the applicable context
- Use STS AssumeRole with a cross-account role trust policy; and configure an OIDC provider and AssumeRoleWithWebIdentity trust relationship
Explanation
Correct Answer
A:For the first acceptance test, “Restrict the duration of an elevated administrative session,” temporary credentials expire at the resulting session lifetime, reducing exposure relative to unrestricted long-term keys; for the second, “Require IAM users to activate MFA before performing sensitive API operations,” the MFA context key can restrict supported requests according to whether MFA was present in the authenticated session; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
B:Temporary credentials expire at the resulting session lifetime, reducing exposure relative to unrestricted long-term keys supports the “Restrict the duration of an elevated administrative session” acceptance test; AssumeRole issues expiring credentials for a trusted principal, and the assumed role's permissions determine permitted destination actions is pertinent to “Run a workload in a different account without storing destination-account access keys” instead; the change therefore omits the separate requirement “Require IAM users to activate MFA before performing sensitive API operations.”.
C:The mechanism for “Require IAM users to activate MFA before performing sensitive API operations” is present: The MFA context key can restrict supported requests according to whether MFA was present in the authenticated session; the additional mechanism relates to “Provide temporary privileges for a user authenticated with a supported OIDC token”: Web identity federation exchanges a valid identity token for short-lived role credentials without storing an AWS IAM user key; nothing here completes “Restrict the duration of an elevated administrative session.”.
D:Neither action is targeted at the two acceptance tests: AssumeRole issues expiring credentials for a trusted principal, and the assumed role's permissions determine permitted destination actions is about “Run a workload in a different account without storing destination-account access keys,” and Web identity federation exchanges a valid identity token for short-lived role credentials without storing an AWS IAM user key is about “Provide temporary privileges for a user authenticated with a supported OIDC token”; the intended “Restrict the duration of an elevated administrative session” and “Require IAM users to activate MFA before performing sensitive API operations” requirements remain unsatisfied.