Question 820
An implementation in the central log collection migration must solve two separate problems, not merely strengthen one safeguard: Keep CloudWatch Logs data for a mandated finite retention interval; Keep a central log bucket inaccessible to public principals. Which change meets the full request?
- Apply an S3 Lifecycle transition policy to the log archive; and apply S3 Block Public Access and restrictive bucket policy conditions
- Enable AWS Config recording and history delivery; and apply an S3 Lifecycle transition policy to the log archive
- Set each relevant log group's retention policy explicitly; and apply S3 Block Public Access and restrictive bucket policy conditions
- Set each relevant log group's retention policy explicitly; and enable AWS Config recording and history delivery
Explanation
Correct Answer
C:This pairing handles the first requirement (“Keep CloudWatch Logs data for a mandated finite retention interval”) because log retention settings govern when CloudWatch deletes aged events; the default can retain events indefinitely unless changed; it handles the second (“Keep a central log bucket inaccessible to public principals”) because blocking public access and limiting principals protects delivered log objects independently from the logging service configuration; both acceptance criteria are therefore addressed.
Incorrect Answers
A:This solves the second problem (“Keep a central log bucket inaccessible to public principals”): Blocking public access and limiting principals protects delivered log objects independently from the logging service configuration; however, the first action addresses “Archive security logs at lower storage cost after the investigation window”: Lifecycle rules transition or expire object versions under configured conditions; immutability requirements must be handled separately; it does not satisfy “Keep CloudWatch Logs data for a mandated finite retention interval.”.
B:Both mechanisms have legitimate uses, but for other requirements: Config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing supports “Observe configuration changes to security-sensitive AWS resources over time”; Lifecycle rules transition or expire object versions under configured conditions; immutability requirements must be handled separately supports “Archive security logs at lower storage cost after the investigation window”; this does not resolve the stated “Keep CloudWatch Logs data for a mandated finite retention interval” and “Keep a central log bucket inaccessible to public principals” findings.
D:One action is correctly chosen for “Keep CloudWatch Logs data for a mandated finite retention interval”: Log retention settings govern when CloudWatch deletes aged events; the default can retain events indefinitely unless changed; the companion action relates to “Observe configuration changes to security-sensitive AWS resources over time”: Config records supported resource configuration states; CloudTrail complements it by identifying management API callers and timing; the other requested outcome, “Keep a central log bucket inaccessible to public principals,” remains outstanding.
Question 821
For an application secret retrieval design, engineers have been assigned this security outcome: Restrict KMS key administration separately from data-key usage. What implementation best fits?
- Use distinct KMS key policy statements for key managers and key users
- Call KMS GenerateDataKey and protect the returned plaintext key in memory
- Configure AWS Private CA and issue certificates through the private CA workflow
- Revoke the issued certificate through the private CA process and publish revocation information
Explanation
Correct Answer
A:Administrative actions and cryptographic actions can be delegated to separate principals, reducing unnecessary decrypt privileges; that AWS behavior meets the requirement to restrict KMS key administration separately from data-key usage, the decisive objective for an application secret retrieval design.
Incorrect Answers
B:The response provides a plaintext data key and encrypted key copy; the application encrypts bulk data locally and stores only the wrapped key; its scope is the requirement to generate a plaintext data key for local envelope encryption by an authorized application, rather than the requirement to restrict KMS key administration separately from data-key usage for an application secret retrieval design.
C:Private CA supports privately trusted X.509 issuance whose trust chain must be distributed to internal clients; this addresses the requirement to issue private TLS certificates for internal services under a controlled private hierarchy, not the requirement to restrict KMS key administration separately from data-key usage, which is needed in an application secret retrieval design.
D:Certificate revocation mechanisms help relying parties reject compromised certificates when clients check the issued revocation data; its purpose is the requirement to revoke a certificate that should no longer be trusted in a private PKI, but the acceptance criterion in an application secret retrieval design is the requirement to restrict KMS key administration separately from data-key usage.
Question 822
The credential and federation review has two control objectives. Requirement one: A federated role fails to assume despite the user being authenticated with a corporate identity. Requirement two: An EC2 SDK cannot retrieve credentials even though an IAM policy grants access. Which design passes both checks?
- Inspect the role trust policy, provider identifier, and assertion conditions; and verify the instance profile attachment and IMDS availability
- Inspect the role trust policy, provider identifier, and assertion conditions; and correct the identity provider client ID and role trust audience condition
- Check IAM Identity Center account assignments and permission sets; and verify the instance profile attachment and IMDS availability
- Correct the identity provider client ID and role trust audience condition; and check IAM Identity Center account assignments and permission sets
Explanation
Correct Answer
A:The first control addresses the check “A federated role fails to assume despite the user being authenticated with a corporate identity”: Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; the other addresses “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access”: Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel; these two mechanisms cover the complete credential and federation review.
Incorrect Answers
B:Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; this is relevant to the first objective (“A federated role fails to assume despite the user being authenticated with a corporate identity”); however, the other action is meant for “An OIDC role assumption is denied because the token audience does not match”: OIDC federation relies on token claims satisfying the trust policy, including the expected audience; it leaves the required “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access” behavior unimplemented.
C:Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel; this fulfills the second objective (“An EC2 SDK cannot retrieve credentials even though an IAM policy grants access”); the other action is intended for “A worker's federated portal login succeeds but no target account is listed”: Authentication to the portal alone grants no account entitlement until an assignment connects the principal and permission set; it does not meet the requested “A federated role fails to assume despite the user being authenticated with a corporate identity” check.
D:The first action belongs to “An OIDC role assumption is denied because the token audience does not match” because OIDC federation relies on token claims satisfying the trust policy, including the expected audience; the second belongs to “A worker's federated portal login succeeds but no target account is listed” because authentication to the portal alone grants no account entitlement until an assignment connects the principal and permission set; these are not the required checks, “A federated role fails to assume despite the user being authenticated with a corporate identity” and “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access.”.
Question 823
During a private network troubleshooting exercise, reviewers document two independent acceptance criteria. First: Determine whether a WAF rule or an origin error caused an HTTP rejection. Second: Find which configured VPC component blocks a path between EC2 instances. Which combined implementation satisfies both?
- Examine routes, network ACLs, host firewalls, and application listeners; and review ENI-scoped Flow Log action and address/port fields
- Review ENI-scoped Flow Log action and address/port fields; and run VPC Reachability Analyzer from source to destination
- Inspect WAF request logs alongside ALB access logs; and examine routes, network ACLs, host firewalls, and application listeners
- Inspect WAF request logs alongside ALB access logs; and run VPC Reachability Analyzer from source to destination
Explanation
Correct Answer
D:The first control addresses the check “Determine whether a WAF rule or an origin error caused an HTTP rejection”: WAF logs show web ACL dispositions while ALB logs characterize requests reaching the load balancer; the other addresses “Find which configured VPC component blocks a path between EC2 instances”: Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; these two mechanisms cover the complete private network troubleshooting exercise.
Incorrect Answers
A:The first action belongs to “Diagnose why a security-group rule permits ingress but the app still cannot connect” because security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; the second belongs to “Diagnose a rejected connection using VPC flow records” because flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; these are not the required checks, “Determine whether a WAF rule or an origin error caused an HTTP rejection” and “Find which configured VPC component blocks a path between EC2 instances.”.
B:Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; this fulfills the second objective (“Find which configured VPC component blocks a path between EC2 instances”); the other action is intended for “Diagnose a rejected connection using VPC flow records”: Flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; it does not meet the requested “Determine whether a WAF rule or an origin error caused an HTTP rejection” check.
C:WAF logs show web ACL dispositions while ALB logs characterize requests reaching the load balancer; this is relevant to the first objective (“Determine whether a WAF rule or an origin error caused an HTTP rejection”); however, the other action is meant for “Diagnose why a security-group rule permits ingress but the app still cannot connect”: Security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; it leaves the required “Find which configured VPC component blocks a path between EC2 instances” behavior unimplemented.
Question 824
An architect is reviewing a security incident runbook exercise. The acceptance criterion reads: Stop further use of a disclosed IAM user's long-term API key. Which approach satisfies it?
- Match GuardDuty events with an EventBridge rule and invoke a Step Functions workflow
- 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
- Route the finding event through EventBridge to an SNS topic
- Launch replacement capacity from a verified hardened AMI
Explanation
Correct Answer
B:An inactive access key cannot authenticate future signed API requests, allowing responders to eliminate the exposed credential while tracing historical use; it addresses the requirement to stop further use of a disclosed IAM user's long-term API key at the right security boundary during a security incident runbook exercise.
Incorrect Answers
A:For the different objective “Route high-severity GuardDuty findings into an approved response workflow,” EventBridge matches supported security finding events, while Step Functions coordinates the ordered response steps and human approval gates; the scenario instead requires “Stop further use of a disclosed IAM user's long-term API key,” which is a separate security mechanism.
C:Lambda uses its execution role for AWS API calls; limiting that role reduces the impact if the automation code is abused; the important distinction in a security incident runbook exercise is that this supports the requirement to prevent a response Lambda from having blanket administrator privileges instead of the requirement to stop further use of a disclosed IAM user's long-term API key.
D:SNS fan-out notifies multiple subscribed responders after EventBridge selects the events requiring immediate attention; this addresses the requirement to send incident alerts to an on-call distribution group after matching a security finding, not the requirement to stop further use of a disclosed IAM user's long-term API key, which is needed in a security incident runbook exercise.
E:Rebuilding from trusted images avoids continuing to use an altered instance filesystem, while forensic copies can remain isolated; this addresses the requirement to recover a known-good workload after an incident while retaining compromised images for evidence, not the requirement to stop further use of a disclosed IAM user's long-term API key, which is needed in a security incident runbook exercise.
Question 825
A security review for a CloudFormation change-management process identifies one priority: Group AWS resources using consistent key-value business metadata. Which control is the best choice?
- Define and enforce a tagging strategy with AWS Organizations tag policies where applicable
- Use version-controlled AWS CloudFormation templates with approved parameters
- Publish governed AWS Service Catalog products and portfolios
- Use AWS Resource Access Manager with explicit shares
- Use AWS Resource Groups with matching resource tags
Explanation
Correct Answer
A:Tag policies standardize compliant tag keys and values on supported resources, while separate controls may be needed to require tags at creation; this is the direct solution to the requirement to group AWS resources using consistent key-value business metadata in a CloudFormation change-management process.
Incorrect Answers
B:For the different objective “Deploy the same reviewed infrastructure security settings across environments,” infrastructure as code expresses resource baselines reproducibly and makes unauthorized differences easier to investigate; the scenario instead requires “Group AWS resources using consistent key-value business metadata,” which is a separate security mechanism.
C:Service Catalog constrains provisioned products through approved definitions and access assignments rather than unrestricted console creation; the important distinction in a CloudFormation change-management process is that this supports the requirement to offer only approved infrastructure products to application teams instead of the requirement to group AWS resources using consistent key-value business metadata.
D:RAM supports cross-account sharing of eligible resources, subject to organization and resource-specific controls; the important distinction in a CloudFormation change-management process is that this supports the requirement to share a supported network resource with other member accounts without duplicating it instead of the requirement to group AWS resources using consistent key-value business metadata.
E:Resource Groups presents collections of resources for management; it does not create new IAM or VPC security boundaries; this would help with the requirement to manage a fleet of AWS instances as an operational grouping without a new account, leaving the requirement to group AWS resources using consistent key-value business metadata unresolved in a CloudFormation change-management process.
Question 826
Before closing the security event analytics project, a team must demonstrate the following: Find unusual API call rates rather than just inspect routine event counts; plus Summarize findings by account, severity, and workflow state. Which paired change would complete the work?
- Inspect CloudTrail UpdateAssumeRolePolicy records and request context; and configure Security Hub insights over normalized security findings
- Query the log objects in Athena with an appropriate external table; and inspect CloudTrail UpdateAssumeRolePolicy records and request context
- Enable CloudTrail Insights for the supported management-event analysis; and configure Security Hub insights over normalized security findings
- Enable CloudTrail Insights for the supported management-event analysis; and query the log objects in Athena with an appropriate external table
Explanation
Correct Answer
C:The implementation has a specific control for each objective: Insights identifies unusual API activity trends when configured, whereas ordinary event history simply lists observed operations for “Find unusual API call rates rather than just inspect routine event counts”; Security Hub insights aggregate finding properties rather than querying raw VPC packet records for “Summarize findings by account, severity, and workflow state”; the combined option satisfies the two-part request.
Incorrect Answers
A:While Security Hub insights aggregate finding properties rather than querying raw VPC packet records is relevant to “Summarize findings by account, severity, and workflow state,” the other component targets “Determine which caller changed an IAM trust policy,” where CloudTrail management events expose who invoked role trust changes and which policy update was submitted; the first acceptance criterion (“Find unusual API call rates rather than just inspect routine event counts”) is not met.
B:The first proposed action addresses “Join S3 archived CloudTrail records with a reference table of suspect IPs”: Athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; the second addresses “Determine which caller changed an IAM trust policy”: CloudTrail management events expose who invoked role trust changes and which policy update was submitted; the combination does not achieve the required “Find unusual API call rates rather than just inspect routine event counts” and “Summarize findings by account, severity, and workflow state” outcomes in this security event analytics project.
D:The first check would be covered, since insights identifies unusual API activity trends when configured, whereas ordinary event history simply lists observed operations; yet the second choice is associated with “Join S3 archived CloudTrail records with a reference table of suspect IPs,” for which athena SQL can correlate S3-resident datasets when file locations and schemas are configured correctly; no corresponding control satisfies “Summarize findings by account, severity, and workflow state.”.
Question 827
In a cryptographic data-integrity project, a control owner must address the following requirement: Encrypt an RDS database's storage at creation. Which option should be selected?
- Enable EBS encryption by default with the approved KMS key
- Select the customer-managed AWS KMS key for DynamoDB server-side encryption
- Snapshot it, copy the snapshot with encryption, and create a replacement encrypted volume
- Enable RDS storage encryption and select a suitable KMS key
Explanation
Correct Answer
D:RDS at-rest encryption protects supported storage components and must be planned at creation or through an appropriate snapshot migration; that AWS behavior meets the requirement to encrypt an RDS database's storage at creation, the decisive objective for a cryptographic data-integrity project.
Incorrect Answers
A:EBS account settings make newly created volumes and snapshots use encryption settings without individually configuring every launch path; this addresses the requirement to encrypt new EC2 EBS volumes by default in an account and Region, not the requirement to encrypt an RDS database's storage at creation, which is needed in a cryptographic data-integrity project.
B:DynamoDB integrates encryption at rest with KMS; using a customer-managed key adds customer-controlled key policy and lifecycle considerations; this would help with the requirement to encrypt DynamoDB table data at rest using an approved customer-managed KMS key, leaving the requirement to encrypt an RDS database's storage at creation unresolved in a cryptographic data-integrity project.
C:EBS volume encryption is established on creation; an encrypted snapshot copy enables a controlled migration of existing data; this would help with the requirement to migrate an unencrypted EBS volume to encrypted storage, leaving the requirement to encrypt an RDS database's storage at creation unresolved in a cryptographic data-integrity project.
Question 828
During a VPC connectivity and segmentation rollout, reviewers document two independent acceptance criteria. First: Keep a private subnet from routing directly to the internet gateway. Second: Allow egress to S3 without crossing the public internet through NAT. Which combined implementation satisfies both?
- Reference the application security group in the database security group's inbound rule; and use a stateful VPC security group
- Use a stateful VPC security group; and create an S3 gateway VPC endpoint and update applicable route tables
- Remove the default internet gateway route from the private subnet's route table; and reference the application security group in the database security group's inbound rule
- Remove the default internet gateway route from the private subnet's route table; and create an S3 gateway VPC endpoint and update applicable route tables
Explanation
Correct Answer
D:The first control addresses the check “Keep a private subnet from routing directly to the internet gateway”: The subnet route table determines forwarding paths; a private subnet does not gain direct public routing without an appropriate route; the other addresses “Allow egress to S3 without crossing the public internet through NAT”: A gateway endpoint supplies a private route for supported S3 traffic in the VPC, with endpoint policy restrictions available; these two mechanisms cover the complete VPC connectivity and segmentation rollout.
Incorrect Answers
A:The first action belongs to “Allow only an application tier's security group to connect to database port 5432” because referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses; the second belongs to “Permit response traffic automatically for an established EC2 connection” because security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed; these are not the required checks, “Keep a private subnet from routing directly to the internet gateway” and “Allow egress to S3 without crossing the public internet through NAT.”.
B:A gateway endpoint supplies a private route for supported S3 traffic in the VPC, with endpoint policy restrictions available; this fulfills the second objective (“Allow egress to S3 without crossing the public internet through NAT”); the other action is intended for “Permit response traffic automatically for an established EC2 connection”: Security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed; it does not meet the requested “Keep a private subnet from routing directly to the internet gateway” check.
C:The subnet route table determines forwarding paths; a private subnet does not gain direct public routing without an appropriate route; this is relevant to the first objective (“Keep a private subnet from routing directly to the internet gateway”); however, the other action is meant for “Allow only an application tier's security group to connect to database port 5432”: Referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses; it leaves the required “Allow egress to S3 without crossing the public internet through NAT” behavior unimplemented.
Question 829
An AWS team is correcting two gaps in the permissions and authorization review: An operator needs to determine why a specific AWS API call is denied; and An overly broad policy includes actions never used by the principal. Which proposed set of controls fixes both gaps?
- Review IAM Access Analyzer external access findings for supported resource policies; and use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input
- Update the resource policy to reference the intended role or session principal; and review IAM Access Analyzer external access findings for supported resource policies
- Test the applicable policies with IAM policy simulator and check CloudTrail evidence; and use IAM Access Analyzer policy generation from CloudTrail activity as a refinement input
- Test the applicable policies with IAM policy simulator and check CloudTrail evidence; and update the resource policy to reference the intended role or session principal
Explanation
Correct Answer
C:For “An operator needs to determine why a specific AWS API call is denied,” the governing behavior is: Simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request; for the separate check “An overly broad policy includes actions never used by the principal,” it is: Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:Only the second requirement is covered: Policy generation can propose narrower allowed actions based on observed usage, subject to the observation window and supported event sources supports “An overly broad policy includes actions never used by the principal”; by contrast, Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents concerns “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone,” leaving “An operator needs to determine why a specific AWS API call is denied” unresolved.
B:This combination targets different outcomes: Authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities helps with “An assumed role is denied by a resource policy that names the wrong principal”; Access Analyzer analyzes policy-based access outside the chosen trust boundary; it does not inspect live network packet contents helps with “A developer needs to see whether an S3 bucket is exposed beyond an account trust zone”; neither implements the required “An operator needs to determine why a specific AWS API call is denied” and “An overly broad policy includes actions never used by the principal” outcomes together.
D:The first part is appropriate for “An operator needs to determine why a specific AWS API call is denied” because simulation clarifies modeled permissions, while CloudTrail supplies the actual actor and error context for the failed request; the second part addresses a different issue (“An assumed role is denied by a resource policy that names the wrong principal”) because authorization depends on the actual principal ARN and context used by the request; similar role names are not interchangeable identities; it does not fulfill the “An overly broad policy includes actions never used by the principal” test.
Question 830
During a log delivery outage investigation, the security team has this work item: A Kinesis Firehose delivery stream cannot write log objects to S3. Which AWS action is the most direct implementation?
- Fix the delivery role's S3 write and applicable KMS permissions
- Confirm the trail is an organization trail and organizational settings are active
- Grant least-privilege S3 object read access and any required KMS decrypt rights
- Add restrictive bucket controls and object retention, not just lifecycle rules
Explanation
Correct Answer
A:The Firehose role must be authorized for destination storage and encryption, separately from the upstream log producer; it addresses the reported condition: a Kinesis Firehose delivery stream cannot write log objects to S3 at the right security boundary during a log delivery outage investigation.
Incorrect Answers
B:A standard account trail does not automatically provide comprehensive member-account management coverage across an organization; its scope is the reported condition: an organization trail omits a recently joined account's events, rather than the reported condition: a Kinesis Firehose delivery stream cannot write log objects to S3 for a log delivery outage investigation.
C:Successful logging and successful analysis are separate permissions; encryption can require an additional key grant to readers; this addresses the reported condition: a destination bucket accepts logs but investigators cannot read them, not the reported condition: a Kinesis Firehose delivery stream cannot write log objects to S3, which is needed in a log delivery outage investigation.
D:Access authorization and retention safeguards protect evidence; lifecycle configuration determines object aging rather than who can modify it; the important distinction in a log delivery outage investigation is that this supports the reported condition: an S3 log archive is editable by identities outside the security account instead of the reported condition: a Kinesis Firehose delivery stream cannot write log objects to S3.