Question 990
After a configuration change, the release manager sees this issue: A staging deployment succeeds but the endpoint health tests are never required before approval. What best restores the ability to fail a promotion flow based on smoke-test results for the deployed service?
- Use a CodePipeline test action after deployment to staging
- Use pull request events to start a pre-merge validation build
- Use CodeBuild batch builds for a supported test matrix
- Run acceptance tests after staging deployment and before approval
Explanation
Correct Answer
A:A pipeline test action turns post-deployment health verification into an enforceable promotion gate; in this case the control is appropriate because it supports fail a promotion flow based on smoke-test results for the deployed service. The test stage must consume the staged endpoint and block the next stage if it fails.
Incorrect Answers
B:That service solves a different operating problem: the need to evaluate a proposed change before it merges into a protected branch. Its behavior is that PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows. The requested outcome remains fail a promotion flow based on smoke-test results for the deployed service.
C:The choice is useful when engineers need to run compatible test variations in parallel and consolidate their outcomes: batch builds support coordinated multiple build configurations and associated aggregate status. It would not establish the control needed to fail a promotion flow based on smoke-test results for the deployed service.
D:Acceptance checks validate end-to-end expected behavior and can fail the pipeline before production; this is a reasonable option when the requirement is to verify business workflows on a deployed candidate before production promotion, but it operates at a different workflow boundary from the stated need to fail a promotion flow based on smoke-test results for the deployed service.
Question 991
The observability team's change record lists two distinct deliverables: detect user-visible error-rate regression independent of total request volume and avoid triggering rollbacks on one isolated noisy metric datapoint. Which combination covers both deliverables?
- Use Athena to query partitioned CloudTrail records stored in S3; set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
- Enable Amazon Inspector findings for supported compute workloads; configure CloudWatch composite alarms to combine related signal states
- Use metric math to alarm on ALB 5xx errors as a request ratio; set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
- Use metric math to alarm on ALB 5xx errors as a request ratio; use Security Hub findings to correlate security signals from enabled integrations
- Use metric math to alarm on ALB 5xx errors as a request ratio; configure a CloudWatch anomaly detection band on a seasonal metric
Explanation
Correct Answer
C:The first outcome depends on the behavior that CloudWatch metric math combines compatible metrics to evaluate derived rates or ratios. Separately, evaluation periods and datapoints-to-alarm control how many recent breaches cause an alarm state. Together these meet the two requested outcomes, with the operational limits that error counts must be normalized by matching request volume and the alarm should represent sustained violation of a measurable service objective.
Incorrect Answers
A:This combination solves only the latter acceptance test. The substituted first control supports investigate historical audit events across a large retained log archive: Athena can query compatible S3-based log data using SQL and suitable tables or partitions. It does not implement detect user-visible error-rate regression independent of total request volume.
B:Neither control directly supplies both requested behaviors. Inspector assesses supported workloads and produces vulnerability findings with affected-resource context; composite alarms evaluate the Boolean state of underlying alarms before transitioning. Those mechanisms address different objectives. The specified capabilities are to detect user-visible error-rate regression independent of total request volume and to avoid triggering rollbacks on one isolated noisy metric datapoint.
D:Combining a suitable first control with this second one misses the secondary acceptance criterion; Security Hub normalizes supported security findings and provides centralized prioritization workflows; it helps prioritize security risks across multiple supported detection services rather than avoid triggering rollbacks on one isolated noisy metric datapoint; the selected mechanism must match the documented AWS workflow.
E:The first half is appropriate: CloudWatch metric math combines compatible metrics to evaluate derived rates or ratios. However, CloudWatch anomaly detection models expected patterns and allows alarms on deviations from the band; that serves a different objective (alert on unexpected deviations without relying on a single fixed threshold) and leaves the explicit need to avoid triggering rollbacks on one isolated noisy metric datapoint unmet.
Question 992
The architecture record specifies: Use a CodePipeline execution mode suited to parallel release frequency. To support the goal to prevent newer revisions from unexpectedly superseding a release requiring sequential review, which consideration should the engineer validate?
- The shared artifact store must remain encrypted while permitting only designated consumers
- A release policy must choose superseded, queued, or parallel execution behavior deliberately
- Repository authorization must use a managed provider connection rather than embedded credentials
- Rollback must use supported pipeline stage behavior and prior successful executions
Explanation
Correct Answer
B:The requested behavior is to prevent newer revisions from unexpectedly superseding a release requiring sequential review, and a release policy must choose superseded, queued, or parallel execution behavior deliberately. The underlying AWS behavior is that pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions.
Incorrect Answers
A:This condition governs the different mechanism used to make encrypted CodePipeline artifacts usable by an authorized cross-account action. A customer managed key with suitable key policy and IAM permission supports cross-account decrypt access; for the selected control, the relevant boundary is instead that a release policy must choose superseded, queued, or parallel execution behavior deliberately.
C:The proposed condition makes sense in an implementation designed to start pipeline executions from commits on the approved application branch. It concerns the source connection supplies authorized repository events and revisions to a pipeline source action, whereas this question tests the prerequisite of the named control.
D:This proposed constraint belongs to a separate objective: rollback must use supported pipeline stage behavior and prior successful executions. The corresponding goal is to restore a known successful release when a new stage execution fails, not the selected architecture's goal to prevent newer revisions from unexpectedly superseding a release requiring sequential review.
Question 993
An automated check detects: The build can start but receives AccessDenied on the S3 artifact or logs destination. Which remediation directly supports the requirement to let automated builds read only the required inputs and publish expected outputs?
- Use a deployment action with a production-account IAM role
- Grant the target-account role access through the S3 artifact bucket policy
- Restrict build credentials to a CodeBuild service role with least privilege
- Resolve runtime secrets from Secrets Manager during the build
Explanation
Correct Answer
C:CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; in this case the control is appropriate because it supports let automated builds read only the required inputs and publish expected outputs. Build permissions must not be broadened to administrator access.
Incorrect Answers
A:Role separation allows each pipeline action to run under the permissions approved for its target environment; this is a reasonable option when the requirement is to isolate permissions between staging and production delivery, but it operates at a different workflow boundary from the stated need to let automated builds read only the required inputs and publish expected outputs.
B:Choosing this would aim to permit a cross-account deployment action to retrieve the intended pipeline artifact objects instead of let automated builds read only the required inputs and publish expected outputs. A resource-based bucket policy can authorize the trusted destination principal to read specific artifact objects; it cannot replace the mechanism specified by the incident evidence.
D:Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values; this can help teams supply a rotating database credential to CI jobs without placing the secret in source control, but the reported workflow needs to let automated builds read only the required inputs and publish expected outputs. It does not perform that required function.
Question 994
An automated check detects: A globally distributed application cannot accept writes after losing its sole writable Region. Which remediation directly supports the requirement to allow application writes in more than one AWS Region with replication?
- Use an RDS cross-Region read replica where the engine supports it
- Use Route 53 latency routing for healthy regional endpoints
- Configure DynamoDB global tables for multi-Region active-active access
- Enable S3 Cross-Region Replication for selected versioned objects
Explanation
Correct Answer
C:To allow application writes in more than one AWS Region with replication, the architecture relies on this AWS behavior: DynamoDB global tables replicate data among participating Regions and support multi-Region writes. The design must reconcile multi-Region replicated changes rather than use a read-only replica.
Incorrect Answers
A:Choosing this would aim to provide off-Region read capacity and a possible promotion-based recovery option instead of allow application writes in more than one AWS Region with replication. Cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions; it cannot replace the mechanism specified by the incident evidence.
B:Although Route 53 latency policies select records based on measured latency among configured Regions, the scenario does not ask for direct global clients toward the Region with better measured network latency; it requires the ability to allow application writes in more than one AWS Region with replication, which is a separate responsibility.
D:That service solves a different operating problem: the need to retain replicated application objects in a separate disaster-recovery Region. Its behavior is that S3 replication asynchronously copies eligible object versions to configured destination buckets. The requested outcome remains allow application writes in more than one AWS Region with replication.
Question 995
The production plan uses this approach: Use an Organizations service control policy as an account-wide permission guardrail. The goal is to prevent all affected principals in a production OU from performing prohibited service actions. Which prerequisite or limitation should receive focused review?
- Cross-account access must be permitted by the relevant resource authorization model
- The cap must apply independently from member account IAM role grants
- Trust and permission policies must explicitly govern the destination role
- Human credentials need additional authentication safeguards beyond a static password
- Trusted principal tags and resource tags must use consistent authorized values
Explanation
Correct Answer
B:The cap must apply independently from member account IAM role grants. That is the governing deployment boundary for the selected control: SCPs set maximum available permissions for member-account principals but do not themselves allow actions. If the boundary is missed, the design can fail to prevent all affected principals in a production OU from performing prohibited service actions.
Incorrect Answers
A:This proposed constraint belongs to a separate objective: cross-account access must be permitted by the relevant resource authorization model; the corresponding goal is to authorize a designated external role to access a narrow set of objects, not the selected architecture's goal to prevent all affected principals in a production OU from performing prohibited service actions.
C:STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; its own dependency is that trust and permission policies must explicitly govern the destination role; those details concern the separate objective of being able to avoid distributing durable access keys for central administration in member accounts, rather than to the named control required to prevent all affected principals in a production OU from performing prohibited service actions.
D:The proposed condition makes sense in an implementation designed to add possession-based verification to administrator authentication; it concerns MFA adds a second factor and can be required through identity provider settings or IAM policy conditions, whereas this question tests the prerequisite of the named control; the specified requirement instead is to prevent all affected principals in a production OU from performing prohibited service actions.
E:This proposed constraint belongs to a separate objective: trusted principal tags and resource tags must use consistent authorized values; the corresponding goal is to grant access to project-matching resources without enumerating every resource ARN, not the selected architecture's goal to prevent all affected principals in a production OU from performing prohibited service actions.
Question 996
A delivery implementation has two separate dependencies: exercise a critical HTTP journey regularly with externally visible outcomes, and verify business workflows on a deployed candidate before production promotion. Select the combination that addresses both rather than only one.
- Use canary synthetic checks against a published test endpoint; run acceptance tests after staging deployment and before approval
- Publish code coverage in CodeBuild reports without treating it as proof of behavior; run acceptance tests after staging deployment and before approval
- Use canary synthetic checks against a published test endpoint; configure CodeBuild test reports with the supported report-file format
- Run dependency and container image scanning before artifact promotion; use a CodePipeline test action after deployment to staging
Explanation
Correct Answer
A:CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements; acceptance checks validate end-to-end expected behavior and can fail the pipeline before production. The first control satisfies the need to exercise a critical HTTP journey regularly with externally visible outcomes; the second addresses the need to verify business workflows on a deployed candidate before production promotion. User-journey availability should be measured beyond instance resource metrics; release acceptance criteria need a blocking quality gate on a live candidate.
Incorrect Answers
B:The second implementation is relevant; the problem is the first. Coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct; it can help track executed source coverage while retaining assertions-based acceptance gates, whereas the stated first requirement is to exercise a critical HTTP journey regularly with externally visible outcomes.
C:Combining a suitable first control with this second one misses the secondary acceptance criterion; CodeBuild reads supported report files from configured paths and associates results with report groups; it helps expose test-suite pass rates and failing cases for each build execution rather than verify business workflows on a deployed candidate before production promotion; the selected mechanism must match the documented AWS workflow.
D:Neither control directly supplies both requested behaviors. An automated scanning gate blocks releases when risk findings breach the defined security policy; a pipeline test action turns post-deployment health verification into an enforceable promotion gate. Those mechanisms address different objectives. The specified capabilities are to exercise a critical HTTP journey regularly with externally visible outcomes and to verify business workflows on a deployed candidate before production promotion.
Question 997
A delivery implementation has two separate dependencies: halt an EC2 release when service health violates a CloudWatch alarm, and replace an entire instance release without modifying the current live fleet. Select the combination that addresses both rather than only one.
- Install and run the CodeDeploy agent on target EC2 instances; use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group
- Attach CodeDeploy deployment alarms for automatic stop or rollback; use an appspec.yml to define CodeDeploy instance hooks
- Attach CodeDeploy deployment alarms for automatic stop or rollback; configure ECS service deployment circuit breaker and rollback
- Attach CodeDeploy deployment alarms for automatic stop or rollback; use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group
- Choose a supported ECS canary traffic-shift configuration; apply Kubernetes readiness probes before routing traffic to EKS pods
Explanation
Correct Answer
D:CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria; CodeDeploy blue/green can provision replacement EC2 instances and reroute traffic after health checks. The first control satisfies the need to halt an EC2 release when service health violates a CloudWatch alarm; the second addresses the need to replace an entire instance release without modifying the current live fleet. Rollback must be linked to an explicit monitored deployment failure condition; the old environment should remain ready during a traffic switch.
Incorrect Answers
A:This combination solves only the latter acceptance test. The substituted first control supports make instances eligible to receive CodeDeploy lifecycle instructions: the CodeDeploy agent polls for work and runs lifecycle instructions on managed EC2 or on-premises hosts; it does not implement halt an EC2 release when service health violates a CloudWatch alarm.
B:The first half is appropriate: CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria. However, an AppSpec file maps application files and lifecycle event hooks for EC2 deployments; that serves a different objective (execute controlled install and validation scripts during an EC2 deployment) and leaves the explicit need to replace an entire instance release without modifying the current live fleet unmet.
C:The ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; that alternative supports the ability to automatically restore an earlier task deployment after a rolling deployment cannot stabilize, but it is not the requested second outcome (replace an entire instance release without modifying the current live fleet). Even though the first half addresses halt an EC2 release when service health violates a CloudWatch alarm, this pair is incomplete.
E:Neither control directly supplies both requested behaviors. Canary deployment configurations shift an initial percentage before the remaining cutover; readiness probes control whether pods are considered ready for service endpoint traffic. Those mechanisms address different objectives. The specified capabilities are to halt an EC2 release when service health violates a CloudWatch alarm and to replace an entire instance release without modifying the current live fleet.
Question 998
A reliability review exposes two requirements in the same release: offload geographically distributed static requests from the origin; in addition, adapt provisioned throughput targets to changing demand. Which paired set of AWS controls meets both requirements?
- Use ElastiCache for repeated hot-key application lookups; use DynamoDB auto scaling for provisioned read and write capacity
- Configure Auto Scaling warm pools for slow-starting instances; use API Gateway throttling to bound request rates to a serverless backend
- Place CloudFront caching ahead of read-heavy static content origins; configure Karpenter or a supported EKS node autoscaler for unschedulable pods
- Place CloudFront caching ahead of read-heavy static content origins; use DynamoDB auto scaling for provisioned read and write capacity
Explanation
Correct Answer
D:The first outcome depends on the behavior that CloudFront caches eligible objects at edge locations to reduce repeated origin requests and user latency. Separately, DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets. Together these meet the two requested outcomes, with the operational limits that the edge cache should respect origin cache headers and invalidation decisions and the solution must adjust RCU and WCU settings rather than compute nodes.
Incorrect Answers
A:The second implementation is relevant; the problem is the first. An in-memory cache serves hot keys without a round trip to the primary database for every read; it can help reduce database read pressure for frequently requested reusable data, whereas the stated first requirement is to offload geographically distributed static requests from the origin.
B:The pair changes the problem instead of completing it. One option addresses reduce scale-out readiness time for an application with lengthy initialization; the other addresses protect Lambda and downstream systems from excessive caller traffic. The release, however, needs to offload geographically distributed static requests from the origin as well as adapt provisioned throughput targets to changing demand.
C:The first half is appropriate: CloudFront caches eligible objects at edge locations to reduce repeated origin requests and user latency. However, node autoscalers provision or adjust worker capacity in response to pending pods and cluster constraints; that serves a different objective (add cluster nodes when pods cannot schedule due to insufficient capacity) and leaves the explicit need to adapt provisioned throughput targets to changing demand unmet.
Question 999
A release design adopts this mechanism: Use distinct CodePipeline stages with a separate integration test action. Which implementation detail is most relevant to its proposed use to stop an unsafe revision before it can reach the deployment stage?
- The approver must see contextual information and approve the pending pipeline execution
- Failure must prevent later actions rather than merely send a notification
- The target account must retain control over the deployment role permissions
- The message should contain context for the paused approval rather than generic pipeline logs
Explanation
Correct Answer
B:Failure must prevent later actions rather than merely send a notification. That is the governing deployment boundary for the selected control: a failed test action makes the stage fail and prevents subsequent deployment stages from proceeding. If the boundary is missed, the design can fail to stop an unsafe revision before it can reach the deployment stage.
Incorrect Answers
A:This proposed constraint belongs to a separate objective: the approver must see contextual information and approve the pending pipeline execution; the corresponding goal is to require a human release decision after staging tests and before production changes, not the selected architecture's goal to stop an unsafe revision before it can reach the deployment stage.
C:A trusted IAM role in the destination account authorizes the pipeline to perform scoped deployment actions via STS; its own dependency is that the target account must retain control over the deployment role permissions. Those details concern the separate objective of being able to deploy an artifact from the delivery account into a separately governed workload account, rather than to the named control required to stop an unsafe revision before it can reach the deployment stage.
D:The proposed condition makes sense in an implementation designed to notify release owners that production is awaiting an approval action. It concerns the manual approval action can publish an approval notification to an SNS topic for human review, whereas this question tests the prerequisite of the named control.
Question 1000
A team is designing a reusable security pattern. It must allow private subnet workloads to reach S3 without NAT for supported traffic; it must also prevent accidental public grants on sensitive S3 buckets. Which paired configuration is appropriate?
- Use Amazon Macie for sensitive-data discovery in S3; apply S3 Block Public Access at the account or bucket scope
- Use CloudHSM when exclusive customer control of HSM key management is required; use an AWS WAF rate-based rule for abusive clients
- Use an S3 gateway VPC endpoint and appropriate bucket policy constraints; use subnet network ACL rules for stateless subnet-edge filtering
- Use an S3 gateway VPC endpoint and appropriate bucket policy constraints; apply S3 Block Public Access at the account or bucket scope
Explanation
Correct Answer
D:S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets. This handles the first acceptance condition, subject to the boundary that routing and endpoint policy must match the supported S3 gateway endpoint model. The remaining condition is handled separately: S3 Block Public Access settings override relevant public permissions for supported access paths, with the account must prevent public access through ACL and policy paths where configured.
Incorrect Answers
A:This combination solves only the latter acceptance test. The substituted first control supports identify S3 objects that potentially contain sensitive information: Macie uses automated discovery and classification to identify sensitive data in supported S3 objects. It does not implement allow private subnet workloads to reach S3 without NAT for supported traffic.
B:Neither control directly supplies both requested behaviors. CloudHSM offers dedicated hardware security modules operated under the customer's control plane; WAF rate-based rules track request rates for defined aggregation keys and act on matching excess traffic. Those mechanisms address different objectives. The specified capabilities are to allow private subnet workloads to reach S3 without NAT for supported traffic and to prevent accidental public grants on sensitive S3 buckets.
C:Network ACLs are stateless ordered rules applied to traffic entering and leaving subnets. That alternative supports the ability to apply explicit allow and deny network rules at a subnet boundary, but it is not the requested second outcome (prevent accidental public grants on sensitive S3 buckets). Even though the first half addresses allow private subnet workloads to reach S3 without NAT for supported traffic, this pair is incomplete.