Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 77
Question 760
Before changing production, engineers find: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. Which investigation should the engineer perform FIRST?
- Inspect ALB target-group path, task port, security group rules and service events.
- Review instance user data, launch template versions, AMIs and out-of-band modifications.
- Inspect ECS task definition secrets, IAM grants and account-specific parameter names.
- Inspect workload profile, load generator placement, request latencies and scaling metrics.
Explanation
Correct Answer
B:Review instance user data, launch template versions, AMIs and out-of-band modifications. The governing principle is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift. The next controlled engineering decision is: Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.
Incorrect Answers
A:Inspect ALB target-group path, task port, security group rules and service events. 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 (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better investigation is: Review instance user data, launch template versions, AMIs and out-of-band modifications. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
C:Inspect ECS task definition secrets, IAM grants and account-specific parameter names. 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 (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better investigation is: Review instance user data, launch template versions, AMIs and out-of-band modifications. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
D:Inspect workload profile, load generator placement, request latencies and scaling metrics. This instead addresses a different case: A service passes one-user functional tests yet violates its 99th percentile latency target at peak checkout demand. For the stated situation (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better investigation is: Review instance user data, launch template versions, AMIs and out-of-band modifications. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
Question 761
The DevOps team must resolve this scenario: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. Which engineering change is MOST appropriate?
- Replace stored access keys with a least-privilege EC2 instance profile role.
- Implement a controlled short-lived privileged role assumption with audit and review.
- Configure an organization Config aggregator and required centrally managed rule coverage.
- Enable suitable access analysis and correct unapproved external principals.
Explanation
Correct Answer
D:Enable suitable access analysis and correct unapproved external principals. Its validation is: A deliberate test exposure creates a finding and a reviewed correction removes it. The principle is: Resource-policy access analysis can identify externally accessible resources for review.
Incorrect Answers
A:Replace stored access keys with a least-privilege EC2 instance profile role. This instead addresses a different case: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. For the stated situation (An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust.), the better engineering action is: Enable suitable access analysis and correct unapproved external principals. The deciding distinction is: Resource-policy access analysis can identify externally accessible resources for review.
B:Implement a controlled short-lived privileged role assumption with audit and review. This instead addresses a different case: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. For the stated situation (An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust.), the better engineering action is: Enable suitable access analysis and correct unapproved external principals. The deciding distinction is: Resource-policy access analysis can identify externally accessible resources for review.
C:Configure an organization Config aggregator and required centrally managed rule coverage. This instead addresses a different case: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. For the stated situation (An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust.), the better engineering action is: Enable suitable access analysis and correct unapproved external principals. The deciding distinction is: Resource-policy access analysis can identify externally accessible resources for review.
Question 762
The DevOps team must resolve this scenario: A Kubernetes horizontal pod autoscaler is configured but never scales pods because its custom metric adapter is missing. Which engineering change is MOST appropriate?
- Configure ECS Service Auto Scaling with appropriate target tracking and bounds.
- Use an appropriate multi-Region or edge front end with safe routing and data strategy.
- Define least-privilege emergency DNS roles and practice failover under expected conditions.
- Install and configure supported metrics collection and reasonable HPA thresholds.
Explanation
Correct Answer
D:Install and configure supported metrics collection and reasonable HPA thresholds. Its validation is: A controlled load causes expected pod count changes with healthy readiness. The principle is: Autoscaling depends on valid observable metrics and resource limits as well as policy objects.
Incorrect Answers
A:Configure ECS Service Auto Scaling with appropriate target tracking and bounds. This instead addresses a different case: An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes. For the stated situation (A Kubernetes horizontal pod autoscaler is configured but never scales pods because its custom metric adapter is missing.), the better engineering action is: Install and configure supported metrics collection and reasonable HPA thresholds. The deciding distinction is: Autoscaling depends on valid observable metrics and resource limits as well as policy objects.
B:Use an appropriate multi-Region or edge front end with safe routing and data strategy. This instead addresses a different case: A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity. For the stated situation (A Kubernetes horizontal pod autoscaler is configured but never scales pods because its custom metric adapter is missing.), the better engineering action is: Install and configure supported metrics collection and reasonable HPA thresholds. The deciding distinction is: Autoscaling depends on valid observable metrics and resource limits as well as policy objects.
C:Define least-privilege emergency DNS roles and practice failover under expected conditions. 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 Kubernetes horizontal pod autoscaler is configured but never scales pods because its custom metric adapter is missing.), the better engineering action is: Install and configure supported metrics collection and reasonable HPA thresholds. The deciding distinction is: Autoscaling depends on valid observable metrics and resource limits as well as policy objects.
Question 763
After implementing a proposed fix, the team reviews: A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored. Which result would BEST confirm that the risk is addressed?
- A load test distinguishes deliberate 429 protection from unexpected backend failure.
- The stack returns to a stable state without losing approved persistent resources.
- A replacement task pulls the pinned image and reaches healthy running state.
- Old and new eligible events are processed or deliberately rejected with traceable errors.
Explanation
Correct Answer
B:The stack returns to a stable state without losing approved persistent resources. The approved action is: Correct the blocking dependency and continue rollback using supported CloudFormation recovery. The risk principle is: Failure investigation should use CloudFormation stack events and supported recovery operations.
Incorrect Answers
A:A load test distinguishes deliberate 429 protection from unexpected backend failure. This instead addresses a different case: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. For the stated situation (A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored.), the better verification is: The stack returns to a stable state without losing approved persistent resources. The deciding distinction is: Failure investigation should use CloudFormation stack events and supported recovery operations.
C:A replacement task pulls the pinned image and reaches healthy running state. This instead addresses a different case: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. For the stated situation (A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored.), the better verification is: The stack returns to a stable state without losing approved persistent resources. The deciding distinction is: Failure investigation should use CloudFormation stack events and supported recovery operations.
D:Old and new eligible events are processed or deliberately rejected with traceable errors. This instead addresses a different case: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. For the stated situation (A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored.), the better verification is: The stack returns to a stable state without losing approved persistent resources. The deciding distinction is: Failure investigation should use CloudFormation stack events and supported recovery operations.
Question 764
After implementing a proposed fix, the team reviews: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. Which result would BEST confirm that the risk is addressed?
- The workflow defers unsafe destruction during critical processing and records authorization.
- A known temporary exposure is detected and safely removed with an audit record.
- A replacement task pulls the pinned image and reaches healthy running state.
- A test rotation allows new connections and does not expose plaintext credentials.
Explanation
Correct Answer
A:The workflow defers unsafe destruction during critical processing and records authorization. The approved action is: Use conditional automation and human approval for high-risk stateful remediation. The risk principle is: Remediation decisions must respect approved change safety, business state and rollback constraints.
Incorrect Answers
B:A known temporary exposure is detected and safely removed with an audit record. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better verification is: The workflow defers unsafe destruction during critical processing and records authorization. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
C:A replacement task pulls the pinned image and reaches healthy running state. This instead addresses a different case: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better verification is: The workflow defers unsafe destruction during critical processing and records authorization. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
D:A test rotation allows new connections and does not expose plaintext credentials. 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 (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better verification is: The workflow defers unsafe destruction during critical processing and records authorization. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
Question 765
Before changing production, engineers find: CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained. Which investigation should the engineer perform FIRST?
- Inspect shell error handling, test process exit codes, buildspec commands and report-group output.
- Review staged connection settings, test secrets, IAM role access and failed connection traces.
- Review action region, artifact store configuration, KMS grants and destination execution permissions.
- Inspect account IDs, test endpoints, IAM permissions and environment variable provenance.
Explanation
Correct Answer
A:Inspect shell error handling, test process exit codes, buildspec commands and report-group output. The governing principle is: Build success and test reporting must reflect real assertion failures with consumable evidence. The next controlled engineering decision is: Ensure tests exit nonzero on failures and publish test reports in the build workflow.
Incorrect Answers
B:Review staged connection settings, test secrets, IAM role access and failed connection traces. 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 (CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained.), the better investigation is: Inspect shell error handling, test process exit codes, buildspec commands and report-group output. The deciding distinction is: Build success and test reporting must reflect real assertion failures with consumable evidence.
C:Review action region, artifact store configuration, KMS grants and destination execution permissions. This instead addresses a different case: A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target. For the stated situation (CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained.), the better investigation is: Inspect shell error handling, test process exit codes, buildspec commands and report-group output. The deciding distinction is: Build success and test reporting must reflect real assertion failures with consumable evidence.
D:Inspect account IDs, test endpoints, IAM permissions and environment variable provenance. This instead addresses a different case: Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable. For the stated situation (CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained.), the better investigation is: Inspect shell error handling, test process exit codes, buildspec commands and report-group output. The deciding distinction is: Build success and test reporting must reflect real assertion failures with consumable evidence.
Question 766
After implementing a proposed fix, the team reviews: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. Which result would BEST confirm that the risk is addressed?
- Only vulnerable image digests are flagged and retested after remediation.
- One modeled database outage raises a coherent actionable incident instead of five independent pages.
- A test misconfigured resource triggers a traceable event and approved corrective action.
- A test matching event reaches the correct responder with affected account context.
Explanation
Correct Answer
D:A test matching event reaches the correct responder with affected account context. The approved action is: Route relevant AWS Health events through EventBridge to the approved operations channel. The risk principle is: Operational events need managed cross-account routing and accountable notification paths.
Incorrect Answers
A:Only vulnerable image digests are flagged and retested after remediation. This instead addresses a different case: Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected. For the stated situation (A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it.), the better verification is: A test matching event reaches the correct responder with affected account context. The deciding distinction is: Operational events need managed cross-account routing and accountable notification paths.
B:One modeled database outage raises a coherent actionable incident instead of five independent pages. This instead addresses a different case: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. For the stated situation (A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it.), the better verification is: A test matching event reaches the correct responder with affected account context. The deciding distinction is: Operational events need managed cross-account routing and accountable notification paths.
C:A test misconfigured resource triggers a traceable event and approved corrective action. This instead addresses a different case: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. For the stated situation (A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it.), the better verification is: A test matching event reaches the correct responder with affected account context. The deciding distinction is: Operational events need managed cross-account routing and accountable notification paths.
Question 767
The DevOps team must resolve this scenario: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. Which engineering change is MOST appropriate?
- Choose an appropriate backup/replication design that meets approved loss tolerance.
- Redesign a skewed access key or shard high-volume writes while maintaining correct queries.
- Introduce an appropriate cache or replicated read path with clear invalidation rules.
- Configure suitable warmup and scaling policies so boot activity is not misread as demand.
Explanation
Correct Answer
D:Configure suitable warmup and scaling policies so boot activity is not misread as demand. Its validation is: A controlled burst reaches stable capacity without continuous oscillating launches. The principle is: Scaling policies must account for instance startup and warmup behavior.
Incorrect Answers
A:Choose an appropriate backup/replication design that meets approved loss tolerance. This instead addresses a different case: A finance team requires five minutes of maximum data loss, but its AWS Backup job runs only once daily. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better engineering action is: Configure suitable warmup and scaling policies so boot activity is not misread as demand. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
B:Redesign a skewed access key or shard high-volume writes while maintaining correct queries. This instead addresses a different case: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better engineering action is: Configure suitable warmup and scaling policies so boot activity is not misread as demand. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
C:Introduce an appropriate cache or replicated read path with clear invalidation rules. This instead addresses a different case: An authenticated read-heavy API repeatedly queries a database for identical catalog metadata, exhausting database read capacity. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better engineering action is: Configure suitable warmup and scaling policies so boot activity is not misread as demand. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
Question 768
The DevOps team must resolve this scenario: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. Which engineering change is MOST appropriate?
- Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence.
- Parameterize approved configuration references per environment without rebuilding the binary.
- Configure a blue/green ECS deployment with validation traffic and automatic rollback conditions.
- Route dependencies through approved CodeArtifact repositories with controlled upstream access.
Explanation
Correct Answer
B:Parameterize approved configuration references per environment without rebuilding the binary. Its validation is: One image digest deploys successfully in both environments with distinct scoped secrets. The principle is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
Incorrect Answers
A:Correct the failing hook or dependency and redeploy using the supported EC2 deployment sequence. 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 containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better engineering action is: Parameterize approved configuration references per environment without rebuilding the binary. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
C:Configure a blue/green ECS deployment with validation traffic and automatic rollback conditions. This instead addresses a different case: An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold. For the stated situation (A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better engineering action is: Parameterize approved configuration references per environment without rebuilding the binary. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
D:Route dependencies through approved CodeArtifact repositories with controlled upstream access. This instead addresses a different case: A CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required. 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 engineering action is: Parameterize approved configuration references per environment without rebuilding the binary. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
Question 769
A DevOps team is reviewing: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket. Which TWO complementary actions should it take? Select TWO answers.
- Configure S3 replication with required permissions and encryption handling.
- Move session state to a resilient shared store or adopt a compatible stateless design.
- Review source/destination versioning, replication rule scope, IAM role and KMS key grants.
- Review backup plan, cross-account copy, vault access and retention protections.
- Provision approved regional secrets and key access before declaring standby ready.
Explanation
Correct Answers
A:Configure S3 replication with required permissions and encryption handling. This is a required controlled engineering action for the stated situation: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket. The complementary correct action is: Review source/destination versioning, replication rule scope, IAM role and KMS key grants. Both follow the principle: Cross-Region object resilience requires configured replication and suitable versioning and permissions.
C:Review source/destination versioning, replication rule scope, IAM role and KMS key grants. This is a required diagnostic evidence step for the stated situation: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket. The complementary correct action is: Configure S3 replication with required permissions and encryption handling. Both follow the principle: Cross-Region object resilience requires configured replication and suitable versioning and permissions.
Incorrect Answers
B:Move session state to a resilient shared store or adopt a compatible stateless design. This is suitable for another situation: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. In this case, engineers instead need the paired investigation (Review source/destination versioning, replication rule scope, IAM role and KMS key grants.) and design change (Configure S3 replication with required permissions and encryption handling.). These two steps address: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket.
D:Review backup plan, cross-account copy, vault access and retention protections. This is suitable for another situation: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. In this case, engineers instead need the paired investigation (Review source/destination versioning, replication rule scope, IAM role and KMS key grants.) and design change (Configure S3 replication with required permissions and encryption handling.). These two steps address: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket.
E:Provision approved regional secrets and key access before declaring standby ready. This is suitable for another situation: A warm standby web tier exists in a second Region but depends on secrets and KMS keys that are only accessible in the primary Region. In this case, engineers instead need the paired investigation (Review source/destination versioning, replication rule scope, IAM role and KMS key grants.) and design change (Configure S3 replication with required permissions and encryption handling.). These two steps address: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket.
Question 770
Before changing production, engineers find: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. Which investigation should the engineer perform FIRST?
- Inspect the proposed change set, resource identifiers, retention policy and data ownership.
- Inspect provisioning workflow, organization rules, configuration recorders and baselines.
- Inspect IAM Identity Center assignments, identity source, permission sets and deprovisioning.
- Review Organizations integration, delegated administrator, enabled standards and aggregation regions.
Explanation
Correct Answer
B:Inspect provisioning workflow, organization rules, configuration recorders and baselines. The governing principle is: New accounts should inherit automated security/compliance controls at provisioning time. The next controlled engineering decision is: Attach organization-wide or OU-targeted Config checks and remediations to account onboarding.
Incorrect Answers
A:Inspect the proposed change set, resource identifiers, retention policy and data ownership. This instead addresses a different case: A template refactor changes an S3 bucket logical ID, risking replacement of a bucket containing business records. For the stated situation (AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection.), the better investigation is: Inspect provisioning workflow, organization rules, configuration recorders and baselines. The deciding distinction is: New accounts should inherit automated security/compliance controls at provisioning time.
C:Inspect IAM Identity Center assignments, identity source, permission sets and deprovisioning. This instead addresses a different case: An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding. For the stated situation (AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection.), the better investigation is: Inspect provisioning workflow, organization rules, configuration recorders and baselines. The deciding distinction is: New accounts should inherit automated security/compliance controls at provisioning time.
D:Review Organizations integration, delegated administrator, enabled standards and aggregation regions. 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 (AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection.), the better investigation is: Inspect provisioning workflow, organization rules, configuration recorders and baselines. The deciding distinction is: New accounts should inherit automated security/compliance controls at provisioning time.