Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 37
Question 360
After implementing a proposed fix, the team reviews: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. Which result would BEST confirm that the risk is addressed?
- A test matching event reaches the correct responder with affected account context.
- A test misconfigured resource triggers a traceable event and approved corrective action.
- Capacity is ready before known peaks while unwanted excess capacity is limited.
- A test network flow is represented in accessible records with relevant interface information.
Explanation
Correct Answer
B:A test misconfigured resource triggers a traceable event and approved corrective action. The approved action is: Route noncompliance events to appropriate response automation and human visibility. The risk principle is: Configuration compliance events can trigger managed event routing and bounded remediation.
Incorrect Answers
A:A test matching event reaches the correct responder with affected account context. This instead addresses a different case: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better verification is: A test misconfigured resource triggers a traceable event and approved corrective action. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
C:Capacity is ready before known peaks while unwanted excess capacity is limited. This instead addresses a different case: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better verification is: A test misconfigured resource triggers a traceable event and approved corrective action. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
D:A test network flow is represented in accessible records with relevant interface information. This instead addresses a different case: Security investigators cannot reconstruct a suspected data exfiltration path because VPC Flow Logs were never enabled for regulated subnets. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better verification is: A test misconfigured resource triggers a traceable event and approved corrective action. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
Question 361
An AWS platform team investigates this condition: An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery. Which DevOps principle BEST explains the core problem?
- Application telemetry can publish CloudWatch metrics through structured embedded metric or explicit custom metric patterns.
- Metric streams support managed delivery of selected CloudWatch metrics to supported downstream paths.
- ALB log delivery must have an authorized S3 destination and valid prefix permissions.
- Configuration compliance events can trigger managed event routing and bounded remediation.
Explanation
Correct Answer
C:ALB log delivery must have an authorized S3 destination and valid prefix permissions. Relevant first evidence: Inspect load balancer access log settings, S3 policy, Region and delivery status. The resulting controlled response is: Set approved bucket access and logging settings without broad public permissions.
Incorrect Answers
A:Application telemetry can publish CloudWatch metrics through structured embedded metric or explicit custom metric patterns. This instead addresses a different case: An application emits useful latency values inside structured logs but operators need searchable and alarmable measurements without building a bespoke database. For the stated situation (An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery.), the better principle is: ALB log delivery must have an authorized S3 destination and valid prefix permissions. The deciding distinction is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
B:Metric streams support managed delivery of selected CloudWatch metrics to supported downstream paths. This instead addresses a different case: An enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits. For the stated situation (An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery.), the better principle is: ALB log delivery must have an authorized S3 destination and valid prefix permissions. The deciding distinction is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
D:Configuration compliance events can trigger managed event routing and bounded remediation. This instead addresses a different case: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. For the stated situation (An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery.), the better principle is: ALB log delivery must have an authorized S3 destination and valid prefix permissions. The deciding distinction is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
Question 362
An AWS platform team investigates this condition: An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes. Which DevOps principle BEST explains the core problem?
- Client endpoint strategy must match the intended Aurora failover and read routing.
- Queue consumer visibility and processing design must account for task duration and idempotency.
- Caching or read replicas can reduce repeated reads when consistency requirements permit.
- Container service scaling should use load-appropriate metrics and capacity limits.
Explanation
Correct Answer
D:Container service scaling should use load-appropriate metrics and capacity limits. Relevant first evidence: Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown. The resulting controlled response is: Configure ECS Service Auto Scaling with appropriate target tracking and bounds.
Incorrect Answers
A:Client endpoint strategy must match the intended Aurora failover and read routing. This instead addresses a different case: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. For the stated situation (An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes.), the better principle is: Container service scaling should use load-appropriate metrics and capacity limits. The deciding distinction is: Container service scaling should use load-appropriate metrics and capacity limits.
B:Queue consumer visibility and processing design must account for task duration and idempotency. This instead addresses a different case: Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active. For the stated situation (An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes.), the better principle is: Container service scaling should use load-appropriate metrics and capacity limits. The deciding distinction is: Container service scaling should use load-appropriate metrics and capacity limits.
C:Caching or read replicas can reduce repeated reads when consistency requirements permit. This instead addresses a different case: An authenticated read-heavy API repeatedly queries a database for identical catalog metadata, exhausting database read capacity. For the stated situation (An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes.), the better principle is: Container service scaling should use load-appropriate metrics and capacity limits. The deciding distinction is: Container service scaling should use load-appropriate metrics and capacity limits.
Question 363
Before changing production, engineers find: A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment. Which investigation should the engineer perform FIRST?
- Inspect stack events, failed resources, execution role permissions and rollback status.
- Review configuration versioning, validation hooks and rollout blast radius.
- Review agent connectivity, hybrid activation, licensing requirements and node enrollment.
- Review organization structure, delegated administrator, StackSets permission model and target OUs.
Explanation
Correct Answer
B:Review configuration versioning, validation hooks and rollout blast radius. The governing principle is: Runtime configuration changes should be governed separately from immutable application binaries. The next controlled engineering decision is: Use AppConfig or an approved configuration store with versioned safe rollout and validation.
Incorrect Answers
A:Inspect stack events, failed resources, execution role permissions and rollback status. This instead addresses a different case: An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better investigation is: Review configuration versioning, validation hooks and rollout blast radius. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
C:Review agent connectivity, hybrid activation, licensing requirements and node enrollment. This instead addresses a different case: A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better investigation is: Review configuration versioning, validation hooks and rollout blast radius. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
D:Review organization structure, delegated administrator, StackSets permission model and target OUs. This instead addresses a different case: A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better investigation is: Review configuration versioning, validation hooks and rollout blast radius. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
Question 364
The DevOps team must resolve this scenario: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. Which engineering change is MOST appropriate?
- Enable inventory collection and central reporting for in-scope managed nodes.
- Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits.
- Use service-managed StackSets with appropriate OU targets and automatic deployment where supported.
- Register supported hybrid nodes in Systems Manager and assign compliant patch baselines.
Explanation
Correct Answer
B:Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. Its validation is: A test run affects only approved instances and stops within the configured error threshold. The principle is: Operational automation requires versioning, target control and bounded failure exposure.
Incorrect Answers
A:Enable inventory collection and central reporting for in-scope managed nodes. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better engineering action is: Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
C:Use service-managed StackSets with appropriate OU targets and automatic deployment where supported. This instead addresses a different case: A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better engineering action is: Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
D:Register supported hybrid nodes in Systems Manager and assign compliant patch baselines. This instead addresses a different case: A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better engineering action is: Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
Question 365
After implementing a proposed fix, the team reviews: A central deployment role uses a shared user access key to write objects to member-account buckets. Which result would BEST confirm that the risk is addressed?
- A test run affects only approved instances and stops within the configured error threshold.
- The migrated account receives exactly the new OU's required stacks and permissions.
- A role session can write only target resources and expires without key rotation overhead.
- New test account resources are assessed and noncompliant configurations reported.
Explanation
Correct Answer
C:A role session can write only target resources and expires without key rotation overhead. The approved action is: Replace persistent shared keys with approved cross-account roles and short-lived credentials. The risk principle is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
Incorrect Answers
A:A test run affects only approved instances and stops within the configured error threshold. This instead addresses a different case: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. For the stated situation (A central deployment role uses a shared user access key to write objects to member-account buckets.), the better verification is: A role session can write only target resources and expires without key rotation overhead. The deciding distinction is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
B:The migrated account receives exactly the new OU's required stacks and permissions. This instead addresses a different case: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. For the stated situation (A central deployment role uses a shared user access key to write objects to member-account buckets.), the better verification is: A role session can write only target resources and expires without key rotation overhead. The deciding distinction is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
D:New test account resources are assessed and noncompliant configurations reported. This instead addresses a different case: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. For the stated situation (A central deployment role uses a shared user access key to write objects to member-account buckets.), the better verification is: A role session can write only target resources and expires without key rotation overhead. The deciding distinction is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
Question 366
The DevOps team must resolve this scenario: A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs. Which engineering change is MOST appropriate?
- Validate the webhook signature and store an idempotency key before issuing jobs.
- Tune supported throttling quotas or implement client backoff and capacity planning.
- Subscribe to relevant health events through centralized EventBridge and incident workflows.
- Use stable device partition keys where ordering is required, with monitored throughput.
Explanation
Correct Answer
A:Validate the webhook signature and store an idempotency key before issuing jobs. Its validation is: Repeated signed delivery produces one fulfillment operation, while invalid signatures fail. The principle is: External event ingress must authenticate and deduplicate repeated delivery attempts.
Incorrect Answers
B:Tune supported throttling quotas or implement client backoff and capacity planning. This instead addresses a different case: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. For the stated situation (A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs.), the better engineering action is: Validate the webhook signature and store an idempotency key before issuing jobs. The deciding distinction is: External event ingress must authenticate and deduplicate repeated delivery attempts.
C:Subscribe to relevant health events through centralized EventBridge and incident workflows. This instead addresses a different case: An AWS Health event affects a critical enterprise database in an otherwise quiet account, but the team monitors only application CloudWatch alarms. For the stated situation (A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs.), the better engineering action is: Validate the webhook signature and store an idempotency key before issuing jobs. The deciding distinction is: External event ingress must authenticate and deduplicate repeated delivery attempts.
D:Use stable device partition keys where ordering is required, with monitored throughput. This instead addresses a different case: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. For the stated situation (A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs.), the better engineering action is: Validate the webhook signature and store an idempotency key before issuing jobs. The deciding distinction is: External event ingress must authenticate and deduplicate repeated delivery attempts.
Question 367
The DevOps team must resolve this scenario: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. Which engineering change is MOST appropriate?
- Use restricted provider connection permissions and pipeline-level source authorization controls.
- Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence.
- Introduce contract testing and backward-compatible staged promotion between affected pipelines.
- Build a versioned immutable artifact once, then promote that artifact through approvals and environments.
Explanation
Correct Answer
C:Introduce contract testing and backward-compatible staged promotion between affected pipelines. Its validation is: A rolling deployment preserves end-to-end checkout while old and new versions briefly coexist. The principle is: Multi-service releases need explicit interface compatibility, version and rollout coordination.
Incorrect Answers
A:Use restricted provider connection permissions and pipeline-level source authorization controls. This instead addresses a different case: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. For the stated situation (A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate.), the better engineering action is: Introduce contract testing and backward-compatible staged promotion between affected pipelines. The deciding distinction is: Multi-service releases need explicit interface compatibility, version and rollout coordination.
B:Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. This instead addresses a different case: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. For the stated situation (A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate.), the better engineering action is: Introduce contract testing and backward-compatible staged promotion between affected pipelines. The deciding distinction is: Multi-service releases need explicit interface compatibility, version and rollout coordination.
D:Build a versioned immutable artifact once, then promote that artifact through approvals and environments. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate.), the better engineering action is: Introduce contract testing and backward-compatible staged promotion between affected pipelines. The deciding distinction is: Multi-service releases need explicit interface compatibility, version and rollout coordination.
Question 368
An AWS platform team investigates this condition: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. Which DevOps principle BEST explains the core problem?
- Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
- Central security logging depends on correct service delivery permissions for every intended account.
- IAM activity and access analysis can support least-privilege refinement under monitoring.
- Drift checks and authorization records can reveal out-of-band permission changes.
Explanation
Correct Answer
D:Drift checks and authorization records can reveal out-of-band permission changes. Relevant first evidence: Review stack drift status, CloudTrail changes and IAM effective policy. The resulting controlled response is: Automate drift detection, alerting and approved reconciliation for critical stacks.
Incorrect Answers
A:Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. This instead addresses a different case: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. For the stated situation (A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access.), the better principle is: Drift checks and authorization records can reveal out-of-band permission changes. The deciding distinction is: Drift checks and authorization records can reveal out-of-band permission changes.
B:Central security logging depends on correct service delivery permissions for every intended account. This instead addresses a different case: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. For the stated situation (A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access.), the better principle is: Drift checks and authorization records can reveal out-of-band permission changes. The deciding distinction is: Drift checks and authorization records can reveal out-of-band permission changes.
C:IAM activity and access analysis can support least-privilege refinement under monitoring. This instead addresses a different case: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely. For the stated situation (A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access.), the better principle is: Drift checks and authorization records can reveal out-of-band permission changes. The deciding distinction is: Drift checks and authorization records can reveal out-of-band permission changes.
Question 369
The DevOps team must resolve this scenario: A production ALB forwards traffic only to instances in one Availability Zone even though the application requires tolerance of an AZ outage. Which engineering change is MOST appropriate?
- Provision approved regional secrets and key access before declaring standby ready.
- Implement scalable worker capacity tied to backlog-per-worker or age-based demand signals.
- Configure applications to use suitable Aurora endpoints and resilient reconnection.
- Spread healthy application targets and sufficient capacity across at least two appropriate AZs.
Explanation
Correct Answer
D:Spread healthy application targets and sufficient capacity across at least two appropriate AZs. Its validation is: A controlled AZ fault leaves approved customer transactions available within the target. The principle is: Multi-AZ service design needs healthy targets and sufficient capacity in independent zones.
Incorrect Answers
A:Provision approved regional secrets and key access before declaring standby ready. This instead addresses a different case: A warm standby web tier exists in a second Region but depends on secrets and KMS keys that are only accessible in the primary Region. For the stated situation (A production ALB forwards traffic only to instances in one Availability Zone even though the application requires tolerance of an AZ outage.), the better engineering action is: Spread healthy application targets and sufficient capacity across at least two appropriate AZs. The deciding distinction is: Multi-AZ service design needs healthy targets and sufficient capacity in independent zones.
B:Implement scalable worker capacity tied to backlog-per-worker or age-based demand signals. This instead addresses a different case: A worker fleet uses CPU utilization to scale even though pending SQS message backlog increases rapidly while CPU remains low. For the stated situation (A production ALB forwards traffic only to instances in one Availability Zone even though the application requires tolerance of an AZ outage.), the better engineering action is: Spread healthy application targets and sufficient capacity across at least two appropriate AZs. The deciding distinction is: Multi-AZ service design needs healthy targets and sufficient capacity in independent zones.
C:Configure applications to use suitable Aurora endpoints and resilient reconnection. This instead addresses a different case: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. For the stated situation (A production ALB forwards traffic only to instances in one Availability Zone even though the application requires tolerance of an AZ outage.), the better engineering action is: Spread healthy application targets and sufficient capacity across at least two appropriate AZs. The deciding distinction is: Multi-AZ service design needs healthy targets and sufficient capacity in independent zones.
Question 370
Before changing production, engineers find: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. Which investigation should the engineer perform FIRST?
- Review generated CloudFormation change sets, deletion or replacement actions and approval policy.
- Check release history, lifecycle expiration rules, active references and recovery windows.
- Inspect shell error handling, test process exit codes, buildspec commands and report-group output.
- Review repository protection rules, pull-request triggers and build pass requirements.
Explanation
Correct Answer
A:Review generated CloudFormation change sets, deletion or replacement actions and approval policy. The governing principle is: Infrastructure changes should be previewed and checked for destructive resource effects. The next controlled engineering decision is: Create and inspect a change set before controlled production execution.
Incorrect Answers
B:Check release history, lifecycle expiration rules, active references and recovery windows. This instead addresses a different case: A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better investigation is: Review generated CloudFormation change sets, deletion or replacement actions and approval policy. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
C:Inspect shell error handling, test process exit codes, buildspec commands and report-group output. This instead addresses a different case: CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better investigation is: Review generated CloudFormation change sets, deletion or replacement actions and approval policy. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
D:Review repository protection rules, pull-request triggers and build pass requirements. This instead addresses a different case: Developers merge feature branches into main before CodeBuild checks run, allowing a failing package into the release source. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better investigation is: Review generated CloudFormation change sets, deletion or replacement actions and approval policy. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.