Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 71
Question 700
An AWS platform team investigates this condition: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. Which DevOps principle BEST explains the core problem?
- Stream throughput depends on partition distribution as well as shard capacity.
- Scaling policies must account for instance startup and warmup behavior.
- Queue consumer visibility and processing design must account for task duration and idempotency.
- Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
Explanation
Correct Answer
B:Scaling policies must account for instance startup and warmup behavior. Relevant first evidence: Inspect instance warmup, health readiness, scaling events and CPU trends. The resulting controlled response is: Configure suitable warmup and scaling policies so boot activity is not misread as demand.
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 (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better principle is: Scaling policies must account for instance startup and warmup behavior. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
C:Queue consumer visibility and processing design must account for task duration and idempotency. This instead addresses a different case: Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better principle is: Scaling policies must account for instance startup and warmup behavior. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
D:Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot. This instead addresses a different case: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. For the stated situation (An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic.), the better principle is: Scaling policies must account for instance startup and warmup behavior. The deciding distinction is: Scaling policies must account for instance startup and warmup behavior.
Question 701
An AWS platform team investigates this condition: A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory. Which DevOps principle BEST explains the core problem?
- Operational automation requires versioning, target control and bounded failure exposure.
- IaC refactors should identify replacement and deletion consequences before execution.
- Governed configuration changes should trigger timely, scoped detection and remediation.
- Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.
Explanation
Correct Answer
D:Hybrid systems can be managed through supported SSM activation and scoped policies where reachable. Relevant first evidence: Review agent connectivity, hybrid activation, licensing requirements and node enrollment. The resulting controlled response is: Register supported hybrid nodes in Systems Manager and assign compliant patch baselines.
Incorrect Answers
A:Operational automation requires versioning, target control and bounded failure exposure. This instead addresses a different case: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. For the stated situation (A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory.), the better principle is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable. The deciding distinction is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.
B:IaC refactors should identify replacement and deletion consequences before execution. This instead addresses a different case: A template refactor changes an S3 bucket logical ID, risking replacement of a bucket containing business records. For the stated situation (A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory.), the better principle is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable. The deciding distinction is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.
C:Governed configuration changes should trigger timely, scoped detection and remediation. This instead addresses a different case: An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later. For the stated situation (A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory.), the better principle is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable. The deciding distinction is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.
Question 702
An AWS platform team investigates this condition: Chargeback reports omit resources because each team uses different tag keys and case variants. Which DevOps principle BEST explains the core problem?
- Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
- OU hierarchy and controls should reflect different business risk profiles without losing required common protections.
- Fleet governance needs measured configuration and software inventory rather than intended metadata.
- SCPs establish maximum permissions and do not grant access by themselves.
Explanation
Correct Answer
A:Organization-scale resource classification benefits from governed consistent tag policies and enforcement. Relevant first evidence: Review tag policies, required dimensions, untagged inventory and deployment templates. The resulting controlled response is: Adopt a documented tag taxonomy with organization tag policies and deployment checks.
Incorrect Answers
B:OU hierarchy and controls should reflect different business risk profiles without losing required common protections. This instead addresses a different case: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. For the stated situation (Chargeback reports omit resources because each team uses different tag keys and case variants.), the better principle is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement. The deciding distinction is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
C:Fleet governance needs measured configuration and software inventory rather than intended metadata. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (Chargeback reports omit resources because each team uses different tag keys and case variants.), the better principle is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement. The deciding distinction is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
D:SCPs establish maximum permissions and do not grant access by themselves. This instead addresses a different case: A team attaches an AWS Organizations SCP allowing S3 access and assumes member-account workloads now have permission to list all buckets. For the stated situation (Chargeback reports omit resources because each team uses different tag keys and case variants.), the better principle is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement. The deciding distinction is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
Question 703
The DevOps team must resolve this scenario: A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess. Which engineering change is MOST appropriate?
- Require approved permissions boundaries for created roles and deny removal or bypass.
- Move workforce access to federated IAM Identity Center permission sets with scoped sessions.
- Deliver CloudTrail logs to a separate protected account with controlled immutable retention where needed.
- Constrain trusted partner principals and apply a suitable external ID where warranted.
Explanation
Correct Answer
A:Require approved permissions boundaries for created roles and deny removal or bypass. Its validation is: A developer can create an allowed app role but cannot create or use an unrestricted admin role. The principle is: Delegated role creation should be constrained by a permission boundary and governing policies.
Incorrect Answers
B:Move workforce access to federated IAM Identity Center permission sets with scoped sessions. 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 engineering action is: Require approved permissions boundaries for created roles and deny removal or bypass. The deciding distinction is: Delegated role creation should be constrained by a permission boundary and governing policies.
C:Deliver CloudTrail logs to a separate protected account with controlled immutable retention where needed. 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 engineering action is: Require approved permissions boundaries for created roles and deny removal or bypass. The deciding distinction is: Delegated role creation should be constrained by a permission boundary and governing policies.
D:Constrain trusted partner principals and apply a suitable external ID where warranted. 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 (A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess.), the better engineering action is: Require approved permissions boundaries for created roles and deny removal or bypass. The deciding distinction is: Delegated role creation should be constrained by a permission boundary and governing policies.
Question 704
After implementing a proposed fix, the team reviews: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. Which result would BEST confirm that the risk is addressed?
- A controlled execution deploys in the intended account and fails in an unauthorized account.
- A test event from a prohibited repository cannot change a production release pipeline.
- A cohort-specific fault pauses expansion and triggers supported rollback.
- Promoted production artifact digest equals the one that passed staging tests.
Explanation
Correct Answer
B:A test event from a prohibited repository cannot change a production release pipeline. The approved action is: Use restricted provider connection permissions and pipeline-level source authorization controls. The risk principle is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
Incorrect Answers
A:A controlled execution deploys in the intended account and fails in an unauthorized account. This instead addresses a different case: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. For the stated situation (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better verification is: A test event from a prohibited repository cannot change a production release pipeline. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
C:A cohort-specific fault pauses expansion and triggers supported rollback. This instead addresses a different case: A new payment option passes staging but causes failures only for a small set of customer geographies. For the stated situation (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better verification is: A test event from a prohibited repository cannot change a production release pipeline. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
D:Promoted production artifact digest equals the one that passed staging tests. 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 shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better verification is: A test event from a prohibited repository cannot change a production release pipeline. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
Question 705
The DevOps team must resolve this scenario: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. Which engineering change is MOST appropriate?
- Automate onboarding through approved Account Factory or supported account vending controls.
- Use scoped paths or separate accounts with least-privilege parameter read access.
- Configure central Security Hub administration and cross-Region aggregation as appropriate.
- Attach organization-wide or OU-targeted Config checks and remediations to account onboarding.
Explanation
Correct Answer
A:Automate onboarding through approved Account Factory or supported account vending controls. Its validation is: A new test account inherits required organizational units and account baselines. The principle is: Account vending should create standardized governed accounts through an approved landing-zone process.
Incorrect Answers
B:Use scoped paths or separate accounts with least-privilege parameter read access. 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 company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.), the better engineering action is: Automate onboarding through approved Account Factory or supported account vending controls. The deciding distinction is: Account vending should create standardized governed accounts through an approved landing-zone process.
C: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 (A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.), the better engineering action is: Automate onboarding through approved Account Factory or supported account vending controls. The deciding distinction is: Account vending should create standardized governed accounts through an approved landing-zone process.
D:Attach organization-wide or OU-targeted Config checks and remediations to account onboarding. 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 company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.), the better engineering action is: Automate onboarding through approved Account Factory or supported account vending controls. The deciding distinction is: Account vending should create standardized governed accounts through an approved landing-zone process.
Question 706
A DevOps team is reviewing: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change. Which TWO complementary actions should it take? Select TWO answers.
- Restore required narrowly scoped decrypt and object-read permissions.
- Correct the measured network or query bottleneck and choose an appropriate timeout.
- Correct the specific startup configuration or image error and deploy a verified revision.
- Inspect build logs, artifact S3 bucket, KMS key policy and CodeBuild role permissions.
- Trigger processing from verified object-available events with idempotent validation.
Explanation
Correct Answers
A:Restore required narrowly scoped decrypt and object-read permissions. This is a required controlled engineering action for the stated situation: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change. The complementary correct action is: Inspect build logs, artifact S3 bucket, KMS key policy and CodeBuild role permissions. Both follow the principle: Pipeline stage errors must be traced to the actual denied action and role boundary.
D:Inspect build logs, artifact S3 bucket, KMS key policy and CodeBuild role permissions. This is a required diagnostic evidence step for the stated situation: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change. The complementary correct action is: Restore required narrowly scoped decrypt and object-read permissions. Both follow the principle: Pipeline stage errors must be traced to the actual denied action and role boundary.
Incorrect Answers
B:Correct the measured network or query bottleneck and choose an appropriate timeout. This is suitable for another situation: An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database. In this case, engineers instead need the paired investigation (Inspect build logs, artifact S3 bucket, KMS key policy and CodeBuild role permissions.) and design change (Restore required narrowly scoped decrypt and object-read permissions.). These two steps address: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change.
C:Correct the specific startup configuration or image error and deploy a verified revision. This is suitable for another situation: An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU. In this case, engineers instead need the paired investigation (Inspect build logs, artifact S3 bucket, KMS key policy and CodeBuild role permissions.) and design change (Restore required narrowly scoped decrypt and object-read permissions.). These two steps address: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change.
E:Trigger processing from verified object-available events with idempotent validation. This is suitable for another situation: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. In this case, engineers instead need the paired investigation (Inspect build logs, artifact S3 bucket, KMS key policy and CodeBuild role permissions.) and design change (Restore required narrowly scoped decrypt and object-read permissions.). These two steps address: A pipeline fails at CodeBuild DOWNLOAD_SOURCE with AccessDenied after a KMS key policy change.
Question 707
Before changing production, engineers find: A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account. Which investigation should the engineer perform FIRST?
- Review principal ARN, IAM allow, bucket policy, KMS policy and any explicit deny.
- Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights.
- Inspect instance profile, IAM actions, key storage and CloudTrail usage.
- Inspect VPC Flow Logs enablement, records, ENIs and destination retention.
Explanation
Correct Answer
A:Review principal ARN, IAM allow, bucket policy, KMS policy and any explicit deny. The governing principle is: Cross-account resource access requires compatible identity permissions and resource-side authorization. The next controlled engineering decision is: Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes.
Incorrect Answers
B:Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. This instead addresses a different case: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. For the stated situation (A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account.), the better investigation is: Review principal ARN, IAM allow, bucket policy, KMS policy and any explicit deny. The deciding distinction is: Cross-account resource access requires compatible identity permissions and resource-side authorization.
C:Inspect instance profile, IAM actions, key storage and CloudTrail usage. 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 Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account.), the better investigation is: Review principal ARN, IAM allow, bucket policy, KMS policy and any explicit deny. The deciding distinction is: Cross-account resource access requires compatible identity permissions and resource-side authorization.
D:Inspect VPC Flow Logs enablement, records, ENIs and destination retention. This instead addresses a different case: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. For the stated situation (A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account.), the better investigation is: Review principal ARN, IAM allow, bucket policy, KMS policy and any explicit deny. The deciding distinction is: Cross-account resource access requires compatible identity permissions and resource-side authorization.
Question 708
Before changing production, engineers find: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. Which investigation should the engineer perform FIRST?
- Inspect CloudTrail delivery errors, destination bucket policy and KMS key policy.
- Inspect AWS Health event source, EventBridge rules, targets and account aggregation.
- Inspect AWS Config rule events, EventBridge filters and automation target permissions.
- Inspect ApproximateAgeOfOldestMessage, visibility, DLQ configuration and consumer errors.
Explanation
Correct Answer
B:Inspect AWS Health event source, EventBridge rules, targets and account aggregation. The governing principle is: Operational events need managed cross-account routing and accountable notification paths. The next controlled engineering decision is: Route relevant AWS Health events through EventBridge to the approved operations channel.
Incorrect Answers
A:Inspect CloudTrail delivery errors, destination bucket policy and KMS key policy. This instead addresses a different case: Member accounts send CloudTrail logs to a central S3 bucket but delivery fails after the bucket switches to a new customer managed KMS key. For the stated situation (A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it.), the better investigation is: Inspect AWS Health event source, EventBridge rules, targets and account aggregation. The deciding distinction is: Operational events need managed cross-account routing and accountable notification paths.
C:Inspect AWS Config rule events, EventBridge filters and automation target permissions. This instead addresses a different case: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. For the stated situation (A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it.), the better investigation is: Inspect AWS Health event source, EventBridge rules, targets and account aggregation. The deciding distinction is: Operational events need managed cross-account routing and accountable notification paths.
D:Inspect ApproximateAgeOfOldestMessage, visibility, DLQ configuration and consumer errors. 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 regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it.), the better investigation is: Inspect AWS Health event source, EventBridge rules, targets and account aggregation. The deciding distinction is: Operational events need managed cross-account routing and accountable notification paths.
Question 709
The DevOps team must resolve this scenario: Chargeback reports omit resources because each team uses different tag keys and case variants. Which engineering change is MOST appropriate?
- Automate onboarding through approved Account Factory or supported account vending controls.
- Restore authorized configuration by an approved stack update or reconcile a documented intentional change.
- Adopt a documented tag taxonomy with organization tag policies and deployment checks.
- Replace persistent shared keys with approved cross-account roles and short-lived credentials.
Explanation
Correct Answer
C:Adopt a documented tag taxonomy with organization tag policies and deployment checks. Its validation is: New stacks carry normalized cost allocation tags and untagged exceptions are detectable. The principle is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
Incorrect Answers
A:Automate onboarding through approved Account Factory or supported account vending controls. This instead addresses a different case: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. For the stated situation (Chargeback reports omit resources because each team uses different tag keys and case variants.), the better engineering action is: Adopt a documented tag taxonomy with organization tag policies and deployment checks. The deciding distinction is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
B:Restore authorized configuration by an approved stack update or reconcile a documented intentional change. 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 (Chargeback reports omit resources because each team uses different tag keys and case variants.), the better engineering action is: Adopt a documented tag taxonomy with organization tag policies and deployment checks. The deciding distinction is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
D:Replace persistent shared keys with approved cross-account roles and short-lived credentials. This instead addresses a different case: A central deployment role uses a shared user access key to write objects to member-account buckets. For the stated situation (Chargeback reports omit resources because each team uses different tag keys and case variants.), the better engineering action is: Adopt a documented tag taxonomy with organization tag policies and deployment checks. The deciding distinction is: Organization-scale resource classification benefits from governed consistent tag policies and enforcement.
Question 710
The DevOps team must resolve this scenario: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. Which engineering change is MOST appropriate?
- Create selective event patterns matching only approved incident conditions.
- Use conditional automation and human approval for high-risk stateful remediation.
- Use a controlled approved remediation action or rollback of the unauthorized rule.
- Filter relevant state transitions and check desired state before mutating resources.
Explanation
Correct Answer
B:Use conditional automation and human approval for high-risk stateful remediation. Its validation is: The workflow defers unsafe destruction during critical processing and records authorization. The principle is: Remediation decisions must respect approved change safety, business state and rollback constraints.
Incorrect Answers
A:Create selective event patterns matching only approved incident conditions. This instead addresses a different case: A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls. 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 engineering action is: Use conditional automation and human approval for high-risk stateful remediation. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
C:Use a controlled approved remediation action or rollback of the unauthorized rule. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better engineering action is: Use conditional automation and human approval for high-risk stateful remediation. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.
D:Filter relevant state transitions and check desired state before mutating resources. This instead addresses a different case: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. 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 engineering action is: Use conditional automation and human approval for high-risk stateful remediation. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.