Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 86
Question 850
Before changing production, engineers find: An enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits. 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 metric namespace filters, stream role, delivery stream and external endpoint requirements.
- Inspect flow log coverage, filter type, destination access and retention requirements.
Explanation
Correct Answer
C:Review metric namespace filters, stream role, delivery stream and external endpoint requirements. The governing principle is: Metric streams support managed delivery of selected CloudWatch metrics to supported downstream paths. The next controlled engineering decision is: Configure CloudWatch metric streams with a managed supported delivery route.
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 enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits.), the better investigation is: Review metric namespace filters, stream role, delivery stream and external endpoint requirements. The deciding distinction is: Metric streams support managed delivery of selected CloudWatch metrics to supported downstream paths.
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 enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits.), the better investigation is: Review metric namespace filters, stream role, delivery stream and external endpoint requirements. The deciding distinction is: Metric streams support managed delivery of selected CloudWatch metrics to supported downstream paths.
D:Inspect flow log coverage, filter type, destination access and retention requirements. 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 (An enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits.), the better investigation is: Review metric namespace filters, stream role, delivery stream and external endpoint requirements. The deciding distinction is: Metric streams support managed delivery of selected CloudWatch metrics to supported downstream paths.
Question 851
An AWS platform team investigates this condition: 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. Which DevOps principle BEST explains the core problem?
- Fan-out with independent durable subscribers decouples consumer processing and retries.
- Timeout diagnosis should separate function execution, network reachability and downstream latency.
- Stream ordering guarantees depend on partition key and consumer processing model.
- Poison messages should be isolated with bounded receive counts and accountable remediation.
Explanation
Correct Answer
A:Fan-out with independent durable subscribers decouples consumer processing and retries. Relevant first evidence: Review delivery guarantees, subscriptions, DLQs and consumer coupling. The resulting controlled response is: Publish to a suitable topic and distribute through separate durable SQS queues.
Incorrect Answers
B:Timeout diagnosis should separate function execution, network reachability and downstream latency. 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 (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.), the better principle is: Fan-out with independent durable subscribers decouples consumer processing and retries. The deciding distinction is: Fan-out with independent durable subscribers decouples consumer processing and retries.
C:Stream ordering guarantees depend on partition key and consumer processing model. 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 (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.), the better principle is: Fan-out with independent durable subscribers decouples consumer processing and retries. The deciding distinction is: Fan-out with independent durable subscribers decouples consumer processing and retries.
D:Poison messages should be isolated with bounded receive counts and accountable remediation. This instead addresses a different case: A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it. For the stated situation (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.), the better principle is: Fan-out with independent durable subscribers decouples consumer processing and retries. The deciding distinction is: Fan-out with independent durable subscribers decouples consumer processing and retries.
Question 852
An AWS platform team investigates this condition: An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users. Which DevOps principle BEST explains the core problem?
- Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.
- Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
- ALB log delivery must have an authorized S3 destination and valid prefix permissions.
- Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks.
Explanation
Correct Answer
D:Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks. Relevant first evidence: Inspect CloudWatch Synthetics canary steps, credential handling and network reachability. The resulting controlled response is: Create a managed synthetic login journey with secure test identity and operational alarm.
Incorrect Answers
A:Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues. This instead addresses a different case: A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain. For the stated situation (An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users.), the better principle is: Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks. The deciding distinction is: Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks.
B:Automated incident workflows should have explicit state, idempotent actions and bounded escalation. This instead addresses a different case: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages. For the stated situation (An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users.), the better principle is: Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks. The deciding distinction is: Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks.
C:ALB log delivery must have an authorized S3 destination and valid prefix permissions. This instead addresses a different case: An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery. For the stated situation (An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users.), the better principle is: Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks. The deciding distinction is: Synthetic monitoring should exercise user-important paths with appropriate credentials and certificate checks.
Question 853
An AWS platform team investigates this condition: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. Which DevOps principle BEST explains the core problem?
- Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
- Vulnerability assessment should be continuous and integrated with immutable image updates.
- NACLs are stateless and require explicit return-path allowances; security groups are stateful.
- High-risk root activity should be centrally detected from reliably recorded audit events.
Explanation
Correct Answer
A:Compliance monitoring needs organization-level collection and aggregation at appropriate scope. Relevant first evidence: Inspect Config recorders, aggregation sources, rules and delegated management. The resulting controlled response is: Configure an organization Config aggregator and required centrally managed rule coverage.
Incorrect Answers
B:Vulnerability assessment should be continuous and integrated with immutable image updates. 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 (Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region.), the better principle is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope. The deciding distinction is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
C:NACLs are stateless and require explicit return-path allowances; security groups are stateful. This instead addresses a different case: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. For the stated situation (Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region.), the better principle is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope. The deciding distinction is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
D:High-risk root activity should be centrally detected from reliably recorded audit events. This instead addresses a different case: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. For the stated situation (Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region.), the better principle is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope. The deciding distinction is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
Question 854
After implementing a proposed fix, the team reviews: An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU. Which result would BEST confirm that the risk is addressed?
- A rerun reads the source artifact successfully without unrestricted KMS access.
- A simulated scale-out can launch healthy capacity without dependence on one exhausted pool.
- New pods become ready without repeated restarts and service traffic succeeds.
- An affected account event is visible to authorized operators with timely service context.
Explanation
Correct Answer
C:New pods become ready without repeated restarts and service traffic succeeds. The approved action is: Correct the specific startup configuration or image error and deploy a verified revision. The risk principle is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
Incorrect Answers
A:A rerun reads the source artifact successfully without unrestricted KMS access. This instead addresses a different case: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change. For the stated situation (An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU.), the better verification is: New pods become ready without repeated restarts and service traffic succeeds. The deciding distinction is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
B:A simulated scale-out can launch healthy capacity without dependence on one exhausted pool. This instead addresses a different case: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. For the stated situation (An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU.), the better verification is: New pods become ready without repeated restarts and service traffic succeeds. The deciding distinction is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
D: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 (An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU.), the better verification is: New pods become ready without repeated restarts and service traffic succeeds. The deciding distinction is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
Question 855
After implementing a proposed fix, the team reviews: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages. Which result would BEST confirm that the risk is addressed?
- A duplicate alarm event causes no duplicate destructive action and notification is consistent.
- A single failing function is identified without incorrectly flagging every Lambda service.
- Certificate failure or broken login triggers the expected monitored incident.
- Capacity is ready before known peaks while unwanted excess capacity is limited.
Explanation
Correct Answer
A:A duplicate alarm event causes no duplicate destructive action and notification is consistent. The approved action is: Use Step Functions or equivalent durable event workflow with safe idempotent transitions. The risk principle is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
Incorrect Answers
B:A single failing function is identified without incorrectly flagging every Lambda service. This instead addresses a different case: A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures. For the stated situation (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better verification is: A duplicate alarm event causes no duplicate destructive action and notification is consistent. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
C:Certificate failure or broken login triggers the expected monitored incident. This instead addresses a different case: An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users. For the stated situation (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better verification is: A duplicate alarm event causes no duplicate destructive action and notification is consistent. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
D: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 (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better verification is: A duplicate alarm event causes no duplicate destructive action and notification is consistent. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
Question 856
A DevOps team is reviewing: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. Which TWO complementary actions should it take? Select TWO answers.
- Enable protected collection and query access covering required identity events.
- Inspect session duration, approval stage placement and credential acquisition logic.
- Use an EventBridge or suitable centralized CloudTrail event detection and escalation.
- Configure appropriate deduplication, severity filters and accountable workflows.
- Inspect organization CloudTrail coverage, event patterns and root principal fields.
Explanation
Correct Answers
C:Use an EventBridge or suitable centralized CloudTrail event detection and escalation. This is a required controlled engineering action 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 complementary correct action is: Inspect organization CloudTrail coverage, event patterns and root principal fields. Both follow the principle: High-risk root activity should be centrally detected from reliably recorded audit events.
E:Inspect organization CloudTrail coverage, event patterns and root principal fields. This is a required diagnostic evidence step 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 complementary correct action is: Use an EventBridge or suitable centralized CloudTrail event detection and escalation. Both follow the principle: High-risk root activity should be centrally detected from reliably recorded audit events.
Incorrect Answers
A:Enable protected collection and query access covering required identity events. This is suitable for another situation: An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible. In this case, engineers instead need the paired investigation (Inspect organization CloudTrail coverage, event patterns and root principal fields.) and design change (Use an EventBridge or suitable centralized CloudTrail event detection and escalation.). These two steps address: The security team needs immediate notification if any member account root principal creates an access key or changes account settings.
B:Inspect session duration, approval stage placement and credential acquisition logic. This is suitable for another situation: A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails. In this case, engineers instead need the paired investigation (Inspect organization CloudTrail coverage, event patterns and root principal fields.) and design change (Use an EventBridge or suitable centralized CloudTrail event detection and escalation.). These two steps address: The security team needs immediate notification if any member account root principal creates an access key or changes account settings.
D:Configure appropriate deduplication, severity filters and accountable workflows. This is suitable for another situation: A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload. In this case, engineers instead need the paired investigation (Inspect organization CloudTrail coverage, event patterns and root principal fields.) and design change (Use an EventBridge or suitable centralized CloudTrail event detection and escalation.). These two steps address: The security team needs immediate notification if any member account root principal creates an access key or changes account settings.
Question 857
An AWS platform team investigates this condition: Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable. Which DevOps principle BEST explains the core problem?
- Artifact build pipelines must prevent credential disclosure in stdout and artifacts.
- Security assessment should be incorporated at a stage where an unsafe artifact can be blocked.
- Automated test environments should be isolated from production resources by identity and configuration.
- Contract tests should validate schemas and compatibility between services across versions.
Explanation
Correct Answer
C:Automated test environments should be isolated from production resources by identity and configuration. Relevant first evidence: Inspect account IDs, test endpoints, IAM permissions and environment variable provenance. The resulting controlled response is: Run integration tests in a segregated account with constrained resource access.
Incorrect Answers
A:Artifact build pipelines must prevent credential disclosure in stdout and artifacts. 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 (Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable.), the better principle is: Automated test environments should be isolated from production resources by identity and configuration. The deciding distinction is: Automated test environments should be isolated from production resources by identity and configuration.
B:Security assessment should be incorporated at a stage where an unsafe artifact can be blocked. This instead addresses a different case: A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated. For the stated situation (Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable.), the better principle is: Automated test environments should be isolated from production resources by identity and configuration. The deciding distinction is: Automated test environments should be isolated from production resources by identity and configuration.
D:Contract tests should validate schemas and compatibility between services across versions. This instead addresses a different case: An updated ECS application changes a JSON field name; the deployment succeeds while downstream order processors begin dropping events. For the stated situation (Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable.), the better principle is: Automated test environments should be isolated from production resources by identity and configuration. The deciding distinction is: Automated test environments should be isolated from production resources by identity and configuration.
Question 858
An AWS platform team investigates this condition: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. Which DevOps principle BEST explains the core problem?
- Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
- Backup retention should resist malicious or accidental deletion for the required period.
- Queue consumer visibility and processing design must account for task duration and idempotency.
- Recovery point objectives must be validated against actual protection frequency and replication behavior.
Explanation
Correct Answer
A:Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot. Relevant first evidence: Inspect automated backup settings, log retention, restore window and business RPO. The resulting controlled response is: Enable supported point-in-time recovery and rehearse restoration of an isolated database.
Incorrect Answers
B:Backup retention should resist malicious or accidental deletion for the required period. This instead addresses a different case: A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident. For the stated situation (A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.), the better principle is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot. The deciding distinction is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
C: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 (A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.), the better principle is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot. The deciding distinction is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
D:Recovery point objectives must be validated against actual protection frequency and replication behavior. This instead addresses a different case: A finance team requires five minutes of maximum data loss, but its AWS Backup job runs only once daily. For the stated situation (A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.), the better principle is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot. The deciding distinction is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
Question 859
After implementing a proposed fix, the team reviews: A new release adds a non-null column while old application instances still write rows during a blue/green deployment. 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.
- The pipeline blocks release when representative p99 latency exceeds the approved objective.
- Old and new tasks can write valid rows during the transition and rollback remains feasible.
- A test image with a policy-prohibited finding is rejected before production deployment.
Explanation
Correct Answer
C:Old and new tasks can write valid rows during the transition and rollback remains feasible. The approved action is: Use expand-and-contract migration with staged validation of both old and new applications. The risk principle is: Schema migration tests must account for temporarily coexisting application versions.
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 new release adds a non-null column while old application instances still write rows during a blue/green deployment.), the better verification is: Old and new tasks can write valid rows during the transition and rollback remains feasible. The deciding distinction is: Schema migration tests must account for temporarily coexisting application versions.
B:The pipeline blocks release when representative p99 latency exceeds the approved objective. 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 new release adds a non-null column while old application instances still write rows during a blue/green deployment.), the better verification is: Old and new tasks can write valid rows during the transition and rollback remains feasible. The deciding distinction is: Schema migration tests must account for temporarily coexisting application versions.
D:A test image with a policy-prohibited finding is rejected before production deployment. This instead addresses a different case: A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated. For the stated situation (A new release adds a non-null column while old application instances still write rows during a blue/green deployment.), the better verification is: Old and new tasks can write valid rows during the transition and rollback remains feasible. The deciding distinction is: Schema migration tests must account for temporarily coexisting application versions.
Question 860
The DevOps team must resolve this scenario: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. Which engineering change is MOST appropriate?
- Correct the measured network or query bottleneck and choose an appropriate timeout.
- Introduce versioned event contracts, compatibility checks and error routing.
- Validate the webhook signature and store an idempotency key before issuing jobs.
- Use stable object identity and idempotent processing or transactional guards.
Explanation
Correct Answer
D:Use stable object identity and idempotent processing or transactional guards. Its validation is: Replaying one S3 event results in one intended destination record. The principle is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.
Incorrect Answers
A:Correct the measured network or query bottleneck and choose an appropriate timeout. 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 (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better engineering action is: Use stable object identity and idempotent processing or transactional guards. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.
B:Introduce versioned event contracts, compatibility checks and error routing. This instead addresses a different case: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better engineering action is: Use stable object identity and idempotent processing or transactional guards. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.
C:Validate the webhook signature and store an idempotency key before issuing jobs. This instead addresses a different case: A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better engineering action is: Use stable object identity and idempotent processing or transactional guards. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.