Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 58
Question 570
Before changing production, engineers find: A newly onboarded account does not forward CloudTrail management activity to the security archive account. Which investigation should the engineer perform FIRST?
- Inspect IAM Identity Center assignments, identity source, permission sets and deprovisioning.
- Review discovery filters, resource ownership, dependency graph and deletion permissions.
- Inspect organization trail settings, S3 bucket/KMS access and Region configuration.
- Review source and destination OUs, StackSets auto-deployment and SCP effective controls.
Explanation
Correct Answer
C:Inspect organization trail settings, S3 bucket/KMS access and Region configuration. The governing principle is: Central organization auditing should cover account lifecycle without relying on each member team. The next controlled engineering decision is: Deploy an organization-wide CloudTrail trail with protected centralized delivery.
Incorrect Answers
A: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 newly onboarded account does not forward CloudTrail management activity to the security archive account.), the better investigation is: Inspect organization trail settings, S3 bucket/KMS access and Region configuration. The deciding distinction is: Central organization auditing should cover account lifecycle without relying on each member team.
B:Review discovery filters, resource ownership, dependency graph and deletion permissions. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (A newly onboarded account does not forward CloudTrail management activity to the security archive account.), the better investigation is: Inspect organization trail settings, S3 bucket/KMS access and Region configuration. The deciding distinction is: Central organization auditing should cover account lifecycle without relying on each member team.
D:Review source and destination OUs, StackSets auto-deployment and SCP effective controls. This instead addresses a different case: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. For the stated situation (A newly onboarded account does not forward CloudTrail management activity to the security archive account.), the better investigation is: Inspect organization trail settings, S3 bucket/KMS access and Region configuration. The deciding distinction is: Central organization auditing should cover account lifecycle without relying on each member team.
Question 571
A DevOps team is reviewing: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. Which TWO complementary actions should it take? Select TWO answers.
- Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails.
- Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.
- Inspect stack events, failed resources, execution role permissions and rollback status.
- Model the dependency in the stack and ensure required resources exist before dependent operations.
- Update the construct to enforce Block Public Access and appropriate encryption by default.
Explanation
Correct Answers
B:Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. This is a required diagnostic evidence step for the stated situation: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. The complementary correct action is: Update the construct to enforce Block Public Access and appropriate encryption by default. Both follow the principle: Reusable code should encode secure defaults and controlled override rules.
E:Update the construct to enforce Block Public Access and appropriate encryption by default. This is a required controlled engineering action for the stated situation: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. The complementary correct action is: Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. Both follow the principle: Reusable code should encode secure defaults and controlled override rules.
Incorrect Answers
A:Organize accounts by approved governance boundaries and attach tailored SCPs or guardrails. This is suitable for another situation: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. In this case, engineers instead need the paired investigation (Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.) and design change (Update the construct to enforce Block Public Access and appropriate encryption by default.). These two steps address: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting.
C:Inspect stack events, failed resources, execution role permissions and rollback status. This is suitable for another situation: 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. In this case, engineers instead need the paired investigation (Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.) and design change (Update the construct to enforce Block Public Access and appropriate encryption by default.). These two steps address: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting.
D:Model the dependency in the stack and ensure required resources exist before dependent operations. This is suitable for another situation: A stack update frequently fails because an IAM policy and a Lambda function using the policy are created in an unsafe order. In this case, engineers instead need the paired investigation (Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.) and design change (Update the construct to enforce Block Public Access and appropriate encryption by default.). These two steps address: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting.
Question 572
An AWS platform team investigates this condition: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. Which DevOps principle BEST explains the core problem?
- Composite alarms can group related signals into meaningful incident notifications.
- Queue monitoring must track oldest message age and dead-letter handling, not count alone.
- CloudTrail management events can attribute configuration changes when logged and retained appropriately.
- Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
Explanation
Correct Answer
D:Delivery should link actionable CloudWatch alarms to supported deployment rollback actions. Relevant first evidence: Review CodeDeploy deployment group alarms, target health and service error signals. The resulting controlled response is: Associate deployment-specific health alarms and enable appropriate automated rollback.
Incorrect Answers
A:Composite alarms can group related signals into meaningful incident notifications. This instead addresses a different case: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. For the stated situation (A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release.), the better principle is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions. The deciding distinction is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
B:Queue monitoring must track oldest message age and dead-letter handling, not count alone. This instead addresses a different case: A queue's depth remains modest but its oldest message waits 40 minutes because one poison message repeatedly fails processing. For the stated situation (A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release.), the better principle is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions. The deciding distinction is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
C:CloudTrail management events can attribute configuration changes when logged and retained appropriately. This instead addresses a different case: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. For the stated situation (A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release.), the better principle is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions. The deciding distinction is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
Question 573
Before changing production, engineers find: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. Which investigation should the engineer perform FIRST?
- Inspect inherited SCPs, IAM identity policy and the denied API condition.
- Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.
- Inspect instance profile, IAM actions, key storage and CloudTrail usage.
- Inspect secret version stages, rotation workflow and application cache behavior.
Explanation
Correct Answer
C:Inspect instance profile, IAM actions, key storage and CloudTrail usage. The governing principle is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials. The next controlled engineering decision is: Replace stored access keys with a least-privilege EC2 instance profile role.
Incorrect Answers
A:Inspect inherited SCPs, IAM identity policy and the denied API condition. This instead addresses a different case: A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny. For the stated situation (An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3.), the better investigation is: Inspect instance profile, IAM actions, key storage and CloudTrail usage. The deciding distinction is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
B:Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. 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 (An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3.), the better investigation is: Inspect instance profile, IAM actions, key storage and CloudTrail usage. The deciding distinction is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
D:Inspect secret version stages, rotation workflow and application cache behavior. 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 (An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3.), the better investigation is: Inspect instance profile, IAM actions, key storage and CloudTrail usage. The deciding distinction is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
Question 574
Before changing production, engineers find: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. Which investigation should the engineer perform FIRST?
- Review CloudTrail change events, Config rule status, approval records and owner.
- Inspect signatures, event IDs, API Gateway/Lambda handler behavior and job queue writes.
- Inspect event resource ARN, instance IDs, SSM target selectors and security requirements.
- Inspect ACM certificate status, DNS validation, import provenance and attached listeners.
Explanation
Correct Answer
C:Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. The governing principle is: Containment automation must use precise resource identity, scope and rollback safeguards. The next controlled engineering decision is: Quarantine only the confirmed instance through reviewed network or isolation controls.
Incorrect Answers
A:Review CloudTrail change events, Config rule status, approval records and owner. 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 investigation is: Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
B:Inspect signatures, event IDs, API Gateway/Lambda handler behavior and job queue writes. This instead addresses a different case: A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs. 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 investigation is: Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
D:Inspect ACM certificate status, DNS validation, import provenance and attached listeners. This instead addresses a different case: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. 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 investigation is: Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. The deciding distinction is: Containment automation must use precise resource identity, scope and rollback safeguards.
Question 575
The DevOps team must resolve this scenario: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. Which engineering change is MOST appropriate?
- Integrate deployment alarms and an automated rollback path for failed acceptance windows.
- Use restricted provider connection permissions and pipeline-level source authorization controls.
- Integrate supported image vulnerability scanning and a risk-based release gate.
- Insert a manual approval action between verified staging tests and the production deployment.
Explanation
Correct Answer
D:Insert a manual approval action between verified staging tests and the production deployment. Its validation is: Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. The principle is: Production promotion can require an explicit accountable approval without breaking automation.
Incorrect Answers
A:Integrate deployment alarms and an automated rollback path for failed acceptance windows. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance.), the better engineering action is: Insert a manual approval action between verified staging tests and the production deployment. The deciding distinction is: Production promotion can require an explicit accountable approval without breaking automation.
B:Use restricted provider connection permissions and pipeline-level source authorization controls. This instead addresses a different case: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. For the stated situation (A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance.), the better engineering action is: Insert a manual approval action between verified staging tests and the production deployment. The deciding distinction is: Production promotion can require an explicit accountable approval without breaking automation.
C:Integrate supported image vulnerability scanning and a risk-based release gate. 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 critical payments service is automatically promoted from a successful staging build directly into production without business acceptance.), the better engineering action is: Insert a manual approval action between verified staging tests and the production deployment. The deciding distinction is: Production promotion can require an explicit accountable approval without breaking automation.
Question 576
Before changing production, engineers find: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. Which investigation should the engineer perform FIRST?
- Inspect key usage, aliases, pending deletion, backup dependencies and retention policy.
- Inspect account default EBS encryption, snapshot copy settings and KMS keys.
- Inspect trail or CloudTrail Lake event data store scope, retention and access.
- Inspect module defaults, S3 public access settings and Config findings.
Explanation
Correct Answer
A:Inspect key usage, aliases, pending deletion, backup dependencies and retention policy. The governing principle is: Cryptographic key lifecycle must protect decryptability of retained sensitive data. The next controlled engineering decision is: Add key deletion approval and dependency verification safeguards to cleanup automation.
Incorrect Answers
B: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 (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better investigation is: Inspect key usage, aliases, pending deletion, backup dependencies and retention policy. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
C: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 (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better investigation is: Inspect key usage, aliases, pending deletion, backup dependencies and retention policy. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
D:Inspect module defaults, S3 public access settings and Config findings. 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 (An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention.), the better investigation is: Inspect key usage, aliases, pending deletion, backup dependencies and retention policy. The deciding distinction is: Cryptographic key lifecycle must protect decryptability of retained sensitive data.
Question 577
Before changing production, engineers find: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. Which investigation should the engineer perform FIRST?
- Inspect ECS service events, target health, logs, dependency reachability and restart rate.
- Inspect Kubernetes describe/logs, image version, configuration and probe failures.
- Review alarm condition, transaction criticality, runbook approvals and current service health.
- Inspect event resource ARN, instance IDs, SSM target selectors and security requirements.
Explanation
Correct Answer
C:Review alarm condition, transaction criticality, runbook approvals and current service health. The governing principle is: Remediation decisions must respect approved change safety, business state and rollback constraints. The next controlled engineering decision is: Use conditional automation and human approval for high-risk stateful remediation.
Incorrect Answers
A:Inspect ECS service events, target health, logs, dependency reachability and restart rate. This instead addresses a different case: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better investigation is: Review alarm condition, transaction criticality, runbook approvals and current service health. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
B:Inspect Kubernetes describe/logs, image version, configuration and probe failures. This instead addresses a different case: An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better investigation is: Review alarm condition, transaction criticality, runbook approvals and current service health. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
D:Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. This instead addresses a different case: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better investigation is: Review alarm condition, transaction criticality, runbook approvals and current service health. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
Question 578
An AWS platform team investigates this condition: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. Which DevOps principle BEST explains the core problem?
- Organization guardrails limit effective permissions regardless of broad account IAM Allow.
- Cross-account trust should restrict principal, role and relevant external context.
- Security alerting should preserve severity, deduplication and response priority.
- Privileged access should be time bounded, attributable and justified by operational need.
Explanation
Correct Answer
D:Privileged access should be time bounded, attributable and justified by operational need. Relevant first evidence: Inspect role assignments, session duration, emergency change tickets and CloudTrail attribution. The resulting controlled response is: Implement a controlled short-lived privileged role assumption with audit and review.
Incorrect Answers
A:Organization guardrails limit effective permissions regardless of broad account IAM Allow. This instead addresses a different case: A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny. For the stated situation (Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access.), the better principle is: Privileged access should be time bounded, attributable and justified by operational need. The deciding distinction is: Privileged access should be time bounded, attributable and justified by operational need.
B:Cross-account trust should restrict principal, role and relevant external context. This instead addresses a different case: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. For the stated situation (Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access.), the better principle is: Privileged access should be time bounded, attributable and justified by operational need. The deciding distinction is: Privileged access should be time bounded, attributable and justified by operational need.
C:Security alerting should preserve severity, deduplication and response priority. This instead addresses a different case: A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload. For the stated situation (Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access.), the better principle is: Privileged access should be time bounded, attributable and justified by operational need. The deciding distinction is: Privileged access should be time bounded, attributable and justified by operational need.
Question 579
The DevOps team must resolve this scenario: A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target. Which engineering change is MOST appropriate?
- Record commit metadata and promote images by immutable digest through the release pipeline.
- Configure required cross-Region artifact store and least-privilege deployment action settings.
- Build a versioned immutable artifact once, then promote that artifact through approvals and environments.
- Align target-group checks with a reliable application readiness endpoint and reachable port.
Explanation
Correct Answer
B:Configure required cross-Region artifact store and least-privilege deployment action settings. Its validation is: A test release reaches the remote Region using expected artifacts and no excess permissions. The principle is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
Incorrect Answers
A:Record commit metadata and promote images by immutable digest through the release pipeline. 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 release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target.), the better engineering action is: Configure required cross-Region artifact store and least-privilege deployment action settings. The deciding distinction is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
C: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 (A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target.), the better engineering action is: Configure required cross-Region artifact store and least-privilege deployment action settings. The deciding distinction is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
D: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 (A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target.), the better engineering action is: Configure required cross-Region artifact store and least-privilege deployment action settings. The deciding distinction is: Cross-Region pipeline actions need correctly configured regional artifact storage and deployment roles.
Question 580
The DevOps team must resolve this scenario: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. Which engineering change is MOST appropriate?
- Associate deployment-specific health alarms and enable appropriate automated rollback.
- Query historical configuration snapshots and correlate with authorization records.
- Instrument affected services and analyze slow traces to isolate the expensive dependency.
- Use the appropriate metric split and correlated logs to target the failing layer.
Explanation
Correct Answer
B:Query historical configuration snapshots and correlate with authorization records. Its validation is: The incident-period public access state is established from timestamped evidence. The principle is: Compliance conclusions depend on time-relevant configuration history, not only present state.
Incorrect Answers
A:Associate deployment-specific health alarms and enable appropriate automated rollback. This instead addresses a different case: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. For the stated situation (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better engineering action is: Query historical configuration snapshots and correlate with authorization records. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
C:Instrument affected services and analyze slow traces to isolate the expensive dependency. 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 (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better engineering action is: Query historical configuration snapshots and correlate with authorization records. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
D:Use the appropriate metric split and correlated logs to target the failing layer. This instead addresses a different case: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. For the stated situation (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better engineering action is: Query historical configuration snapshots and correlate with authorization records. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.