Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 79
Question 780
A DevOps team is reviewing: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. Which TWO complementary actions should it take? Select TWO answers.
- Apply suitable S3 Object Lock and isolated permissions for protected recovery copies.
- Configure appropriate CloudFront origin failover using a viable secondary origin.
- Inspect role trust and permissions, routing policy and operational incident access.
- Define least-privilege emergency DNS roles and practice failover under expected conditions.
- Create an application-aware recovery sequence with replay safety and reconciled checkpoints.
Explanation
Correct Answers
C:Inspect role trust and permissions, routing policy and operational incident access. This is a required diagnostic evidence step 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 complementary correct action is: Define least-privilege emergency DNS roles and practice failover under expected conditions. Both follow the principle: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
D:Define least-privilege emergency DNS roles and practice failover under expected conditions. This is a required controlled engineering action 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 complementary correct action is: Inspect role trust and permissions, routing policy and operational incident access. Both follow the principle: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
Incorrect Answers
A:Apply suitable S3 Object Lock and isolated permissions for protected recovery copies. This is suitable for another situation: A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident. In this case, engineers instead need the paired investigation (Inspect role trust and permissions, routing policy and operational incident access.) and design change (Define least-privilege emergency DNS roles and practice failover under expected conditions.). These two steps address: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.
B:Configure appropriate CloudFront origin failover using a viable secondary origin. This is suitable for another situation: A global static site uses CloudFront but both primary and fallback origins point to the same unavailable S3 bucket. In this case, engineers instead need the paired investigation (Inspect role trust and permissions, routing policy and operational incident access.) and design change (Define least-privilege emergency DNS roles and practice failover under expected conditions.). These two steps address: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.
E:Create an application-aware recovery sequence with replay safety and reconciled checkpoints. This is suitable for another situation: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. In this case, engineers instead need the paired investigation (Inspect role trust and permissions, routing policy and operational incident access.) and design change (Define least-privilege emergency DNS roles and practice failover under expected conditions.). These two steps address: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.
Question 781
After implementing a proposed fix, the team reviews: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. Which result would BEST confirm that the risk is addressed?
- The production role reads only its approved parameter and denies staging reads.
- A prohibited-Region deployment fails while allowed Regions and mandatory global services work.
- New test account resources are assessed and noncompliant configurations reported.
- A new test account inherits required organizational units and account baselines.
Explanation
Correct Answer
B:A prohibited-Region deployment fails while allowed Regions and mandatory global services work. The approved action is: Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope. The risk principle is: Organization controls should constrain sensitive service actions to approved Regions where practical.
Incorrect Answers
A:The production role reads only its approved parameter and denies staging reads. This instead addresses a different case: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. For the stated situation (A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.), the better verification is: A prohibited-Region deployment fails while allowed Regions and mandatory global services work. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
C:New test account resources are assessed and noncompliant configurations reported. This instead addresses a different case: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. For the stated situation (A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.), the better verification is: A prohibited-Region deployment fails while allowed Regions and mandatory global services work. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
D:A new test account inherits required organizational units and account baselines. This instead addresses a different case: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. For the stated situation (A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.), the better verification is: A prohibited-Region deployment fails while allowed Regions and mandatory global services work. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
Question 782
An AWS platform team investigates this condition: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. Which DevOps principle BEST explains the core problem?
- Troubleshooting requires separating load balancer and target failure metrics.
- Long-term audit queries can use protected S3 log data with suitable analytics tables.
- Trace spans can isolate latency contributions across distributed calls.
- Operational events need managed cross-account routing and accountable notification paths.
Explanation
Correct Answer
A:Troubleshooting requires separating load balancer and target failure metrics. Relevant first evidence: Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs. The resulting controlled response is: Use the appropriate metric split and correlated logs to target the failing layer.
Incorrect Answers
B:Long-term audit queries can use protected S3 log data with suitable analytics tables. This instead addresses a different case: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. 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 principle is: Troubleshooting requires separating load balancer and target failure metrics. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
C:Trace spans can isolate latency contributions across distributed calls. 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 principle is: Troubleshooting requires separating load balancer and target failure metrics. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
D:Operational events need managed cross-account routing and accountable notification paths. This instead addresses a different case: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. 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 principle is: Troubleshooting requires separating load balancer and target failure metrics. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
Question 783
Before changing production, engineers find: A build job reads a database password directly from a committed buildspec environment variable. Which investigation should the engineer perform FIRST?
- Inspect image scan reports, vulnerability severity policy and promotion configuration.
- Review source history, build environment variables, secret access logs and build role permissions.
- Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions.
- Trace pipeline stages, approval authorization, test outputs and required change windows.
Explanation
Correct Answer
B:Review source history, build environment variables, secret access logs and build role permissions. The governing principle is: Build and deployment secrets should be retrieved through controlled secret stores and scoped identities. The next controlled engineering decision is: Move the credential to Secrets Manager or encrypted Parameter Store and grant narrowly scoped read permissions.
Incorrect Answers
A:Inspect image scan reports, vulnerability severity policy and promotion configuration. This instead addresses a different case: A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated. For the stated situation (A build job reads a database password directly from a committed buildspec environment variable.), the better investigation is: Review source history, build environment variables, secret access logs and build role permissions. The deciding distinction is: Build and deployment secrets should be retrieved through controlled secret stores and scoped identities.
C:Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. 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 build job reads a database password directly from a committed buildspec environment variable.), the better investigation is: Review source history, build environment variables, secret access logs and build role permissions. The deciding distinction is: Build and deployment secrets should be retrieved through controlled secret stores and scoped identities.
D:Trace pipeline stages, approval authorization, test outputs and required change windows. This instead addresses a different case: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. For the stated situation (A build job reads a database password directly from a committed buildspec environment variable.), the better investigation is: Review source history, build environment variables, secret access logs and build role permissions. The deciding distinction is: Build and deployment secrets should be retrieved through controlled secret stores and scoped identities.
Question 784
After implementing a proposed fix, the team reviews: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. Which result would BEST confirm that the risk is addressed?
- A deliberately changed role triggers a finding and is restored or risk accepted.
- A sample finding appears centrally with originating account and severity.
- The application uploads to approved buckets without any permanent key on disk.
- Application functions pass and unused high-risk privileges are no longer granted.
Explanation
Correct Answer
B:A sample finding appears centrally with originating account and severity. The approved action is: Configure centralized Security Hub findings ingestion and approved incident routing. The risk principle is: Security findings need aggregation, deduplication and accountable response in multi-account environments.
Incorrect Answers
A:A deliberately changed role triggers a finding and is restored or risk accepted. This instead addresses a different case: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. For the stated situation (A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow.), the better verification is: A sample finding appears centrally with originating account and severity. The deciding distinction is: Security findings need aggregation, deduplication and accountable response in multi-account environments.
C:The application uploads to approved buckets without any permanent key on disk. This instead addresses a different case: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. For the stated situation (A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow.), the better verification is: A sample finding appears centrally with originating account and severity. The deciding distinction is: Security findings need aggregation, deduplication and accountable response in multi-account environments.
D:Application functions pass and unused high-risk privileges are no longer granted. 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 suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow.), the better verification is: A sample finding appears centrally with originating account and severity. The deciding distinction is: Security findings need aggregation, deduplication and accountable response in multi-account environments.
Question 785
The DevOps team must resolve this scenario: EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them. Which engineering change is MOST appropriate?
- Forward container logs with cluster, namespace, pod and deployment identifiers.
- Configure CloudWatch anomaly detection with evaluated bounds and meaningful context.
- Create a managed synthetic login journey with secure test identity and operational alarm.
- Track affected images and update or replace those artifacts through governed pipelines.
Explanation
Correct Answer
A:Forward container logs with cluster, namespace, pod and deployment identifiers. Its validation is: A terminated pod's error records remain searchable with its release identity. The principle is: Ephemeral workloads need centralized logs and stable metadata for post-failure analysis.
Incorrect Answers
B:Configure CloudWatch anomaly detection with evaluated bounds and meaningful context. This instead addresses a different case: A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected. For the stated situation (EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them.), the better engineering action is: Forward container logs with cluster, namespace, pod and deployment identifiers. The deciding distinction is: Ephemeral workloads need centralized logs and stable metadata for post-failure analysis.
C:Create a managed synthetic login journey with secure test identity and operational alarm. This instead addresses a different case: An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users. For the stated situation (EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them.), the better engineering action is: Forward container logs with cluster, namespace, pod and deployment identifiers. The deciding distinction is: Ephemeral workloads need centralized logs and stable metadata for post-failure analysis.
D:Track affected images and update or replace those artifacts through governed pipelines. 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 (EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them.), the better engineering action is: Forward container logs with cluster, namespace, pod and deployment identifiers. The deciding distinction is: Ephemeral workloads need centralized logs and stable metadata for post-failure analysis.
Question 786
The DevOps team must resolve this scenario: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. Which engineering change is MOST appropriate?
- Create a Systems Manager State Manager association installing and checking the required agent.
- Configure central Security Hub administration and cross-Region aggregation as appropriate.
- Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails.
- Deploy an organization-wide CloudTrail trail with protected centralized delivery.
Explanation
Correct Answer
C:Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. Its validation is: Test dev and production principals receive distinct expected effective controls. The principle is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.
Incorrect Answers
A:Create a Systems Manager State Manager association installing and checking the required agent. This instead addresses a different case: A managed EC2 fleet often loses an approved monitoring agent after instance replacement. For the stated situation (Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.), the better engineering action is: Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. The deciding distinction is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.
B:Configure central Security Hub administration and cross-Region aggregation as appropriate. This instead addresses a different case: Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure. For the stated situation (Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.), the better engineering action is: Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. The deciding distinction is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.
D:Deploy an organization-wide CloudTrail trail with protected centralized delivery. This instead addresses a different case: A newly onboarded account does not forward CloudTrail management activity to the security archive account. For the stated situation (Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments.), the better engineering action is: Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. The deciding distinction is: OU hierarchy and controls should reflect different business risk profiles without losing required common protections.
Question 787
Before changing production, engineers find: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. Which investigation should the engineer perform FIRST?
- Inspect provisioning workflow, organization rules, configuration recorders and baselines.
- Review source and destination OUs, StackSets auto-deployment and SCP effective controls.
- Run drift detection and compare effective security group properties with template state.
- Inspect IAM Identity Center assignments, identity source, permission sets and deprovisioning.
Explanation
Correct Answer
B:Review source and destination OUs, StackSets auto-deployment and SCP effective controls. The governing principle is: Account movement can change inherited guardrails and service-managed StackSets targets. The next controlled engineering decision is: Plan OU migrations with explicit baseline deployment and removal behavior tests.
Incorrect Answers
A:Inspect provisioning workflow, organization rules, configuration recorders and baselines. This instead addresses a different case: AWS Organizations account vending creates accounts without Config rules checking EBS encryption and S3 protection. For the stated situation (A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review.), the better investigation is: Review source and destination OUs, StackSets auto-deployment and SCP effective controls. The deciding distinction is: Account movement can change inherited guardrails and service-managed StackSets targets.
C:Run drift detection and compare effective security group properties with template state. This instead addresses a different case: A CloudFormation-managed security group was changed directly in the console, and the next stack update behaves differently from the approved template. For the stated situation (A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review.), the better investigation is: Review source and destination OUs, StackSets auto-deployment and SCP effective controls. The deciding distinction is: Account movement can change inherited guardrails and service-managed StackSets targets.
D:Inspect IAM Identity Center assignments, identity source, permission sets and deprovisioning. This instead addresses a different case: An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding. For the stated situation (A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review.), the better investigation is: Review source and destination OUs, StackSets auto-deployment and SCP effective controls. The deciding distinction is: Account movement can change inherited guardrails and service-managed StackSets targets.
Question 788
A DevOps team is reviewing: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. Which TWO complementary actions should it take? Select TWO answers.
- Enable appropriate continuous scanning and approved image remediation pipelines.
- Inspect inherited SCPs, IAM identity policy and the denied API condition.
- Constrain trusted partner principals and apply a suitable external ID where warranted.
- Inspect role assignments, session duration, emergency change tickets and CloudTrail attribution.
- Review trust policy principal, external ID use, STS records and least-privilege permissions.
Explanation
Correct Answers
C:Constrain trusted partner principals and apply a suitable external ID where warranted. This is a required controlled engineering action for the stated situation: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. The complementary correct action is: Review trust policy principal, external ID use, STS records and least-privilege permissions. Both follow the principle: Cross-account trust should restrict principal, role and relevant external context.
E:Review trust policy principal, external ID use, STS records and least-privilege permissions. This is a required diagnostic evidence step for the stated situation: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. The complementary correct action is: Constrain trusted partner principals and apply a suitable external ID where warranted. Both follow the principle: Cross-account trust should restrict principal, role and relevant external context.
Incorrect Answers
A:Enable appropriate continuous scanning and approved image remediation pipelines. This is suitable for another situation: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. In this case, engineers instead need the paired investigation (Review trust policy principal, external ID use, STS records and least-privilege permissions.) and design change (Constrain trusted partner principals and apply a suitable external ID where warranted.). These two steps address: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account.
B:Inspect inherited SCPs, IAM identity policy and the denied API condition. This is suitable for another situation: A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny. In this case, engineers instead need the paired investigation (Review trust policy principal, external ID use, STS records and least-privilege permissions.) and design change (Constrain trusted partner principals and apply a suitable external ID where warranted.). These two steps address: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account.
D:Inspect role assignments, session duration, emergency change tickets and CloudTrail attribution. This is suitable for another situation: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. In this case, engineers instead need the paired investigation (Review trust policy principal, external ID use, STS records and least-privilege permissions.) and design change (Constrain trusted partner principals and apply a suitable external ID where warranted.). These two steps address: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account.
Question 789
Before changing production, engineers find: A Lambda function update introduces intermittent errors that appear only under a small share of real requests. Which investigation should the engineer perform FIRST?
- Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions.
- Inspect pipeline variables, execution role permissions and organization-level Region conditions.
- Review alias traffic weights, published versions, deployment hooks and error alarms.
- Inspect ALB target-group path, task port, security group rules and service events.
Explanation
Correct Answer
C:Review alias traffic weights, published versions, deployment hooks and error alarms. The governing principle is: Gradual Lambda routing enables bounded exposure and CloudWatch-driven rollback. The next controlled engineering decision is: Shift an approved percentage of alias traffic to the new function version and monitor alarms.
Incorrect Answers
A:Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. 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 Lambda function update introduces intermittent errors that appear only under a small share of real requests.), the better investigation is: Review alias traffic weights, published versions, deployment hooks and error alarms. The deciding distinction is: Gradual Lambda routing enables bounded exposure and CloudWatch-driven rollback.
B:Inspect pipeline variables, execution role permissions and organization-level Region conditions. This instead addresses a different case: A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction. For the stated situation (A Lambda function update introduces intermittent errors that appear only under a small share of real requests.), the better investigation is: Review alias traffic weights, published versions, deployment hooks and error alarms. The deciding distinction is: Gradual Lambda routing enables bounded exposure and CloudWatch-driven rollback.
D:Inspect ALB target-group path, task port, security group rules and service events. 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 (A Lambda function update introduces intermittent errors that appear only under a small share of real requests.), the better investigation is: Review alias traffic weights, published versions, deployment hooks and error alarms. The deciding distinction is: Gradual Lambda routing enables bounded exposure and CloudWatch-driven rollback.
Question 790
The DevOps team must resolve this scenario: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. Which engineering change is MOST appropriate?
- Diversify capacity pools or update launch configuration consistent with requirements.
- Configure an appropriate SQS DLQ with alerting and governed redrive procedure.
- Route qualifying findings through EventBridge to the authorized incident workflow.
- Introduce versioned event contracts, compatibility checks and error routing.
Explanation
Correct Answer
C:Route qualifying findings through EventBridge to the authorized incident workflow. Its validation is: A safe test finding creates a tracked incident with account, resource and severity context. The principle is: Security findings need reliable event routing with context and severity-based action.
Incorrect Answers
A:Diversify capacity pools or update launch configuration consistent with requirements. This instead addresses a different case: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. For the stated situation (A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console.), the better engineering action is: Route qualifying findings through EventBridge to the authorized incident workflow. The deciding distinction is: Security findings need reliable event routing with context and severity-based action.
B:Configure an appropriate SQS DLQ with alerting and governed redrive procedure. This instead addresses a different case: A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it. For the stated situation (A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console.), the better engineering action is: Route qualifying findings through EventBridge to the authorized incident workflow. The deciding distinction is: Security findings need reliable event routing with context and severity-based action.
D:Introduce versioned event contracts, compatibility checks and error routing. This instead addresses a different case: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. For the stated situation (A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console.), the better engineering action is: Route qualifying findings through EventBridge to the authorized incident workflow. The deciding distinction is: Security findings need reliable event routing with context and severity-based action.