Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 91
Question 900
An AWS platform team investigates this condition: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. Which DevOps principle BEST explains the core problem?
- Cross-account delivery should assume narrowly scoped roles in each target account.
- Traffic shifting must account for backward-compatible shared-state dependencies.
- Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
- Blue/green ECS deployments require controlled target groups, listeners and health validation.
Explanation
Correct Answer
C:Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift. Relevant first evidence: Review instance user data, launch template versions, AMIs and out-of-band modifications. The resulting controlled response is: Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.
Incorrect Answers
A:Cross-account delivery should assume narrowly scoped roles in each target account. This instead addresses a different case: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. For the stated situation (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better principle is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
B:Traffic shifting must account for backward-compatible shared-state dependencies. 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 (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better principle is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
D:Blue/green ECS deployments require controlled target groups, listeners and health validation. 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 (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better principle is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
Question 901
An AWS platform team investigates this condition: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. Which DevOps principle BEST explains the core problem?
- Automated recovery must distinguish replaceable task failure from persistent systemic causes.
- Event-based remediation should be scoped to the affected resource and run with least privilege.
- Database contention can cause application failures without sustained high CPU.
- Remediation decisions must respect approved change safety, business state and rollback constraints.
Explanation
Correct Answer
A:Automated recovery must distinguish replaceable task failure from persistent systemic causes. Relevant first evidence: Inspect ECS service events, target health, logs, dependency reachability and restart rate. The resulting controlled response is: Use ECS service reconciliation with alarms and root-cause escalation for repeated failures.
Incorrect Answers
B:Event-based remediation should be scoped to the affected resource and run with least privilege. This instead addresses a different case: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better principle is: Automated recovery must distinguish replaceable task failure from persistent systemic causes. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
C:Database contention can cause application failures without sustained high CPU. 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 (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better principle is: Automated recovery must distinguish replaceable task failure from persistent systemic causes. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
D:Remediation decisions must respect approved change safety, business state and rollback constraints. 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 ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better principle is: Automated recovery must distinguish replaceable task failure from persistent systemic causes. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
Question 902
Before changing production, engineers find: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. Which investigation should the engineer perform FIRST?
- Review demand cycle, instance warmup, scaling latency and seasonal variability.
- Inspect AWS Health event source, EventBridge rules, targets and account aggregation.
- Review AWS Config resource timeline and recorded CloudTrail changes for the period.
- Review alarm dependencies, parent symptoms and notification routing.
Explanation
Correct Answer
A:Review demand cycle, instance warmup, scaling latency and seasonal variability. The governing principle is: Predictable demand can be addressed with scheduled or predictive capacity planning. The next controlled engineering decision is: Configure suitable scheduled or predictive scaling alongside reactive controls.
Incorrect Answers
B:Inspect AWS Health event source, EventBridge rules, targets and account aggregation. This instead addresses a different case: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. For the stated situation (A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances.), the better investigation is: Review demand cycle, instance warmup, scaling latency and seasonal variability. The deciding distinction is: Predictable demand can be addressed with scheduled or predictive capacity planning.
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 (A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances.), the better investigation is: Review demand cycle, instance warmup, scaling latency and seasonal variability. The deciding distinction is: Predictable demand can be addressed with scheduled or predictive capacity planning.
D:Review alarm dependencies, parent symptoms and notification routing. This instead addresses a different case: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. For the stated situation (A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances.), the better investigation is: Review demand cycle, instance warmup, scaling latency and seasonal variability. The deciding distinction is: Predictable demand can be addressed with scheduled or predictive capacity planning.
Question 903
An AWS platform team investigates this condition: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. Which DevOps principle BEST explains the core problem?
- Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
- Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
- Event-driven systems must handle duplicate delivery safely and preserve idempotency.
- Event-based remediation should be scoped to the affected resource and run with least privilege.
Explanation
Correct Answer
B:Event-driven remediation needs recursion safeguards, idempotency and selective patterns. Relevant first evidence: Inspect EventBridge event pattern, action-induced events and invocation counts. The resulting controlled response is: Filter relevant state transitions and check desired state before mutating resources.
Incorrect Answers
A:Resource adjustment should respond to measured demand with bounded Auto Scaling behavior. This instead addresses a different case: A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy. 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 principle is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
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 (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better principle is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
D:Event-based remediation should be scoped to the affected resource and run with least privilege. This instead addresses a different case: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. 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 principle is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
Question 904
The DevOps team must resolve this scenario: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. Which engineering change is MOST appropriate?
- Use appropriate tag-aware policies with guarded tagging permissions.
- Correct narrowly scoped policy conditions for the approved organization trail.
- Configure an organization Config aggregator and required centrally managed rule coverage.
- Automate drift detection, alerting and approved reconciliation for critical stacks.
Explanation
Correct Answer
B:Correct narrowly scoped policy conditions for the approved organization trail. Its validation is: A controlled management event from the affected account arrives in the archive. The principle is: Central security logging depends on correct service delivery permissions for every intended account.
Incorrect Answers
A:Use appropriate tag-aware policies with guarded tagging permissions. This instead addresses a different case: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. For the stated situation (A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.), the better engineering action is: Correct narrowly scoped policy conditions for the approved organization trail. The deciding distinction is: Central security logging depends on correct service delivery permissions for every intended account.
C:Configure an organization Config aggregator and required centrally managed rule coverage. 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 central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.), the better engineering action is: Correct narrowly scoped policy conditions for the approved organization trail. The deciding distinction is: Central security logging depends on correct service delivery permissions for every intended account.
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 (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 engineering action is: Correct narrowly scoped policy conditions for the approved organization trail. The deciding distinction is: Central security logging depends on correct service delivery permissions for every intended account.
Question 905
The DevOps team must resolve this scenario: A burst of HTTP 500s appears in logs, but operators query raw text and cannot correlate failures by deployment revision. Which engineering change is MOST appropriate?
- Query structured log events grouped by revision and error pattern using Logs Insights.
- Use the appropriate metric split and correlated logs to target the failing layer.
- Associate deployment-specific health alarms and enable appropriate automated rollback.
- Instrument affected services and analyze slow traces to isolate the expensive dependency.
Explanation
Correct Answer
A:Query structured log events grouped by revision and error pattern using Logs Insights. Its validation is: An injected faulty revision appears as a distinct cluster of 500 errors. The principle is: Structured logs and Logs Insights queries enable fast grouping by useful dimensions.
Incorrect Answers
B:Use the appropriate metric split and correlated logs to target the failing layer. This instead addresses a different case: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. For the stated situation (A burst of HTTP 500s appears in logs, but operators query raw text and cannot correlate failures by deployment revision.), the better engineering action is: Query structured log events grouped by revision and error pattern using Logs Insights. The deciding distinction is: Structured logs and Logs Insights queries enable fast grouping by useful dimensions.
C:Associate deployment-specific health alarms and enable appropriate automated rollback. This instead addresses a different case: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. For the stated situation (A burst of HTTP 500s appears in logs, but operators query raw text and cannot correlate failures by deployment revision.), the better engineering action is: Query structured log events grouped by revision and error pattern using Logs Insights. The deciding distinction is: Structured logs and Logs Insights queries enable fast grouping by useful dimensions.
D:Instrument affected services and analyze slow traces to isolate the expensive dependency. This instead addresses a different case: An application has slow checkout requests only when external credit checks are called, but aggregate ALB metrics cannot locate the dependency. For the stated situation (A burst of HTTP 500s appears in logs, but operators query raw text and cannot correlate failures by deployment revision.), the better engineering action is: Query structured log events grouped by revision and error pattern using Logs Insights. The deciding distinction is: Structured logs and Logs Insights queries enable fast grouping by useful dimensions.
Question 906
The DevOps team must resolve this scenario: A newly onboarded account does not forward CloudTrail management activity to the security archive account. Which engineering change is MOST appropriate?
- Use scoped paths or separate accounts with least-privilege parameter read access.
- Deploy an organization-wide CloudTrail trail with protected centralized delivery.
- Adopt a documented tag taxonomy with organization tag policies and deployment checks.
- Provide explicit least-privilege IAM permissions while retaining appropriate SCP limits.
Explanation
Correct Answer
B:Deploy an organization-wide CloudTrail trail with protected centralized delivery. Its validation is: A management event in a new member account arrives at the controlled log archive. The principle is: Central organization auditing should cover account lifecycle without relying on each member team.
Incorrect Answers
A:Use scoped paths or separate accounts with least-privilege parameter read access. This instead addresses a different case: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. For the stated situation (A newly onboarded account does not forward CloudTrail management activity to the security archive account.), the better engineering action is: Deploy an organization-wide CloudTrail trail with protected centralized delivery. The deciding distinction is: Central organization auditing should cover account lifecycle without relying on each member team.
C:Adopt a documented tag taxonomy with organization tag policies and deployment checks. 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 newly onboarded account does not forward CloudTrail management activity to the security archive account.), the better engineering action is: Deploy an organization-wide CloudTrail trail with protected centralized delivery. The deciding distinction is: Central organization auditing should cover account lifecycle without relying on each member team.
D:Provide explicit least-privilege IAM permissions while retaining appropriate SCP limits. This instead addresses a different case: A team attaches an AWS Organizations SCP allowing S3 access and assumes member-account workloads now have permission to list all buckets. For the stated situation (A newly onboarded account does not forward CloudTrail management activity to the security archive account.), the better engineering action is: Deploy an organization-wide CloudTrail trail with protected centralized delivery. The deciding distinction is: Central organization auditing should cover account lifecycle without relying on each member team.
Question 907
The DevOps team must resolve this scenario: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. Which engineering change is MOST appropriate?
- Attach organization-wide or OU-targeted Config checks and remediations to account onboarding.
- Plan OU migrations with explicit baseline deployment and removal behavior tests.
- Provide explicit least-privilege IAM permissions while retaining appropriate SCP limits.
- Model function, API integration and minimum IAM permissions in the versioned SAM template.
Explanation
Correct Answer
A:Attach organization-wide or OU-targeted Config checks and remediations to account onboarding. Its validation is: New test account resources are assessed and noncompliant configurations reported. The principle is: New accounts should inherit automated security/compliance controls at provisioning time.
Incorrect Answers
B:Plan OU migrations with explicit baseline deployment and removal behavior tests. This instead addresses a different case: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. For the stated situation (AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection.), the better engineering action is: Attach organization-wide or OU-targeted Config checks and remediations to account onboarding. The deciding distinction is: New accounts should inherit automated security/compliance controls at provisioning time.
C:Provide explicit least-privilege IAM permissions while retaining appropriate SCP limits. This instead addresses a different case: A team attaches an AWS Organizations SCP allowing S3 access and assumes member-account workloads now have permission to list all buckets. For the stated situation (AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection.), the better engineering action is: Attach organization-wide or OU-targeted Config checks and remediations to account onboarding. The deciding distinction is: New accounts should inherit automated security/compliance controls at provisioning time.
D:Model function, API integration and minimum IAM permissions in the versioned SAM template. This instead addresses a different case: Developers manually create Lambda permissions and API Gateway integrations after deploying a packaged application, causing environment differences. For the stated situation (AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection.), the better engineering action is: Attach organization-wide or OU-targeted Config checks and remediations to account onboarding. The deciding distinction is: New accounts should inherit automated security/compliance controls at provisioning time.
Question 908
An AWS platform team investigates this condition: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. Which DevOps principle BEST explains the core problem?
- Container deployment failures may result from registry authentication and network access rather than code.
- Request throttling may occur at API Gateway before integration invocation.
- Provider health notifications complement application and resource telemetry.
- Database contention can cause application failures without sustained high CPU.
Explanation
Correct Answer
B:Request throttling may occur at API Gateway before integration invocation. Relevant first evidence: Inspect API Gateway usage-plan or stage throttles, metrics and request IDs. The resulting controlled response is: Tune supported throttling quotas or implement client backoff and capacity planning.
Incorrect Answers
A:Container deployment failures may result from registry authentication and network access rather than code. This instead addresses a different case: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. For the stated situation (A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero.), the better principle is: Request throttling may occur at API Gateway before integration invocation. The deciding distinction is: Request throttling may occur at API Gateway before integration invocation.
C:Provider health notifications complement application and resource telemetry. 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 mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero.), the better principle is: Request throttling may occur at API Gateway before integration invocation. The deciding distinction is: Request throttling may occur at API Gateway before integration invocation.
D:Database contention can cause application failures without sustained high CPU. 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 (A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero.), the better principle is: Request throttling may occur at API Gateway before integration invocation. The deciding distinction is: Request throttling may occur at API Gateway before integration invocation.
Question 909
A DevOps team is reviewing: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. Which TWO complementary actions should it take? Select TWO answers.
- Use stable object identity and idempotent processing or transactional guards.
- Inspect event identifiers, destination conditional writes and retry behavior.
- Configure an appropriate SQS DLQ with alerting and governed redrive procedure.
- Use stable device partition keys where ordering is required, with monitored throughput.
- Inspect ECS service events, target health, logs, dependency reachability and restart rate.
Explanation
Correct Answers
A:Use stable object identity and idempotent processing or transactional guards. This is a required controlled engineering action 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 complementary correct action is: Inspect event identifiers, destination conditional writes and retry behavior. Both follow the principle: Event-driven systems must handle duplicate delivery safely and preserve idempotency.
B:Inspect event identifiers, destination conditional writes and retry behavior. This is a required diagnostic evidence step 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 complementary correct action is: Use stable object identity and idempotent processing or transactional guards. Both follow the principle: Event-driven systems must handle duplicate delivery safely and preserve idempotency.
Incorrect Answers
C:Configure an appropriate SQS DLQ with alerting and governed redrive procedure. This is suitable for another situation: A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it. In this case, engineers instead need the paired investigation (Inspect event identifiers, destination conditional writes and retry behavior.) and design change (Use stable object identity and idempotent processing or transactional guards.). These two steps address: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.
D:Use stable device partition keys where ordering is required, with monitored throughput. This is suitable for another situation: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. In this case, engineers instead need the paired investigation (Inspect event identifiers, destination conditional writes and retry behavior.) and design change (Use stable object identity and idempotent processing or transactional guards.). These two steps address: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.
E:Inspect ECS service events, target health, logs, dependency reachability and restart rate. This is suitable for another situation: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. In this case, engineers instead need the paired investigation (Inspect event identifiers, destination conditional writes and retry behavior.) and design change (Use stable object identity and idempotent processing or transactional guards.). These two steps address: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.
Question 910
After implementing a proposed fix, the team reviews: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication. Which result would BEST confirm that the risk is addressed?
- The workflow defers unsafe destruction during critical processing and records authorization.
- A rerun reads the source artifact successfully without unrestricted KMS access.
- A test missing-agent instance is corrected while unrelated resources remain untouched.
- A test rotation allows new connections and does not expose plaintext credentials.
Explanation
Correct Answer
D:A test rotation allows new connections and does not expose plaintext credentials. The approved action is: Correct rotation and refresh behavior with a tested coordinated client retry path. The risk principle is: Credential rotation must coordinate secret state with application connection refresh and validation.
Incorrect Answers
A:The workflow defers unsafe destruction during critical processing and records authorization. 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 (A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication.), the better verification is: A test rotation allows new connections and does not expose plaintext credentials. The deciding distinction is: Credential rotation must coordinate secret state with application connection refresh and validation.
B: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 (A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication.), the better verification is: A test rotation allows new connections and does not expose plaintext credentials. The deciding distinction is: Credential rotation must coordinate secret state with application connection refresh and validation.
C:A test missing-agent instance is corrected while unrelated resources remain untouched. This instead addresses a different case: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. For the stated situation (A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication.), the better verification is: A test rotation allows new connections and does not expose plaintext credentials. The deciding distinction is: Credential rotation must coordinate secret state with application connection refresh and validation.