Question 760
An implementation in the credential and federation review must solve two separate problems, not merely strengthen one safeguard: Trace which workforce user started an assumed-role API call; Run a workload in a different account without storing destination-account access keys. Which change meets the full request?
- Inspect CloudTrail userIdentity and role session context; and use STS AssumeRole with a cross-account role trust policy
- Inspect CloudTrail userIdentity and role session context; and set an appropriate role maximum session duration and request a bounded session
- Apply a policy condition on aws:MultiFactorAuthPresent in the applicable context; and use STS AssumeRole with a cross-account role trust policy
- Set an appropriate role maximum session duration and request a bounded session; and apply a policy condition on aws:MultiFactorAuthPresent in the applicable context
Explanation
Correct Answer
A:This pairing handles the first requirement (“Trace which workforce user started an assumed-role API call”) because CloudTrail's assumed-role identity fields identify the session and support tracing back to the initiating role assumption; it handles the second (“Run a workload in a different account without storing destination-account access keys”) because assumeRole issues expiring credentials for a trusted principal, and the assumed role's permissions determine permitted destination actions; both acceptance criteria are therefore addressed.
Incorrect Answers
B:One action is correctly chosen for “Trace which workforce user started an assumed-role API call”: CloudTrail's assumed-role identity fields identify the session and support tracing back to the initiating role assumption; the companion action relates to “Restrict the duration of an elevated administrative session”: Temporary credentials expire at the resulting session lifetime, reducing exposure relative to unrestricted long-term keys; the other requested outcome, “Run a workload in a different account without storing destination-account access keys,” remains outstanding.
C:This solves the second problem (“Run a workload in a different account without storing destination-account access keys”): AssumeRole issues expiring credentials for a trusted principal, and the assumed role's permissions determine permitted destination actions; however, the first action addresses “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; it does not satisfy “Trace which workforce user started an assumed-role API call.”.
D:Both mechanisms have legitimate uses, but for other requirements: Temporary credentials expire at the resulting session lifetime, reducing exposure relative to unrestricted long-term keys supports “Restrict the duration of an elevated administrative session”; the MFA context key can restrict supported requests according to whether MFA was present in the authenticated session supports “Require IAM users to activate MFA before performing sensitive API operations”; this does not resolve the stated “Trace which workforce user started an assumed-role API call” and “Run a workload in a different account without storing destination-account access keys” findings.
Question 761
Before closing the incident response rehearsal, a team must demonstrate the following: Stop further use of a disclosed IAM user's long-term API key; plus Send incident alerts to an on-call distribution group after matching a security finding. Which paired change would complete the work?
- Inspect the AssumeRole event and session identity fields in CloudTrail; and route the finding event through EventBridge to an SNS topic
- Launch replacement capacity from a verified hardened AMI; and inspect the AssumeRole event and session identity fields in CloudTrail
- Deactivate the affected access key and replace it through a controlled process; and route the finding event through EventBridge to an SNS topic
- Deactivate the affected access key and replace it through a controlled process; and launch replacement capacity from a verified hardened AMI
Explanation
Correct Answer
C:The implementation has a specific control for each objective: 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”; SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention for “Send incident alerts to an on-call distribution group after matching a security finding”; the combined option satisfies the two-part request.
Incorrect Answers
A:While SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention is relevant to “Send incident alerts to an on-call distribution group after matching a security finding,” 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 (“Stop further use of a disclosed IAM user's long-term API key”) is not met.
B: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 “Stop further use of a disclosed IAM user's long-term API key” and “Send incident alerts to an on-call distribution group after matching a security finding” outcomes in this incident response rehearsal.
D:The first check would be covered, since an inactive access key cannot authenticate future signed API requests, allowing responders to eliminate the exposed credential while tracing historical use; 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 “Send incident alerts to an on-call distribution group after matching a security finding.”.
Question 762
An architect is reviewing an audit framework control evaluation. The acceptance criterion reads: Demonstrate which account actions changed a security posture setting. Which approach satisfies it?
- Cross-reference CloudTrail API activity with AWS Config configuration history
- Consolidate compatible findings in AWS Security Hub
- Associate an AWS Systems Manager Automation remediation action with a Config rule
- Enable AWS Config recorders and delivery to controlled storage
Explanation
Correct Answer
A:CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts; this is the direct solution to the requirement to demonstrate which account actions changed a security posture setting in an audit framework control evaluation.
Incorrect Answers
B:For the different objective “Report audit findings from multiple security tools in a common format,” finding normalization enables shared prioritization, while raw evidence may remain in the originating tool; the scenario instead requires “Demonstrate which account actions changed a security posture setting,” which is a separate security mechanism.
C:Config detects a violation and automation can apply a predefined corrective runbook with authorized permissions; the important distinction in an audit framework control evaluation is that this supports the requirement to create automated remediation for noncompliant resources detected by Config instead of the requirement to demonstrate which account actions changed a security posture setting.
D:Configuration item history supports reconstruction of resource state changes rather than tracking only a current compliance flag; the important distinction in an audit framework control evaluation is that this supports the requirement to preserve compliance history of changes to resource configurations instead of the requirement to demonstrate which account actions changed a security posture setting.
Question 763
During a compute workload hardening effort, reviewers document two independent acceptance criteria. First: Install security patches on a large fleet without individually logging in. Second: Detect package vulnerabilities on supported EC2 instances. Which combined implementation satisfies both?
- Use Systems Manager Patch Manager with approved baselines; and attach an IAM instance profile with a least-privilege role
- Use Systems Manager Patch Manager with approved baselines; and enable Amazon Inspector EC2 scanning and review its findings
- Attach an IAM instance profile with a least-privilege role; and require IMDSv2 on the instance metadata options
- Require IMDSv2 on the instance metadata options; and enable Amazon Inspector EC2 scanning and review its findings
Explanation
Correct Answer
B:The first control addresses the check “Install security patches on a large fleet without individually logging in”: Patch Manager coordinates OS patch compliance and installation on managed nodes according to selected patch baselines; the other addresses “Detect package vulnerabilities on supported EC2 instances”: Inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; these two mechanisms cover the complete compute workload hardening effort.
Incorrect Answers
A:Patch Manager coordinates OS patch compliance and installation on managed nodes according to selected patch baselines; this is relevant to the first objective (“Install security patches on a large fleet without individually logging in”); however, the other action is meant for “Avoid storing long-term AWS access keys on an EC2 instance”: Instance profiles expose temporary role credentials to instance software, reducing the need for embedded static keys; it leaves the required “Detect package vulnerabilities on supported EC2 instances” behavior unimplemented.
C:The first action belongs to “Avoid storing long-term AWS access keys on an EC2 instance” because instance profiles expose temporary role credentials to instance software, reducing the need for embedded static keys; the second belongs to “Block access to the EC2 Instance Metadata Service version 1” because enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios; these are not the required checks, “Install security patches on a large fleet without individually logging in” and “Detect package vulnerabilities on supported EC2 instances.”.
D:Inspector inventories applicable packages and matches vulnerabilities where workload and scanning prerequisites are satisfied; this fulfills the second objective (“Detect package vulnerabilities on supported EC2 instances”); the other action is intended for “Block access to the EC2 Instance Metadata Service version 1”: Enforcing metadata tokens removes IMDSv1's tokenless request path and helps mitigate specific credential-exposure scenarios; it does not meet the requested “Install security patches on a large fleet without individually logging in” check.
Question 764
During an audit trail troubleshooting session, the security team has this work item: CloudWatch Logs Insights users receive an authorization error during queries. Which AWS action is the most direct implementation?
- Allow the needed logs query API actions on appropriate resources
- Restore the precise S3 bucket policy statements that permit CloudTrail delivery
- Add restrictive bucket controls and object retention, not just lifecycle rules
- Fix the delivery role's S3 write and applicable KMS permissions
- Confirm the trail is an organization trail and organizational settings are active
Explanation
Correct Answer
A:Reading log streams and running Logs Insights queries involve different API permissions; query execution is subject to IAM authorization; it addresses the reported condition: CloudWatch Logs Insights users receive an authorization error during queries at the right security boundary during an audit trail troubleshooting session.
Incorrect Answers
B:For the different objective “A trail reports S3 delivery errors after a bucket-policy hardening change,” A restrictive destination policy can block PutObject even when the trail and event selectors remain configured correctly; the scenario instead requires “CloudWatch Logs Insights users receive an authorization error during queries,” which is a separate security mechanism.
C:Access authorization and retention safeguards protect evidence; lifecycle configuration determines object aging rather than who can modify it; this addresses the reported condition: an S3 log archive is editable by identities outside the security account, not the reported condition: CloudWatch Logs Insights users receive an authorization error during queries, which is needed in an audit trail troubleshooting session.
D:The Firehose role must be authorized for destination storage and encryption, separately from the upstream log producer; this would help with the reported condition: a Kinesis Firehose delivery stream cannot write log objects to S3, leaving the reported condition: CloudWatch Logs Insights users receive an authorization error during queries unresolved in an audit trail troubleshooting session.
E:A standard account trail does not automatically provide comprehensive member-account management coverage across an organization; this would help with the reported condition: an organization trail omits a recently joined account's events, leaving the reported condition: CloudWatch Logs Insights users receive an authorization error during queries unresolved in an audit trail troubleshooting session.
Question 765
A security review for a KMS and S3 confidentiality audit identifies one priority: Stop further encrypted data operations with a compromised customer-managed KMS key. Which control is the best choice?
- Disable the key while coordinating a recovery and re-encryption plan
- Constrain the KMS key policy using kms:ViaService where supported
- Grant kms:Decrypt through the key policy and necessary IAM authorization
- Use a KMS encryption context for supported symmetric KMS operations
Explanation
Correct Answer
A:A disabled KMS key cannot perform new cryptographic operations, which can also make dependent encrypted data inaccessible; this behavior fulfills the requirement to stop further encrypted data operations with a compromised customer-managed KMS key during a KMS and S3 confidentiality audit.
Incorrect Answers
B:For the different objective “Limit sensitive KMS key use to one AWS service integration,” service-context conditions limit when the KMS key may be used through an approved integrated AWS service; the scenario instead requires “Stop further encrypted data operations with a compromised customer-managed KMS key,” which is a separate security mechanism.
C:KMS cryptographic permissions depend on key-policy access and any required identity policy, which is distinct from metadata visibility; this addresses the requirement to allow an authorized principal to use a KMS key for decryption rather than just list it, not the requirement to stop further encrypted data operations with a compromised customer-managed KMS key, which is needed in a KMS and S3 confidentiality audit.
D:An encryption context is cryptographically bound as additional authenticated data, so changing it invalidates decryption; this addresses the requirement to protect encryption operations with authenticated associated data that must match at decryption, not the requirement to stop further encrypted data operations with a compromised customer-managed KMS key, which is needed in a KMS and S3 confidentiality audit.
Question 766
A security architecture review for a resource-policy access decision contains 2 independently assessed work items: (1) Limit a role's access to resources carrying a matching project tag; (2) Allow object reads only when requests use a specific VPC endpoint. Which actions directly implement those requirements? Choose TWO.
- Use an aws:RequestedRegion condition in an appropriate SCP
- Use an applicable aws:SourceIp condition in the identity or resource policy
- Implement ABAC with principal-tag and resource-tag policy conditions
- Apply an S3 bucket-policy condition on aws:sourceVpce
- Enforce S3 request-header and key-ID conditions in a bucket policy
Explanation
Correct Answers
C:Attribute-based conditions compare request context and resource attributes, reducing dependence on separately authored policies per project; in a resource-policy access decision, this is one of the independently required safeguards because it addresses the requirement to limit a role's access to resources carrying a matching project tag.
D:The endpoint context key ties access to the intended private path, with careful exceptions for services that do not supply that context; in a resource-policy access decision, this is one of the independently required safeguards because it addresses the requirement to allow object reads only when requests use a specific VPC endpoint.
Incorrect Answers
A:A Region condition in an organizational guardrail can block scoped API requests outside approved Regions, with necessary global-service exceptions; in a resource-policy access decision, that supports the requirement to prevent nonapproved Regions for supported AWS API operations, which is distinct from the 2 enumerated security work items.
B:Source IP evaluation can restrict request origins, subject to the actual request context and service-forwarding behavior; in a resource-policy access decision, that supports the requirement to allow administrative actions only from a restricted set of source public IP ranges, which is distinct from the 2 enumerated security work items.
E:Bucket-policy conditions can deny writes that omit or mismatch required SSE-KMS request encryption parameters; in a resource-policy access decision, that supports the requirement to require use of a designated encryption key for selected object uploads, which is distinct from the 2 enumerated security work items.
Question 767
For a managed-node security baseline audit, engineers have been assigned this security outcome: Prevent an EKS pod from inheriting broad worker-node permissions. What implementation best fits?
- Use IAM roles for service accounts for the pod's supported identity pattern
- Build and test a hardened AMI with EC2 Image Builder
- Narrow the Lambda execution role's identity policy
- Enable Amazon ECR image scanning with an appropriate scanning mode
Explanation
Correct Answer
A:Pod-scoped IAM role association helps avoid sharing the node's broad credentials with every workload; for a managed-node security baseline audit, this is the measure that delivers the requirement to prevent an EKS pod from inheriting broad worker-node permissions.
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 “Prevent an EKS pod from inheriting broad worker-node permissions,” which is a separate security mechanism.
C:Lambda receives AWS service permissions through its execution role rather than arbitrary permissions of the caller invoking it; its scope is the requirement to restrict a Lambda function's access to S3 operations, rather than the requirement to prevent an EKS pod from inheriting broad worker-node permissions for a managed-node security baseline audit.
D: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 prevent an EKS pod from inheriting broad worker-node permissions unresolved in a managed-node security baseline audit.
Question 768
A security architecture review for a security tool integration assessment contains 3 independently assessed work items: (1) Search a month of archived CloudTrail JSON records for calls from an IP address; (2) Identify a change in user behavior from an unusual sequence of AWS API calls; (3) Aggregate cross-account findings in a central security team account. Which actions directly implement those requirements? Choose THREE.
- Verify its namespace, metric dimensions, period, and alarm threshold
- Create a Security Hub custom insight grouped by workflow status and severity
- Inspect GuardDuty anomaly findings with relevant CloudTrail events
- Configure a delegated Security Hub administrator and member accounts
- Query S3-delivered records with Athena using a suitable table schema
Explanation
Correct Answers
C:Threat findings provide an anomaly lead, while CloudTrail records show the specific API actor and sequence for verification; in a security tool integration assessment, this is one of the independently required safeguards because it addresses the requirement to identify a change in user behavior from an unusual sequence of AWS API calls.
D:Security Hub supports central security finding management when administrators and members are configured in supported Regions; in a security tool integration assessment, this is one of the independently required safeguards because it addresses the requirement to aggregate cross-account findings in a central security team account.
E:Athena performs SQL queries over stored log objects without requiring ingestion of the entire archive into a running database; in a security tool integration assessment, this is one of the independently required safeguards because it addresses the requirement to search a month of archived CloudTrail JSON records for calls from an IP address.
Incorrect Answers
A:CloudWatch alarms evaluate a particular metric time series; incorrect dimensions or period selection can make the intended events invisible; in a security tool integration assessment, that supports the requirement to find why a custom CloudWatch alarm never triggered during an incident, which is distinct from the 3 enumerated security work items.
B:Insights filter and aggregate standardized findings for prioritization; they do not replace detector collection; in a security tool integration assessment, that supports the requirement to identify security findings that remain unresolved despite repeated alerts, which is distinct from the 3 enumerated security work items.
Question 769
An AWS team is correcting two gaps in the compliance evidence and drift review: Report audit findings from multiple security tools in a common format; and Demonstrate which account actions changed a security posture setting. Which proposed set of controls fixes both gaps?
- Consolidate compatible findings in AWS Security Hub; and enable AWS Config recorders and delivery to controlled storage
- Consolidate compatible findings in AWS Security Hub; and cross-reference CloudTrail API activity with AWS Config configuration history
- Enable AWS Config recorders and delivery to controlled storage; and query historical AWS Config configuration items and rule evaluations
- Query historical AWS Config configuration items and rule evaluations; and cross-reference CloudTrail API activity with AWS Config configuration history
Explanation
Correct Answer
B:For “Report audit findings from multiple security tools in a common format,” the governing behavior is: Finding normalization enables shared prioritization, while raw evidence may remain in the originating tool; for the separate check “Demonstrate which account actions changed a security posture setting,” it is: CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “Report audit findings from multiple security tools in a common format” because finding normalization enables shared prioritization, while raw evidence may remain in the originating tool; the second part addresses a different issue (“Preserve compliance history of changes to resource configurations”) because configuration item history supports reconstruction of resource state changes rather than tracking only a current compliance flag; it does not fulfill the “Demonstrate which account actions changed a security posture setting” test.
C:This combination targets different outcomes: Configuration item history supports reconstruction of resource state changes rather than tracking only a current compliance flag helps with “Preserve compliance history of changes to resource configurations”; Config history records supported configuration states, providing evidence of earlier insecure ingress settings helps with “Determine whether a security group ever allowed public administrative ports”; neither implements the required “Report audit findings from multiple security tools in a common format” and “Demonstrate which account actions changed a security posture setting” outcomes together.
D:Only the second requirement is covered: CloudTrail identifies calling principals, while Config describes recorded resource state changes and compliance impacts supports “Demonstrate which account actions changed a security posture setting”; by contrast, Config history records supported configuration states, providing evidence of earlier insecure ingress settings concerns “Determine whether a security group ever allowed public administrative ports,” leaving “Report audit findings from multiple security tools in a common format” unresolved.
Question 770
A review board evaluating the CloudWatch alerting deployment rejects fixes that cover just one requirement. The requirements are: Notify an incident channel when a CloudWatch alarm changes to ALARM state; and Create a consolidated high-severity security finding view across integrated detectors. Which configuration addresses both?
- Attach an Amazon SNS action to the alarm; and configure AWS Cost Anomaly Detection notifications
- Attach an Amazon SNS action to the alarm; and configure Security Hub aggregation and insights
- Configure AWS Cost Anomaly Detection notifications; and match CloudTrail management API events using an EventBridge rule
- Match CloudTrail management API events using an EventBridge rule; and configure Security Hub aggregation and insights
Explanation
Correct Answer
B:For “Notify an incident channel when a CloudWatch alarm changes to ALARM state,” the governing behavior is: SNS delivers subscribed notifications after the CloudWatch alarm evaluates the configured metric and changes state; for the separate check “Create a consolidated high-severity security finding view across integrated detectors,” it is: Security Hub consolidates supported security findings and groups them by operational properties for investigation; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “Notify an incident channel when a CloudWatch alarm changes to ALARM state” because SNS delivers subscribed notifications after the CloudWatch alarm evaluates the configured metric and changes state; the second part addresses a different issue (“Alert on unusual spending that may indicate unauthorized resource provisioning”) because cost Anomaly Detection examines anomalous spending patterns; it does not inspect process activity or HTTP payloads; it does not fulfill the “Create a consolidated high-severity security finding view across integrated detectors” test.
C:This combination targets different outcomes: Cost Anomaly Detection examines anomalous spending patterns; it does not inspect process activity or HTTP payloads helps with “Alert on unusual spending that may indicate unauthorized resource provisioning”; CloudTrail supplies the control-plane event details and EventBridge evaluates an event pattern to trigger notification or a remediation target helps with “Notify operators after an IAM policy is modified in a sensitive account”; neither implements the required “Notify an incident channel when a CloudWatch alarm changes to ALARM state” and “Create a consolidated high-severity security finding view across integrated detectors” outcomes together.
D:Only the second requirement is covered: Security Hub consolidates supported security findings and groups them by operational properties for investigation supports “Create a consolidated high-severity security finding view across integrated detectors”; by contrast, CloudTrail supplies the control-plane event details and EventBridge evaluates an event pattern to trigger notification or a remediation target concerns “Notify operators after an IAM policy is modified in a sensitive account,” leaving “Notify an incident channel when a CloudWatch alarm changes to ALARM state” unresolved.