Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 43
Question 420
An AWS platform team investigates this condition: A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction. Which DevOps principle BEST explains the core problem?
- Task deployment health checks must reflect the live application's endpoint and readiness behavior.
- Promotion logic must enforce authorized deployment account and Region boundaries.
- Serverless rollbacks should use immutable published versions and controlled alias revisions.
- Release testing should include representative cohorts and post-traffic observation before full rollout.
Explanation
Correct Answer
B:Promotion logic must enforce authorized deployment account and Region boundaries. Relevant first evidence: Inspect pipeline variables, execution role permissions and organization-level Region conditions. The resulting controlled response is: Constrain deployment roles and policy conditions to approved accounts and Regions.
Incorrect Answers
A:Task deployment health checks must reflect the live application's endpoint and readiness behavior. This instead addresses a different case: An ECS task starts successfully but is continually removed from service because its target group health check targets a nonexistent path. For the stated situation (A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction.), the better principle is: Promotion logic must enforce authorized deployment account and Region boundaries. The deciding distinction is: Promotion logic must enforce authorized deployment account and Region boundaries.
C:Serverless rollbacks should use immutable published versions and controlled alias revisions. This instead addresses a different case: A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records. For the stated situation (A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction.), the better principle is: Promotion logic must enforce authorized deployment account and Region boundaries. The deciding distinction is: Promotion logic must enforce authorized deployment account and Region boundaries.
D:Release testing should include representative cohorts and post-traffic observation before full rollout. 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 (A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction.), the better principle is: Promotion logic must enforce authorized deployment account and Region boundaries. The deciding distinction is: Promotion logic must enforce authorized deployment account and Region boundaries.
Question 421
An AWS platform team investigates this condition: A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline. Which DevOps principle BEST explains the core problem?
- Central organization auditing should cover account lifecycle without relying on each member team.
- Reusable code should encode secure defaults and controlled override rules.
- Critical stateful stacks need deletion safeguards independent of ordinary deployment success.
- Existing resources should be imported into IaC when supported instead of blindly replaced.
Explanation
Correct Answer
C:Critical stateful stacks need deletion safeguards independent of ordinary deployment success. Relevant first evidence: Inspect stack termination protection, DeletionPolicy and cleanup job permissions. The resulting controlled response is: Enable termination protection and suitable resource retention or backup controls with restricted delete rights.
Incorrect Answers
A:Central organization auditing should cover account lifecycle without relying on each member team. This instead addresses a different case: A newly onboarded account does not forward CloudTrail management activity to the security archive account. For the stated situation (A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline.), the better principle is: Critical stateful stacks need deletion safeguards independent of ordinary deployment success. The deciding distinction is: Critical stateful stacks need deletion safeguards independent of ordinary deployment success.
B:Reusable code should encode secure defaults and controlled override rules. This instead addresses a different case: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. For the stated situation (A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline.), the better principle is: Critical stateful stacks need deletion safeguards independent of ordinary deployment success. The deciding distinction is: Critical stateful stacks need deletion safeguards independent of ordinary deployment success.
D:Existing resources should be imported into IaC when supported instead of blindly replaced. This instead addresses a different case: A production queue built manually is now required in a managed CloudFormation stack, but engineers fear recreating it will lose messages. For the stated situation (A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline.), the better principle is: Critical stateful stacks need deletion safeguards independent of ordinary deployment success. The deciding distinction is: Critical stateful stacks need deletion safeguards independent of ordinary deployment success.
Question 422
After implementing a proposed fix, the team reviews: An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes. Which result would BEST confirm that the risk is addressed?
- Traffic replay scales tasks before latency exceeds agreed business thresholds.
- A controlled burst reaches stable capacity without continuous oscillating launches.
- A burst of messages adds consumers and keeps queue age within agreed limits.
- A planned failover produces only acceptable transient errors and service recovers.
Explanation
Correct Answer
A:Traffic replay scales tasks before latency exceeds agreed business thresholds. The approved action is: Configure ECS Service Auto Scaling with appropriate target tracking and bounds. The risk principle is: Container service scaling should use load-appropriate metrics and capacity limits.
Incorrect Answers
B:A controlled burst reaches stable capacity without continuous oscillating launches. This instead addresses a different case: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. For the stated situation (An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes.), the better verification is: Traffic replay scales tasks before latency exceeds agreed business thresholds. The deciding distinction is: Container service scaling should use load-appropriate metrics and capacity limits.
C:A burst of messages adds consumers and keeps queue age within agreed limits. This instead addresses a different case: A worker fleet uses CPU utilization to scale even though pending SQS message backlog increases rapidly while CPU remains low. For the stated situation (An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes.), the better verification is: Traffic replay scales tasks before latency exceeds agreed business thresholds. The deciding distinction is: Container service scaling should use load-appropriate metrics and capacity limits.
D:A planned failover produces only acceptable transient errors and service recovers. This instead addresses a different case: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. For the stated situation (An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes.), the better verification is: Traffic replay scales tasks before latency exceeds agreed business thresholds. The deciding distinction is: Container service scaling should use load-appropriate metrics and capacity limits.
Question 423
Before changing production, engineers find: A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours. Which investigation should the engineer perform FIRST?
- Inspect bucket versioning, Object Lock governance or compliance mode, policies and retention.
- Inspect role trust and permissions, routing policy and operational incident access.
- Review standby environment inventory, RTO, replication and scaling procedures.
- Inspect origin group configuration, bucket dependencies and selected HTTP failure codes.
Explanation
Correct Answer
C:Review standby environment inventory, RTO, replication and scaling procedures. The governing principle is: Warm standby requires pre-deployed usable components sufficient for stated recovery time. The next controlled engineering decision is: Provision and test a suitably sized standby baseline with controlled scale-up on failover.
Incorrect Answers
A:Inspect bucket versioning, Object Lock governance or compliance mode, policies and retention. This instead addresses a different case: A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better investigation is: Review standby environment inventory, RTO, replication and scaling procedures. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.
B:Inspect role trust and permissions, routing policy and operational incident access. This instead addresses a different case: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better investigation is: Review standby environment inventory, RTO, replication and scaling procedures. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.
D:Inspect origin group configuration, bucket dependencies and selected HTTP failure codes. This instead addresses a different case: A global static site uses CloudFront but both primary and fallback origins point to the same unavailable S3 bucket. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better investigation is: Review standby environment inventory, RTO, replication and scaling procedures. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.
Question 424
The DevOps team must resolve this scenario: Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls. Which engineering change is MOST appropriate?
- Adopt versioned shared modules or nested stacks with governed inputs and consumer upgrades.
- Enable inventory collection and central reporting for in-scope managed nodes.
- Update the construct to enforce Block Public Access and appropriate encryption by default.
- Correct the permission or invalid change and use the supported stack recovery or update workflow.
Explanation
Correct Answer
A:Adopt versioned shared modules or nested stacks with governed inputs and consumer upgrades. Its validation is: Two test applications deploy consistent network controls from the approved shared version. The principle is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
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 (Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls.), the better engineering action is: Adopt versioned shared modules or nested stacks with governed inputs and consumer upgrades. The deciding distinction is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
C:Update the construct to enforce Block Public Access and appropriate encryption by default. This instead addresses a different case: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. For the stated situation (Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls.), the better engineering action is: Adopt versioned shared modules or nested stacks with governed inputs and consumer upgrades. The deciding distinction is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
D:Correct the permission or invalid change and use the supported stack recovery or update workflow. This instead addresses a different case: An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover. For the stated situation (Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls.), the better engineering action is: Adopt versioned shared modules or nested stacks with governed inputs and consumer upgrades. The deciding distinction is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
Question 425
After implementing a proposed fix, the team reviews: A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction. Which result would BEST confirm that the risk is addressed?
- The corrected ApplicationStart hook exits successfully and target health becomes normal.
- A new instance matches the approved image baseline and related tests are traceable.
- An out-of-scope Region deployment request is rejected with an audit record.
- Newly launched instances match the desired version and terminated nodes leave no configuration gap.
Explanation
Correct Answer
C:An out-of-scope Region deployment request is rejected with an audit record. The approved action is: Constrain deployment roles and policy conditions to approved accounts and Regions. The risk principle is: Promotion logic must enforce authorized deployment account and Region boundaries.
Incorrect Answers
A: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 pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction.), the better verification is: An out-of-scope Region deployment request is rejected with an audit record. The deciding distinction is: Promotion logic must enforce authorized deployment account and Region boundaries.
B:A new instance matches the approved image baseline and related tests are traceable. This instead addresses a different case: Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels. For the stated situation (A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction.), the better verification is: An out-of-scope Region deployment request is rejected with an audit record. The deciding distinction is: Promotion logic must enforce authorized deployment account and Region boundaries.
D:Newly launched instances match the desired version and terminated nodes leave no configuration gap. This instead addresses a different case: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. For the stated situation (A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction.), the better verification is: An out-of-scope Region deployment request is rejected with an audit record. The deciding distinction is: Promotion logic must enforce authorized deployment account and Region boundaries.
Question 426
A DevOps team is reviewing: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. Which TWO complementary actions should it take? Select TWO answers.
- Correct narrowly scoped policy conditions for the approved organization trail.
- Enable sufficient flow log scope with protected centralized analysis.
- Inspect organization CloudTrail coverage, event patterns and root principal fields.
- Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys.
- Request fresh short-lived credentials only when the gated deployment action begins.
Explanation
Correct Answers
A:Correct narrowly scoped policy conditions for the approved organization trail. This is a required controlled engineering action 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 complementary correct action is: Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. Both follow the principle: Central security logging depends on correct service delivery permissions for every intended account.
D:Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys. This is a required diagnostic evidence step 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 complementary correct action is: Correct narrowly scoped policy conditions for the approved organization trail. Both follow the principle: Central security logging depends on correct service delivery permissions for every intended account.
Incorrect Answers
B:Enable sufficient flow log scope with protected centralized analysis. 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 CloudTrail delivery status, bucket policy, KMS encryption context and condition keys.) and design change (Correct narrowly scoped policy conditions for the approved organization trail.). These two steps address: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.
C:Inspect organization CloudTrail coverage, event patterns and root principal fields. This is suitable for another situation: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. In this case, engineers instead need the paired investigation (Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys.) and design change (Correct narrowly scoped policy conditions for the approved organization trail.). These two steps address: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.
E:Request fresh short-lived credentials only when the gated deployment action begins. This is suitable for another situation: A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails. In this case, engineers instead need the paired investigation (Inspect CloudTrail delivery status, bucket policy, KMS encryption context and condition keys.) and design change (Correct narrowly scoped policy conditions for the approved organization trail.). These two steps address: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail.
Question 427
After implementing a proposed fix, the team reviews: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. Which result would BEST confirm that the risk is addressed?
- A test run affects only approved instances and stops within the configured error threshold.
- A replaced node converges to the approved agent state and compliance is measurable.
- An intentionally mislabelled shared resource is excluded and cleanup actions remain auditable.
- New test account resources are assessed and noncompliant configurations reported.
Explanation
Correct Answer
A:A test run affects only approved instances and stops within the configured error threshold. The approved action is: Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. The risk principle is: Operational automation requires versioning, target control and bounded failure exposure.
Incorrect Answers
B:A replaced node converges to the approved agent state and compliance is measurable. This instead addresses a different case: A managed EC2 fleet often loses an approved monitoring agent after instance replacement. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better verification is: A test run affects only approved instances and stops within the configured error threshold. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
C:An intentionally mislabelled shared resource is excluded and cleanup actions remain auditable. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better verification is: A test run affects only approved instances and stops within the configured error threshold. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
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 (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better verification is: A test run affects only approved instances and stops within the configured error threshold. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.
Question 428
An AWS platform team investigates this condition: Developers merge feature branches into main before CodeBuild checks run, allowing a failing package into the release source. Which DevOps principle BEST explains the core problem?
- Release testing should include representative cohorts and post-traffic observation before full rollout.
- Continuous integration should gate protected branches on automated test results before merge.
- Infrastructure changes should be previewed and checked for destructive resource effects.
- Cross-account delivery should assume narrowly scoped roles in each target account.
Explanation
Correct Answer
B:Continuous integration should gate protected branches on automated test results before merge. Relevant first evidence: Review repository protection rules, pull-request triggers and build pass requirements. The resulting controlled response is: Trigger CodeBuild tests on pull requests and make their status mandatory for merge.
Incorrect Answers
A:Release testing should include representative cohorts and post-traffic observation before full rollout. 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 (Developers merge feature branches into main before CodeBuild checks run, allowing a failing package into the release source.), the better principle is: Continuous integration should gate protected branches on automated test results before merge. The deciding distinction is: Continuous integration should gate protected branches on automated test results before merge.
C:Infrastructure changes should be previewed and checked for destructive resource effects. This instead addresses a different case: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. For the stated situation (Developers merge feature branches into main before CodeBuild checks run, allowing a failing package into the release source.), the better principle is: Continuous integration should gate protected branches on automated test results before merge. The deciding distinction is: Continuous integration should gate protected branches on automated test results before merge.
D: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 (Developers merge feature branches into main before CodeBuild checks run, allowing a failing package into the release source.), the better principle is: Continuous integration should gate protected branches on automated test results before merge. The deciding distinction is: Continuous integration should gate protected branches on automated test results before merge.
Question 429
After implementing a proposed fix, the team reviews: A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident. Which result would BEST confirm that the risk is addressed?
- A deletion attempt cannot destroy protected objects before approved retention expiry.
- A simulated compromised production role cannot delete protected recovery copies.
- A primary fault causes DNS answers to move to a healthy secondary target within expectations.
- A recovery test restores data to an approved timestamp before the accidental update.
Explanation
Correct Answer
A:A deletion attempt cannot destroy protected objects before approved retention expiry. The approved action is: Apply suitable S3 Object Lock and isolated permissions for protected recovery copies. The risk principle is: Backup retention should resist malicious or accidental deletion for the required period.
Incorrect Answers
B:A simulated compromised production role cannot delete protected recovery copies. This instead addresses a different case: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. For the stated situation (A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident.), the better verification is: A deletion attempt cannot destroy protected objects before approved retention expiry. The deciding distinction is: Backup retention should resist malicious or accidental deletion for the required period.
C:A primary fault causes DNS answers to move to a healthy secondary target within expectations. This instead addresses a different case: A secondary-region service is healthy but Route 53 sends users to a failed primary endpoint because its failover record has no meaningful health check. For the stated situation (A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident.), the better verification is: A deletion attempt cannot destroy protected objects before approved retention expiry. The deciding distinction is: Backup retention should resist malicious or accidental deletion for the required period.
D:A recovery test restores data to an approved timestamp before the accidental update. 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 regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident.), the better verification is: A deletion attempt cannot destroy protected objects before approved retention expiry. The deciding distinction is: Backup retention should resist malicious or accidental deletion for the required period.
Question 430
An AWS platform team investigates this condition: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. Which DevOps principle BEST explains the core problem?
- Central security logging depends on correct service delivery permissions for every intended account.
- Security findings need aggregation, deduplication and accountable response in multi-account environments.
- Vulnerability assessment should be continuous and integrated with immutable image updates.
- Preventive IaC guardrails and detective controls should enforce data exposure policy.
Explanation
Correct Answer
C:Vulnerability assessment should be continuous and integrated with immutable image updates. Relevant first evidence: Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. The resulting controlled response is: Enable appropriate continuous scanning and approved image remediation pipelines.
Incorrect Answers
A:Central security logging depends on correct service delivery permissions for every intended account. 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 (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
B: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 new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
D:Preventive IaC guardrails and detective controls should enforce data exposure policy. This instead addresses a different case: New project buckets frequently become publicly readable because an IaC module omits S3 Block Public Access. For the stated situation (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.