Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 96
Question 950
Before changing production, engineers find: Unit tests pass but a newly deployed Lambda service cannot authenticate to the staging RDS database. Which investigation should the engineer perform FIRST?
- Inspect shell error handling, test process exit codes, buildspec commands and report-group output.
- Inspect workload profile, load generator placement, request latencies and scaling metrics.
- Review staged connection settings, test secrets, IAM role access and failed connection traces.
- Review signing keys, image digests, publication roles and deployment verification policy.
Explanation
Correct Answer
C:Review staged connection settings, test secrets, IAM role access and failed connection traces. The governing principle is: Integration testing must exercise dependent services and environment configuration, not just isolated functions. The next controlled engineering decision is: Add an isolated integration stage with representative database access and verifiable test assertions.
Incorrect Answers
A: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 (Unit tests pass but a newly deployed Lambda service cannot authenticate to the staging RDS database.), the better investigation is: Review staged connection settings, test secrets, IAM role access and failed connection traces. The deciding distinction is: Integration testing must exercise dependent services and environment configuration, not just isolated functions.
B:Inspect workload profile, load generator placement, request latencies and scaling metrics. 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 (Unit tests pass but a newly deployed Lambda service cannot authenticate to the staging RDS database.), the better investigation is: Review staged connection settings, test secrets, IAM role access and failed connection traces. The deciding distinction is: Integration testing must exercise dependent services and environment configuration, not just isolated functions.
D:Review signing keys, image digests, publication roles and deployment verification policy. This instead addresses a different case: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. For the stated situation (Unit tests pass but a newly deployed Lambda service cannot authenticate to the staging RDS database.), the better investigation is: Review staged connection settings, test secrets, IAM role access and failed connection traces. The deciding distinction is: Integration testing must exercise dependent services and environment configuration, not just isolated functions.
Question 951
A DevOps team is reviewing: An application switches its ALB target group to a new version while both versions connect to a shared relational schema. Which TWO complementary actions should it take? Select TWO answers.
- Throttle rollout and implement suitable connection management such as RDS Proxy where appropriate.
- Inspect command verbosity, secret injection, log visibility and token usage.
- Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence.
- Coordinate expand-and-contract schema changes with the blue/green traffic strategy.
- Review database migration compatibility, rollback requirements and old version connection behavior.
Explanation
Correct Answers
D:Coordinate expand-and-contract schema changes with the blue/green traffic strategy. This is a required controlled engineering action for the stated situation: An application switches its ALB target group to a new version while both versions connect to a shared relational schema. The complementary correct action is: Review database migration compatibility, rollback requirements and old version connection behavior. Both follow the principle: Traffic shifting must account for backward-compatible shared-state dependencies.
E:Review database migration compatibility, rollback requirements and old version connection behavior. This is a required diagnostic evidence step for the stated situation: An application switches its ALB target group to a new version while both versions connect to a shared relational schema. The complementary correct action is: Coordinate expand-and-contract schema changes with the blue/green traffic strategy. Both follow the principle: Traffic shifting must account for backward-compatible shared-state dependencies.
Incorrect Answers
A:Throttle rollout and implement suitable connection management such as RDS Proxy where appropriate. This is suitable for another situation: A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder. In this case, engineers instead need the paired investigation (Review database migration compatibility, rollback requirements and old version connection behavior.) and design change (Coordinate expand-and-contract schema changes with the blue/green traffic strategy.). These two steps address: An application switches its ALB target group to a new version while both versions connect to a shared relational schema.
B:Inspect command verbosity, secret injection, log visibility and token usage. This is suitable for another situation: A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package. In this case, engineers instead need the paired investigation (Review database migration compatibility, rollback requirements and old version connection behavior.) and design change (Coordinate expand-and-contract schema changes with the blue/green traffic strategy.). These two steps address: An application switches its ALB target group to a new version while both versions connect to a shared relational schema.
C:Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. This is suitable for another situation: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. In this case, engineers instead need the paired investigation (Review database migration compatibility, rollback requirements and old version connection behavior.) and design change (Coordinate expand-and-contract schema changes with the blue/green traffic strategy.). These two steps address: An application switches its ALB target group to a new version while both versions connect to a shared relational schema.
Question 952
An AWS platform team investigates this condition: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. Which DevOps principle BEST explains the core problem?
- Recovery point objectives must be validated against actual protection frequency and replication behavior.
- Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
- Managed Multi-AZ database deployment provides synchronous standby and automatic infrastructure failover where supported.
- Cross-Region resilience must include regional identity, secret and cryptographic dependencies.
Explanation
Correct Answer
B:Active-active replicated data needs explicit conflict resolution and application reconciliation semantics. Relevant first evidence: Review global table consistency behavior, regional write patterns and timestamp conflicts. The resulting controlled response is: Design safe write ownership or conflict-aware application updates around global tables.
Incorrect Answers
A: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 multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly.), the better principle is: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics. The deciding distinction is: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
C:Managed Multi-AZ database deployment provides synchronous standby and automatic infrastructure failover where supported. This instead addresses a different case: A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration. For the stated situation (A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly.), the better principle is: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics. The deciding distinction is: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
D:Cross-Region resilience must include regional identity, secret and cryptographic dependencies. 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 multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly.), the better principle is: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics. The deciding distinction is: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
Question 953
The DevOps team must resolve this scenario: A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload. Which engineering change is MOST appropriate?
- Configure appropriate deduplication, severity filters and accountable workflows.
- Enable appropriate continuous scanning and approved image remediation pipelines.
- Enforce MFA through suitable identity provider or IAM session conditions.
- Review actual necessary actions and tighten policy through a monitored rollout.
Explanation
Correct Answer
A:Configure appropriate deduplication, severity filters and accountable workflows. Its validation is: One recurring event is tracked coherently and distinct high-severity signals escalate. The principle is: Security alerting should preserve severity, deduplication and response priority.
Incorrect Answers
B: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 (A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload.), the better engineering action is: Configure appropriate deduplication, severity filters and accountable workflows. The deciding distinction is: Security alerting should preserve severity, deduplication and response priority.
C:Enforce MFA through suitable identity provider or IAM session conditions. This instead addresses a different case: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. For the stated situation (A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload.), the better engineering action is: Configure appropriate deduplication, severity filters and accountable workflows. The deciding distinction is: Security alerting should preserve severity, deduplication and response priority.
D:Review actual necessary actions and tighten policy through a monitored rollout. 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 monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload.), the better engineering action is: Configure appropriate deduplication, severity filters and accountable workflows. The deciding distinction is: Security alerting should preserve severity, deduplication and response priority.
Question 954
An AWS platform team investigates this condition: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. Which DevOps principle BEST explains the core problem?
- Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
- Event contracts and consumers need version-aware validation and safe schema evolution.
- Event-driven systems must handle duplicate delivery safely and preserve idempotency.
- Fan-out with independent durable subscribers decouples consumer processing and retries.
Explanation
Correct Answer
B:Event contracts and consumers need version-aware validation and safe schema evolution. Relevant first evidence: Inspect published event schemas, consumer parsers, DLQ counts and producer revisions. The resulting controlled response is: Introduce versioned event contracts, compatibility checks and error routing.
Incorrect Answers
A:Event-driven remediation needs recursion safeguards, idempotency and selective patterns. This instead addresses a different case: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. 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 principle is: Event contracts and consumers need version-aware validation and safe schema evolution. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
C:Event-driven systems must handle duplicate delivery safely and preserve idempotency. This instead addresses a different case: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. 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 principle is: Event contracts and consumers need version-aware validation and safe schema evolution. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
D:Fan-out with independent durable subscribers decouples consumer processing and retries. 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 principle is: Event contracts and consumers need version-aware validation and safe schema evolution. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
Question 955
An AWS platform team investigates this condition: A failover runbook manually changes 14 DNS and compute settings in a fixed order; quarterly drills frequently skip steps. Which DevOps principle BEST explains the core problem?
- Recovery copies should be protected against compromised primary account identities.
- Scaling should reflect actual workload demand and processing time, not unrelated utilization alone.
- Disaster recovery needs repeatable orchestration and measured test evidence.
- Recovery needs application consistency and coordinated replay across dependent state.
Explanation
Correct Answer
C:Disaster recovery needs repeatable orchestration and measured test evidence. Relevant first evidence: Map recovery dependencies, state transitions, approvals and rollback criteria. The resulting controlled response is: Automate suitable recovery steps with controlled Step Functions or Systems Manager workflows.
Incorrect Answers
A:Recovery copies should be protected against compromised primary account identities. This instead addresses a different case: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. For the stated situation (A failover runbook manually changes 14 DNS and compute settings in a fixed order; quarterly drills frequently skip steps.), the better principle is: Disaster recovery needs repeatable orchestration and measured test evidence. The deciding distinction is: Disaster recovery needs repeatable orchestration and measured test evidence.
B:Scaling should reflect actual workload demand and processing time, not unrelated utilization alone. 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 failover runbook manually changes 14 DNS and compute settings in a fixed order; quarterly drills frequently skip steps.), the better principle is: Disaster recovery needs repeatable orchestration and measured test evidence. The deciding distinction is: Disaster recovery needs repeatable orchestration and measured test evidence.
D:Recovery needs application consistency and coordinated replay across dependent state. This instead addresses a different case: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. For the stated situation (A failover runbook manually changes 14 DNS and compute settings in a fixed order; quarterly drills frequently skip steps.), the better principle is: Disaster recovery needs repeatable orchestration and measured test evidence. The deciding distinction is: Disaster recovery needs repeatable orchestration and measured test evidence.
Question 956
Before changing production, engineers find: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. Which investigation should the engineer perform FIRST?
- Examine event identifiers, retry behavior, transactional storage and duplicate records.
- Inspect stack events, failed resources, execution role permissions and rollback status.
- Inspect SSM Automation document version, execution permissions, targets and rate controls.
- Inspect AWS Config evaluation, remediation role rights and affected resource types.
Explanation
Correct Answer
C:Inspect SSM Automation document version, execution permissions, targets and rate controls. The governing principle is: Operational automation requires versioning, target control and bounded failure exposure. The next controlled engineering decision is: Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits.
Incorrect Answers
A:Examine event identifiers, retry behavior, transactional storage and duplicate records. This instead addresses a different case: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. 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 investigation is: Inspect SSM Automation document version, execution permissions, targets and rate controls. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
B: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 fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better investigation is: Inspect SSM Automation document version, execution permissions, targets and rate controls. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
D:Inspect AWS Config evaluation, remediation role rights and affected resource types. This instead addresses a different case: An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later. 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 investigation is: Inspect SSM Automation document version, execution permissions, targets and rate controls. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
Question 957
An AWS platform team investigates this condition: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. Which DevOps principle BEST explains the core problem?
- Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
- Privileged access should be time bounded, attributable and justified by operational need.
- Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
- Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
Explanation
Correct Answer
A:Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. Relevant first evidence: Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. The resulting controlled response is: Use appropriate tag-aware policies with guarded tagging permissions.
Incorrect Answers
B:Privileged access should be time bounded, attributable and justified by operational need. This instead addresses a different case: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better principle is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
C:Compliance monitoring needs organization-level collection and aggregation at appropriate scope. 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 shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better principle is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
D:Machine credentials should be centrally rotated with coordinated client refresh and access scoping. This instead addresses a different case: Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better principle is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
Question 958
The DevOps team must resolve this scenario: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. Which engineering change is MOST appropriate?
- Configure a blue/green ECS deployment with validation traffic and automatic rollback conditions.
- Coordinate expand-and-contract schema changes with the blue/green traffic strategy.
- Remove token-printing commands and use scoped secret injection with safe diagnostics.
- Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence.
Explanation
Correct Answer
D:Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. Its validation is: The corrected ApplicationStart hook exits successfully and target health becomes normal. The principle is: Application lifecycle hook and agent logs are primary evidence for an EC2 CodeDeploy failure.
Incorrect Answers
A:Configure a blue/green ECS deployment with validation traffic and automatic rollback conditions. This instead addresses a different case: An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold. For the stated situation (A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure.), the better engineering action is: Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. The deciding distinction is: Application lifecycle hook and agent logs are primary evidence for an EC2 CodeDeploy failure.
B:Coordinate expand-and-contract schema changes with the blue/green traffic strategy. This instead addresses a different case: An application switches its ALB target group to a new version while both versions connect to a shared relational schema. For the stated situation (A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure.), the better engineering action is: Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. The deciding distinction is: Application lifecycle hook and agent logs are primary evidence for an EC2 CodeDeploy failure.
C:Remove token-printing commands and use scoped secret injection with safe diagnostics. 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 CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure.), the better engineering action is: Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. The deciding distinction is: Application lifecycle hook and agent logs are primary evidence for an EC2 CodeDeploy failure.
Question 959
The DevOps team must resolve this scenario: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. Which engineering change is MOST appropriate?
- Introduce an appropriate cache or replicated read path with clear invalidation rules.
- Configure suitable warmup and scaling policies so boot activity is not misread as demand.
- Redesign a skewed access key or shard high-volume writes while maintaining correct queries.
- Pre-provision foundational networking and validate recoverable capacity expansion.
Explanation
Correct Answer
C:Redesign a skewed access key or shard high-volume writes while maintaining correct queries. Its validation is: A representative hot-key workload completes within throughput and latency targets. The principle is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Incorrect Answers
A:Introduce an appropriate cache or replicated read path with clear invalidation rules. 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 (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better engineering action is: Redesign a skewed access key or shard high-volume writes while maintaining correct queries. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
B:Configure suitable warmup and scaling policies so boot activity is not misread as demand. This instead addresses a different case: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better engineering action is: Redesign a skewed access key or shard high-volume writes while maintaining correct queries. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
D:Pre-provision foundational networking and validate recoverable capacity expansion. This instead addresses a different case: A pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better engineering action is: Redesign a skewed access key or shard high-volume writes while maintaining correct queries. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Question 960
Before changing production, engineers find: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. Which investigation should the engineer perform FIRST?
- Inspect EventBridge event pattern, action-induced events and invocation counts.
- Review alarm condition, transaction criticality, runbook approvals and current service health.
- Review delivery guarantees, subscriptions, DLQs and consumer coupling.
- Inspect ECS service events, target health, logs, dependency reachability and restart rate.
Explanation
Correct Answer
A:Inspect EventBridge event pattern, action-induced events and invocation counts. The governing principle is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns. The next controlled engineering decision is: Filter relevant state transitions and check desired state before mutating resources.
Incorrect Answers
B:Review alarm condition, transaction criticality, runbook approvals and current service health. This instead addresses a different case: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. For the stated situation (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better investigation is: Inspect EventBridge event pattern, action-induced events and invocation counts. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
C:Review delivery guarantees, subscriptions, DLQs and consumer coupling. 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 (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better investigation is: Inspect EventBridge event pattern, action-induced events and invocation counts. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
D:Inspect ECS service events, target health, logs, dependency reachability and restart rate. This instead addresses a different case: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. For the stated situation (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better investigation is: Inspect EventBridge event pattern, action-induced events and invocation counts. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.