Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 31
Question 300
An AWS platform team investigates this condition: An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU. Which DevOps principle BEST explains the core problem?
- Event contracts and consumers need version-aware validation and safe schema evolution.
- Container restarts should be diagnosed using pod events, exit reasons and application logs.
- Root cause analysis should correlate AWS Health events with application, network and deployment telemetry.
- Capacity failures require examining availability zones, allocation strategy and quotas.
Explanation
Correct Answer
B:Container restarts should be diagnosed using pod events, exit reasons and application logs. Relevant first evidence: Inspect Kubernetes describe/logs, image version, configuration and probe failures. The resulting controlled response is: Correct the specific startup configuration or image error and deploy a verified revision.
Incorrect Answers
A:Event contracts and consumers need version-aware validation and safe schema evolution. 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 (An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU.), the better principle is: Container restarts should be diagnosed using pod events, exit reasons and application logs. The deciding distinction is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
C:Root cause analysis should correlate AWS Health events with application, network and deployment telemetry. This instead addresses a different case: Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code. For the stated situation (An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU.), the better principle is: Container restarts should be diagnosed using pod events, exit reasons and application logs. The deciding distinction is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
D:Capacity failures require examining availability zones, allocation strategy and quotas. This instead addresses a different case: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. For the stated situation (An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU.), the better principle is: Container restarts should be diagnosed using pod events, exit reasons and application logs. The deciding distinction is: Container restarts should be diagnosed using pod events, exit reasons and application logs.
Question 301
The DevOps team must resolve this scenario: A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration. Which engineering change is MOST appropriate?
- Choose a supported RDS Multi-AZ configuration with application reconnect logic.
- Configure applications to use suitable Aurora endpoints and resilient reconnection.
- Provision approved regional secrets and key access before declaring standby ready.
- Use reserved concurrency or queue buffering and controlled backpressure.
Explanation
Correct Answer
A:Choose a supported RDS Multi-AZ configuration with application reconnect logic. Its validation is: A controlled failover keeps recovery within the agreed service interruption objective. The principle is: Managed Multi-AZ database deployment provides synchronous standby and automatic infrastructure failover where supported.
Incorrect Answers
B:Configure applications to use suitable Aurora endpoints and resilient reconnection. This instead addresses a different case: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. For the stated situation (A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration.), the better engineering action is: Choose a supported RDS Multi-AZ configuration with application reconnect logic. The deciding distinction is: Managed Multi-AZ database deployment provides synchronous standby and automatic infrastructure failover where supported.
C:Provision approved regional secrets and key access before declaring standby ready. This instead addresses a different case: 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. For the stated situation (A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration.), the better engineering action is: Choose a supported RDS Multi-AZ configuration with application reconnect logic. The deciding distinction is: Managed Multi-AZ database deployment provides synchronous standby and automatic infrastructure failover where supported.
D:Use reserved concurrency or queue buffering and controlled backpressure. This instead addresses a different case: A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event. For the stated situation (A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration.), the better engineering action is: Choose a supported RDS Multi-AZ configuration with application reconnect logic. The deciding distinction is: Managed Multi-AZ database deployment provides synchronous standby and automatic infrastructure failover where supported.
Question 302
Before changing production, engineers find: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages. Which investigation should the engineer perform FIRST?
- Review CodeDeploy deployment group alarms, target health and service error signals.
- Inspect read/write capacity utilization, throttle metrics and scaling settings.
- Review event IDs, retry policies, workflow steps and notification delivery.
- Review log group retention settings, use case, compliance period and log costs.
Explanation
Correct Answer
C:Review event IDs, retry policies, workflow steps and notification delivery. The governing principle is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation. The next controlled engineering decision is: Use Step Functions or equivalent durable event workflow with safe idempotent transitions.
Incorrect Answers
A:Review CodeDeploy deployment group alarms, target health and service error signals. This instead addresses a different case: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. For the stated situation (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better investigation is: Review event IDs, retry policies, workflow steps and notification delivery. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
B:Inspect read/write capacity utilization, throttle metrics and scaling settings. This instead addresses a different case: A provisioned DynamoDB table experiences frequent throttling without any configured application alarm. For the stated situation (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better investigation is: Review event IDs, retry policies, workflow steps and notification delivery. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
D:Review log group retention settings, use case, compliance period and log costs. This instead addresses a different case: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. For the stated situation (An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.), the better investigation is: Review event IDs, retry policies, workflow steps and notification delivery. The deciding distinction is: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
Question 303
An AWS platform team investigates this condition: An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject. Which DevOps principle BEST explains the core problem?
- Sensitive-data discovery should be automated and authorized across relevant storage scopes.
- IAM activity and access analysis can support least-privilege refinement under monitoring.
- Managed public certificate renewal depends on sustained validation prerequisites.
- Compliance retention requires appropriate immutability controls and separated privileges.
Explanation
Correct Answer
D:Compliance retention requires appropriate immutability controls and separated privileges. Relevant first evidence: Review Object Lock configuration, retention mode, versioning and legal obligations. The resulting controlled response is: Apply approved S3 Object Lock retention where required with tested access governance.
Incorrect Answers
A:Sensitive-data discovery should be automated and authorized across relevant storage scopes. This instead addresses a different case: An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale. For the stated situation (An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject.), the better principle is: Compliance retention requires appropriate immutability controls and separated privileges. The deciding distinction is: Compliance retention requires appropriate immutability controls and separated privileges.
B:IAM activity and access analysis can support least-privilege refinement under monitoring. This instead addresses a different case: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely. For the stated situation (An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject.), the better principle is: Compliance retention requires appropriate immutability controls and separated privileges. The deciding distinction is: Compliance retention requires appropriate immutability controls and separated privileges.
C:Managed public certificate renewal depends on sustained validation prerequisites. This instead addresses a different case: A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted. For the stated situation (An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject.), the better principle is: Compliance retention requires appropriate immutability controls and separated privileges. The deciding distinction is: Compliance retention requires appropriate immutability controls and separated privileges.
Question 304
A DevOps team is reviewing: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. Which TWO complementary actions should it take? Select TWO answers.
- Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown.
- Redesign a skewed access key or shard high-volume writes while maintaining correct queries.
- Configure suitable warmup and scaling policies so boot activity is not misread as demand.
- Inspect retry configuration, recovery traffic ramp, standby capacity and database errors.
- Inspect partition key distribution, throttled requests and access patterns.
Explanation
Correct Answers
B:Redesign a skewed access key or shard high-volume writes while maintaining correct queries. This is a required controlled engineering action for the stated situation: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. The complementary correct action is: Inspect partition key distribution, throttled requests and access patterns. Both follow the principle: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
E:Inspect partition key distribution, throttled requests and access patterns. This is a required diagnostic evidence step for the stated situation: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. The complementary correct action is: Redesign a skewed access key or shard high-volume writes while maintaining correct queries. Both follow the principle: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Incorrect Answers
A: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 (Inspect partition key distribution, throttled requests and access patterns.) and design change (Redesign a skewed access key or shard high-volume writes while maintaining correct queries.). These two steps address: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.
C:Configure suitable warmup and scaling policies so boot activity is not misread as demand. This is suitable for another situation: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. In this case, engineers instead need the paired investigation (Inspect partition key distribution, throttled requests and access patterns.) and design change (Redesign a skewed access key or shard high-volume writes while maintaining correct queries.). These two steps address: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.
D:Inspect retry configuration, recovery traffic ramp, standby capacity and database errors. This is suitable for another situation: During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes. In this case, engineers instead need the paired investigation (Inspect partition key distribution, throttled requests and access patterns.) and design change (Redesign a skewed access key or shard high-volume writes while maintaining correct queries.). These two steps address: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.
Question 305
Before changing production, engineers find: A new release adds a non-null column while old application instances still write rows during a blue/green deployment. Which investigation should the engineer perform FIRST?
- Review migration scripts, backward compatibility, write patterns and rollback requirements.
- Inspect consumer contract tests, deployment sequencing and service version dependencies.
- Compare test populations, geographic routing, canary metrics and business error indicators.
- Inspect image scan reports, vulnerability severity policy and promotion configuration.
Explanation
Correct Answer
A:Review migration scripts, backward compatibility, write patterns and rollback requirements. The governing principle is: Schema migration tests must account for temporarily coexisting application versions. The next controlled engineering decision is: Use expand-and-contract migration with staged validation of both old and new applications.
Incorrect Answers
B:Inspect consumer contract tests, deployment sequencing and service version dependencies. This instead addresses a different case: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. For the stated situation (A new release adds a non-null column while old application instances still write rows during a blue/green deployment.), the better investigation is: Review migration scripts, backward compatibility, write patterns and rollback requirements. The deciding distinction is: Schema migration tests must account for temporarily coexisting application versions.
C:Compare test populations, geographic routing, canary metrics and business error indicators. 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 new release adds a non-null column while old application instances still write rows during a blue/green deployment.), the better investigation is: Review migration scripts, backward compatibility, write patterns and rollback requirements. The deciding distinction is: Schema migration tests must account for temporarily coexisting application versions.
D:Inspect image scan reports, vulnerability severity policy and promotion configuration. This instead addresses a different case: A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated. For the stated situation (A new release adds a non-null column while old application instances still write rows during a blue/green deployment.), the better investigation is: Review migration scripts, backward compatibility, write patterns and rollback requirements. The deciding distinction is: Schema migration tests must account for temporarily coexisting application versions.
Question 306
After implementing a proposed fix, the team reviews: A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target. Which result would BEST confirm that the risk is addressed?
- A test release reaches the remote Region using expected artifacts and no excess permissions.
- The build succeeds without secret exposure in source, logs or artifact metadata.
- Promoted production artifact digest equals the one that passed staging tests.
- Repeated builds from approved inputs produce matching dependency inventories and attributable artifacts.
Explanation
Correct Answer
A:A test release reaches the remote Region using expected artifacts and no excess permissions. The approved action is: Configure required cross-Region artifact store and least-privilege deployment action settings. The risk principle is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
Incorrect Answers
B:The build succeeds without secret exposure in source, logs or artifact metadata. This instead addresses a different case: A build job reads a database password directly from a committed buildspec environment variable. For the stated situation (A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target.), the better verification is: A test release reaches the remote Region using expected artifacts and no excess permissions. The deciding distinction is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
C:Promoted production artifact digest equals the one that passed staging tests. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target.), the better verification is: A test release reaches the remote Region using expected artifacts and no excess permissions. The deciding distinction is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
D:Repeated builds from approved inputs produce matching dependency inventories and attributable artifacts. This instead addresses a different case: Two identical source commits produce different Lambda packages because the build downloads the newest transitive dependencies each day. For the stated situation (A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target.), the better verification is: A test release reaches the remote Region using expected artifacts and no excess permissions. The deciding distinction is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
Question 307
After implementing a proposed fix, the team reviews: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. Which result would BEST confirm that the risk is addressed?
- A controlled failover keeps recovery within the agreed service interruption objective.
- A planned replica or writer failover routes clients to healthy supported instances.
- The standby Region serves traffic when primary-region services are deliberately unavailable.
- Traffic replay scales tasks before latency exceeds agreed business thresholds.
Explanation
Correct Answer
B:A planned replica or writer failover routes clients to healthy supported instances. The approved action is: Configure applications to use suitable Aurora endpoints and resilient reconnection. The risk principle is: Client endpoint strategy must match the intended Aurora failover and read routing.
Incorrect Answers
A:A controlled failover keeps recovery within the agreed service interruption objective. This instead addresses a different case: A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration. For the stated situation (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better verification is: A planned replica or writer failover routes clients to healthy supported instances. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
C:The standby Region serves traffic when primary-region services are deliberately unavailable. This instead addresses a different case: 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. For the stated situation (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better verification is: A planned replica or writer failover routes clients to healthy supported instances. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
D:Traffic replay scales tasks before latency exceeds agreed business thresholds. 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 (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better verification is: A planned replica or writer failover routes clients to healthy supported instances. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
Question 308
After implementing a proposed fix, the team reviews: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. Which result would BEST confirm that the risk is addressed?
- New test account resources are assessed and noncompliant configurations reported.
- A newly added test account receives the approved stack and OU removal behavior follows policy.
- A management event in a new member account arrives at the controlled log archive.
- A new test account inherits required organizational units and account baselines.
Explanation
Correct Answer
D:A new test account inherits required organizational units and account baselines. The approved action is: Automate onboarding through approved Account Factory or supported account vending controls. The risk principle is: Account vending should create standardized governed accounts through an approved landing-zone process.
Incorrect Answers
A: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 company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.), the better verification is: A new test account inherits required organizational units and account baselines. The deciding distinction is: Account vending should create standardized governed accounts through an approved landing-zone process.
B:A newly added test account receives the approved stack and OU removal behavior follows policy. This instead addresses a different case: A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time. For the stated situation (A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.), the better verification is: A new test account inherits required organizational units and account baselines. The deciding distinction is: Account vending should create standardized governed accounts through an approved landing-zone process.
C:A management event in a new member account arrives at the controlled log archive. 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 company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.), the better verification is: A new test account inherits required organizational units and account baselines. The deciding distinction is: Account vending should create standardized governed accounts through an approved landing-zone process.
Question 309
Before changing production, engineers find: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. Which investigation should the engineer perform FIRST?
- Review writer failover tests, connection pools, DNS refresh and retry strategy.
- Inspect origin group configuration, bucket dependencies and selected HTTP failure codes.
- Review processing time distribution, visibility settings and duplicate business actions.
- Inspect cluster endpoint, reader endpoint, replica topology and connection logic.
Explanation
Correct Answer
D:Inspect cluster endpoint, reader endpoint, replica topology and connection logic. The governing principle is: Client endpoint strategy must match the intended Aurora failover and read routing. The next controlled engineering decision is: Configure applications to use suitable Aurora endpoints and resilient reconnection.
Incorrect Answers
A:Review writer failover tests, connection pools, DNS refresh and retry strategy. 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 Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better investigation is: Inspect cluster endpoint, reader endpoint, replica topology and connection logic. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
B: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 (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better investigation is: Inspect cluster endpoint, reader endpoint, replica topology and connection logic. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
C:Review processing time distribution, visibility settings and duplicate business actions. This instead addresses a different case: Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active. For the stated situation (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better investigation is: Inspect cluster endpoint, reader endpoint, replica topology and connection logic. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
Question 310
An AWS platform team investigates this condition: An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database. Which DevOps principle BEST explains the core problem?
- Timeout diagnosis should separate function execution, network reachability and downstream latency.
- Request throttling may occur at API Gateway before integration invocation.
- Stream ordering guarantees depend on partition key and consumer processing model.
- Database contention can cause application failures without sustained high CPU.
Explanation
Correct Answer
A:Timeout diagnosis should separate function execution, network reachability and downstream latency. Relevant first evidence: Review Lambda duration, VPC route/security groups, database metrics and X-Ray traces. The resulting controlled response is: Correct the measured network or query bottleneck and choose an appropriate timeout.
Incorrect Answers
B:Request throttling may occur at API Gateway before integration invocation. 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 (An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database.), the better principle is: Timeout diagnosis should separate function execution, network reachability and downstream latency. The deciding distinction is: Timeout diagnosis should separate function execution, network reachability and downstream latency.
C:Stream ordering guarantees depend on partition key and consumer processing model. This instead addresses a different case: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. For the stated situation (An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database.), the better principle is: Timeout diagnosis should separate function execution, network reachability and downstream latency. The deciding distinction is: Timeout diagnosis should separate function execution, network reachability and downstream latency.
D:Database contention can cause application failures without sustained high CPU. 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 API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database.), the better principle is: Timeout diagnosis should separate function execution, network reachability and downstream latency. The deciding distinction is: Timeout diagnosis should separate function execution, network reachability and downstream latency.