Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 15
Question 140
Before changing production, engineers find: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. Which investigation should the engineer perform FIRST?
- Inspect IAM Access Analyzer findings, bucket policies and approved trust relationships.
- Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin.
- Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys.
- Review organization trail destinations, log archive permissions and retention control.
Explanation
Correct Answer
C:Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. The governing principle is: Central security logging depends on correct service delivery permissions for every intended account. The next controlled engineering decision is: Correct narrowly scoped policy conditions for the approved organization trail.
Incorrect Answers
A:Inspect IAM Access Analyzer findings, bucket policies and approved trust relationships. This instead addresses a different case: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. For the stated situation (A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.), the better investigation is: Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. The deciding distinction is: Central security logging depends on correct service delivery permissions for every intended account.
B:Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin. This instead addresses a different case: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. For the stated situation (A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.), the better investigation is: Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. The deciding distinction is: Central security logging depends on correct service delivery permissions for every intended account.
D:Review organization trail destinations, log archive permissions and retention control. This instead addresses a different case: An administrator can modify production resources and delete the only CloudTrail delivery bucket objects using the same role. For the stated situation (A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.), the better investigation is: Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. The deciding distinction is: Central security logging depends on correct service delivery permissions for every intended account.
Question 141
The DevOps team must resolve this scenario: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. Which engineering change is MOST appropriate?
- Enable appropriate continuous scanning and approved image remediation pipelines.
- Adjust the approved OU guardrail or permitted design rather than bypassing IAM evaluation.
- Use an EventBridge or suitable centralized CloudTrail event detection and escalation.
- Automate drift detection, alerting and approved reconciliation for critical stacks.
Explanation
Correct Answer
C:Use an EventBridge or suitable centralized CloudTrail event detection and escalation. Its validation is: A safe simulated rule match generates a routed high-severity root activity alert. The principle is: High-risk root activity should be centrally detected from reliably recorded audit events.
Incorrect Answers
A:Enable appropriate continuous scanning and approved image remediation pipelines. This instead addresses a different case: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. For the stated situation (The security team needs immediate notification if any member account root principal creates an access key or changes account settings.), the better engineering action is: Use an EventBridge or suitable centralized CloudTrail event detection and escalation. The deciding distinction is: High-risk root activity should be centrally detected from reliably recorded audit events.
B:Adjust the approved OU guardrail or permitted design rather than bypassing IAM evaluation. This instead addresses a different case: A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny. For the stated situation (The security team needs immediate notification if any member account root principal creates an access key or changes account settings.), the better engineering action is: Use an EventBridge or suitable centralized CloudTrail event detection and escalation. The deciding distinction is: High-risk root activity should be centrally detected from reliably recorded audit events.
D:Automate drift detection, alerting and approved reconciliation for critical stacks. This instead addresses a different case: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. For the stated situation (The security team needs immediate notification if any member account root principal creates an access key or changes account settings.), the better engineering action is: Use an EventBridge or suitable centralized CloudTrail event detection and escalation. The deciding distinction is: High-risk root activity should be centrally detected from reliably recorded audit events.
Question 142
After implementing a proposed fix, the team reviews: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. Which result would BEST confirm that the risk is addressed?
- Events from one device are observed in order and high-throughput devices are handled safely.
- Representative load shows reduced deadlocks and successful committed transactions.
- A representative end-to-end request completes within API and business latency budgets.
- A replacement task pulls the pinned image and reaches healthy running state.
Explanation
Correct Answer
D:A replacement task pulls the pinned image and reaches healthy running state. The approved action is: Correct the execution role or ECR/network access while preserving intended image provenance. The risk principle is: Container deployment failures may result from registry authentication and network access rather than code.
Incorrect Answers
A:Events from one device are observed in order and high-throughput devices are handled safely. 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 (New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct.), the better verification is: A replacement task pulls the pinned image and reaches healthy running state. The deciding distinction is: Container deployment failures may result from registry authentication and network access rather than code.
B:Representative load shows reduced deadlocks and successful committed transactions. This instead addresses a different case: A new backend version causes transaction timeouts and rising database deadlocks, while CPU utilization remains moderate. For the stated situation (New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct.), the better verification is: A replacement task pulls the pinned image and reaches healthy running state. The deciding distinction is: Container deployment failures may result from registry authentication and network access rather than code.
C:A representative end-to-end request completes within API and business latency budgets. This instead addresses a different case: An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database. For the stated situation (New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct.), the better verification is: A replacement task pulls the pinned image and reaches healthy running state. The deciding distinction is: Container deployment failures may result from registry authentication and network access rather than code.
Question 143
Before changing production, engineers find: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. Which investigation should the engineer perform FIRST?
- Review alarm threshold, missing-data policy, publishing heartbeat and error logs.
- Inspect log JSON structure, embedded metric declarations and namespace configuration.
- Review AWS Config resource timeline and recorded CloudTrail changes for the period.
- Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs.
Explanation
Correct Answer
D:Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs. The governing principle is: Troubleshooting requires separating load balancer and target failure metrics. The next controlled engineering decision is: Use the appropriate metric split and correlated logs to target the failing layer.
Incorrect Answers
A:Review alarm threshold, missing-data policy, publishing heartbeat and error logs. This instead addresses a different case: A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage. For the stated situation (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better investigation is: Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
B:Inspect log JSON structure, embedded metric declarations and namespace configuration. 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 application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better investigation is: Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
C:Review AWS Config resource timeline and recorded CloudTrail changes for the period. This instead addresses a different case: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. For the stated situation (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better investigation is: Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
Question 144
An engineering review identifies: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. Which shortcut is MOST unsafe for this exact condition?
- Patch only a single running instance and assume all future Auto Scaling launches inherit it.
- Encrypt the build log after writing plaintext tokens and claim the leak is prevented.
- Use a low average latency from an idle staging instance as proof of peak performance.
- Trust the registry repository name alone as proof that every image was built internally.
Explanation
Correct Answer
D:Trust the registry repository name alone as proof that every image was built internally. The case is: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. A safer engineering response is: Require trusted image provenance validation before promoting production task revisions. The deciding principle is: Container provenance controls should verify publishers and immutable artifact digests.
Incorrect Answers
A:Patch only a single running instance and assume all future Auto Scaling launches inherit it. This instead addresses a different case: Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels. For the stated situation (A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags.), the better unsafe assumption to reject is: Trust the registry repository name alone as proof that every image was built internally. The deciding distinction is: Container provenance controls should verify publishers and immutable artifact digests.
B:Encrypt the build log after writing plaintext tokens and claim the leak is prevented. This instead addresses a different case: A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package. For the stated situation (A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags.), the better unsafe assumption to reject is: Trust the registry repository name alone as proof that every image was built internally. The deciding distinction is: Container provenance controls should verify publishers and immutable artifact digests.
C:Use a low average latency from an idle staging instance as proof of peak performance. This instead addresses a different case: A service passes one-user functional tests yet violates its 99th percentile latency target at peak checkout demand. For the stated situation (A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags.), the better unsafe assumption to reject is: Trust the registry repository name alone as proof that every image was built internally. The deciding distinction is: Container provenance controls should verify publishers and immutable artifact digests.
Question 145
After implementing a proposed fix, the team reviews: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. Which result would BEST confirm that the risk is addressed?
- The stack returns to a stable state without losing approved persistent resources.
- An affected account event is visible to authorized operators with timely service context.
- Old and new eligible events are processed or deliberately rejected with traceable errors.
- A simulated analytics outage does not prevent billing and fulfillment processing.
Explanation
Correct Answer
C:Old and new eligible events are processed or deliberately rejected with traceable errors. The approved action is: Introduce versioned event contracts, compatibility checks and error routing. The risk principle is: Event contracts and consumers need version-aware validation and safe schema evolution.
Incorrect Answers
A:The stack returns to a stable state without losing approved persistent resources. This instead addresses a different case: A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better verification is: Old and new eligible events are processed or deliberately rejected with traceable errors. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
B:An affected account event is visible to authorized operators with timely service context. 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 producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better verification is: Old and new eligible events are processed or deliberately rejected with traceable errors. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
D:A simulated analytics outage does not prevent billing and fulfillment processing. This instead addresses a different case: One order-created event needs to inform billing, fulfillment and analytics independently, but a direct Lambda chain loses downstream events when one service is unavailable. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better verification is: Old and new eligible events are processed or deliberately rejected with traceable errors. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
Question 146
Before changing production, engineers find: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. Which investigation should the engineer perform FIRST?
- Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy.
- Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact.
- Review subnet NACL rules, ephemeral ports, security group and VPC flow logs.
- Inspect Config recorders, aggregation sources, rules and delegated management.
Explanation
Correct Answer
C:Review subnet NACL rules, ephemeral ports, security group and VPC flow logs. The governing principle is: NACLs are stateless and require explicit return-path allowances; security groups are stateful. The next controlled engineering decision is: Correct subnet stateless rules or use appropriate security group rules for application access.
Incorrect Answers
A:Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy. This instead addresses a different case: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update. For the stated situation (A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked.), the better investigation is: Review subnet NACL rules, ephemeral ports, security group and VPC flow logs. The deciding distinction is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
B:Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact. This instead addresses a different case: A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing. For the stated situation (A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked.), the better investigation is: Review subnet NACL rules, ephemeral ports, security group and VPC flow logs. The deciding distinction is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
D:Inspect Config recorders, aggregation sources, rules and delegated management. This instead addresses a different case: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. For the stated situation (A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked.), the better investigation is: Review subnet NACL rules, ephemeral ports, security group and VPC flow logs. The deciding distinction is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
Question 147
Before changing production, engineers find: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. Which investigation should the engineer perform FIRST?
- Review discovery filters, resource ownership, dependency graph and deletion permissions.
- Inspect managed instance registration, SSM Inventory collection and software reports.
- Map task dependencies, failure branches, state data and side effects.
- Review tag policies, required dimensions, untagged inventory and deployment templates.
Explanation
Correct Answer
C:Map task dependencies, failure branches, state data and side effects. The governing principle is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation. The next controlled engineering decision is: Orchestrate tasks with Step Functions including bounded retries and catch paths.
Incorrect Answers
A:Review discovery filters, resource ownership, dependency graph and deletion permissions. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out.), the better investigation is: Map task dependencies, failure branches, state data and side effects. The deciding distinction is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.
B:Inspect managed instance registration, SSM Inventory collection and software reports. 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 manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out.), the better investigation is: Map task dependencies, failure branches, state data and side effects. The deciding distinction is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.
D:Review tag policies, required dimensions, untagged inventory and deployment templates. This instead addresses a different case: Chargeback reports omit resources because each team uses different tag keys and case variants. For the stated situation (A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out.), the better investigation is: Map task dependencies, failure branches, state data and side effects. The deciding distinction is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.
Question 148
After implementing a proposed fix, the team reviews: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. Which result would BEST confirm that the risk is addressed?
- An unrelated change does not deploy billing, while a relevant shared component still triggers required tests.
- A deliberately misconfigured test cannot send messages to a production SQS queue.
- A destructive replacement requires explicit approval and safe migration planning.
- A broken checkout fails release validation despite a healthy root URL response.
Explanation
Correct Answer
C:A destructive replacement requires explicit approval and safe migration planning. The approved action is: Create and inspect a change set before controlled production execution. The risk principle is: Infrastructure changes should be previewed and checked for destructive resource effects.
Incorrect Answers
A:An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. This instead addresses a different case: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better verification is: A destructive replacement requires explicit approval and safe migration planning. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
B:A deliberately misconfigured test cannot send messages to a production SQS queue. This instead addresses a different case: Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better verification is: A destructive replacement requires explicit approval and safe migration planning. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
D:A broken checkout fails release validation despite a healthy root URL response. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better verification is: A destructive replacement requires explicit approval and safe migration planning. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
Question 149
An AWS platform team investigates this condition: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. Which DevOps principle BEST explains the core problem?
- Multi-service releases need explicit interface compatibility, version and rollout coordination.
- Performance acceptance must use representative concurrency and measured service-level thresholds.
- Pipeline triggers should select relevant branch and file changes without missing dependencies.
- Release success should depend on monitored application health and recoverable deployment state.
Explanation
Correct Answer
C:Pipeline triggers should select relevant branch and file changes without missing dependencies. Relevant first evidence: Compare trigger filters with the repository layout and shared-library dependency map. The resulting controlled response is: Use appropriate source change triggers and path filters with explicit handling of shared dependencies.
Incorrect Answers
A:Multi-service releases need explicit interface compatibility, version and rollout coordination. This instead addresses a different case: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better principle is: Pipeline triggers should select relevant branch and file changes without missing dependencies. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
B:Performance acceptance must use representative concurrency and measured service-level thresholds. This instead addresses a different case: A service passes one-user functional tests yet violates its 99th percentile latency target at peak checkout demand. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better principle is: Pipeline triggers should select relevant branch and file changes without missing dependencies. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
D:Release success should depend on monitored application health and recoverable deployment state. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better principle is: Pipeline triggers should select relevant branch and file changes without missing dependencies. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
Question 150
Before changing production, engineers find: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. Which investigation should the engineer perform FIRST?
- Inspect SSM Automation document version, execution permissions, targets and rate controls.
- Examine event identifiers, retry behavior, transactional storage and duplicate records.
- Map task dependencies, failure branches, state data and side effects.
- Review duplicated templates, parameter contracts, dependencies and current deviations.
Explanation
Correct Answer
B:Examine event identifiers, retry behavior, transactional storage and duplicate records. The governing principle is: At-least-once event processing requires idempotent operations and a stable request identity. The next controlled engineering decision is: Implement a durable idempotency key and conditional write or transaction guard.
Incorrect Answers
A:Inspect SSM Automation document version, execution permissions, targets and rate controls. 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 (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better investigation is: Examine event identifiers, retry behavior, transactional storage and duplicate records. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
C:Map task dependencies, failure branches, state data and side effects. This instead addresses a different case: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better investigation is: Examine event identifiers, retry behavior, transactional storage and duplicate records. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
D:Review duplicated templates, parameter contracts, dependencies and current deviations. This instead addresses a different case: Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better investigation is: Examine event identifiers, retry behavior, transactional storage and duplicate records. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.