Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 78
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.
Question 771
Before changing production, engineers find: A CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required. Which investigation should the engineer perform FIRST?
- Review signing keys, image digests, publication roles and deployment verification policy.
- Inspect image manifest, platform architecture, task definition and placement failures.
- Review database migration compatibility, rollback requirements and old version connection behavior.
- Inspect package manager configuration, external connections and CodeArtifact permissions.
Explanation
Correct Answer
D:Inspect package manager configuration, external connections and CodeArtifact permissions. The governing principle is: Dependency provenance and repository policy should be enforced during builds. The next controlled engineering decision is: Route dependencies through approved CodeArtifact repositories with controlled upstream access.
Incorrect Answers
A:Review signing keys, image digests, publication roles and deployment verification policy. This instead addresses a different case: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. For the stated situation (A CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required.), the better investigation is: Inspect package manager configuration, external connections and CodeArtifact permissions. The deciding distinction is: Dependency provenance and repository policy should be enforced during builds.
B:Inspect image manifest, platform architecture, task definition and placement failures. This instead addresses a different case: An ECS fleet includes both x86_64 and Arm64 capacity, but a pipeline publishes only an x86 image under a generic tag. For the stated situation (A CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required.), the better investigation is: Inspect package manager configuration, external connections and CodeArtifact permissions. The deciding distinction is: Dependency provenance and repository policy should be enforced during builds.
C:Review database migration compatibility, rollback requirements and old version connection behavior. 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 CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required.), the better investigation is: Inspect package manager configuration, external connections and CodeArtifact permissions. The deciding distinction is: Dependency provenance and repository policy should be enforced during builds.
Question 772
The DevOps team must resolve this scenario: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. Which engineering change is MOST appropriate?
- Configure CloudWatch agent collection of memory metrics and a justified alarm threshold.
- Forward container logs with cluster, namespace, pod and deployment identifiers.
- Configure appropriate missing-data behavior or a dedicated telemetry-heartbeat alarm.
- Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events.
Explanation
Correct Answer
D:Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events. Its validation is: A known past change is located with principal, time and affected resource. The principle is: Long-term audit queries can use protected S3 log data with suitable analytics tables.
Incorrect Answers
A:Configure CloudWatch agent collection of memory metrics and a justified alarm threshold. This instead addresses a different case: An EC2 application runs out of memory while CPU remains low, but CloudWatch dashboards contain only default EC2 CPU metrics. For the stated situation (The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes.), the better engineering action is: Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events. The deciding distinction is: Long-term audit queries can use protected S3 log data with suitable analytics tables.
B:Forward container logs with cluster, namespace, pod and deployment identifiers. This instead addresses a different case: EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them. For the stated situation (The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes.), the better engineering action is: Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events. The deciding distinction is: Long-term audit queries can use protected S3 log data with suitable analytics tables.
C:Configure appropriate missing-data behavior or a dedicated telemetry-heartbeat alarm. This instead addresses a different case: A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage. For the stated situation (The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes.), the better engineering action is: Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events. The deciding distinction is: Long-term audit queries can use protected S3 log data with suitable analytics tables.
Question 773
An engineering review identifies: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. Which shortcut is MOST unsafe for this exact condition?
- Rebuild the app repeatedly without investigating ECR or network access errors.
- Increase CPU scaling target without addressing missing instance capacity.
- Assume ACM automatically renews every imported private certificate without intervention.
- Increase DB instance size without checking transaction locks or application changes.
Explanation
Correct Answer
B:Increase CPU scaling target without addressing missing instance capacity. The case is: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. A safer engineering response is: Diversify capacity pools or update launch configuration consistent with requirements. The deciding principle is: Capacity failures require examining availability zones, allocation strategy and quotas.
Incorrect Answers
A:Rebuild the app repeatedly without investigating ECR or network access errors. 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 (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better unsafe assumption to reject is: Increase CPU scaling target without addressing missing instance capacity. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
C:Assume ACM automatically renews every imported private certificate without intervention. This instead addresses a different case: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better unsafe assumption to reject is: Increase CPU scaling target without addressing missing instance capacity. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
D:Increase DB instance size without checking transaction locks or application changes. This instead addresses a different case: A new backend version causes transaction timeouts and rising database deadlocks, while CPU utilization remains moderate. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better unsafe assumption to reject is: Increase CPU scaling target without addressing missing instance capacity. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
Question 774
A DevOps team is reviewing: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. Which TWO complementary actions should it take? Select TWO answers.
- Review global table consistency behavior, regional write patterns and timestamp conflicts.
- Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown.
- Implement bounded retries and use appropriate cluster endpoints around database failover.
- Design safe write ownership or conflict-aware application updates around global tables.
- Choose a supported RDS Multi-AZ configuration with application reconnect logic.
Explanation
Correct Answers
A:Review global table consistency behavior, regional write patterns and timestamp conflicts. This is a required diagnostic evidence step for the stated situation: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. The complementary correct action is: Design safe write ownership or conflict-aware application updates around global tables. Both follow the principle: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
D:Design safe write ownership or conflict-aware application updates around global tables. This is a required controlled engineering action for the stated situation: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. The complementary correct action is: Review global table consistency behavior, regional write patterns and timestamp conflicts. Both follow the principle: Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
Incorrect Answers
B:Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown. This is suitable for another situation: An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes. In this case, engineers instead need the paired investigation (Review global table consistency behavior, regional write patterns and timestamp conflicts.) and design change (Design safe write ownership or conflict-aware application updates around global tables.). These two steps address: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly.
C:Implement bounded retries and use appropriate cluster endpoints around database failover. This is suitable for another situation: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. In this case, engineers instead need the paired investigation (Review global table consistency behavior, regional write patterns and timestamp conflicts.) and design change (Design safe write ownership or conflict-aware application updates around global tables.). These two steps address: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly.
E:Choose a supported RDS Multi-AZ configuration with application reconnect logic. This is suitable for another situation: A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration. In this case, engineers instead need the paired investigation (Review global table consistency behavior, regional write patterns and timestamp conflicts.) and design change (Design safe write ownership or conflict-aware application updates around global tables.). These two steps address: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly.
Question 775
After implementing a proposed fix, the team reviews: CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded. Which result would BEST confirm that the risk is addressed?
- A controlled memory stress test produces a visible custom metric and expected alarm.
- A stopped publisher produces a timely actionable signal rather than false healthy status.
- A generated test error reaches the target with original timestamp and source.
- A test log group expires data according to its authorized retention policy.
Explanation
Correct Answer
C:A generated test error reaches the target with original timestamp and source. The approved action is: Configure a supported CloudWatch Logs subscription to the approved analytics pipeline. The risk principle is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
Incorrect Answers
A:A controlled memory stress test produces a visible custom metric and expected alarm. This instead addresses a different case: An EC2 application runs out of memory while CPU remains low, but CloudWatch dashboards contain only default EC2 CPU metrics. For the stated situation (CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded.), the better verification is: A generated test error reaches the target with original timestamp and source. The deciding distinction is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
B:A stopped publisher produces a timely actionable signal rather than false healthy status. This instead addresses a different case: A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage. For the stated situation (CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded.), the better verification is: A generated test error reaches the target with original timestamp and source. The deciding distinction is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
D:A test log group expires data according to its authorized retention policy. This instead addresses a different case: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. For the stated situation (CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded.), the better verification is: A generated test error reaches the target with original timestamp and source. The deciding distinction is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
Question 776
Before changing production, engineers find: During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes. Which investigation should the engineer perform FIRST?
- Inspect retry configuration, recovery traffic ramp, standby capacity and database errors.
- Review standby environment inventory, RTO, replication and scaling procedures.
- Review agreed RPO, schedule, database logs and recovered data age.
- Review producer partition keys, throttling, shard metrics and consumer lag.
Explanation
Correct Answer
A:Inspect retry configuration, recovery traffic ramp, standby capacity and database errors. The governing principle is: Recovery must include downstream capacity limits, backoff and graceful degradation. The next controlled engineering decision is: Introduce bounded exponential backoff, jitter, throttling and staged traffic restoration.
Incorrect Answers
B:Review standby environment inventory, RTO, replication and scaling procedures. This instead addresses a different case: A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours. For the stated situation (During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes.), the better investigation is: Inspect retry configuration, recovery traffic ramp, standby capacity and database errors. The deciding distinction is: Recovery must include downstream capacity limits, backoff and graceful degradation.
C:Review agreed RPO, schedule, database logs and recovered data age. 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 (During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes.), the better investigation is: Inspect retry configuration, recovery traffic ramp, standby capacity and database errors. The deciding distinction is: Recovery must include downstream capacity limits, backoff and graceful degradation.
D:Review producer partition keys, throttling, shard metrics and consumer lag. This instead addresses a different case: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. For the stated situation (During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes.), the better investigation is: Inspect retry configuration, recovery traffic ramp, standby capacity and database errors. The deciding distinction is: Recovery must include downstream capacity limits, backoff and graceful degradation.
Question 777
After implementing a proposed fix, the team reviews: Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable. Which result would BEST confirm that the risk is addressed?
- An earlier deployment can still retrieve its exact verified image digest.
- An incompatible schema change blocks promotion before downstream processing errors occur.
- Old and new tasks can write valid rows during the transition and rollback remains feasible.
- A deliberately misconfigured test cannot send messages to a production SQS queue.
Explanation
Correct Answer
D:A deliberately misconfigured test cannot send messages to a production SQS queue. The approved action is: Run integration tests in a segregated account with constrained resource access. The risk principle is: Automated test environments should be isolated from production resources by identity and configuration.
Incorrect Answers
A:An earlier deployment can still retrieve its exact verified image digest. This instead addresses a different case: A container image tag is overwritten weekly, so audit teams cannot reproduce the exact build used for an earlier release. For the stated situation (Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable.), the better verification is: A deliberately misconfigured test cannot send messages to a production SQS queue. The deciding distinction is: Automated test environments should be isolated from production resources by identity and configuration.
B:An incompatible schema change blocks promotion before downstream processing errors occur. This instead addresses a different case: An updated ECS application changes a JSON field name; the deployment succeeds while downstream order processors begin dropping events. For the stated situation (Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable.), the better verification is: A deliberately misconfigured test cannot send messages to a production SQS queue. The deciding distinction is: Automated test environments should be isolated from production resources by identity and configuration.
C:Old and new tasks can write valid rows during the transition and rollback remains feasible. This instead addresses a different case: A new release adds a non-null column while old application instances still write rows during a blue/green deployment. For the stated situation (Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable.), the better verification is: A deliberately misconfigured test cannot send messages to a production SQS queue. The deciding distinction is: Automated test environments should be isolated from production resources by identity and configuration.
Question 778
An AWS platform team investigates this condition: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. Which DevOps principle BEST explains the core problem?
- Containment automation must use precise resource identity, scope and rollback safeguards.
- Container deployment failures may result from registry authentication and network access rather than code.
- Certificate lifecycle automation must match certificate origin and supported renewal method.
- Temporary security changes need scoped automatic detection and accountable restoration.
Explanation
Correct Answer
D:Temporary security changes need scoped automatic detection and accountable restoration. Relevant first evidence: Review CloudTrail change events, Config rule status, approval records and owner. The resulting controlled response is: Use a controlled approved remediation action or rollback of the unauthorized rule.
Incorrect Answers
A:Containment automation must use precise resource identity, scope and rollback safeguards. This instead addresses a different case: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. For the stated situation (Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency.), the better principle is: Temporary security changes need scoped automatic detection and accountable restoration. The deciding distinction is: Temporary security changes need scoped automatic detection and accountable restoration.
B:Container deployment failures may result from registry authentication and network access rather than code. This instead addresses a different case: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. For the stated situation (Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency.), the better principle is: Temporary security changes need scoped automatic detection and accountable restoration. The deciding distinction is: Temporary security changes need scoped automatic detection and accountable restoration.
C:Certificate lifecycle automation must match certificate origin and supported renewal method. This instead addresses a different case: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. For the stated situation (Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency.), the better principle is: Temporary security changes need scoped automatic detection and accountable restoration. The deciding distinction is: Temporary security changes need scoped automatic detection and accountable restoration.
Question 779
Before changing production, engineers find: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. Which investigation should the engineer perform FIRST?
- Review agreed RPO, schedule, database logs and recovered data age.
- Inspect role trust and permissions, routing policy and operational incident access.
- Inspect cookie handling, session persistence, application state and failure tests.
- Review backup plan, cross-account copy, vault access and retention protections.
Explanation
Correct Answer
B:Inspect role trust and permissions, routing policy and operational incident access. The governing principle is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions. The next controlled engineering decision is: Define least-privilege emergency DNS roles and practice failover under expected conditions.
Incorrect Answers
A:Review agreed RPO, schedule, database logs and recovered data age. 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 (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better investigation is: Inspect role trust and permissions, routing policy and operational incident access. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
C:Inspect cookie handling, session persistence, application state and failure tests. This instead addresses a different case: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. For the stated situation (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better investigation is: Inspect role trust and permissions, routing policy and operational incident access. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
D:Review backup plan, cross-account copy, vault access and retention protections. 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 (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better investigation is: Inspect role trust and permissions, routing policy and operational incident access. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
Question 780
A DevOps team is reviewing: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. Which TWO complementary actions should it take? Select TWO answers.
- Apply suitable S3 Object Lock and isolated permissions for protected recovery copies.
- Configure appropriate CloudFront origin failover using a viable secondary origin.
- Inspect role trust and permissions, routing policy and operational incident access.
- Define least-privilege emergency DNS roles and practice failover under expected conditions.
- Create an application-aware recovery sequence with replay safety and reconciled checkpoints.
Explanation
Correct Answers
C:Inspect role trust and permissions, routing policy and operational incident access. This is a required diagnostic evidence step for the stated situation: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. The complementary correct action is: Define least-privilege emergency DNS roles and practice failover under expected conditions. Both follow the principle: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
D:Define least-privilege emergency DNS roles and practice failover under expected conditions. This is a required controlled engineering action for the stated situation: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. The complementary correct action is: Inspect role trust and permissions, routing policy and operational incident access. Both follow the principle: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
Incorrect Answers
A:Apply suitable S3 Object Lock and isolated permissions for protected recovery copies. This is suitable for another situation: A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident. In this case, engineers instead need the paired investigation (Inspect role trust and permissions, routing policy and operational incident access.) and design change (Define least-privilege emergency DNS roles and practice failover under expected conditions.). These two steps address: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.
B:Configure appropriate CloudFront origin failover using a viable secondary origin. This is suitable for another situation: A global static site uses CloudFront but both primary and fallback origins point to the same unavailable S3 bucket. In this case, engineers instead need the paired investigation (Inspect role trust and permissions, routing policy and operational incident access.) and design change (Define least-privilege emergency DNS roles and practice failover under expected conditions.). These two steps address: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.
E:Create an application-aware recovery sequence with replay safety and reconciled checkpoints. This is suitable for another situation: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. In this case, engineers instead need the paired investigation (Inspect role trust and permissions, routing policy and operational incident access.) and design change (Define least-privilege emergency DNS roles and practice failover under expected conditions.). These two steps address: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.