Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 35
Question 340
The DevOps team must resolve this scenario: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. Which engineering change is MOST appropriate?
- Use explicit account/OU boundaries, safe tags, dry-run records and approval for destructive operations.
- Plan OU migrations with explicit baseline deployment and removal behavior tests.
- Enable inventory collection and central reporting for in-scope managed nodes.
- Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits.
Explanation
Correct Answer
C:Enable inventory collection and central reporting for in-scope managed nodes. Its validation is: Actual installed package inventory reconciles to approved software baseline. The principle is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
Incorrect Answers
A:Use explicit account/OU boundaries, safe tags, dry-run records and approval for destructive operations. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (Operations estimates patch compliance from EC2 tags but has no verified installed software inventory.), the better engineering action is: Enable inventory collection and central reporting for in-scope managed nodes. The deciding distinction is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
B:Plan OU migrations with explicit baseline deployment and removal behavior tests. This instead addresses a different case: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. For the stated situation (Operations estimates patch compliance from EC2 tags but has no verified installed software inventory.), the better engineering action is: Enable inventory collection and central reporting for in-scope managed nodes. The deciding distinction is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
D:Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. This instead addresses a different case: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. For the stated situation (Operations estimates patch compliance from EC2 tags but has no verified installed software inventory.), the better engineering action is: Enable inventory collection and central reporting for in-scope managed nodes. The deciding distinction is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
Question 341
After implementing a proposed fix, the team reviews: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. Which result would BEST confirm that the risk is addressed?
- A dry run changes the intended test instance and leaves healthy fleet instances reachable.
- One test event results in bounded action without recursive repeated invocations.
- Replaying one S3 event results in one intended destination record.
- A simulated backlog increases capacity without violating cost or failure limits.
Explanation
Correct Answer
A:A dry run changes the intended test instance and leaves healthy fleet instances reachable. The approved action is: Quarantine only the confirmed instance through reviewed network or isolation controls. The risk principle is: Containment automation must use precise resource identity, scope and rollback safeguards.
Incorrect Answers
B:One test event results in bounded action without recursive repeated invocations. This instead addresses a different case: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. For the stated situation (An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag.), the better verification is: A dry run changes the intended test instance and leaves healthy fleet instances reachable. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
C:Replaying one S3 event results in one intended destination record. This instead addresses a different case: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. For the stated situation (An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag.), the better verification is: A dry run changes the intended test instance and leaves healthy fleet instances reachable. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
D:A simulated backlog increases capacity without violating cost or failure limits. This instead addresses a different case: A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy. For the stated situation (An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag.), the better verification is: A dry run changes the intended test instance and leaves healthy fleet instances reachable. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
Question 342
The DevOps team must resolve this scenario: Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change. Which engineering change is MOST appropriate?
- Implement safe Secrets Manager rotation and compatible runtime secret refresh.
- Restore valid DNS validation and monitor renewal before expiration.
- Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes.
- Enforce MFA through suitable identity provider or IAM session conditions.
Explanation
Correct Answer
A:Implement safe Secrets Manager rotation and compatible runtime secret refresh. Its validation is: A test rotation preserves authorized access and invalidates the prior credential on schedule. The principle is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
Incorrect Answers
B:Restore valid DNS validation and monitor renewal before expiration. This instead addresses a different case: A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted. For the stated situation (Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change.), the better engineering action is: Implement safe Secrets Manager rotation and compatible runtime secret refresh. The deciding distinction is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
C:Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes. This instead addresses a different case: A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account. For the stated situation (Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change.), the better engineering action is: Implement safe Secrets Manager rotation and compatible runtime secret refresh. The deciding distinction is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
D:Enforce MFA through suitable identity provider or IAM session conditions. This instead addresses a different case: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. For the stated situation (Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change.), the better engineering action is: Implement safe Secrets Manager rotation and compatible runtime secret refresh. The deciding distinction is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
Question 343
An AWS platform team investigates this condition: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. Which DevOps principle BEST explains the core problem?
- Client endpoint strategy must match the intended Aurora failover and read routing.
- Active-active replicated data needs explicit conflict resolution and application reconciliation semantics.
- Highly available applications should avoid unreplicated session state tied to an individual node.
- A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Explanation
Correct Answer
A:Client endpoint strategy must match the intended Aurora failover and read routing. Relevant first evidence: Inspect cluster endpoint, reader endpoint, replica topology and connection logic. The resulting controlled response is: Configure applications to use suitable Aurora endpoints and resilient reconnection.
Incorrect Answers
B:Active-active replicated data needs explicit conflict resolution and application reconciliation semantics. This instead addresses a different case: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. 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 principle is: Client endpoint strategy must match the intended Aurora failover and read routing. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
C:Highly available applications should avoid unreplicated session state tied to an individual node. 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 (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better principle is: Client endpoint strategy must match the intended Aurora failover and read routing. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
D:A hot partition can throttle despite table-wide capacity and requires appropriate key design. 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 Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better principle is: Client endpoint strategy must match the intended Aurora failover and read routing. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
Question 344
A DevOps team is reviewing: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. Which TWO complementary actions should it take? Select TWO answers.
- Inspect cookie handling, session persistence, application state and failure tests.
- Move session state to a resilient shared store or adopt a compatible stateless design.
- Review global table consistency behavior, regional write patterns and timestamp conflicts.
- Configure appropriate CloudFront origin failover using a viable secondary origin.
- Inspect role trust and permissions, routing policy and operational incident access.
Explanation
Correct Answers
A:Inspect cookie handling, session persistence, application state and failure tests. This is a required diagnostic evidence step for the stated situation: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. The complementary correct action is: Move session state to a resilient shared store or adopt a compatible stateless design. Both follow the principle: Highly available applications should avoid unreplicated session state tied to an individual node.
B:Move session state to a resilient shared store or adopt a compatible stateless design. This is a required controlled engineering action for the stated situation: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. The complementary correct action is: Inspect cookie handling, session persistence, application state and failure tests. Both follow the principle: Highly available applications should avoid unreplicated session state tied to an individual node.
Incorrect Answers
C:Review global table consistency behavior, regional write patterns and timestamp conflicts. This is suitable for another situation: A multi-Region shopping app writes the same item in two Regions and occasionally overwrites updates unexpectedly. In this case, engineers instead need the paired investigation (Inspect cookie handling, session persistence, application state and failure tests.) and design change (Move session state to a resilient shared store or adopt a compatible stateless design.). These two steps address: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures.
D: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 cookie handling, session persistence, application state and failure tests.) and design change (Move session state to a resilient shared store or adopt a compatible stateless design.). These two steps address: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures.
E:Inspect role trust and permissions, routing policy and operational incident access. This is suitable for another situation: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. In this case, engineers instead need the paired investigation (Inspect cookie handling, session persistence, application state and failure tests.) and design change (Move session state to a resilient shared store or adopt a compatible stateless design.). These two steps address: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures.
Question 345
Before changing production, engineers find: A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures. Which investigation should the engineer perform FIRST?
- Review alarm threshold, missing-data policy, publishing heartbeat and error logs.
- Inspect load balancer access log settings, S3 policy, Region and delivery status.
- Inspect flow log coverage, filter type, destination access and retention requirements.
- Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation.
Explanation
Correct Answer
D:Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation. The governing principle is: Metrics must preserve useful dimensions for diagnostic isolation. The next controlled engineering decision is: Create per-function metric queries and alarms using appropriate dimensions.
Incorrect Answers
A:Review alarm threshold, missing-data policy, publishing heartbeat and error logs. 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 (A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures.), the better investigation is: Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation. The deciding distinction is: Metrics must preserve useful dimensions for diagnostic isolation.
B:Inspect load balancer access log settings, S3 policy, Region and delivery status. This instead addresses a different case: An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery. For the stated situation (A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures.), the better investigation is: Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation. The deciding distinction is: Metrics must preserve useful dimensions for diagnostic isolation.
C:Inspect flow log coverage, filter type, destination access and retention requirements. This instead addresses a different case: Security investigators cannot reconstruct a suspected data exfiltration path because VPC Flow Logs were never enabled for regulated subnets. For the stated situation (A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures.), the better investigation is: Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation. The deciding distinction is: Metrics must preserve useful dimensions for diagnostic isolation.
Question 346
After implementing a proposed fix, the team reviews: A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected. Which result would BEST confirm that the risk is addressed?
- A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected.
- A sampled metric reaches the authorized analytics destination with expected delay.
- A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring.
- A terminated pod's error records remain searchable with its release identity.
Explanation
Correct Answer
A:A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected. The approved action is: Configure CloudWatch anomaly detection with evaluated bounds and meaningful context. The risk principle is: Dynamic baseline alarms can detect unusual deviations when static thresholds create chronic false positives.
Incorrect Answers
B:A sampled metric reaches the authorized analytics destination with expected delay. This instead addresses a different case: An enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits. For the stated situation (A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected.), the better verification is: A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected. The deciding distinction is: Dynamic baseline alarms can detect unusual deviations when static thresholds create chronic false positives.
C:A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. This instead addresses a different case: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. For the stated situation (A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected.), the better verification is: A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected. The deciding distinction is: Dynamic baseline alarms can detect unusual deviations when static thresholds create chronic false positives.
D:A terminated pod's error records remain searchable with its release identity. 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 (A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected.), the better verification is: A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected. The deciding distinction is: Dynamic baseline alarms can detect unusual deviations when static thresholds create chronic false positives.
Question 347
An AWS platform team investigates this condition: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. Which DevOps principle BEST explains the core problem?
- AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
- Vulnerability assessment should be continuous and integrated with immutable image updates.
- Temporary credential lifetime and retrieval must match execution and approval workflow timing.
- Cross-account trust should restrict principal, role and relevant external context.
Explanation
Correct Answer
D:Cross-account trust should restrict principal, role and relevant external context. Relevant first evidence: Review trust policy principal, external ID use, STS records and least-privilege permissions. The resulting controlled response is: Constrain trusted partner principals and apply a suitable external ID where warranted.
Incorrect Answers
A:AWS compute workloads should generally use IAM roles and temporary instance profile credentials. 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 (A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account.), the better principle is: Cross-account trust should restrict principal, role and relevant external context. The deciding distinction is: Cross-account trust should restrict principal, role and relevant external context.
B:Vulnerability assessment should be continuous and integrated with immutable image updates. This instead addresses a different case: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. For the stated situation (A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account.), the better principle is: Cross-account trust should restrict principal, role and relevant external context. The deciding distinction is: Cross-account trust should restrict principal, role and relevant external context.
C:Temporary credential lifetime and retrieval must match execution and approval workflow timing. This instead addresses a different case: A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails. For the stated situation (A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account.), the better principle is: Cross-account trust should restrict principal, role and relevant external context. The deciding distinction is: Cross-account trust should restrict principal, role and relevant external context.
Question 348
A DevOps team is reviewing: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages. Which TWO complementary actions should it take? Select TWO answers.
- Enable appropriately scoped VPC Flow Logs to a secure central destination.
- Inspect instance type support, status-check metrics and automated action requirements.
- Review event IDs, retry policies, workflow steps and notification delivery.
- Use Step Functions or equivalent durable event workflow with safe idempotent transitions.
- Inspect CloudWatch Synthetics canary steps, credential handling and network reachability.
Explanation
Correct Answers
C:Review event IDs, retry policies, workflow steps and notification delivery. This is a required diagnostic evidence step 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 complementary correct action is: Use Step Functions or equivalent durable event workflow with safe idempotent transitions. Both follow the principle: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
D:Use Step Functions or equivalent durable event workflow with safe idempotent transitions. This is a required controlled engineering action 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 complementary correct action is: Review event IDs, retry policies, workflow steps and notification delivery. Both follow the principle: Automated incident workflows should have explicit state, idempotent actions and bounded escalation.
Incorrect Answers
A:Enable appropriately scoped VPC Flow Logs to a secure central destination. This is suitable for another situation: Security investigators cannot reconstruct a suspected data exfiltration path because VPC Flow Logs were never enabled for regulated subnets. In this case, engineers instead need the paired investigation (Review event IDs, retry policies, workflow steps and notification delivery.) and design change (Use Step Functions or equivalent durable event workflow with safe idempotent transitions.). These two steps address: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.
B:Inspect instance type support, status-check metrics and automated action requirements. This is suitable for another situation: A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain. In this case, engineers instead need the paired investigation (Review event IDs, retry policies, workflow steps and notification delivery.) and design change (Use Step Functions or equivalent durable event workflow with safe idempotent transitions.). These two steps address: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.
E:Inspect CloudWatch Synthetics canary steps, credential handling and network reachability. This is suitable for another situation: An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users. In this case, engineers instead need the paired investigation (Review event IDs, retry policies, workflow steps and notification delivery.) and design change (Use Step Functions or equivalent durable event workflow with safe idempotent transitions.). These two steps address: An alarm invokes a Lambda that restarts services and pages staff, but retries sometimes perform the restart twice and send conflicting messages.
Question 349
After implementing a proposed fix, the team reviews: A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity. Which result would BEST confirm that the risk is addressed?
- A burst of messages adds consumers and keeps queue age within agreed limits.
- Geographically representative tests meet target latency without violating data rules.
- A regional outage exercise serves business transactions within approved RTO.
- A representative hot-key workload completes within throughput and latency targets.
Explanation
Correct Answer
B:Geographically representative tests meet target latency without violating data rules. The approved action is: Use an appropriate multi-Region or edge front end with safe routing and data strategy. The risk principle is: Global scaling must consider latency, routing and regional data access patterns.
Incorrect Answers
A:A burst of messages adds consumers and keeps queue age within agreed limits. This instead addresses a different case: A worker fleet uses CPU utilization to scale even though pending SQS message backlog increases rapidly while CPU remains low. For the stated situation (A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better verification is: Geographically representative tests meet target latency without violating data rules. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
C:A regional outage exercise serves business transactions within approved RTO. 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 (A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better verification is: Geographically representative tests meet target latency without violating data rules. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
D:A representative hot-key workload completes within throughput and latency targets. 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 (A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better verification is: Geographically representative tests meet target latency without violating data rules. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
Question 350
An AWS platform team investigates this condition: 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. Which DevOps principle BEST explains the core problem?
- Managed multi-account deployment benefits from governed CloudFormation StackSets administration.
- Reusable code should encode secure defaults and controlled override rules.
- Parameter naming and permissions must isolate environment configuration.
- Scheduled cloud jobs should use managed scheduling with monitoring and defined retry handling.
Explanation
Correct Answer
A:Managed multi-account deployment benefits from governed CloudFormation StackSets administration. Relevant first evidence: Review organization structure, delegated administrator, StackSets permission model and target OUs. The resulting controlled response is: Use service-managed StackSets with appropriate OU targets and automatic deployment where supported.
Incorrect Answers
B:Reusable code should encode secure defaults and controlled override rules. This instead addresses a different case: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. For the stated situation (A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time.), the better principle is: Managed multi-account deployment benefits from governed CloudFormation StackSets administration. The deciding distinction is: Managed multi-account deployment benefits from governed CloudFormation StackSets administration.
C:Parameter naming and permissions must isolate environment configuration. This instead addresses a different case: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. For the stated situation (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.), the better principle is: Managed multi-account deployment benefits from governed CloudFormation StackSets administration. The deciding distinction is: Managed multi-account deployment benefits from governed CloudFormation StackSets administration.
D:Scheduled cloud jobs should use managed scheduling with monitoring and defined retry handling. This instead addresses a different case: A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired. For the stated situation (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.), the better principle is: Managed multi-account deployment benefits from governed CloudFormation StackSets administration. The deciding distinction is: Managed multi-account deployment benefits from governed CloudFormation StackSets administration.