Question 960
Investigators observe: A routine application template update attempts to change a protected database resource. Engineers still need to block unintended replacement or deletion of protected resources during stack updates. Which corrective action is most appropriate?
- Use CloudFormation stack policies to protect critical resources from updates
- Use CloudFormation rollback triggers wired to CloudWatch alarms
- Enable automatic deployment for an OU-targeted CloudFormation StackSet
- Use CloudFormation hooks to validate resource configuration during stack operations
- Enable CloudFormation drift detection on supported stack resources
Explanation
Correct Answer
A:A stack policy can deny update actions on selected logical resources unless appropriately overridden; in this case the control is appropriate because it supports block unintended replacement or deletion of protected resources during stack updates. Protection should constrain update operations while allowing approved stack updates elsewhere.
Incorrect Answers
B:That service solves a different operating problem: the need to roll back a stack update when a monitored service alarm fires during its monitoring period. Its behavior is that rollback triggers monitor configured CloudWatch alarms and can initiate rollback when a trigger alarms. The requested outcome remains block unintended replacement or deletion of protected resources during stack updates.
C:The choice is useful when engineers need to apply baseline stacks when new accounts join a targeted organizational unit: stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs. It would not establish the control needed to block unintended replacement or deletion of protected resources during stack updates.
D:CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types; this is a reasonable option when the requirement is to intercept stack resource operations that violate central deployment rules, but it operates at a different workflow boundary from the stated need to block unintended replacement or deletion of protected resources during stack updates.
E:Choosing this would aim to identify unmanaged configuration changes made outside the IaC deployment instead of block unintended replacement or deletion of protected resources during stack updates; drift detection compares actual and expected configurations for supported resources and properties; it cannot replace the mechanism specified by the incident evidence.
Question 961
A security implementation has two separate dependencies: identify aging IAM user credentials that require rotation or removal, and identify resource-based policies granting access outside the expected trust zone. Select the combination that addresses both rather than only one.
- Use IAM credential reports and access-key last-used data for periodic access review; enable CloudTrail log file integrity validation and validate digest signatures
- Use IAM credential reports and access-key last-used data for periodic access review; use IAM Access Analyzer external access findings for resource policies
- Use Security Hub automation rules for finding-state prioritization; use Amazon Detective for investigation of related security activity
- Use IAM Access Analyzer unused-access analysis for stale privileges; use IAM Access Analyzer external access findings for resource policies
- Use IAM credential reports and access-key last-used data for periodic access review; use AWS Config conformance packs for grouped compliance evaluation
Explanation
Correct Answer
B:For the requirement to identify aging IAM user credentials that require rotation or removal, IAM credential reports and access-key usage metadata support audits of IAM user authentication materials. For the requirement to identify resource-based policies granting access outside the expected trust zone, IAM Access Analyzer can flag supported resources whose policies allow external access. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.
Incorrect Answers
A:Combining a suitable first control with this second one misses the secondary acceptance criterion; CloudTrail integrity validation supports cryptographic verification of delivered log file digests; it helps prove whether delivered trail log objects have been tampered with rather than identify resource-based policies granting access outside the expected trust zone.
C:These are legitimate AWS controls for different outcomes: Security Hub automation rules can update selected finding fields when findings match configured criteria, whereas detective assists security investigations by correlating supported activity and entity relationships. The problem instead requires the ability to identify aging IAM user credentials that require rotation or removal and to identify resource-based policies granting access outside the expected trust zone.
D:This combination solves only the latter acceptance test. The substituted first control supports find roles or permissions that have not been used within the configured scope: unused access findings help identify unused IAM roles or unused permissions for least-privilege review; it does not implement identify aging IAM user credentials that require rotation or removal.
E:The first half is appropriate: IAM credential reports and access-key usage metadata support audits of IAM user authentication materials. However, conformance packs package AWS Config rules and supported remediation actions for consistent evaluation; that serves a different objective (evaluate a collection of resource configuration controls against a standard) and leaves the explicit need to identify resource-based policies granting access outside the expected trust zone unmet.
Question 962
Two technical outcomes must be delivered together: investigate historical audit events across a large retained log archive and prioritize security risks across multiple supported detection services. Which pair of controls is sufficient for the stated outcomes?
- Use CloudWatch Synthetics canaries to validate a customer workflow; use Security Hub findings to correlate security signals from enabled integrations
- Use Athena to query partitioned CloudTrail records stored in S3; use Security Hub findings to correlate security signals from enabled integrations
- Query CloudTrail management events to attribute an unexpected IAM change; instrument the actual application error path with structured logs and trace IDs
- Use Athena to query partitioned CloudTrail records stored in S3; use VPC Flow Logs for network traffic acceptance and rejection evidence
Explanation
Correct Answer
B:Athena can query compatible S3-based log data using SQL and suitable tables or partitions. This handles the first acceptance condition, subject to the boundary that the analysis should avoid downloading every object to a workstation. The remaining condition is handled separately: Security Hub normalizes supported security findings and provides centralized prioritization workflows, with aggregated findings must retain product identity, severity, and resource details.
Incorrect Answers
A:The second implementation is relevant; the problem is the first. Synthetics canaries execute scripts and publish availability and step-level results. It can help detect external failures in a multi-step website journey before users report them, whereas the stated first requirement is to investigate historical audit events across a large retained log archive.
C:Neither control directly supplies both requested behaviors. CloudTrail records supported management API events that can identify who made a change; application tracing and correlated structured logs reveal failures not expressed by host utilization metrics. Those mechanisms address different objectives. The specified capabilities are to investigate historical audit events across a large retained log archive and to prioritize security risks across multiple supported detection services.
D:VPC Flow Logs record flow metadata such as source, destination, port, and accept or reject action; that alternative supports the ability to determine whether recorded network flows were accepted or rejected at an interface, but it is not the requested second outcome (prioritize security risks across multiple supported detection services). Even though the first half addresses investigate historical audit events across a large retained log archive, this pair is incomplete.
Question 963
Two technical outcomes must be delivered together: automate repeatable golden-image builds with validation tests and automate container base-image patching and validation for approved images. Which pair of controls is sufficient for the stated outcomes?
- Use EC2 Image Builder distribution settings for target Regions and accounts; export a CodeBuild artifact using buildspec artifact paths
- Use EC2 Image Builder pipelines to produce hardened AMIs; use an EC2 Image Builder container recipe to generate a hardened container image
- Enable S3 replication for approved build objects that must be available cross-Region; use an EC2 Image Builder container recipe to generate a hardened container image
- Use EC2 Image Builder pipelines to produce hardened AMIs; publish versioned language dependencies to AWS CodeArtifact
- Configure an ECR lifecycle policy to expire unwanted image versions; use an EC2 Image Builder container recipe to generate a hardened container image
- Use EC2 Image Builder pipelines to produce hardened AMIs; enable ECR image tag immutability for release repositories
Explanation
Correct Answer
B:Image Builder creates, customizes, tests, and distributes repeatable machine images from recipes; image Builder supports container recipes and workflows to build and test image outputs. The first control satisfies the need to automate repeatable golden-image builds with validation tests; the second addresses the need to automate container base-image patching and validation for approved images. Published instance images must undergo defined components and tests; the image build should follow a repeatable managed pipeline.
Incorrect Answers
A:Neither control directly supplies both requested behaviors. Image Builder distribution configurations control supported AMI copies and sharing after creation; the buildspec artifacts section chooses files to package and publish as build outputs. Those mechanisms address different objectives. The specified capabilities are to automate repeatable golden-image builds with validation tests and to automate container base-image patching and validation for approved images.
C:This combination solves only the latter acceptance test. The substituted first control supports copy versioned release bundles into a secondary Region's artifact bucket: S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions. It does not implement automate repeatable golden-image builds with validation tests.
D:The first half is appropriate: Image Builder creates, customizes, tests, and distributes repeatable machine images from recipes. However, CodeArtifact hosts versioned package repositories with upstream connections and permission policies; that serves a different objective (centrally share approved Maven or npm packages across build projects) and leaves the explicit need to automate container base-image patching and validation for approved images unmet.
E:The second implementation is relevant; the problem is the first. ECR lifecycle rules automate image expiration according to matching criteria. It can help remove unneeded old images without deleting current release references, whereas the stated first requirement is to automate repeatable golden-image builds with validation tests.
F:Combining a suitable first control with this second one misses the secondary acceptance criterion; ECR tag immutability prevents image tags from being overwritten in repositories configured for it; it helps prevent existing release tags from silently being overwritten rather than automate container base-image patching and validation for approved images.
Question 964
During root-cause analysis, the team identifies the following: Individual Lambda duration metrics are normal but requests through the API are very slow. To identify which downstream call dominates end-to-end request latency, what should be configured?
- Instrument the actual application error path with structured logs and trace IDs
- Use CloudWatch Synthetics canaries to validate a customer workflow
- Enable AWS X-Ray tracing across supported API and Lambda components
- Use CloudWatch dashboard widgets for a shared service SLO view
Explanation
Correct Answer
C:To identify which downstream call dominates end-to-end request latency, the architecture relies on this AWS behavior: x-Ray traces and segments expose timing and dependencies across instrumented service calls. Request context must correlate latency across service boundaries.
Incorrect Answers
A:Choosing this would aim to diagnose which business operation produces sporadic application exceptions instead of identify which downstream call dominates end-to-end request latency; application tracing and correlated structured logs reveal failures not expressed by host utilization metrics; it cannot replace the mechanism specified by the incident evidence.
B:Although synthetics canaries execute scripts and publish availability and step-level results, the scenario does not ask for detect external failures in a multi-step website journey before users report them; it requires the ability to identify which downstream call dominates end-to-end request latency, which is a separate responsibility.
D:That service solves a different operating problem: the need to show latency, errors, and saturation to incident responders in one panel. Its behavior is that CloudWatch dashboards visualize selected metrics, logs, and alarms in a shared operational view. The requested outcome remains identify which downstream call dominates end-to-end request latency.
Question 965
Investigators observe: Security logs show no HTTP request but TCP connection attempts time out. Engineers still need to identify source, destination, and action details for a suspected network denial. Which corrective action is most appropriate?
- Use IAM Access Analyzer external access findings for resource policies
- Use IAM credential reports and access-key last-used data for periodic access review
- Use CloudWatch metric filters with alarms on sensitive security log patterns
- Use VPC Flow Logs to investigate rejected network flows
Explanation
Correct Answer
D:VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads; it restores the ability to identify source, destination, and action details for a suspected network denial, provided the implementation also observes that the investigation must distinguish network accept or reject metadata from application logs.
Incorrect Answers
A:Although IAM Access Analyzer can flag supported resources whose policies allow external access, the scenario does not ask for identify resource-based policies granting access outside the expected trust zone. It requires the ability to identify source, destination, and action details for a suspected network denial, which is a separate responsibility.
B:IAM credential reports and access-key usage metadata support audits of IAM user authentication materials; this can help teams identify aging IAM user credentials that require rotation or removal, but the reported workflow needs to identify source, destination, and action details for a suspected network denial. It does not perform that required function.
C:That service solves a different operating problem: the need to alert when repeated access-denied or suspicious authentication events enter central logs; its behavior is that metric filters turn matching log events into CloudWatch measurements that can trigger alarms; the requested outcome remains identify source, destination, and action details for a suspected network denial.
Question 966
A production change is expected to prevent newer revisions from unexpectedly superseding a release requiring sequential review. The same change must also notify release owners that production is awaiting an approval action. Which paired implementation meets both acceptance criteria?
- Use an AWS Step Functions state machine to coordinate conditional release tasks; use a CodePipeline approval stage with a designated SNS notification
- Define build phases and commands in the CodeBuild buildspec; configure a cross-Region artifact store for the target action Region
- Use a CodePipeline execution mode suited to parallel release frequency; use a CodePipeline approval stage with a designated SNS notification
- Use a CodePipeline execution mode suited to parallel release frequency; use an AWS CDK pipeline with dedicated synth and deployment steps
Explanation
Correct Answer
C:Pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions; the manual approval action can publish an approval notification to an SNS topic for human review. The first control satisfies the need to prevent newer revisions from unexpectedly superseding a release requiring sequential review; the second addresses the need to notify release owners that production is awaiting an approval action. A release policy must choose superseded, queued, or parallel execution behavior deliberately; the message should contain context for the paused approval rather than generic pipeline logs.
Incorrect Answers
A:Step Functions models a durable workflow with service integrations, conditional paths, waits, and retries; that is intended to orchestrate multiple release checks with retries, branches, and explicit failure states, not to prevent newer revisions from unexpectedly superseding a release requiring sequential review. The second half can meet the requirement to notify release owners that production is awaiting an approval action, but the first is still missing.
B:These are legitimate AWS controls for different outcomes: a buildspec documents lifecycle phases, shell commands, outputs, and optional reports for CodeBuild, whereas cross-Region CodePipeline actions need an artifact store in each relevant action Region. The problem instead requires the ability to prevent newer revisions from unexpectedly superseding a release requiring sequential review and to notify release owners that production is awaiting an approval action.
D:The first half is appropriate: Pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions. However, CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments; that serves a different objective (automate build and deployment of CDK infrastructure changes with reviewable application source) and leaves the explicit need to notify release owners that production is awaiting an approval action unmet.
Question 967
A security review exposes two requirements in the same release: grant access to project-matching resources without enumerating every resource ARN; in addition, authorize a designated external role to access a narrow set of objects. Which paired set of AWS controls meets both requirements?
- Use an Organizations service control policy as an account-wide permission guardrail; require MFA for privileged human sign-in and sensitive actions
- Use IAM ABAC conditions based on principal and resource tags; use IAM roles and temporary credentials for CodeBuild service integration
- Use IAM ABAC conditions based on principal and resource tags; use a resource-based policy on an S3 bucket for a cross-account principal
- Configure IAM role trust conditions with an external ID for a third-party provider; use a resource-based policy on an S3 bucket for a cross-account principal
Explanation
Correct Answer
C:The first outcome depends on the behavior that attribute-based access control evaluates policy conditions using attributes such as tags. Separately, an S3 bucket policy can grant a specified external principal access to selected object ARNs. Together these meet the two requested outcomes, with the operational limits that trusted principal tags and resource tags must use consistent authorized values and cross-account access must be permitted by the relevant resource authorization model.
Incorrect Answers
A:The pair changes the problem instead of completing it. One option addresses prevent all affected principals in a production OU from performing prohibited service actions; the other addresses add possession-based verification to administrator authentication. The release, however, needs to grant access to project-matching resources without enumerating every resource ARN as well as authorize a designated external role to access a narrow set of objects.
B:The first half is appropriate: Attribute-based access control evaluates policy conditions using attributes such as tags. However, CodeBuild obtains temporary service-role credentials to call authorized AWS APIs during builds; that serves a different objective (prevent CI workers from embedding persistent AWS keys in build scripts) and leaves the explicit need to authorize a designated external role to access a narrow set of objects unmet.
D:This combination solves only the latter acceptance test. The substituted first control supports reduce confused-deputy risk when a SaaS vendor assumes customer roles: the sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests. It does not implement grant access to project-matching resources without enumerating every resource ARN.
Question 968
A cross-team infrastructure plan specifies 2 measurable outcomes: (1) normalize and triage recurring findings according to defined central criteria; (2) identify source, destination, and action details for a suspected network denial. Which TWO solutions address them? Choose TWO.
- Run SQL queries against existing CloudTrail Lake event data stores
- Use VPC Flow Logs to investigate rejected network flows
- Use Security Hub automation rules for finding-state prioritization
- Use CloudFormation drift detection to spot out-of-band stack edits
- Enable AWS Config recording and resource configuration history
Explanation
Correct Answers
B:The corresponding obligation is to identify source, destination, and action details for a suspected network denial. VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads; that behavior is the reason this action belongs in the selected answer set.
C:Security Hub automation rules can update selected finding fields when findings match configured criteria; among the listed outcomes, it addresses normalize and triage recurring findings according to defined central criteria, rather than merely contributing a related signal or support step; in this design the separate acceptance test is to identify source, destination, and action details for a suspected network denial.
Incorrect Answers
A:CloudTrail Lake ingests supported events into queryable event data stores. That would be appropriate to query retained CloudTrail events without first building a custom S3 query pipeline, but this is a different objective from the numbered obligations in the stem.
D:Drift detection checks supported stack resource configuration against the declared IaC state; if the requirement were to identify resource properties that no longer match the approved template, that would matter; the requested outcomes are separate from the one this option addresses; the specified requirement instead is to identify source, destination, and action details for a suspected network denial.
E:AWS Config records supported resource configuration items and their change history. That would be appropriate to determine how an audited resource's settings changed over time, but this is a different objective from the numbered obligations in the stem.
Question 969
A technical change review names the selected control as follows: Inspect EKS pod events and describe output for Pending pods. To diagnose Kubernetes scheduling constraints rather than application code failure, which constraint must be addressed for this design?
- The first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages
- Cluster capacity, taints, and resource requests must be reviewed before restarting pods
- The diagnosis must start from the failed action and its provider output
- Decryption authorization must be separate from S3 GetObject permission
- The investigation needs command output and the build phase that returned a failure
- Age of pending work is needed in addition to raw queue length
Explanation
Correct Answer
B:Cluster capacity, taints, and resource requests must be reviewed before restarting pods. Without this, choosing the named service is not enough to produce the promised outcome. Kubernetes scheduling events explain why pending pods cannot be assigned to nodes.
Incorrect Answers
A:CloudFormation stack events show per-resource transitions and service error messages. Its own dependency is that the first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages; those details concern the separate objective of being able to identify the underlying resource error that triggered a stack rollback, rather than to the named control required to diagnose Kubernetes scheduling constraints rather than application code failure.
C:This proposed constraint belongs to a separate objective: the diagnosis must start from the failed action and its provider output. The corresponding goal is to find which pipeline action failed and review its detailed external execution link, not the selected architecture's goal to diagnose Kubernetes scheduling constraints rather than application code failure.
D:This condition governs the different mechanism used to diagnose artifact decryption failure after S3 object access succeeds. Customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts; for the selected control, the relevant boundary is instead that cluster capacity, taints, and resource requests must be reviewed before restarting pods.
E:CodeBuild build logs and phase contexts expose command errors and environment failures. Its own dependency is that the investigation needs command output and the build phase that returned a failure. Those details concern the separate objective of being able to identify the first shell command or dependency failure in a failing build, rather than to the named control required to diagnose Kubernetes scheduling constraints rather than application code failure.
F:The proposed condition makes sense in an implementation designed to identify whether queue-processing latency is growing from a slow consumer; it concerns SQS age metrics help reveal processing delay that count metrics alone can obscure, whereas this question tests the prerequisite of the named control; the specified requirement instead is to diagnose Kubernetes scheduling constraints rather than application code failure.
Question 970
The production support team proposes this implementation: Use AWS KMS envelope encryption for sensitive application objects. Its intended result is to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary. Which implementation consideration is most specific to that choice?
- Layer 7 inspection should apply at a supported web application entry point
- Detection should inspect eligible S3 object content and report discovered data categories
- The design should keep plaintext data keys controlled and protect their encrypted form
- Key replication, key policy, and regional resource configuration still require explicit management
Explanation
Correct Answer
C:The design should keep plaintext data keys controlled and protect their encrypted form. That is the governing deployment boundary for the selected control: envelope encryption uses a data key for bulk data and KMS to protect or generate that key. If the boundary is missed, the design can fail to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary.
Incorrect Answers
A:The proposed condition makes sense in an implementation designed to filter common malicious HTTP request patterns before they reach the application. It concerns AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic, whereas this question tests the prerequisite of the named control.
B:This proposed constraint belongs to a separate objective: detection should inspect eligible S3 object content and report discovered data categories. The corresponding goal is to identify S3 objects that potentially contain sensitive information, not the selected architecture's goal to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary.
D:Multi-Region KMS keys allow related keys in selected Regions but do not make every AWS service resource global; its own dependency is that key replication, key policy, and regional resource configuration still require explicit management; those details concern the separate objective of being able to manage related KMS key material for supported multi-Region cryptographic operations, rather than to the named control required to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary.