Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 44
Question 430
An AWS platform team investigates this condition: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. Which DevOps principle BEST explains the core problem?
- Central security logging depends on correct service delivery permissions for every intended account.
- Security findings need aggregation, deduplication and accountable response in multi-account environments.
- Vulnerability assessment should be continuous and integrated with immutable image updates.
- Preventive IaC guardrails and detective controls should enforce data exposure policy.
Explanation
Correct Answer
C:Vulnerability assessment should be continuous and integrated with immutable image updates. Relevant first evidence: Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. The resulting controlled response is: Enable appropriate continuous scanning and approved image remediation pipelines.
Incorrect Answers
A:Central security logging depends on correct service delivery permissions for every intended account. This instead addresses a different case: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. For the stated situation (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
B:Security findings need aggregation, deduplication and accountable response in multi-account environments. This instead addresses a different case: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. For the stated situation (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
D:Preventive IaC guardrails and detective controls should enforce data exposure policy. This instead addresses a different case: New project buckets frequently become publicly readable because an IaC module omits S3 Block Public Access. For the stated situation (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
Question 431
An engineering review identifies: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. Which shortcut is MOST unsafe for this exact condition?
- Create a firewall policy but leave routes bypassing its endpoints.
- Delete unused-looking keys using only their last application invocation timestamp.
- Assume a source snapshot name containing encrypted makes the target volume encrypted.
- Grant kms:Decrypt and S3 write publicly to resolve one service delivery failure.
Explanation
Correct Answer
B:Delete unused-looking keys using only their last application invocation timestamp. The case is: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. A safer engineering response is: Add key deletion approval and dependency verification safeguards to cleanup automation. The deciding principle is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
Incorrect Answers
A:Create a firewall policy but leave routes bypassing its endpoints. This instead addresses a different case: Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path. For the stated situation (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better unsafe assumption to reject is: Delete unused-looking keys using only their last application invocation timestamp. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
C:Assume a source snapshot name containing encrypted makes the target volume encrypted. This instead addresses a different case: A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption. For the stated situation (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better unsafe assumption to reject is: Delete unused-looking keys using only their last application invocation timestamp. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
D:Grant kms:Decrypt and S3 write publicly to resolve one service delivery failure. This instead addresses a different case: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. For the stated situation (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better unsafe assumption to reject is: Delete unused-looking keys using only their last application invocation timestamp. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
Question 432
The DevOps team must resolve this scenario: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. Which engineering change is MOST appropriate?
- Design safe write ownership or conflict-aware application updates around global tables.
- Spread healthy application targets and sufficient capacity across at least two appropriate AZs.
- Configure applications to use suitable Aurora endpoints and resilient reconnection.
- Choose an appropriate backup/replication design that meets approved loss tolerance.
Explanation
Correct Answer
C:Configure applications to use suitable Aurora endpoints and resilient reconnection. Its validation is: A planned replica or writer failover routes clients to healthy supported instances. The principle is: Client endpoint strategy must match the intended Aurora failover and read routing.
Incorrect Answers
A:Design safe write ownership or conflict-aware application updates around global tables. 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 engineering action is: Configure applications to use suitable Aurora endpoints and resilient reconnection. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
B:Spread healthy application targets and sufficient capacity across at least two appropriate AZs. This instead addresses a different case: A production ALB forwards traffic only to instances in one Availability Zone even though the application requires tolerance of an AZ outage. 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 engineering action is: Configure applications to use suitable Aurora endpoints and resilient reconnection. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
D:Choose an appropriate backup/replication design that meets approved loss tolerance. This instead addresses a different case: A finance team requires five minutes of maximum data loss, but its AWS Backup job runs only once daily. For the stated situation (An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader.), the better engineering action is: Configure applications to use suitable Aurora endpoints and resilient reconnection. The deciding distinction is: Client endpoint strategy must match the intended Aurora failover and read routing.
Question 433
After implementing a proposed fix, the team reviews: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. Which result would BEST confirm that the risk is addressed?
- One image digest deploys successfully in both environments with distinct scoped secrets.
- Newly launched instances match the desired version and terminated nodes leave no configuration gap.
- An unsigned unapproved digest is blocked while an approved signed build proceeds.
- A failed test task set does not receive live production traffic and old tasks remain usable.
Explanation
Correct Answer
A:One image digest deploys successfully in both environments with distinct scoped secrets. The approved action is: Parameterize approved configuration references per environment without rebuilding the binary. The risk principle is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
Incorrect Answers
B:Newly launched instances match the desired version and terminated nodes leave no configuration gap. This instead addresses a different case: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. For the stated situation (A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better verification is: One image digest deploys successfully in both environments with distinct scoped secrets. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
C:An unsigned unapproved digest is blocked while an approved signed build proceeds. 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 containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better verification is: One image digest deploys successfully in both environments with distinct scoped secrets. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
D:A failed test task set does not receive live production traffic and old tasks remain usable. This instead addresses a different case: An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold. For the stated situation (A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account.), the better verification is: One image digest deploys successfully in both environments with distinct scoped secrets. The deciding distinction is: Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
Question 434
An AWS platform team investigates this condition: CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded. Which DevOps principle BEST explains the core problem?
- Predictable demand can be addressed with scheduled or predictive capacity planning.
- Near-real-time log integration requires a correctly configured subscription destination and permissions.
- Guest operating system memory usage generally requires a configured agent or custom metric publisher.
- ALB log delivery must have an authorized S3 destination and valid prefix permissions.
Explanation
Correct Answer
B:Near-real-time log integration requires a correctly configured subscription destination and permissions. Relevant first evidence: Inspect subscription filters, destination ARN, Lambda/Kinesis processing and delivery errors. The resulting controlled response is: Configure a supported CloudWatch Logs subscription to the approved analytics pipeline.
Incorrect Answers
A:Predictable demand can be addressed with scheduled or predictive capacity planning. This instead addresses a different case: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. 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 principle is: Near-real-time log integration requires a correctly configured subscription destination and permissions. The deciding distinction is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
C:Guest operating system memory usage generally requires a configured agent or custom metric publisher. 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 principle is: Near-real-time log integration requires a correctly configured subscription destination and permissions. The deciding distinction is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
D:ALB log delivery must have an authorized S3 destination and valid prefix permissions. 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 (CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded.), the better principle is: Near-real-time log integration requires a correctly configured subscription destination and permissions. The deciding distinction is: Near-real-time log integration requires a correctly configured subscription destination and permissions.
Question 435
The DevOps team must resolve this scenario: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. Which engineering change is MOST appropriate?
- Use ACM or a secure secret/key service appropriate to the termination model.
- Attach a tuned WAF web ACL with suitable rate-based or managed protections.
- Use an EventBridge or suitable centralized CloudTrail event detection and escalation.
- Add key deletion approval and dependency verification safeguards to cleanup automation.
Explanation
Correct Answer
D:Add key deletion approval and dependency verification safeguards to cleanup automation. Its validation is: A key protecting retained backups cannot be scheduled for deletion by routine cleanup. The principle is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
Incorrect Answers
A:Use ACM or a secure secret/key service appropriate to the termination model. This instead addresses a different case: A custom TLS termination service stores its private key in an unencrypted public container image layer. For the stated situation (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better engineering action is: Add key deletion approval and dependency verification safeguards to cleanup automation. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
B:Attach a tuned WAF web ACL with suitable rate-based or managed protections. This instead addresses a different case: A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing. For the stated situation (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better engineering action is: Add key deletion approval and dependency verification safeguards to cleanup automation. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
C:Use an EventBridge or suitable centralized CloudTrail event detection and escalation. This instead addresses a different case: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. For the stated situation (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better engineering action is: Add key deletion approval and dependency verification safeguards to cleanup automation. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
Question 436
An AWS platform team investigates this condition: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. Which DevOps principle BEST explains the core problem?
- Cross-account delivery should assume narrowly scoped roles in each target account.
- End-to-end application acceptance should validate critical customer transactions and dependencies.
- Delivery traceability needs immutable artifact identity linked to source and deployment records.
- Concurrent deployment executions must preserve intended release ordering and state consistency.
Explanation
Correct Answer
A:Cross-account delivery should assume narrowly scoped roles in each target account. Relevant first evidence: Inspect pipeline service role, target role trust policy, STS permissions and artifact access. The resulting controlled response is: Configure a target-account deployment role trusted by the tooling role, with minimum required actions.
Incorrect Answers
B:End-to-end application acceptance should validate critical customer transactions and dependencies. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.), the better principle is: Cross-account delivery should assume narrowly scoped roles in each target account. The deciding distinction is: Cross-account delivery should assume narrowly scoped roles in each target account.
C:Delivery traceability needs immutable artifact identity linked to source and deployment records. This instead addresses a different case: An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service. For the stated situation (A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.), the better principle is: Cross-account delivery should assume narrowly scoped roles in each target account. The deciding distinction is: Cross-account delivery should assume narrowly scoped roles in each target account.
D:Concurrent deployment executions must preserve intended release ordering and state consistency. This instead addresses a different case: Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release. For the stated situation (A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.), the better principle is: Cross-account delivery should assume narrowly scoped roles in each target account. The deciding distinction is: Cross-account delivery should assume narrowly scoped roles in each target account.
Question 437
After implementing a proposed fix, the team reviews: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. Which result would BEST confirm that the risk is addressed?
- A single failing function is identified without incorrectly flagging every Lambda service.
- A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring.
- A controlled slow call is visible in the external dependency segment with measured duration.
- Only vulnerable image digests are flagged and retested after remediation.
Explanation
Correct Answer
B:A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. The approved action is: Use the appropriate metric split and correlated logs to target the failing layer. The risk principle is: Troubleshooting requires separating load balancer and target failure metrics.
Incorrect Answers
A:A single failing function is identified without incorrectly flagging every Lambda service. This instead addresses a different case: A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures. For the stated situation (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better verification is: A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
C:A controlled slow call is visible in the external dependency segment with measured duration. This instead addresses a different case: An application has slow checkout requests only when external credit checks are called, but aggregate ALB metrics cannot locate the dependency. For the stated situation (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better verification is: A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
D:Only vulnerable image digests are flagged and retested after remediation. This instead addresses a different case: Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected. For the stated situation (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better verification is: A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
Question 438
The DevOps team must resolve this scenario: Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path. Which engineering change is MOST appropriate?
- Correct subnet stateless rules or use appropriate security group rules for application access.
- Design approved AWS Network Firewall routing and rules for inspected outbound paths.
- Enable protected collection and query access covering required identity events.
- Grant only the necessary KMS decrypt permissions to the intended application role.
Explanation
Correct Answer
B:Design approved AWS Network Firewall routing and rules for inspected outbound paths. Its validation is: A controlled prohibited destination is blocked and permitted outbound traffic continues. The principle is: Network security depends on actual traffic routing through the chosen enforcement point.
Incorrect Answers
A:Correct subnet stateless rules or use appropriate security group rules for application access. This instead addresses a different case: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. For the stated situation (Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path.), the better engineering action is: Design approved AWS Network Firewall routing and rules for inspected outbound paths. The deciding distinction is: Network security depends on actual traffic routing through the chosen enforcement point.
C:Enable protected collection and query access covering required identity events. This instead addresses a different case: An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible. For the stated situation (Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path.), the better engineering action is: Design approved AWS Network Firewall routing and rules for inspected outbound paths. The deciding distinction is: Network security depends on actual traffic routing through the chosen enforcement point.
D:Grant only the necessary KMS decrypt permissions to the intended application role. This instead addresses a different case: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update. For the stated situation (Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path.), the better engineering action is: Design approved AWS Network Firewall routing and rules for inspected outbound paths. The deciding distinction is: Network security depends on actual traffic routing through the chosen enforcement point.
Question 439
After implementing a proposed fix, the team reviews: An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding. Which result would BEST confirm that the risk is addressed?
- An authorized test role can access permitted buckets, and disallowed actions remain blocked.
- Two test applications deploy consistent network controls from the approved shared version.
- A removed employee loses intended account access without searching for duplicate IAM users.
- A role session can write only target resources and expires without key rotation overhead.
Explanation
Correct Answer
C:A removed employee loses intended account access without searching for duplicate IAM users. The approved action is: Use IAM Identity Center groups and governed permission sets for cross-account staff access. The risk principle is: Workforce access should be federated and provisioned centrally with time-limited account sessions.
Incorrect Answers
A:An authorized test role can access permitted buckets, and disallowed actions remain blocked. This instead addresses a different case: A team attaches an AWS Organizations SCP allowing S3 access and assumes member-account workloads now have permission to list all buckets. For the stated situation (An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding.), the better verification is: A removed employee loses intended account access without searching for duplicate IAM users. The deciding distinction is: Workforce access should be federated and provisioned centrally with time-limited account sessions.
B:Two test applications deploy consistent network controls from the approved shared version. This instead addresses a different case: Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls. For the stated situation (An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding.), the better verification is: A removed employee loses intended account access without searching for duplicate IAM users. The deciding distinction is: Workforce access should be federated and provisioned centrally with time-limited account sessions.
D:A role session can write only target resources and expires without key rotation overhead. This instead addresses a different case: A central deployment role uses a shared user access key to write objects to member-account buckets. For the stated situation (An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding.), the better verification is: A removed employee loses intended account access without searching for duplicate IAM users. The deciding distinction is: Workforce access should be federated and provisioned centrally with time-limited account sessions.
Question 440
After implementing a proposed fix, the team reviews: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. Which result would BEST confirm that the risk is addressed?
- A planned failover produces only acceptable transient errors and service recovers.
- A restore drill measures recovered transaction currency within five minutes.
- A simulated primary origin fault serves approved content from the fallback source.
- The standby Region serves traffic when primary-region services are deliberately unavailable.
Explanation
Correct Answer
A:A planned failover produces only acceptable transient errors and service recovers. The approved action is: Implement bounded retries and use appropriate cluster endpoints around database failover. The risk principle is: Availability requires both managed database failover and application-side transient fault handling.
Incorrect Answers
B:A restore drill measures recovered transaction currency within five minutes. 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 (A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion.), the better verification is: A planned failover produces only acceptable transient errors and service recovers. The deciding distinction is: Availability requires both managed database failover and application-side transient fault handling.
C:A simulated primary origin fault serves approved content from the fallback source. This instead addresses a different case: A global static site uses CloudFront but both primary and fallback origins point to the same unavailable S3 bucket. For the stated situation (A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion.), the better verification is: A planned failover produces only acceptable transient errors and service recovers. The deciding distinction is: Availability requires both managed database failover and application-side transient fault handling.
D: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 (A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion.), the better verification is: A planned failover produces only acceptable transient errors and service recovers. The deciding distinction is: Availability requires both managed database failover and application-side transient fault handling.