Question 280
Investigators observe: A new image builds successfully despite containing a blocked library vulnerability. Engineers still need to reject packages containing prohibited vulnerable dependencies before production. Which corrective action is most appropriate?
- Separate performance threshold checks from functional correctness tests
- Run dependency and container image scanning before artifact promotion
- Execute integration tests against an isolated ephemeral test stack
- Run controlled load tests in a dedicated performance environment
Explanation
Correct Answer
B:To reject packages containing prohibited vulnerable dependencies before production, the architecture relies on this AWS behavior: an automated scanning gate blocks releases when risk findings breach the defined security policy. Security scanning must evaluate the built artifact or dependency manifest prior to deployment.
Incorrect Answers
A:Choosing this would aim to fail a release when latency regresses even though all APIs still return successful status codes instead of reject packages containing prohibited vulnerable dependencies before production. Performance testing assesses response-time and throughput targets distinct from pass or fail functionality; it cannot replace the mechanism specified by the incident evidence.
C:An integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; this can help teams validate service-to-service interactions against real deployed dependencies before approval, but the reported workflow needs to reject packages containing prohibited vulnerable dependencies before production. It does not perform that required function.
D:That service solves a different operating problem: the need to measure throughput and latency under expected concurrency without degrading production. Its behavior is that dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load. The requested outcome remains reject packages containing prohibited vulnerable dependencies before production.
Question 281
Before approving an automated rollout, the observability team must identify the top contributors to a metric or structured log workload and adjust worker fleet capacity when a workload metric crosses a defined level. Which combination covers the two distinct controls?
- Use CloudWatch Contributor Insights for supported high-cardinality usage analysis; attach automatic AWS Config remediation to an SSM Automation document
- Use EventBridge rules to route AWS Health account events to response automation; configure CloudWatch alarm notifications through an SNS topic
- Use CloudWatch Contributor Insights for supported high-cardinality usage analysis; use CloudWatch alarm actions to invoke supported Auto Scaling policies
- Use an ALB target group health check for backend service readiness; use CloudWatch alarm actions to invoke supported Auto Scaling policies
Explanation
Correct Answer
C:Contributor Insights rules analyze supported log or metric inputs to identify top contributing entities; this handles the first acceptance condition, subject to the boundary that the system needs per-contributor rankings from a suitable input data source; the remaining condition is handled separately: step or simple scaling policies can be driven by CloudWatch alarm transitions, with alarm thresholds must correspond to the associated scaling-policy behavior.
Incorrect Answers
A:Config automatic remediation can invoke Systems Manager Automation for noncompliant resources. That alternative supports the ability to correct an eligible configuration violation soon after detection, but it is not the requested second outcome (adjust worker fleet capacity when a workload metric crosses a defined level). Even though the first half addresses identify the top contributors to a metric or structured log workload, this pair is incomplete.
B:The pair changes the problem instead of completing it. One option addresses notify the operations account when an AWS service issue affects the workload; the other addresses notify multiple responder endpoints when a service metric breaches its threshold. The release, however, needs to identify the top contributors to a metric or structured log workload as well as adjust worker fleet capacity when a workload metric crosses a defined level.
D:The second implementation is relevant; the problem is the first. ALB target groups mark eligible targets unhealthy and exclude them from normal request routing; it can help exclude backend nodes that cannot serve required application requests, whereas the stated first requirement is to identify the top contributors to a metric or structured log workload.
Question 282
An automated check detects: A disaster recovery plan estimates 30-minute recovery but has never been exercised. Which remediation directly supports the requirement to validate recovery performance against business-approved thresholds?
- Use RDS Multi-AZ automatic failover for a local Availability Zone failure
- Maintain tested IaC and AMI releases in the disaster recovery Region
- Use AWS Elastic Disaster Recovery replication and recovery launch plans
- Copy supported AWS Backup recovery points to another Region
- Run regular failover game days and measure actual RTO and RPO
Explanation
Correct Answer
E:To validate recovery performance against business-approved thresholds, the architecture relies on this AWS behavior: controlled recovery tests expose dependencies, manual delays, and replication gaps before incidents. Success must be measured from observed restoration and data loss rather than architecture diagrams.
Incorrect Answers
A:RDS Multi-AZ can fail over to a maintained standby in another zone using the managed DB endpoint; this can help teams restore database service availability without promoting a cross-Region read replica, but the reported workflow needs to validate recovery performance against business-approved thresholds. It does not perform that required function.
B:That service solves a different operating problem: the need to recreate known-good application capacity from immutable infrastructure definitions; its behavior is that versioned IaC and images allow consistent restoration of application infrastructure; the requested outcome remains validate recovery performance against business-approved thresholds.
C:The choice is useful when engineers need to reduce recovery time for supported server workloads using block-level replication: elastic Disaster Recovery continuously replicates supported source-server data for recovery launches into AWS. It would not establish the control needed to validate recovery performance against business-approved thresholds.
D:AWS Backup copy rules replicate supported recovery points to destination vaults in other Regions; this is a reasonable option when the requirement is to preserve recoverable backups outside the source Region, but it operates at a different workflow boundary from the stated need to validate recovery performance against business-approved thresholds.
Question 283
After a configuration change, the platform engineering team sees this issue: A member account retains only local flow logs and investigators lack access across accounts. What best restores the ability to collect network flow metadata from selected workload VPCs for audit analysis?
- Attach an Organizations SCP to a production OU
- Configure Security Hub organization integration and central settings policies
- Use centralized VPC Flow Logs delivery to an approved log destination
- Use an S3 bucket policy that denies insecure transport for organization logs
Explanation
Correct Answer
C:VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations; in this case the control is appropriate because it supports collect network flow metadata from selected workload VPCs for audit analysis. Delivery roles and destinations must be scoped and protected centrally.
Incorrect Answers
A:That service solves a different operating problem: the need to set a maximum permission boundary for member-account principals; its behavior is that service control policies limit the maximum permissions of affected account principals but do not grant rights; the requested outcome remains collect network flow metadata from selected workload VPCs for audit analysis.
B:The choice is useful when engineers need to standardize security finding aggregation and enabled standards across accounts: Security Hub central configuration can apply supported policies across an organization hierarchy. It would not establish the control needed to collect network flow metadata from selected workload VPCs for audit analysis.
D:Choosing this would aim to prevent log upload and retrieval over unencrypted transport instead of collect network flow metadata from selected workload VPCs for audit analysis; a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection; it cannot replace the mechanism specified by the incident evidence.
Question 284
After a configuration change, the security engineering team sees this issue: Potential credential abuse goes unnoticed across newly created member accounts. What best restores the ability to surface suspicious credentials and network behavior without building a custom detector?
- Use Amazon Macie for sensitive-data discovery in S3
- Enable GuardDuty across organization accounts to detect suspicious activity
- Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources
- Use AWS Config rule evaluations with automatic remediation for policy violations
Explanation
Correct Answer
B:GuardDuty analyzes supported telemetry and uses threat detection to generate security findings; in this case the control is appropriate because it supports surface suspicious credentials and network behavior without building a custom detector. Security monitoring must cover accounts through organization administration.
Incorrect Answers
A:The choice is useful when engineers need to identify S3 objects that potentially contain sensitive information: Macie uses automated discovery and classification to identify sensitive data in supported S3 objects. It would not establish the control needed to surface suspicious credentials and network behavior without building a custom detector.
C:Choosing this would aim to apply additional DDoS protection and response capabilities to critical endpoints instead of surface suspicious credentials and network behavior without building a custom detector; shield Advanced offers enhanced detection, response capabilities, and protections for supported resources; it cannot replace the mechanism specified by the incident evidence.
D:Although AWS Config rules evaluate configurations and can integrate with Systems Manager remediation, the scenario does not ask for restore supported misconfigured resource settings when drift is detected; it requires the ability to surface suspicious credentials and network behavior without building a custom detector, which is a separate responsibility.
Question 285
After a configuration change, the delivery engineering team sees this issue: An HTTP server emits error markers in logs but does not publish a matching custom count metric. What best restores the ability to count specific error patterns without changing application metric instrumentation?
- Use CloudWatch Logs Insights for interactive log analysis
- Use CloudWatch agent StatsD or collectd integrations for supported workloads
- Publish PutMetricData custom metrics with stable dimensions
- Configure CloudWatch metric filters for structured application log events
- Create CloudWatch metric streams to Amazon Data Firehose
Explanation
Correct Answer
D:Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; it restores the ability to count specific error patterns without changing application metric instrumentation, provided the implementation also observes that the log event pattern is consistent enough to extract a metric value.
Incorrect Answers
A:CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. This is a reasonable option when the requirement is to query structured error events across log groups during incidents, but it operates at a different workflow boundary from the stated need to count specific error patterns without changing application metric instrumentation.
B:Choosing this would aim to bridge existing application metric protocols into CloudWatch instead of count specific error patterns without changing application metric instrumentation. The unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch; it cannot replace the mechanism specified by the incident evidence.
C:Although CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation, the scenario does not ask for track a domain-specific success count broken down by deployed service. It requires the ability to count specific error patterns without changing application metric instrumentation, which is a separate responsibility.
E:That service solves a different operating problem: the need to continuously export supported metrics to an external observability platform; its behavior is that CloudWatch metric streams continuously send metric data to supported delivery services; the requested outcome remains count specific error patterns without changing application metric instrumentation.
Question 286
A production-readiness assessment calls out two missing capabilities: find which dependency slows a distributed API request and diagnose an ECS service unable to reach steady state. Choose the AWS implementation that explicitly addresses both.
- Inspect X-Ray traces for downstream service latency; inspect ECS service events and stopped-task reasons
- Inspect X-Ray traces for downstream service latency; inspect EKS pod events and describe output for Pending pods
- Inspect application retry behavior and SQS ApproximateAgeOfOldestMessage; inspect ECS service events and stopped-task reasons
- Review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances; inspect RDS failover events and connection retry handling
Explanation
Correct Answer
A:For the requirement to find which dependency slows a distributed API request, x-Ray traces expose service dependencies and timing across instrumented operations. For the requirement to diagnose an ECS service unable to reach steady state, ECS service events and stopped task metadata describe placement and startup failures. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.
Incorrect Answers
B:The first half is appropriate: X-Ray traces expose service dependencies and timing across instrumented operations. However, kubernetes scheduling events explain why pending pods cannot be assigned to nodes; that serves a different objective (diagnose Kubernetes scheduling constraints rather than application code failure) and leaves the explicit need to diagnose an ECS service unable to reach steady state unmet.
C:The second implementation is relevant; the problem is the first. SQS age metrics help reveal processing delay that count metrics alone can obscure. It can help identify whether queue-processing latency is growing from a slow consumer, whereas the stated first requirement is to find which dependency slows a distributed API request.
D:The pair changes the problem instead of completing it. One option addresses diagnose why an instance deployment fails during a lifecycle hook; the other addresses explain a brief application database interruption after a Multi-AZ failover. The release, however, needs to find which dependency slows a distributed API request as well as diagnose an ECS service unable to reach steady state.
Question 287
A technical change review names the selected control as follows: Set termination wait time for a CodeDeploy ECS blue/green deployment. To retain the old ECS task set temporarily for rollback after traffic rerouting, which constraint must be addressed for this design?
- The release must preserve enough healthy tasks while permitting replacements
- The rollback window must preserve the old environment for the approved interval
- The old environment should remain ready during a traffic switch
- The success condition is customer-path health rather than artifact transfer
- Fleet changes must converge on a new launch template version
- Traffic switching and the old task set must be independently manageable
Explanation
Correct Answer
B:The rollback window must preserve the old environment for the approved interval. That is the governing deployment boundary for the selected control: CodeDeploy blue/green termination settings control how long the original ECS task set remains after success. If the boundary is missed, the design can fail to retain the old ECS task set temporarily for rollback after traffic rerouting.
Incorrect Answers
A:This proposed constraint belongs to a separate objective: the release must preserve enough healthy tasks while permitting replacements; the corresponding goal is to control the capacity margin during rolling task replacement, not the selected architecture's goal to retain the old ECS task set temporarily for rollback after traffic rerouting.
C:CodeDeploy blue/green can provision replacement EC2 instances and reroute traffic after health checks; its own dependency is that the old environment should remain ready during a traffic switch; those details concern the separate objective of being able to replace an entire instance release without modifying the current live fleet, rather than to the named control required to retain the old ECS task set temporarily for rollback after traffic rerouting.
D:The proposed condition makes sense in an implementation designed to validate that a new service release responds correctly before ending the deployment. It concerns a smoke test targets live application behavior after rollout and can trigger deployment failure handling, whereas this question tests the prerequisite of the named control.
E:This proposed constraint belongs to a separate objective: fleet changes must converge on a new launch template version; the corresponding goal is to replace outdated instances with a tested image instead of mutating running systems, not the selected architecture's goal to retain the old ECS task set temporarily for rollback after traffic rerouting.
F:This condition governs the different mechanism used to shift load balancer traffic from the old ECS task set to the new task set; CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts; for the selected control, the relevant boundary is instead that the rollback window must preserve the old environment for the approved interval.
Question 288
An operational design is incomplete until it can expose test-suite pass rates and failing cases for each build execution and stop a pipeline build action when the test runner detects a regression. Which two-part implementation fills both gaps?
- Configure CodeBuild test reports with the supported report-file format; return a nonzero exit code when a blocking automated test fails
- Configure CodeBuild test reports with the supported report-file format; use canary synthetic checks against a published test endpoint
- Use a CodePipeline test action after deployment to staging; run acceptance tests after staging deployment and before approval
- Publish code coverage in CodeBuild reports without treating it as proof of behavior; return a nonzero exit code when a blocking automated test fails
Explanation
Correct Answer
A:CodeBuild reads supported report files from configured paths and associates results with report groups; CodeBuild determines command success from process exit status unless buildspec failure handling overrides it. The first control satisfies the need to expose test-suite pass rates and failing cases for each build execution; the second addresses the need to stop a pipeline build action when the test runner detects a regression. The report file path and test report format must match buildspec configuration; later deployment stages must not run after a failing quality gate.
Incorrect Answers
B:CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements; that alternative supports the ability to exercise a critical HTTP journey regularly with externally visible outcomes, but it is not the requested second outcome (stop a pipeline build action when the test runner detects a regression). Even though the first half addresses expose test-suite pass rates and failing cases for each build execution, this pair is incomplete.
C:The pair changes the problem instead of completing it. One option addresses fail a promotion flow based on smoke-test results for the deployed service; the other addresses verify business workflows on a deployed candidate before production promotion. The release, however, needs to expose test-suite pass rates and failing cases for each build execution as well as stop a pipeline build action when the test runner detects a regression.
D:Coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct; that is intended to track executed source coverage while retaining assertions-based acceptance gates, not to expose test-suite pass rates and failing cases for each build execution. The second half can meet the requirement to stop a pipeline build action when the test runner detects a regression, but the first is still missing.
Question 289
A service owner needs to prioritize security risks across multiple supported detection services and determine whether recorded network flows were accepted or rejected at an interface. Which paired controls deliver the requested behavior across both workstreams?
- Use Security Hub findings to correlate security signals from enabled integrations; use VPC Flow Logs for network traffic acceptance and rejection evidence
- Instrument the actual application error path with structured logs and trace IDs; use VPC Flow Logs for network traffic acceptance and rejection evidence
- Use Security Hub findings to correlate security signals from enabled integrations; enable Amazon Inspector findings for supported compute workloads
- Enable AWS X-Ray tracing across supported API and Lambda components; use CloudWatch Logs Insights fields and parsing for targeted error investigation
Explanation
Correct Answer
A:The first outcome depends on the behavior that Security Hub normalizes supported security findings and provides centralized prioritization workflows. Separately, VPC Flow Logs record flow metadata such as source, destination, port, and accept or reject action. Together these meet the two requested outcomes, with the operational limits that aggregated findings must retain product identity, severity, and resource details and flow metadata does not include full packet payloads or application semantics.
Incorrect Answers
B:Application tracing and correlated structured logs reveal failures not expressed by host utilization metrics; that is intended to diagnose which business operation produces sporadic application exceptions, not to prioritize security risks across multiple supported detection services. The second half can meet the requirement to determine whether recorded network flows were accepted or rejected at an interface, but the first is still missing.
C:Inspector assesses supported workloads and produces vulnerability findings with affected-resource context; that alternative supports the ability to identify software package vulnerabilities affecting deployed EC2 or container workloads, but it is not the requested second outcome (determine whether recorded network flows were accepted or rejected at an interface). Even though the first half addresses prioritize security risks across multiple supported detection services, this pair is incomplete.
D:The pair changes the problem instead of completing it. One option addresses identify which downstream call dominates end-to-end request latency; the other addresses filter application logs by request ID and aggregate failing endpoint counts. The release, however, needs to prioritize security risks across multiple supported detection services as well as determine whether recorded network flows were accepted or rejected at an interface.
Question 290
Investigators observe: Builds succeed but the deployment action cannot find the generated application archive. Engineers still need to include compiled outputs rather than the entire source tree in a pipeline artifact. Which corrective action is most appropriate?
- Enable S3 replication for approved build objects that must be available cross-Region
- Use EC2 Image Builder pipelines to produce hardened AMIs
- Export a CodeBuild artifact using buildspec artifact paths
- Pin image promotion to an ECR image digest instead of a mutable tag
Explanation
Correct Answer
C:The buildspec artifacts section chooses files to package and publish as build outputs; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the downstream action must receive the files produced by build commands.
Incorrect Answers
A:The choice is useful when engineers need to 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 would not establish the control needed to include compiled outputs rather than the entire source tree in a pipeline artifact.
B:Image Builder creates, customizes, tests, and distributes repeatable machine images from recipes; this is a reasonable option when the requirement is to automate repeatable golden-image builds with validation tests, but it operates at a different workflow boundary from the stated need to include compiled outputs rather than the entire source tree in a pipeline artifact.
D:Although image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance, the scenario does not ask for deploy exactly the image bytes tested during CI; it requires the ability to include compiled outputs rather than the entire source tree in a pipeline artifact, which is a separate responsibility.