Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 2
Question 10
An engineering review identifies: An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale. Which shortcut is MOST unsafe for this exact condition?
- Treat bucket names alone as proof that all contained records are non-sensitive.
- Put the long-lived access key in user data and assume it is hidden.
- Disable KMS encryption on the entire bucket to make objects accessible.
- Assume normal S3 versioning blocks permanent deletion of every historical version.
Explanation
Correct Answer
A:Treat bucket names alone as proof that all contained records are non-sensitive. The case is: An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale. A safer engineering response is: Enable suitable Macie discovery with centralized review of detected sensitive data. The deciding principle is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
Incorrect Answers
B:Put the long-lived access key in user data and assume it is hidden. This instead addresses a different case: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. For the stated situation (An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale.), the better unsafe assumption to reject is: Treat bucket names alone as proof that all contained records are non-sensitive. The deciding distinction is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
C:Disable KMS encryption on the entire bucket to make objects accessible. 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 (An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale.), the better unsafe assumption to reject is: Treat bucket names alone as proof that all contained records are non-sensitive. The deciding distinction is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
D:Assume normal S3 versioning blocks permanent deletion of every historical version. This instead addresses a different case: An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject. For the stated situation (An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale.), the better unsafe assumption to reject is: Treat bucket names alone as proof that all contained records are non-sensitive. The deciding distinction is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
Question 11
After implementing a proposed fix, the team reviews: A pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs. Which result would BEST confirm that the risk is addressed?
- A pilot-light drill scales enough instances with free addresses and meets RTO.
- Traffic replay scales tasks before latency exceeds agreed business thresholds.
- A restore drill measures recovered transaction currency within five minutes.
- A drill restores an entire order and payment flow without missing or duplicated settlement.
Explanation
Correct Answer
A:A pilot-light drill scales enough instances with free addresses and meets RTO. The approved action is: Pre-provision foundational networking and validate recoverable capacity expansion. The risk principle is: Pilot-light recovery must pre-plan network, service quota and scale-up capacity.
Incorrect Answers
B: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 (A pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs.), the better verification is: A pilot-light drill scales enough instances with free addresses and meets RTO. The deciding distinction is: Pilot-light recovery must pre-plan network, service quota and scale-up capacity.
C: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 pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs.), the better verification is: A pilot-light drill scales enough instances with free addresses and meets RTO. The deciding distinction is: Pilot-light recovery must pre-plan network, service quota and scale-up capacity.
D:A drill restores an entire order and payment flow without missing or duplicated settlement. This instead addresses a different case: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. For the stated situation (A pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs.), the better verification is: A pilot-light drill scales enough instances with free addresses and meets RTO. The deciding distinction is: Pilot-light recovery must pre-plan network, service quota and scale-up capacity.
Question 12
After implementing a proposed fix, the team reviews: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. Which result would BEST confirm that the risk is addressed?
- Benchmarking shows lower database load without exposing stale or cross-user data.
- Geographically representative tests meet target latency without violating data rules.
- A controlled burst reaches stable capacity without continuous oscillating launches.
- A primary fault causes DNS answers to move to a healthy secondary target within expectations.
Explanation
Correct Answer
C:A controlled burst reaches stable capacity without continuous oscillating launches. The approved action is: Configure suitable warmup and scaling policies so boot activity is not misread as demand. The risk principle is: Scaling policies must account for instance startup and warmup behavior.
Incorrect Answers
A:Benchmarking shows lower database load without exposing stale or cross-user data. This instead addresses a different case: An authenticated read-heavy API repeatedly queries a database for identical catalog metadata, exhausting database read capacity. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better verification is: A controlled burst reaches stable capacity without continuous oscillating launches. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
B:Geographically representative tests meet target latency without violating data rules. This instead addresses a different case: A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better verification is: A controlled burst reaches stable capacity without continuous oscillating launches. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
D:A primary fault causes DNS answers to move to a healthy secondary target within expectations. This instead addresses a different case: A secondary-region service is healthy but Route 53 sends users to a failed primary endpoint because its failover record has no meaningful health check. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better verification is: A controlled burst reaches stable capacity without continuous oscillating launches. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
Question 13
After implementing a proposed fix, the team reviews: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. Which result would BEST confirm that the risk is addressed?
- A failover exercise restores service without a secondary overload cascade.
- A pilot-light drill scales enough instances with free addresses and meets RTO.
- A long-running task avoids unintended simultaneous processing and duplicates are safe.
- An authorized drill flips traffic while an unapproved identity remains denied.
Explanation
Correct Answer
D:An authorized drill flips traffic while an unapproved identity remains denied. The approved action is: Define least-privilege emergency DNS roles and practice failover under expected conditions. The risk principle is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
Incorrect Answers
A:A failover exercise restores service without a secondary overload cascade. This instead addresses a different case: During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes. For the stated situation (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better verification is: An authorized drill flips traffic while an unapproved identity remains denied. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
B:A pilot-light drill scales enough instances with free addresses and meets RTO. This instead addresses a different case: A pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs. For the stated situation (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better verification is: An authorized drill flips traffic while an unapproved identity remains denied. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
C:A long-running task avoids unintended simultaneous processing and duplicates are safe. 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 (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better verification is: An authorized drill flips traffic while an unapproved identity remains denied. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
Question 14
After implementing a proposed fix, the team reviews: Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure. Which result would BEST confirm that the risk is addressed?
- A role session can write only target resources and expires without key rotation overhead.
- An unauthorized delete request fails and recovery data remains protected.
- A member-account test finding appears at the approved central monitoring account.
- An authorized test role can access permitted buckets, and disallowed actions remain blocked.
Explanation
Correct Answer
C:A member-account test finding appears at the approved central monitoring account. The approved action is: Configure central Security Hub administration and cross-Region aggregation as appropriate. The risk principle is: Multi-account security governance needs centralized delegated administration and aggregated visibility.
Incorrect Answers
A: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 (Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure.), the better verification is: A member-account test finding appears at the approved central monitoring account. The deciding distinction is: Multi-account security governance needs centralized delegated administration and aggregated visibility.
B:An unauthorized delete request fails and recovery data remains protected. This instead addresses a different case: A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline. For the stated situation (Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure.), the better verification is: A member-account test finding appears at the approved central monitoring account. The deciding distinction is: Multi-account security governance needs centralized delegated administration and aggregated visibility.
D: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 (Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure.), the better verification is: A member-account test finding appears at the approved central monitoring account. The deciding distinction is: Multi-account security governance needs centralized delegated administration and aggregated visibility.
Question 15
The DevOps team must resolve this scenario: A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired. Which engineering change is MOST appropriate?
- Implement a durable idempotency key and conditional write or transaction guard.
- Correct the permission or invalid change and use the supported stack recovery or update workflow.
- Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy.
- Enable inventory collection and central reporting for in-scope managed nodes.
Explanation
Correct Answer
C:Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy. Its validation is: A scheduled invocation occurs after the old server is terminated and failures are detectable. The principle is: Scheduled cloud jobs should use managed scheduling with monitoring and defined retry handling.
Incorrect Answers
A:Implement a durable idempotency key and conditional write or transaction guard. This instead addresses a different case: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. For the stated situation (A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired.), the better engineering action is: Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy. The deciding distinction is: Scheduled cloud jobs should use managed scheduling with monitoring and defined retry handling.
B:Correct the permission or invalid change and use the supported stack recovery or update workflow. This instead addresses a different case: An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover. For the stated situation (A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired.), the better engineering action is: Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy. The deciding distinction is: Scheduled cloud jobs should use managed scheduling with monitoring and defined retry handling.
D:Enable inventory collection and central reporting for in-scope managed nodes. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired.), the better engineering action is: Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy. The deciding distinction is: Scheduled cloud jobs should use managed scheduling with monitoring and defined retry handling.
Question 16
The DevOps team must resolve this scenario: An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database. Which engineering change is MOST appropriate?
- Correct the execution role or ECR/network access while preserving intended image provenance.
- Use a controlled approved remediation action or rollback of the unauthorized rule.
- Correct the measured network or query bottleneck and choose an appropriate timeout.
- Roll back or correct the transaction pattern and add appropriate contention monitoring.
Explanation
Correct Answer
C:Correct the measured network or query bottleneck and choose an appropriate timeout. Its validation is: A representative end-to-end request completes within API and business latency budgets. The principle is: Timeout diagnosis should separate function execution, network reachability and downstream latency.
Incorrect Answers
A:Correct the execution role or ECR/network access while preserving intended image provenance. This instead addresses a different case: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. For the stated situation (An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database.), the better engineering action is: Correct the measured network or query bottleneck and choose an appropriate timeout. The deciding distinction is: Timeout diagnosis should separate function execution, network reachability and downstream latency.
B:Use a controlled approved remediation action or rollback of the unauthorized rule. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. For the stated situation (An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database.), the better engineering action is: Correct the measured network or query bottleneck and choose an appropriate timeout. The deciding distinction is: Timeout diagnosis should separate function execution, network reachability and downstream latency.
D:Roll back or correct the transaction pattern and add appropriate contention monitoring. 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 engineering action is: Correct the measured network or query bottleneck and choose an appropriate timeout. The deciding distinction is: Timeout diagnosis should separate function execution, network reachability and downstream latency.
Question 17
An engineering review identifies: Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy. Which shortcut is MOST unsafe for this exact condition?
- Patch only a single running instance and assume all future Auto Scaling launches inherit it.
- Disable all target group health checks to stop the replacement loop.
- Grant all developers public read access because artifacts are temporary.
- Use a mutable latest tag as the only saved release identifier.
Explanation
Correct Answer
C:Grant all developers public read access because artifacts are temporary. The case is: Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy. A safer engineering response is: Enforce least-privilege S3 access and approved server-side encryption on release artifacts. The deciding principle is: Artifact storage needs controlled access, encryption and traceable retention.
Incorrect Answers
A:Patch only a single running instance and assume all future Auto Scaling launches inherit it. This instead addresses a different case: Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels. For the stated situation (Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy.), the better unsafe assumption to reject is: Grant all developers public read access because artifacts are temporary. The deciding distinction is: Artifact storage needs controlled access, encryption and traceable retention.
B:Disable all target group health checks to stop the replacement loop. This instead addresses a different case: An ECS task starts successfully but is continually removed from service because its target group health check targets a nonexistent path. For the stated situation (Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy.), the better unsafe assumption to reject is: Grant all developers public read access because artifacts are temporary. The deciding distinction is: Artifact storage needs controlled access, encryption and traceable retention.
D:Use a mutable latest tag as the only saved release identifier. This instead addresses a different case: A container image tag is overwritten weekly, so audit teams cannot reproduce the exact build used for an earlier release. For the stated situation (Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy.), the better unsafe assumption to reject is: Grant all developers public read access because artifacts are temporary. The deciding distinction is: Artifact storage needs controlled access, encryption and traceable retention.
Question 18
An AWS platform team investigates this condition: A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account. Which DevOps principle BEST explains the core problem?
- Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
- Cross-account resource access requires compatible identity permissions and resource-side authorization.
- Vulnerability assessment should be continuous and integrated with immutable image updates.
- Central federation can simplify attribution, temporary sessions and staff deprovisioning.
Explanation
Correct Answer
B:Cross-account resource access requires compatible identity permissions and resource-side authorization. Relevant first evidence: Review principal ARN, IAM allow, bucket policy, KMS policy and any explicit deny. The resulting controlled response is: Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes.
Incorrect Answers
A:Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy. This instead addresses a different case: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. For the stated situation (A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account.), the better principle is: Cross-account resource access requires compatible identity permissions and resource-side authorization. The deciding distinction is: Cross-account resource access requires compatible identity permissions and resource-side authorization.
C: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 Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account.), the better principle is: Cross-account resource access requires compatible identity permissions and resource-side authorization. The deciding distinction is: Cross-account resource access requires compatible identity permissions and resource-side authorization.
D:Central federation can simplify attribution, temporary sessions and staff deprovisioning. This instead addresses a different case: Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination. For the stated situation (A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account.), the better principle is: Cross-account resource access requires compatible identity permissions and resource-side authorization. The deciding distinction is: Cross-account resource access requires compatible identity permissions and resource-side authorization.
Question 19
After implementing a proposed fix, the team reviews: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. Which result would BEST confirm that the risk is addressed?
- A controlled management event from the affected account arrives in the archive.
- A known historical AssumeRole event can be retrieved with caller and time.
- A deliberate test exposure creates a finding and a reviewed correction removes it.
- A deliberately vulnerable test image is found and corrected through a tracked release.
Explanation
Correct Answer
D:A deliberately vulnerable test image is found and corrected through a tracked release. The approved action is: Enable appropriate continuous scanning and approved image remediation pipelines. The risk principle is: Vulnerability assessment should be continuous and integrated with immutable image updates.
Incorrect Answers
A:A controlled management event from the affected account arrives in the archive. 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 verification is: A deliberately vulnerable test image is found and corrected through a tracked release. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
B:A known historical AssumeRole event can be retrieved with caller and time. 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 (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better verification is: A deliberately vulnerable test image is found and corrected through a tracked release. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
C:A deliberate test exposure creates a finding and a reviewed correction removes it. This instead addresses a different case: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. 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 verification is: A deliberately vulnerable test image is found and corrected through a tracked release. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
Question 20
The DevOps team must resolve this scenario: An application emits useful latency values inside structured logs but operators need searchable and alarmable measurements without building a bespoke database. Which engineering change is MOST appropriate?
- Instrument valid Embedded Metric Format or approved custom metric publication.
- Enable appropriately scoped VPC Flow Logs to a secure central destination.
- Forward container logs with cluster, namespace, pod and deployment identifiers.
- Configure a supported CloudWatch Logs subscription to the approved analytics pipeline.
Explanation
Correct Answer
A:Instrument valid Embedded Metric Format or approved custom metric publication. Its validation is: A test trace produces a valid metric time series linked to the correct service dimensions. The principle is: Application telemetry can publish CloudWatch metrics through structured embedded metric or explicit custom metric patterns.
Incorrect Answers
B:Enable appropriately scoped VPC Flow Logs to a secure central destination. 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 (An application emits useful latency values inside structured logs but operators need searchable and alarmable measurements without building a bespoke database.), the better engineering action is: Instrument valid Embedded Metric Format or approved custom metric publication. The deciding distinction is: Application telemetry can publish CloudWatch metrics through structured embedded metric or explicit custom metric patterns.
C:Forward container logs with cluster, namespace, pod and deployment identifiers. This instead addresses a different case: EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them. For the stated situation (An application emits useful latency values inside structured logs but operators need searchable and alarmable measurements without building a bespoke database.), the better engineering action is: Instrument valid Embedded Metric Format or approved custom metric publication. The deciding distinction is: Application telemetry can publish CloudWatch metrics through structured embedded metric or explicit custom metric patterns.
D:Configure a supported CloudWatch Logs subscription to the approved analytics pipeline. This instead addresses a different case: CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded. For the stated situation (An application emits useful latency values inside structured logs but operators need searchable and alarmable measurements without building a bespoke database.), the better engineering action is: Instrument valid Embedded Metric Format or approved custom metric publication. The deciding distinction is: Application telemetry can publish CloudWatch metrics through structured embedded metric or explicit custom metric patterns.