Question 370
An engineer is addressing a two-part delivery requirement: stop a pipeline build action when the test runner detects a regression, without losing the ability to fail a promotion flow based on smoke-test results for the deployed service. Which set of actions is suitable?
- Return a nonzero exit code when a blocking automated test fails; run unit tests in the first CodeBuild stage before packaging
- Return a nonzero exit code when a blocking automated test fails; use a CodePipeline test action after deployment to staging
- Run dependency and container image scanning before artifact promotion; use AWS IAM policy evaluation tests for deployment-role assumptions
- Use AWS Fault Injection Service in a controlled resilience test; use a CodePipeline test action after deployment to staging
Explanation
Correct Answer
B:CodeBuild determines command success from process exit status unless buildspec failure handling overrides it; this handles the first acceptance condition, subject to the boundary that later deployment stages must not run after a failing quality gate. The remaining condition is handled separately: a pipeline test action turns post-deployment health verification into an enforceable promotion gate, with the test stage must consume the staged endpoint and block the next stage if it fails.
Incorrect Answers
A:Combining a suitable first control with this second one misses the secondary acceptance criterion; unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages; it helps reject code-level regressions rapidly before creating production artifacts rather than fail a promotion flow based on smoke-test results for the deployed service.
C:These are legitimate AWS controls for different outcomes: an automated scanning gate blocks releases when risk findings breach the defined security policy, whereas IAM policy simulation and access analysis can help test whether planned principal actions are allowed. The problem instead requires the ability to stop a pipeline build action when the test runner detects a regression and to fail a promotion flow based on smoke-test results for the deployed service.
D:This combination solves only the latter acceptance test. The substituted first control supports validate that a multi-AZ application survives a deliberately introduced infrastructure fault: fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior; it does not implement stop a pipeline build action when the test runner detects a regression.
Question 371
A release design adopts this mechanism: Configure CloudWatch Logs retention per application log group. Which implementation detail is most relevant to its proposed use to expire routine log events after the approved operating retention period?
- The log service principal and key policy need the required encrypt and decrypt permissions
- Cross-account resource authorization must be explicit for the destination
- The log payload must follow the EMF schema for metrics extraction
- Retention periods should vary by data classification and compliance obligations
Explanation
Correct Answer
D:Retention periods should vary by data classification and compliance obligations. Without this, choosing the named service is not enough to produce the promised outcome; log-group retention settings automatically expire data beyond the configured retention interval.
Incorrect Answers
A:This proposed constraint belongs to a separate objective: the log service principal and key policy need the required encrypt and decrypt permissions; the corresponding goal is to control at-rest log encryption under an explicitly governed encryption key, not the selected architecture's goal to expire routine log events after the approved operating retention period.
B:This condition governs the different mechanism used to centralize matching account log streams into a designated log-processing account; CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; for the selected control, the relevant boundary is instead that retention periods should vary by data classification and compliance obligations.
C:Embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction; its own dependency is that the log payload must follow the EMF schema for metrics extraction; those details concern the separate objective of being able to emit high-cardinality application measurements together with diagnostic context, rather than to the named control required to expire routine log events after the approved operating retention period.
Question 372
An automated check detects: Teams manually set different Security Hub standards in each member account. Which remediation directly supports the requirement to standardize security finding aggregation and enabled standards across accounts?
- Use Organizations tag policies to standardize supported resource tags
- Configure organization-wide GuardDuty management through a delegated security account
- Configure Security Hub organization integration and central settings policies
- Use an S3 bucket policy that denies insecure transport for organization logs
Explanation
Correct Answer
C:Security Hub central configuration can apply supported policies across an organization hierarchy; it enables the necessary capability to standardize security finding aggregation and enabled standards across accounts rather than only providing an adjacent operational control. Security monitoring policy should be managed from the security administration model.
Incorrect Answers
A:Tag policies define permitted capitalization and values and can enforce supported tagging operations; this can help teams report and enforce valid tag keys or values across organizational accounts where supported, but the reported workflow needs to standardize security finding aggregation and enabled standards across accounts. It does not perform that required function.
B:That service solves a different operating problem: the need to enable consistent threat detection coverage for member accounts; its behavior is that GuardDuty organization administration can automatically manage protection enrollment across eligible members; the requested outcome remains standardize security finding aggregation and enabled standards across accounts.
D:A bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection; this is a reasonable option when the requirement is to prevent log upload and retrieval over unencrypted transport, but it operates at a different workflow boundary from the stated need to standardize security finding aggregation and enabled standards across accounts.
Question 373
The platform engineering team proposes this implementation: Configure HTTPS or TLS for log delivery clients. Its intended result is to protect sensitive telemetry while it travels from producers to ingestion endpoints. Which implementation consideration is most specific to that choice?
- The log service principal and key policy need the required encrypt and decrypt permissions
- The data must be protected in transit independently from at-rest bucket encryption
- The event selectors should limit costly high-volume events to in-scope resources
- Cross-account resource authorization must be explicit for the destination
Explanation
Correct Answer
B:The data must be protected in transit independently from at-rest bucket encryption. Without this, choosing the named service is not enough to produce the promised outcome. TLS protects log transport over supported network paths against plaintext interception.
Incorrect Answers
A:CloudWatch Logs supports customer-managed KMS key association for eligible log groups. Its own dependency is that the log service principal and key policy need the required encrypt and decrypt permissions; those details concern the separate objective of being able to control at-rest log encryption under an explicitly governed encryption key, rather than to the named control required to protect sensitive telemetry while it travels from producers to ingestion endpoints.
C:This proposed constraint belongs to a separate objective: the event selectors should limit costly high-volume events to in-scope resources. The corresponding goal is to record relevant object-level API activity rather than only account management events, not the selected architecture's goal to protect sensitive telemetry while it travels from producers to ingestion endpoints.
D:This condition governs the different mechanism used to centralize matching account log streams into a designated log-processing account; CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; for the selected control, the relevant boundary is instead that the data must be protected in transit independently from at-rest bucket encryption.
Question 374
An engineer will implement the following change: Attach CodeDeploy deployment alarms for automatic stop or rollback. Which operational boundary most directly applies to the intended outcome to halt an EC2 release when service health violates a CloudWatch alarm?
- Instances require network access and a functioning local agent to apply revisions
- The deployment must leave a configured minimum number of healthy hosts
- The rollback window must preserve the old environment for the approved interval
- The success condition is customer-path health rather than artifact transfer
- Rollback must be linked to an explicit monitored deployment failure condition
- Hook scripts must run at the expected deployment lifecycle events
Explanation
Correct Answer
E:Rollback must be linked to an explicit monitored deployment failure condition. Without this, choosing the named service is not enough to produce the promised outcome; CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria.
Incorrect Answers
A:The proposed condition makes sense in an implementation designed to make instances eligible to receive CodeDeploy lifecycle instructions; it concerns the CodeDeploy agent polls for work and runs lifecycle instructions on managed EC2 or on-premises hosts, whereas this question tests the prerequisite of the named control.
B:This proposed constraint belongs to a separate objective: the deployment must leave a configured minimum number of healthy hosts. The corresponding goal is to update an existing EC2 fleet in batches while preserving required available capacity, not the selected architecture's goal to halt an EC2 release when service health violates a CloudWatch alarm.
C:This condition governs the different mechanism used to retain the old ECS task set temporarily for rollback after traffic rerouting. CodeDeploy blue/green termination settings control how long the original ECS task set remains after success; for the selected control, the relevant boundary is instead that rollback must be linked to an explicit monitored deployment failure condition.
D:A smoke test targets live application behavior after rollout and can trigger deployment failure handling; its own dependency is that the success condition is customer-path health rather than artifact transfer; those details concern the separate objective of being able to validate that a new service release responds correctly before ending the deployment, rather than to the named control required to halt an EC2 release when service health violates a CloudWatch alarm.
F:This proposed constraint belongs to a separate objective: hook scripts must run at the expected deployment lifecycle events. The corresponding goal is to execute controlled install and validation scripts during an EC2 deployment, not the selected architecture's goal to halt an EC2 release when service health violates a CloudWatch alarm.
Question 375
The production plan uses this approach: Connect a CodePipeline source action to an approved Git provider through CodeConnections. The goal is to start pipeline executions from commits on the approved application branch. Which prerequisite or limitation should receive focused review?
- Failure must prevent later actions rather than merely send a notification
- Repository authorization must use a managed provider connection rather than embedded credentials
- The grant must be limited to the pipeline artifact location rather than every bucket
- Artifact storage must be available in every Region where pipeline actions require it
Explanation
Correct Answer
B:Repository authorization must use a managed provider connection rather than embedded credentials. That is the governing deployment boundary for the selected control: the source connection supplies authorized repository events and revisions to a pipeline source action. If the boundary is missed, the design can fail to start pipeline executions from commits on the approved application branch.
Incorrect Answers
A:This proposed constraint belongs to a separate objective: failure must prevent later actions rather than merely send a notification; the corresponding goal is to stop an unsafe revision before it can reach the deployment stage, not the selected architecture's goal to start pipeline executions from commits on the approved application branch.
C:A resource-based bucket policy can authorize the trusted destination principal to read specific artifact objects; its own dependency is that the grant must be limited to the pipeline artifact location rather than every bucket. Those details concern the separate objective of being able to permit a cross-account deployment action to retrieve the intended pipeline artifact objects, rather than to the named control required to start pipeline executions from commits on the approved application branch.
D:The proposed condition makes sense in an implementation designed to run a deployment action in a different AWS Region from its pipeline; it concerns cross-Region CodePipeline actions need an artifact store in each relevant action Region, whereas this question tests the prerequisite of the named control; the specified requirement instead is to start pipeline executions from commits on the approved application branch.
Question 376
A platform migration has these separately testable requirements: (1) prevent a valid long-running worker task from being processed concurrently; (2) initiate targeted response to an AWS-managed service event affecting the account; (3) accept operational events from multiple workload accounts into a central responder account. Choose THREE actions that satisfy the requirements. Choose THREE.
- Use an EventBridge organization event bus with cross-account permissions
- Use an EventBridge rule matching a specific CloudTrail API event pattern
- Use EventBridge rule retry settings and an SQS dead-letter queue for failed targets
- Use AWS Health events through EventBridge for account-impact notifications
- Use Step Functions Choice states for severity-dependent incident routing
- Use SQS visibility timeouts aligned to consumer processing
Explanation
Correct Answers
A:EventBridge event bus resource policies control cross-account event ingestion and routing. This fulfills the stated requirement to accept operational events from multiple workload accounts into a central responder account. The operational limitation is that the receiving bus policy must explicitly permit approved source-account principals.
D:This covers the specific result to initiate targeted response to an AWS-managed service event affecting the account: supported AWS Health events appear on EventBridge and can trigger notification or workflows. Account health events need event-driven notification and contextual routing.
F:The corresponding obligation is to prevent a valid long-running worker task from being processed concurrently. SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration; that behavior is the reason this action belongs in the selected answer set.
Incorrect Answers
B:This mechanism supports the ability to start an incident workflow after a restricted AWS configuration API call: EventBridge matches supported API activity events and invokes selected event targets. It would not satisfy a different obligation just by appearing in the same workflow.
C:It supports a separate administrative task, namely to retain failed event delivery attempts for later investigation. EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries. The prompt's required outcomes are not achieved by substituting this control.
E:Choice states route state machine execution according to supported data conditions. That would be appropriate to branch remediation based on incident severity and resource classification, but this is a different objective from the numbered obligations in the stem.
Question 377
An engineer will implement the following change: Use an EventBridge Scheduler one-time schedule for delayed remediation. Which operational boundary most directly applies to the intended outcome to invoke a follow-up check at a precise future time after an initial event?
- Account health events need event-driven notification and contextual routing
- The receiving bus policy must explicitly permit approved source-account principals
- Object creation events need a supported notification destination and permissions
- The retry should be scheduled rather than consume an idle function runtime
- The bus must archive matching events before the processing failure occurs
Explanation
Correct Answer
D:The retry should be scheduled rather than consume an idle function runtime. That is the governing deployment boundary for the selected control: EventBridge Scheduler can invoke supported targets at specified one-time or recurring times. If the boundary is missed, the design can fail to invoke a follow-up check at a precise future time after an initial event.
Incorrect Answers
A:Supported AWS Health events appear on EventBridge and can trigger notification or workflows. Its own dependency is that account health events need event-driven notification and contextual routing; those details concern the separate objective of being able to initiate targeted response to an AWS-managed service event affecting the account, rather than to the named control required to invoke a follow-up check at a precise future time after an initial event.
B:The proposed condition makes sense in an implementation designed to accept operational events from multiple workload accounts into a central responder account; it concerns EventBridge event bus resource policies control cross-account event ingestion and routing, whereas this question tests the prerequisite of the named control.
C:This proposed constraint belongs to a separate objective: object creation events need a supported notification destination and permissions; the corresponding goal is to respond asynchronously when new diagnostic objects arrive in an S3 bucket, not the selected architecture's goal to invoke a follow-up check at a precise future time after an initial event.
E:EventBridge archives can retain selected events for later replay to an event bus. Its own dependency is that the bus must archive matching events before the processing failure occurs. Those details concern the separate objective of being able to reprocess a historical event period after a corrected incident workflow is deployed, rather than to the named control required to invoke a follow-up check at a precise future time after an initial event.
Question 378
The cloud operations group proposes this implementation: Use an AWS WAF rate-based rule for abusive clients. Its intended result is to limit repeated HTTP requests from sources that exceed an approved threshold. Which implementation consideration is most specific to that choice?
- Controls must count matching web requests over a configured evaluation interval
- The organization must govern internal CA policies and certificate trust distribution
- The policy must target supported resources through Organizations and configured security administration
- The rule should attach to the workload network interface boundary
Explanation
Correct Answer
A:Controls must count matching web requests over a configured evaluation interval. Without this, choosing the named service is not enough to produce the promised outcome; WAF rate-based rules track request rates for defined aggregation keys and act on matching excess traffic.
Incorrect Answers
B:This proposed constraint belongs to a separate objective: the organization must govern internal CA policies and certificate trust distribution; the corresponding goal is to issue short-lived internal TLS certificates for private service identities, not the selected architecture's goal to limit repeated HTTP requests from sources that exceed an approved threshold.
C:This condition governs the different mechanism used to enforce an approved web ACL policy on supported public application endpoints across member accounts; firewall Manager manages supported security policies across accounts and can apply WAF protections to in-scope resources; for the selected control, the relevant boundary is instead that controls must count matching web requests over a configured evaluation interval.
D:Security groups apply stateful allow rules to supported network interfaces and resources. Its own dependency is that the rule should attach to the workload network interface boundary. Those details concern the separate objective of being able to restrict inbound application ports while permitting corresponding return traffic, rather than to the named control required to limit repeated HTTP requests from sources that exceed an approved threshold.
Question 379
The application owner reports the following failure: An EKS rollout serves requests to new pods before their application initialization finishes. Which action directly restores the requirement to keep requests away from containers until the application is ready?
- Use an ECS deployment with a new immutable task definition revision
- Apply Kubernetes readiness probes before routing traffic to EKS pods
- Configure ECS service deployment circuit breaker and rollback
- Use an Auto Scaling lifecycle hook to finish instance initialization before InService
Explanation
Correct Answer
B:Readiness probes control whether pods are considered ready for service endpoint traffic. In this case the control is appropriate because it supports keep requests away from containers until the application is ready. Traffic routing must reflect application readiness rather than just process existence.
Incorrect Answers
A:That service solves a different operating problem: the need to roll out a changed container image while retaining the previous task definition. Its behavior is that an ECS service update selects a task definition revision and schedules replacement tasks to converge to it. The requested outcome remains keep requests away from containers until the application is ready.
C:The ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; this is a reasonable option when the requirement is to automatically restore an earlier task deployment after a rolling deployment cannot stabilize, but it operates at a different workflow boundary from the stated need to keep requests away from containers until the application is ready.
D:Choosing this would aim to delay load balancer registration until a new EC2 instance is correctly configured instead of keep requests away from containers until the application is ready. An Auto Scaling lifecycle hook can keep instances in a wait state while automation completes initialization; it cannot replace the mechanism specified by the incident evidence.
Question 380
An incident record says: A VM application stores an IAM user's permanent access key in its configuration file. To restore the capability to give an EC2 application temporary credentials to call an AWS API, which change addresses the root cause?
- Attach an instance profile with a scoped IAM role to EC2
- Enable Secrets Manager rotation with a supported rotation strategy
- Use a Lambda execution role scoped to required AWS APIs
- Use an ECS task IAM role rather than the ECS task execution role for application API access
Explanation
Correct Answer
A:An EC2 instance profile provides temporary role credentials to applications running on the instance; in this case the control is appropriate because it supports give an EC2 application temporary credentials to call an AWS API. Credentials must rotate automatically and be available through supported instance metadata.
Incorrect Answers
B:Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential; this is a reasonable option when the requirement is to rotate an application database password without manual quarterly updates, but it operates at a different workflow boundary from the stated need to give an EC2 application temporary credentials to call an AWS API.
C:Choosing this would aim to allow a Lambda handler to read a specific secret and publish required logs instead of give an EC2 application temporary credentials to call an AWS API. Lambda execution roles grant the AWS API permissions used by the running function; it cannot replace the mechanism specified by the incident evidence.
D:Although ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup, the scenario does not ask for authorize container business logic to read only its specific AWS resources. It requires the ability to give an EC2 application temporary credentials to call an AWS API, which is a separate responsibility.