cert
cert-1
cert-2

Pass Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AWS Certified DevOps Engineer - Professional DOP-C02 Exam - Verified By Experts
AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle
$14.99

AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle

$74.99
$89.98
  • Premium File 480 Questions & Answers. Last update: Nov 08, 2026
  • Training Course 242 Video Lectures
 
$89.98
$74.99
accept 62 downloads in last 7 days
block-screenshots
Purchase Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam Training Products Individually
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Premium File
Premium File 480 Q&A
$76.99$69.99
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Video Training Course
Training Course 242 Lectures
$21.99 $19.99
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 90

Question 890

After implementing a proposed fix, the team reviews: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. Which result would BEST confirm that the risk is addressed?

  1. Capacity is ready before known peaks while unwanted excess capacity is limited.
  2. A test log group expires data according to its authorized retention policy.
  3. A representative failed request produces an ALB log object readable by approved responders.
  4. One sample transaction forms an end-to-end trace with identifiable slow segment.

Explanation

Correct Answer

B:

A test log group expires data according to its authorized retention policy. The approved action is: Set an approved retention period and route long-term audit logs to suitable protected storage if needed. The risk principle is: Log-group retention should reflect business, legal and investigation requirements.

Incorrect Answers

A:

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 (A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception.), the better verification is: A test log group expires data according to its authorized retention policy. The deciding distinction is: Log-group retention should reflect business, legal and investigation requirements.

C:

A representative failed request produces an ALB log object readable by approved responders. 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 (A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception.), the better verification is: A test log group expires data according to its authorized retention policy. The deciding distinction is: Log-group retention should reflect business, legal and investigation requirements.

D:

One sample transaction forms an end-to-end trace with identifiable slow segment. This instead addresses a different case: API Gateway, Lambda and downstream services emit logs, but operators cannot correlate one slow customer request across service hops. For the stated situation (A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception.), the better verification is: A test log group expires data according to its authorized retention policy. The deciding distinction is: Log-group retention should reflect business, legal and investigation requirements.

Question 891

The DevOps team must resolve this scenario: CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained. Which engineering change is MOST appropriate?

  1. Deploy to a bounded canary or targeted cohort and expand only after validated signals.
  2. Define retention exemptions or tag policies that protect deployed and rollback candidate artifacts.
  3. Add controlled authenticated canary tests for critical paths and fail deployment on business failures.
  4. Ensure tests exit nonzero on failures and publish test reports in the build workflow.

Explanation

Correct Answer

D:

Ensure tests exit nonzero on failures and publish test reports in the build workflow. Its validation is: A failing assertion marks the build failed and its report identifies the failed test. The principle is: Build success and test reporting must reflect real assertion failures with consumable evidence.

Incorrect Answers

A:

Deploy to a bounded canary or targeted cohort and expand only after validated signals. This instead addresses a different case: A new payment option passes staging but causes failures only for a small set of customer geographies. For the stated situation (CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained.), the better engineering action is: Ensure tests exit nonzero on failures and publish test reports in the build workflow. The deciding distinction is: Build success and test reporting must reflect real assertion failures with consumable evidence.

B:

Define retention exemptions or tag policies that protect deployed and rollback candidate artifacts. This instead addresses a different case: A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night. For the stated situation (CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained.), the better engineering action is: Ensure tests exit nonzero on failures and publish test reports in the build workflow. The deciding distinction is: Build success and test reporting must reflect real assertion failures with consumable evidence.

C:

Add controlled authenticated canary tests for critical paths and fail deployment on business failures. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained.), the better engineering action is: Ensure tests exit nonzero on failures and publish test reports in the build workflow. The deciding distinction is: Build success and test reporting must reflect real assertion failures with consumable evidence.

Question 892

A DevOps team is reviewing: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication. Which TWO complementary actions should it take? Select TWO answers.

  1. Correct rotation and refresh behavior with a tested coordinated client retry path.
  2. Publish to a suitable topic and distribute through separate durable SQS queues.
  3. Review alarm condition, transaction criticality, runbook approvals and current service health.
  4. Inspect rotation function stages, secret version labels and application cache lifecycle.
  5. Quarantine only the confirmed instance through reviewed network or isolation controls.

Explanation

Correct Answers

A:

Correct rotation and refresh behavior with a tested coordinated client retry path. This is a required controlled engineering action 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 complementary correct action is: Inspect rotation function stages, secret version labels and application cache lifecycle. Both follow the principle: Credential rotation must coordinate secret state with application connection refresh and validation.

D:

Inspect rotation function stages, secret version labels and application cache lifecycle. This is a required diagnostic evidence step 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 complementary correct action is: Correct rotation and refresh behavior with a tested coordinated client retry path. Both follow the principle: Credential rotation must coordinate secret state with application connection refresh and validation.

Incorrect Answers

B:

Publish to a suitable topic and distribute through separate durable SQS queues. This is suitable for another 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. In this case, engineers instead need the paired investigation (Inspect rotation function stages, secret version labels and application cache lifecycle.) and design change (Correct rotation and refresh behavior with a tested coordinated client retry path.). These two steps address: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication.

C:

Review alarm condition, transaction criticality, runbook approvals and current service health. This is suitable for another situation: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. In this case, engineers instead need the paired investigation (Inspect rotation function stages, secret version labels and application cache lifecycle.) and design change (Correct rotation and refresh behavior with a tested coordinated client retry path.). These two steps address: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication.

E:

Quarantine only the confirmed instance through reviewed network or isolation controls. This is suitable for another situation: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. In this case, engineers instead need the paired investigation (Inspect rotation function stages, secret version labels and application cache lifecycle.) and design change (Correct rotation and refresh behavior with a tested coordinated client retry path.). These two steps address: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication.

Question 893

Before changing production, engineers find: An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible. Which investigation should the engineer perform FIRST?

  1. Inspect trail or CloudTrail Lake event data store scope, retention and access.
  2. Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys.
  3. Review stack drift status, CloudTrail changes and IAM effective policy.
  4. Inspect secret version stages, rotation workflow and application cache behavior.

Explanation

Correct Answer

A:

Inspect trail or CloudTrail Lake event data store scope, retention and access. The governing principle is: Long-term security auditing requires suitable retained CloudTrail event collection and query. The next controlled engineering decision is: Enable protected collection and query access covering required identity events.

Incorrect Answers

B:

Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. This instead addresses a different case: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. For the stated situation (An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible.), the better investigation is: Inspect trail or CloudTrail Lake event data store scope, retention and access. The deciding distinction is: Long-term security auditing requires suitable retained CloudTrail event collection and query.

C:

Review stack drift status, CloudTrail changes and IAM effective policy. 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 (An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible.), the better investigation is: Inspect trail or CloudTrail Lake event data store scope, retention and access. The deciding distinction is: Long-term security auditing requires suitable retained CloudTrail event collection and query.

D:

Inspect secret version stages, rotation workflow and application cache behavior. 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 (An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible.), the better investigation is: Inspect trail or CloudTrail Lake event data store scope, retention and access. The deciding distinction is: Long-term security auditing requires suitable retained CloudTrail event collection and query.

Question 894

An AWS platform team investigates this condition: An application repeatedly packages a huge unchanged runtime dependency into every Lambda release, increasing rollout time and inconsistent versions. Which DevOps principle BEST explains the core problem?

  1. Build-once promotion reduces environment drift and strengthens artifact provenance.
  2. Shared dependencies should be versioned and referenced deliberately in serverless releases.
  3. Artifact storage needs controlled access, encryption and traceable retention.
  4. Artifact build pipelines must prevent credential disclosure in stdout and artifacts.

Explanation

Correct Answer

B:

Shared dependencies should be versioned and referenced deliberately in serverless releases. Relevant first evidence: Review function package contents, layer versions, supported runtimes and release links. The resulting controlled response is: Publish a versioned Lambda layer and deploy function versions referencing the approved layer.

Incorrect Answers

A:

Build-once promotion reduces environment drift and strengthens artifact provenance. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (An application repeatedly packages a huge unchanged runtime dependency into every Lambda release, increasing rollout time and inconsistent versions.), the better principle is: Shared dependencies should be versioned and referenced deliberately in serverless releases. The deciding distinction is: Shared dependencies should be versioned and referenced deliberately in serverless releases.

C:

Artifact storage needs controlled access, encryption and traceable retention. This instead addresses a different case: Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy. For the stated situation (An application repeatedly packages a huge unchanged runtime dependency into every Lambda release, increasing rollout time and inconsistent versions.), the better principle is: Shared dependencies should be versioned and referenced deliberately in serverless releases. The deciding distinction is: Shared dependencies should be versioned and referenced deliberately in serverless releases.

D:

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 (An application repeatedly packages a huge unchanged runtime dependency into every Lambda release, increasing rollout time and inconsistent versions.), the better principle is: Shared dependencies should be versioned and referenced deliberately in serverless releases. The deciding distinction is: Shared dependencies should be versioned and referenced deliberately in serverless releases.

Question 895

Before changing production, engineers find: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. Which investigation should the engineer perform FIRST?

  1. Review trust policy principal, external ID use, STS records and least-privilege permissions.
  2. Inspect Config recorders, aggregation sources, rules and delegated management.
  3. Inspect role-creation permissions, boundary attachment requirements and privilege escalation paths.
  4. Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights.

Explanation

Correct Answer

D:

Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. The governing principle is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. The next controlled engineering decision is: Use appropriate tag-aware policies with guarded tagging permissions.

Incorrect Answers

A:

Review trust policy principal, external ID use, STS records and least-privilege permissions. This instead addresses a different case: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better investigation is: Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.

B:

Inspect Config recorders, aggregation sources, rules and delegated management. This instead addresses a different case: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better investigation is: Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.

C:

Inspect role-creation permissions, boundary attachment requirements and privilege escalation paths. This instead addresses a different case: A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better investigation is: Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.

Question 896

A DevOps team is reviewing: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. Which TWO complementary actions should it take? Select TWO answers.

  1. Inspect VPC Flow Logs enablement, records, ENIs and destination retention.
  2. Configure centralized Security Hub findings ingestion and approved incident routing.
  3. Automate drift detection, alerting and approved reconciliation for critical stacks.
  4. Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin.
  5. Inspect IAM Access Analyzer findings, bucket policies and approved trust relationships.

Explanation

Correct Answers

B:

Configure centralized Security Hub findings ingestion and approved incident routing. This is a required controlled engineering action for the stated situation: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. The complementary correct action is: Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin. Both follow the principle: Security findings need aggregation, deduplication and accountable response in multi-account environments.

D:

Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin. This is a required diagnostic evidence step for the stated situation: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. The complementary correct action is: Configure centralized Security Hub findings ingestion and approved incident routing. Both follow the principle: Security findings need aggregation, deduplication and accountable response in multi-account environments.

Incorrect Answers

A:

Inspect VPC Flow Logs enablement, records, ENIs and destination retention. This is suitable for another situation: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. In this case, engineers instead need the paired investigation (Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin.) and design change (Configure centralized Security Hub findings ingestion and approved incident routing.). These two steps address: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow.

C:

Automate drift detection, alerting and approved reconciliation for critical stacks. This is suitable for another situation: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. In this case, engineers instead need the paired investigation (Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin.) and design change (Configure centralized Security Hub findings ingestion and approved incident routing.). These two steps address: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow.

E:

Inspect IAM Access Analyzer findings, bucket policies and approved trust relationships. This is suitable for another situation: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. In this case, engineers instead need the paired investigation (Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin.) and design change (Configure centralized Security Hub findings ingestion and approved incident routing.). These two steps address: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow.

Question 897

After implementing a proposed fix, the team reviews: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. Which result would BEST confirm that the risk is addressed?

  1. A member-account test finding appears at the approved central monitoring account.
  2. Test dev and production principals receive distinct expected effective controls.
  3. Actual installed package inventory reconciles to approved software baseline.
  4. New test account resources are assessed and noncompliant configurations reported.

Explanation

Correct Answer

B:

Test dev and production principals receive distinct expected effective controls. The approved action is: Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. The risk principle is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.

Incorrect Answers

A:

A member-account test finding appears at the approved central monitoring account. This instead addresses a different case: Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure. For the stated situation (Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.), the better verification is: Test dev and production principals receive distinct expected effective controls. The deciding distinction is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.

C:

Actual installed package inventory reconciles to approved software baseline. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.), the better verification is: Test dev and production principals receive distinct expected effective controls. The deciding distinction is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.

D:

New test account resources are assessed and noncompliant configurations reported. This instead addresses a different case: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. For the stated situation (Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.), the better verification is: Test dev and production principals receive distinct expected effective controls. The deciding distinction is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.

Question 898

The DevOps team must resolve this scenario: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages. Which engineering change is MOST appropriate?

  1. Route relevant AWS Health events through EventBridge to the approved operations channel.
  2. Use Step Functions or equivalent durable event workflow with safe idempotent transitions.
  3. Set an approved retention period and route long-term audit logs to suitable protected storage if needed.
  4. Associate deployment-specific health alarms and enable appropriate automated rollback.

Explanation

Correct Answer

B:

Use Step Functions or equivalent durable event workflow with safe idempotent transitions. Its validation is: A duplicate alarm event causes no duplicate destructive action and notification is consistent. The principle is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.

Incorrect Answers

A:

Route relevant AWS Health events through EventBridge to the approved operations channel. 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 (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better engineering action is: Use Step Functions or equivalent durable event workflow with safe idempotent transitions. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.

C:

Set an approved retention period and route long-term audit logs to suitable protected storage if needed. This instead addresses a different case: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. 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 engineering action is: Use Step Functions or equivalent durable event workflow with safe idempotent transitions. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.

D:

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 (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better engineering action is: Use Step Functions or equivalent durable event workflow with safe idempotent transitions. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.

Question 899

Before changing production, engineers find: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. Which investigation should the engineer perform FIRST?

  1. Inspect automated backup settings, log retention, restore window and business RPO.
  2. Review subnet free addresses, quotas, launch templates, recovery-time budget and data replicas.
  3. Review global table consistency behavior, regional write patterns and timestamp conflicts.
  4. Review transaction ordering, backup points, queue offsets and reconciliation design.

Explanation

Correct Answer

D:

Review transaction ordering, backup points, queue offsets and reconciliation design. The governing principle is: Recovery needs application consistency and coordinated replay across dependent state. The next controlled engineering decision is: Create an application-aware recovery sequence with replay safety and reconciled checkpoints.

Incorrect Answers

A:

Inspect automated backup settings, log retention, restore window and business RPO. This instead addresses a different case: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. For the stated situation (A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records.), the better investigation is: Review transaction ordering, backup points, queue offsets and reconciliation design. The deciding distinction is: Recovery needs application consistency and coordinated replay across dependent state.

B:

Review subnet free addresses, quotas, launch templates, recovery-time budget and data replicas. 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 multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records.), the better investigation is: Review transaction ordering, backup points, queue offsets and reconciliation design. The deciding distinction is: Recovery needs application consistency and coordinated replay across dependent state.

C:

Review global table consistency behavior, regional write patterns and timestamp conflicts. This instead addresses a different case: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. For the stated situation (A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records.), the better investigation is: Review transaction ordering, backup points, queue offsets and reconciliation design. The deciding distinction is: Recovery needs application consistency and coordinated replay across dependent state.

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?

  1. Cross-account delivery should assume narrowly scoped roles in each target account.
  2. Traffic shifting must account for backward-compatible shared-state dependencies.
  3. Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
  4. 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.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests