Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 47
Question 460
After implementing a proposed fix, the team reviews: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. Which result would BEST confirm that the risk is addressed?
- A test rotation preserves authorized access and invalidates the prior credential on schedule.
- A sample finding appears centrally with originating account and severity.
- A deliberately vulnerable test image is found and corrected through a tracked release.
- A controlled rejected connection is traceable to source and destination metadata.
Explanation
Correct Answer
D:A controlled rejected connection is traceable to source and destination metadata. The approved action is: Enable sufficient flow log scope with protected centralized analysis. The risk principle is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
Incorrect Answers
A:A test rotation preserves authorized access and invalidates the prior credential on schedule. This instead addresses a different case: Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change. For the stated situation (Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet.), the better verification is: A controlled rejected connection is traceable to source and destination metadata. The deciding distinction is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
B:A sample finding appears centrally with originating account and severity. 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 (Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet.), the better verification is: A controlled rejected connection is traceable to source and destination metadata. The deciding distinction is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
C:A deliberately vulnerable test image is found and corrected through a tracked release. 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 (Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet.), the better verification is: A controlled rejected connection is traceable to source and destination metadata. The deciding distinction is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
Question 461
The DevOps team must resolve this scenario: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. Which engineering change is MOST appropriate?
- Attach a tuned WAF web ACL with suitable rate-based or managed protections.
- Correct subnet stateless rules or use appropriate security group rules for application access.
- Fix the infrastructure module and enable appropriate Block Public Access plus monitoring.
- Review actual necessary actions and tighten policy through a monitored rollout.
Explanation
Correct Answer
B:Correct subnet stateless rules or use appropriate security group rules for application access. Its validation is: Permitted connection and return traffic succeed while prohibited access is denied. The principle is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
Incorrect Answers
A: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 (A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked.), the better engineering action is: Correct subnet stateless rules or use appropriate security group rules for application access. The deciding distinction is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
C:Fix the infrastructure module and enable appropriate Block Public Access plus monitoring. 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 service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked.), the better engineering action is: Correct subnet stateless rules or use appropriate security group rules for application access. The deciding distinction is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
D:Review actual necessary actions and tighten policy through a monitored rollout. This instead addresses a different case: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely. For the stated situation (A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked.), the better engineering action is: Correct subnet stateless rules or use appropriate security group rules for application access. The deciding distinction is: NACLs are stateless and require explicit return-path allowances; security groups are stateful.
Question 462
The DevOps team must resolve this scenario: Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code. Which engineering change is MOST appropriate?
- Document service-impacting provider conditions and take bounded regional failover actions.
- Restore required narrowly scoped decrypt and object-read permissions.
- Roll back or correct the transaction pattern and add appropriate contention monitoring.
- Use stable device partition keys where ordering is required, with monitored throughput.
Explanation
Correct Answer
A:Document service-impacting provider conditions and take bounded regional failover actions. Its validation is: A postincident timeline distinguishes provider impairment from deployment regression. The principle is: Root cause analysis should correlate AWS Health events with application, network and deployment telemetry.
Incorrect Answers
B:Restore required narrowly scoped decrypt and object-read permissions. This instead addresses a different case: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change. For the stated situation (Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code.), the better engineering action is: Document service-impacting provider conditions and take bounded regional failover actions. The deciding distinction is: Root cause analysis should correlate AWS Health events with application, network and deployment telemetry.
C: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 (Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code.), the better engineering action is: Document service-impacting provider conditions and take bounded regional failover actions. The deciding distinction is: Root cause analysis should correlate AWS Health events with application, network and deployment telemetry.
D:Use stable device partition keys where ordering is required, with monitored throughput. This instead addresses a different case: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. For the stated situation (Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code.), the better engineering action is: Document service-impacting provider conditions and take bounded regional failover actions. The deciding distinction is: Root cause analysis should correlate AWS Health events with application, network and deployment telemetry.
Question 463
The DevOps team must resolve this scenario: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. Which engineering change is MOST appropriate?
- Configure required cross-Region artifact store and least-privilege deployment action settings.
- Deploy pinned S3 object versions or digests after controlled artifact publication.
- Require trusted image provenance validation before promoting production task revisions.
- Enable appropriate image tag immutability or deploy by digest with controlled image retention.
Explanation
Correct Answer
C:Require trusted image provenance validation before promoting production task revisions. Its validation is: An unsigned unapproved digest is blocked while an approved signed build proceeds. The principle is: Container provenance controls should verify publishers and immutable artifact digests.
Incorrect Answers
A:Configure required cross-Region artifact store and least-privilege deployment action settings. This instead addresses a different case: A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target. For the stated situation (A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags.), the better engineering action is: Require trusted image provenance validation before promoting production task revisions. The deciding distinction is: Container provenance controls should verify publishers and immutable artifact digests.
B:Deploy pinned S3 object versions or digests after controlled artifact publication. This instead addresses a different case: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. For the stated situation (A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags.), the better engineering action is: Require trusted image provenance validation before promoting production task revisions. The deciding distinction is: Container provenance controls should verify publishers and immutable artifact digests.
D:Enable appropriate image tag immutability or deploy by digest with controlled image retention. 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 (A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags.), the better engineering action is: Require trusted image provenance validation before promoting production task revisions. The deciding distinction is: Container provenance controls should verify publishers and immutable artifact digests.
Question 464
After implementing a proposed fix, the team reviews: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. Which result would BEST confirm that the risk is addressed?
- Normal sessions cannot modify critical settings and emergency elevation expires as configured.
- A password-only privileged session cannot perform the protected action.
- A controlled management event from the affected account arrives in the archive.
- An intended object is readable and unauthorized prefixes remain denied.
Explanation
Correct Answer
B:A password-only privileged session cannot perform the protected action. The approved action is: Enforce MFA through suitable identity provider or IAM session conditions. The risk principle is: High-impact human administrative access should require MFA and strong federation controls.
Incorrect Answers
A:Normal sessions cannot modify critical settings and emergency elevation expires as configured. This instead addresses a different case: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. For the stated situation (Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it.), the better verification is: A password-only privileged session cannot perform the protected action. The deciding distinction is: High-impact human administrative access should require MFA and strong federation controls.
C: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 (Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it.), the better verification is: A password-only privileged session cannot perform the protected action. The deciding distinction is: High-impact human administrative access should require MFA and strong federation controls.
D:An intended object is readable and unauthorized prefixes remain denied. 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 (Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it.), the better verification is: A password-only privileged session cannot perform the protected action. The deciding distinction is: High-impact human administrative access should require MFA and strong federation controls.
Question 465
An AWS platform team investigates this condition: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. Which DevOps principle BEST explains the core problem?
- Temporary security changes need scoped automatic detection and accountable restoration.
- Pipeline stage errors must be traced to the actual denied action and role boundary.
- Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
- Containment automation must use precise resource identity, scope and rollback safeguards.
Explanation
Correct Answer
D:Containment automation must use precise resource identity, scope and rollback safeguards. Relevant first evidence: Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. The resulting controlled response is: Quarantine only the confirmed instance through reviewed network or isolation controls.
Incorrect Answers
A:Temporary security changes need scoped automatic detection and accountable restoration. 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 incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag.), the better principle is: Containment automation must use precise resource identity, scope and rollback safeguards. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
B:Pipeline stage errors must be traced to the actual denied action and role boundary. This instead addresses a different case: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change. 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 principle is: Containment automation must use precise resource identity, scope and rollback safeguards. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
C:Resource adjustment should respond to measured demand with bounded Auto Scaling behavior. 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 principle is: Containment automation must use precise resource identity, scope and rollback safeguards. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
Question 466
The DevOps team must resolve this scenario: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. Which engineering change is MOST appropriate?
- Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.
- Throttle rollout and implement suitable connection management such as RDS Proxy where appropriate.
- Align target-group checks with a reliable application readiness endpoint and reachable port.
- Build a versioned immutable artifact once, then promote that artifact through approvals and environments.
Explanation
Correct Answer
A:Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment. Its validation is: Newly launched instances match the desired version and terminated nodes leave no configuration gap. The principle is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
Incorrect Answers
B:Throttle rollout and implement suitable connection management such as RDS Proxy where appropriate. This instead addresses a different case: A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder. For the stated situation (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better engineering action is: Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
C:Align target-group checks with a reliable application readiness endpoint and reachable port. 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 (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better engineering action is: Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
D:Build a versioned immutable artifact once, then promote that artifact through approvals and environments. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.), the better engineering action is: Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment. The deciding distinction is: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.
Question 467
A DevOps team is reviewing: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. Which TWO complementary actions should it take? Select TWO answers.
- Inspect automated backup settings, log retention, restore window and business RPO.
- Choose an appropriate backup/replication design that meets approved loss tolerance.
- Enable supported point-in-time recovery and rehearse restoration of an isolated database.
- Pre-provision foundational networking and validate recoverable capacity expansion.
- Distribute partition keys appropriately and scale stream capacity based on measured demand.
Explanation
Correct Answers
A:Inspect automated backup settings, log retention, restore window and business RPO. This is a required diagnostic evidence step for the stated situation: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. The complementary correct action is: Enable supported point-in-time recovery and rehearse restoration of an isolated database. Both follow the principle: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
C:Enable supported point-in-time recovery and rehearse restoration of an isolated database. This is a required controlled engineering action for the stated situation: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. The complementary correct action is: Inspect automated backup settings, log retention, restore window and business RPO. Both follow the principle: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
Incorrect Answers
B:Choose an appropriate backup/replication design that meets approved loss tolerance. This is suitable for another situation: A finance team requires five minutes of maximum data loss, but its AWS Backup job runs only once daily. In this case, engineers instead need the paired investigation (Inspect automated backup settings, log retention, restore window and business RPO.) and design change (Enable supported point-in-time recovery and rehearse restoration of an isolated database.). These two steps address: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.
D:Pre-provision foundational networking and validate recoverable capacity expansion. This is suitable for another 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. In this case, engineers instead need the paired investigation (Inspect automated backup settings, log retention, restore window and business RPO.) and design change (Enable supported point-in-time recovery and rehearse restoration of an isolated database.). These two steps address: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.
E:Distribute partition keys appropriately and scale stream capacity based on measured demand. This is suitable for another situation: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. In this case, engineers instead need the paired investigation (Inspect automated backup settings, log retention, restore window and business RPO.) and design change (Enable supported point-in-time recovery and rehearse restoration of an isolated database.). These two steps address: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.
Question 468
Before changing production, engineers find: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. Which investigation should the engineer perform FIRST?
- Inspect trail or CloudTrail Lake event data store scope, retention and access.
- Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.
- Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin.
- Inspect account default EBS encryption, snapshot copy settings and KMS keys.
Explanation
Correct Answer
B:Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. The governing principle is: Vulnerability assessment should be continuous and integrated with immutable image updates. The next controlled engineering decision is: Enable appropriate continuous scanning and approved image remediation pipelines.
Incorrect Answers
A:Inspect trail or CloudTrail Lake event data store scope, retention and access. 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 investigation is: Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
C:Inspect detector enablement, Security Hub integration, EventBridge rules and delegated admin. 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 investigation is: Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
D:Inspect account default EBS encryption, snapshot copy settings and KMS keys. 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 (A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.), the better investigation is: Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. The deciding distinction is: Vulnerability assessment should be continuous and integrated with immutable image updates.
Question 469
An AWS platform team investigates this condition: A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event. Which DevOps principle BEST explains the core problem?
- Stream throughput depends on partition distribution as well as shard capacity.
- Serverless scaling must respect downstream rate limits and concurrency budgets.
- Scaling policies must account for instance startup and warmup behavior.
- Availability requires both managed database failover and application-side transient fault handling.
Explanation
Correct Answer
B:Serverless scaling must respect downstream rate limits and concurrency budgets. Relevant first evidence: Inspect Lambda concurrent executions, throttles, payment API quotas and latency. The resulting controlled response is: Use reserved concurrency or queue buffering and controlled backpressure.
Incorrect Answers
A:Stream throughput depends on partition distribution as well as shard capacity. This instead addresses a different case: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. For the stated situation (A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event.), the better principle is: Serverless scaling must respect downstream rate limits and concurrency budgets. The deciding distinction is: Serverless scaling must respect downstream rate limits and concurrency budgets.
C:Scaling policies must account for instance startup and warmup behavior. This instead addresses a different case: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. For the stated situation (A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event.), the better principle is: Serverless scaling must respect downstream rate limits and concurrency budgets. The deciding distinction is: Serverless scaling must respect downstream rate limits and concurrency budgets.
D:Availability requires both managed database failover and application-side transient fault handling. This instead addresses a different case: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. For the stated situation (A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event.), the better principle is: Serverless scaling must respect downstream rate limits and concurrency budgets. The deciding distinction is: Serverless scaling must respect downstream rate limits and concurrency budgets.
Question 470
An AWS platform team investigates this condition: A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess. Which DevOps principle BEST explains the core problem?
- Cross-account resource access requires compatible identity permissions and resource-side authorization.
- Audit evidence should be isolated from operators who perform high-risk changes.
- Delegated role creation should be constrained by a permission boundary and governing policies.
- Central federation can simplify attribution, temporary sessions and staff deprovisioning.
Explanation
Correct Answer
C:Delegated role creation should be constrained by a permission boundary and governing policies. Relevant first evidence: Inspect role-creation permissions, boundary attachment requirements and privilege escalation paths. The resulting controlled response is: Require approved permissions boundaries for created roles and deny removal or bypass.
Incorrect Answers
A:Cross-account resource access requires compatible identity permissions and resource-side authorization. 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 (A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess.), the better principle is: Delegated role creation should be constrained by a permission boundary and governing policies. The deciding distinction is: Delegated role creation should be constrained by a permission boundary and governing policies.
B:Audit evidence should be isolated from operators who perform high-risk changes. This instead addresses a different case: An administrator can modify production resources and delete the only CloudTrail delivery bucket objects using the same role. For the stated situation (A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess.), the better principle is: Delegated role creation should be constrained by a permission boundary and governing policies. The deciding distinction is: Delegated role creation should be constrained by a permission boundary and governing policies.
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 platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess.), the better principle is: Delegated role creation should be constrained by a permission boundary and governing policies. The deciding distinction is: Delegated role creation should be constrained by a permission boundary and governing policies.