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 92

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?

  1. The workflow defers unsafe destruction during critical processing and records authorization.
  2. A rerun reads the source artifact successfully without unrestricted KMS access.
  3. A test missing-agent instance is corrected while unrelated resources remain untouched.
  4. 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.

Question 911

An engineering review identifies: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. Which shortcut is MOST unsafe for this exact condition?

  1. Copy staging secret values into the production container image.
  2. Drop the old database columns before the old tasks are drained.
  3. Mark production successful when the deployment API returns success regardless of application health.
  4. Replace every ECS task simultaneously and rely only on application startup logs.

Explanation

Correct Answer

A:

Copy staging secret values into the production container image. The case is: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. A safer engineering response is: Parameterize approved configuration references per environment without rebuilding the binary. The deciding principle is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.

Incorrect Answers

B:

Drop the old database columns before the old tasks are drained. 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 containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better unsafe assumption to reject is: Copy staging secret values into the production container image. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.

C:

Mark production successful when the deployment API returns success regardless of application health. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better unsafe assumption to reject is: Copy staging secret values into the production container image. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.

D:

Replace every ECS task simultaneously and rely only on application startup logs. 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 containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better unsafe assumption to reject is: Copy staging secret values into the production container image. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.

Question 912

The DevOps team must resolve this scenario: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. Which engineering change is MOST appropriate?

  1. Implement a durable idempotency key and conditional write or transaction guard.
  2. Enable inventory collection and central reporting for in-scope managed nodes.
  3. Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy.
  4. Provide explicit least-privilege IAM permissions while retaining appropriate SCP limits.

Explanation

Correct Answer

A:

Implement a durable idempotency key and conditional write or transaction guard. Its validation is: Replaying the same event does not produce a second charge. The principle is: At-least-once event processing requires idempotent operations and a stable request identity.

Incorrect Answers

B:

Enable inventory collection and central reporting for in-scope managed nodes. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better engineering action is: Implement a durable idempotency key and conditional write or transaction guard. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.

C:

Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy. This instead addresses a different case: A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better engineering action is: Implement a durable idempotency key and conditional write or transaction guard. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.

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 (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better engineering action is: Implement a durable idempotency key and conditional write or transaction guard. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.

Question 913

The DevOps team must resolve this scenario: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. Which engineering change is MOST appropriate?

  1. Configure a target-account deployment role trusted by the tooling role, with minimum required actions.
  2. Deploy pinned S3 object versions or digests after controlled artifact publication.
  3. Use restricted provider connection permissions and pipeline-level source authorization controls.
  4. Build a versioned immutable artifact once, then promote that artifact through approvals and environments.

Explanation

Correct Answer

C:

Use restricted provider connection permissions and pipeline-level source authorization controls. Its validation is: A test event from a prohibited repository cannot change a production release pipeline. The principle is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.

Incorrect Answers

A:

Configure a target-account deployment role trusted by the tooling role, with minimum required actions. 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 (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better engineering action is: Use restricted provider connection permissions and pipeline-level source authorization controls. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.

B:

Deploy pinned S3 object versions or digests after controlled artifact publication. This instead addresses a different case: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. For the stated situation (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better engineering action is: Use restricted provider connection permissions and pipeline-level source authorization controls. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.

D:

Build a versioned immutable artifact once, then promote that artifact through approvals and environments. 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 (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better engineering action is: Use restricted provider connection permissions and pipeline-level source authorization controls. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.

Question 914

A DevOps team is reviewing: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. Which TWO complementary actions should it take? Select TWO answers.

  1. Plan OU migrations with explicit baseline deployment and removal behavior tests.
  2. Review account inventory, OU membership, inheritance and exceptions.
  3. Split work into durable Step Functions state transitions or supported managed operations.
  4. Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails.
  5. Attach organization-wide or OU-targeted Config checks and remediations to account onboarding.

Explanation

Correct Answers

B:

Review account inventory, OU membership, inheritance and exceptions. This is a required diagnostic evidence step for the stated situation: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. The complementary correct action is: Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. Both follow the principle: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.

D:

Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. This is a required controlled engineering action for the stated situation: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. The complementary correct action is: Review account inventory, OU membership, inheritance and exceptions. Both follow the principle: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.

Incorrect Answers

A:

Plan OU migrations with explicit baseline deployment and removal behavior tests. This is suitable for another situation: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. In this case, engineers instead need the paired investigation (Review account inventory, OU membership, inheritance and exceptions.) and design change (Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails.). These two steps address: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.

C:

Split work into durable Step Functions state transitions or supported managed operations. This is suitable for another situation: A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress. In this case, engineers instead need the paired investigation (Review account inventory, OU membership, inheritance and exceptions.) and design change (Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails.). These two steps address: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.

E:

Attach organization-wide or OU-targeted Config checks and remediations to account onboarding. This is suitable for another situation: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. In this case, engineers instead need the paired investigation (Review account inventory, OU membership, inheritance and exceptions.) and design change (Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails.). These two steps address: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.

Question 915

The DevOps team must resolve this scenario: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. Which engineering change is MOST appropriate?

  1. Publish to a suitable topic and distribute through separate durable SQS queues.
  2. Use stable device partition keys where ordering is required, with monitored throughput.
  3. Configure an appropriate SQS DLQ with alerting and governed redrive procedure.
  4. Document service-impacting provider conditions and take bounded regional failover actions.

Explanation

Correct Answer

B:

Use stable device partition keys where ordering is required, with monitored throughput. Its validation is: Events from one device are observed in order and high-throughput devices are handled safely. The principle is: Stream ordering guarantees depend on partition key and consumer processing model.

Incorrect Answers

A:

Publish to a suitable topic and distribute through separate durable SQS queues. 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 telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence.), the better engineering action is: Use stable device partition keys where ordering is required, with monitored throughput. The deciding distinction is: Stream ordering guarantees depend on partition key and consumer processing model.

C:

Configure an appropriate SQS DLQ with alerting and governed redrive procedure. This instead addresses a different case: A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it. For the stated situation (A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence.), the better engineering action is: Use stable device partition keys where ordering is required, with monitored throughput. The deciding distinction is: Stream ordering guarantees depend on partition key and consumer processing model.

D:

Document service-impacting provider conditions and take bounded regional failover actions. This instead addresses a different case: Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code. For the stated situation (A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence.), the better engineering action is: Use stable device partition keys where ordering is required, with monitored throughput. The deciding distinction is: Stream ordering guarantees depend on partition key and consumer processing model.

Question 916

After implementing a proposed fix, the team reviews: A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder. Which result would BEST confirm that the risk is addressed?

  1. One image digest deploys successfully in both environments with distinct scoped secrets.
  2. Peak deployment traffic stays within database connection limits with recoverable rollback.
  3. The corrected ApplicationStart hook exits successfully and target health becomes normal.
  4. Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer.

Explanation

Correct Answer

B:

Peak deployment traffic stays within database connection limits with recoverable rollback. The approved action is: Throttle rollout and implement suitable connection management such as RDS Proxy where appropriate. The risk principle is: Rollout concurrency and downstream capacity must be included in deployment strategy.

Incorrect Answers

A:

One image digest deploys successfully in both environments with distinct scoped secrets. This instead addresses a different case: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. For the stated situation (A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder.), the better verification is: Peak deployment traffic stays within database connection limits with recoverable rollback. The deciding distinction is: Rollout concurrency and downstream capacity must be included in deployment strategy.

C:

The corrected ApplicationStart hook exits successfully and target health becomes normal. This instead addresses a different case: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. For the stated situation (A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder.), the better verification is: Peak deployment traffic stays within database connection limits with recoverable rollback. The deciding distinction is: Rollout concurrency and downstream capacity must be included in deployment strategy.

D:

Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. This instead addresses a different case: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. For the stated situation (A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder.), the better verification is: Peak deployment traffic stays within database connection limits with recoverable rollback. The deciding distinction is: Rollout concurrency and downstream capacity must be included in deployment strategy.

Question 917

An AWS platform team investigates this condition: A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload. Which DevOps principle BEST explains the core problem?

  1. Security findings need aggregation, deduplication and accountable response in multi-account environments.
  2. High-impact human administrative access should require MFA and strong federation controls.
  3. Security alerting should preserve severity, deduplication and response priority.
  4. High-risk root activity should be centrally detected from reliably recorded audit events.

Explanation

Correct Answer

C:

Security alerting should preserve severity, deduplication and response priority. Relevant first evidence: Inspect finding identifiers, aggregation rules, duplicate rates and missed escalations. The resulting controlled response is: Configure appropriate deduplication, severity filters and accountable workflows.

Incorrect Answers

A:

Security findings need aggregation, deduplication and accountable response in multi-account environments. This instead addresses a different case: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. For the stated situation (A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload.), the better principle is: Security alerting should preserve severity, deduplication and response priority. The deciding distinction is: Security alerting should preserve severity, deduplication and response priority.

B:

High-impact human administrative access should require MFA and strong federation controls. 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 principle is: Security alerting should preserve severity, deduplication and response priority. The deciding distinction is: Security alerting should preserve severity, deduplication and response priority.

D:

High-risk root activity should be centrally detected from reliably recorded audit events. This instead addresses a different case: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. For the stated situation (A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload.), the better principle is: Security alerting should preserve severity, deduplication and response priority. The deciding distinction is: Security alerting should preserve severity, deduplication and response priority.

Question 918

A DevOps team is reviewing: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. Which TWO complementary actions should it take? Select TWO answers.

  1. Insert a manual approval action between verified staging tests and the production deployment.
  2. Inspect CodeDeploy ECS deployment config, target groups, listener routes and alarm settings.
  3. Configure a target-account deployment role trusted by the tooling role, with minimum required actions.
  4. Record commit metadata and promote images by immutable digest through the release pipeline.
  5. Inspect pipeline service role, target role trust policy, STS permissions and artifact access.

Explanation

Correct Answers

C:

Configure a target-account deployment role trusted by the tooling role, with minimum required actions. This is a required controlled engineering action for the stated situation: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. The complementary correct action is: Inspect pipeline service role, target role trust policy, STS permissions and artifact access. Both follow the principle: Cross-account delivery should assume narrowly scoped roles in each target account.

E:

Inspect pipeline service role, target role trust policy, STS permissions and artifact access. This is a required diagnostic evidence step for the stated situation: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. The complementary correct action is: Configure a target-account deployment role trusted by the tooling role, with minimum required actions. Both follow the principle: Cross-account delivery should assume narrowly scoped roles in each target account.

Incorrect Answers

A:

Insert a manual approval action between verified staging tests and the production deployment. This is suitable for another situation: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. In this case, engineers instead need the paired investigation (Inspect pipeline service role, target role trust policy, STS permissions and artifact access.) and design change (Configure a target-account deployment role trusted by the tooling role, with minimum required actions.). These two steps address: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.

B:

Inspect CodeDeploy ECS deployment config, target groups, listener routes and alarm settings. This is suitable for another situation: An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold. In this case, engineers instead need the paired investigation (Inspect pipeline service role, target role trust policy, STS permissions and artifact access.) and design change (Configure a target-account deployment role trusted by the tooling role, with minimum required actions.). These two steps address: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.

D:

Record commit metadata and promote images by immutable digest through the release pipeline. This is suitable for another situation: An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service. In this case, engineers instead need the paired investigation (Inspect pipeline service role, target role trust policy, STS permissions and artifact access.) and design change (Configure a target-account deployment role trusted by the tooling role, with minimum required actions.). These two steps address: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.

Question 919

An AWS platform team investigates this condition: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. Which DevOps principle BEST explains the core problem?

  1. Credential rotation must coordinate secret state with application connection refresh and validation.
  2. Event-driven systems must handle duplicate delivery safely and preserve idempotency.
  3. External event ingress must authenticate and deduplicate repeated delivery attempts.
  4. Security findings need reliable event routing with context and severity-based action.

Explanation

Correct Answer

B:

Event-driven systems must handle duplicate delivery safely and preserve idempotency. Relevant first evidence: Inspect event identifiers, destination conditional writes and retry behavior. The resulting controlled response is: Use stable object identity and idempotent processing or transactional guards.

Incorrect Answers

A:

Credential rotation must coordinate secret state with application connection refresh and validation. This instead addresses a different case: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better principle is: Event-driven systems must handle duplicate delivery safely and preserve idempotency. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

C:

External event ingress must authenticate and deduplicate repeated delivery attempts. This instead addresses a different case: A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better principle is: Event-driven systems must handle duplicate delivery safely and preserve idempotency. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

D:

Security findings need reliable event routing with context and severity-based action. This instead addresses a different case: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better principle is: Event-driven systems must handle duplicate delivery safely and preserve idempotency. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

Question 920

An AWS platform team investigates this condition: A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night. Which DevOps principle BEST explains the core problem?

  1. Integration testing must exercise dependent services and environment configuration, not just isolated functions.
  2. Shared dependencies should be versioned and referenced deliberately in serverless releases.
  3. Artifact integrity should be verified against immutable signed or hashed release metadata.
  4. Artifact lifecycle rules must retain versions required for rollback and audit.

Explanation

Correct Answer

D:

Artifact lifecycle rules must retain versions required for rollback and audit. Relevant first evidence: Check release history, lifecycle expiration rules, active references and recovery windows. The resulting controlled response is: Define retention exemptions or tag policies that protect deployed and rollback candidate artifacts.

Incorrect Answers

A:

Integration testing must exercise dependent services and environment configuration, not just isolated functions. This instead addresses a different case: Unit tests pass but a newly deployed Lambda service cannot authenticate to the staging RDS database. For the stated situation (A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night.), the better principle is: Artifact lifecycle rules must retain versions required for rollback and audit. The deciding distinction is: Artifact lifecycle rules must retain versions required for rollback and audit.

B:

Shared dependencies should be versioned and referenced deliberately in serverless releases. This instead addresses a different case: An application repeatedly packages a huge unchanged runtime dependency into every Lambda release, increasing rollout time and inconsistent versions. For the stated situation (A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night.), the better principle is: Artifact lifecycle rules must retain versions required for rollback and audit. The deciding distinction is: Artifact lifecycle rules must retain versions required for rollback and audit.

C:

Artifact integrity should be verified against immutable signed or hashed release metadata. This instead addresses a different case: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. For the stated situation (A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night.), the better principle is: Artifact lifecycle rules must retain versions required for rollback and audit. The deciding distinction is: Artifact lifecycle rules must retain versions required for rollback and audit.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests