Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 16
Question 150
Before changing production, engineers find: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. Which investigation should the engineer perform FIRST?
- Inspect SSM Automation document version, execution permissions, targets and rate controls.
- Examine event identifiers, retry behavior, transactional storage and duplicate records.
- Map task dependencies, failure branches, state data and side effects.
- Review duplicated templates, parameter contracts, dependencies and current deviations.
Explanation
Correct Answer
B:Examine event identifiers, retry behavior, transactional storage and duplicate records. The governing principle is: At-least-once event processing requires idempotent operations and a stable request identity. The next controlled engineering decision is: Implement a durable idempotency key and conditional write or transaction guard.
Incorrect Answers
A:Inspect SSM Automation document version, execution permissions, targets and rate controls. 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 (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better investigation is: Examine event identifiers, retry behavior, transactional storage and duplicate records. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
C:Map task dependencies, failure branches, state data and side effects. This instead addresses a different case: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better investigation is: Examine event identifiers, retry behavior, transactional storage and duplicate records. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
D:Review duplicated templates, parameter contracts, dependencies and current deviations. This instead addresses a different case: Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better investigation is: Examine event identifiers, retry behavior, transactional storage and duplicate records. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
Question 151
An AWS platform team investigates this condition: An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale. Which DevOps principle BEST explains the core problem?
- Preventive IaC guardrails and detective controls should enforce data exposure policy.
- NACLs are stateless and require explicit return-path allowances; security groups are stateful.
- Sensitive-data discovery should be automated and authorized across relevant storage scopes.
- Cross-account resource access requires compatible identity permissions and resource-side authorization.
Explanation
Correct Answer
C:Sensitive-data discovery should be automated and authorized across relevant storage scopes. Relevant first evidence: Inspect S3 inventory, Macie coverage, custom identifiers and finding aggregation. The resulting controlled response is: Enable suitable Macie discovery with centralized review of detected sensitive data.
Incorrect Answers
A:Preventive IaC guardrails and detective controls should enforce data exposure policy. 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 enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale.), the better principle is: Sensitive-data discovery should be automated and authorized across relevant storage scopes. The deciding distinction is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
B:NACLs are stateless and require explicit return-path allowances; security groups are stateful. This instead addresses a different case: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. For the stated situation (An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale.), the better principle is: Sensitive-data discovery should be automated and authorized across relevant storage scopes. The deciding distinction is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
D:Cross-account resource access requires compatible identity permissions and resource-side authorization. This instead addresses a different case: A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account. For the stated situation (An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale.), the better principle is: Sensitive-data discovery should be automated and authorized across relevant storage scopes. The deciding distinction is: Sensitive-data discovery should be automated and authorized across relevant storage scopes.
Question 152
The DevOps team must resolve this scenario: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. Which engineering change is MOST appropriate?
- Adjust visibility timeout or extend it safely, with idempotent task handling.
- Distribute partition keys appropriately and scale stream capacity based on measured demand.
- Configure suitable warmup and scaling policies so boot activity is not misread as demand.
- Configure failover routing records with valid health checks and appropriate backup endpoint.
Explanation
Correct Answer
B:Distribute partition keys appropriately and scale stream capacity based on measured demand. Its validation is: A representative producer load avoids persistent hot-shard throttling. The principle is: Stream throughput depends on partition distribution as well as shard capacity.
Incorrect Answers
A:Adjust visibility timeout or extend it safely, with idempotent task handling. 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 (A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot.), the better engineering action is: Distribute partition keys appropriately and scale stream capacity based on measured demand. The deciding distinction is: Stream throughput depends on partition distribution as well as shard capacity.
C:Configure suitable warmup and scaling policies so boot activity is not misread as demand. This instead addresses a different case: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. For the stated situation (A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot.), the better engineering action is: Distribute partition keys appropriately and scale stream capacity based on measured demand. The deciding distinction is: Stream throughput depends on partition distribution as well as shard capacity.
D:Configure failover routing records with valid health checks and appropriate backup endpoint. This instead addresses a different case: A secondary-region service is healthy but Route 53 sends users to a failed primary endpoint because its failover record has no meaningful health check. For the stated situation (A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot.), the better engineering action is: Distribute partition keys appropriately and scale stream capacity based on measured demand. The deciding distinction is: Stream throughput depends on partition distribution as well as shard capacity.
Question 153
Before changing production, engineers find: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. Which investigation should the engineer perform FIRST?
- Inspect pipeline service role, target role trust policy, STS permissions and artifact access.
- Compare trigger filters with the repository layout and shared-library dependency map.
- Review AMI build recipe, update schedule, patch evidence and launch template versions.
- Inspect consumer contract tests, deployment sequencing and service version dependencies.
Explanation
Correct Answer
B:Compare trigger filters with the repository layout and shared-library dependency map. The governing principle is: Pipeline triggers should select relevant branch and file changes without missing dependencies. The next controlled engineering decision is: Use appropriate source change triggers and path filters with explicit handling of shared dependencies.
Incorrect Answers
A:Inspect pipeline service role, target role trust policy, STS permissions and artifact access. 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 monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better investigation is: Compare trigger filters with the repository layout and shared-library dependency map. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
C:Review AMI build recipe, update schedule, patch evidence and launch template versions. This instead addresses a different case: Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better investigation is: Compare trigger filters with the repository layout and shared-library dependency map. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
D:Inspect consumer contract tests, deployment sequencing and service version dependencies. This instead addresses a different case: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better investigation is: Compare trigger filters with the repository layout and shared-library dependency map. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
Question 154
An AWS platform team investigates this condition: Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release. Which DevOps principle BEST explains the core problem?
- Pipeline triggers should select relevant branch and file changes without missing dependencies.
- Build-once promotion reduces environment drift and strengthens artifact provenance.
- Task deployment health checks must reflect the live application's endpoint and readiness behavior.
- Concurrent deployment executions must preserve intended release ordering and state consistency.
Explanation
Correct Answer
D:Concurrent deployment executions must preserve intended release ordering and state consistency. Relevant first evidence: Review pipeline execution mode, target resource conflicts and deployment ordering evidence. The resulting controlled response is: Choose a pipeline execution mode or deployment lock appropriate to the shared environment.
Incorrect Answers
A:Pipeline triggers should select relevant branch and file changes without missing dependencies. This instead addresses a different case: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. For the stated situation (Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release.), the better principle is: Concurrent deployment executions must preserve intended release ordering and state consistency. The deciding distinction is: Concurrent deployment executions must preserve intended release ordering and state consistency.
B:Build-once promotion reduces environment drift and strengthens artifact provenance. 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 (Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release.), the better principle is: Concurrent deployment executions must preserve intended release ordering and state consistency. The deciding distinction is: Concurrent deployment executions must preserve intended release ordering and state consistency.
C:Task deployment health checks must reflect the live application's endpoint and readiness behavior. 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 (Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release.), the better principle is: Concurrent deployment executions must preserve intended release ordering and state consistency. The deciding distinction is: Concurrent deployment executions must preserve intended release ordering and state consistency.
Question 155
An AWS platform team investigates this condition: A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs. Which DevOps principle BEST explains the core problem?
- Temporary security changes need scoped automatic detection and accountable restoration.
- Fan-out with independent durable subscribers decouples consumer processing and retries.
- External event ingress must authenticate and deduplicate repeated delivery attempts.
- Security findings need reliable event routing with context and severity-based action.
Explanation
Correct Answer
C:External event ingress must authenticate and deduplicate repeated delivery attempts. Relevant first evidence: Inspect signatures, event IDs, API Gateway/Lambda handler behavior and job queue writes. The resulting controlled response is: Validate the webhook signature and store an idempotency key before issuing jobs.
Incorrect Answers
A:Temporary security changes need scoped automatic detection and accountable restoration. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. For the stated situation (A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs.), the better principle is: External event ingress must authenticate and deduplicate repeated delivery attempts. The deciding distinction is: External event ingress must authenticate and deduplicate repeated delivery attempts.
B:Fan-out with independent durable subscribers decouples consumer processing and retries. This instead addresses a different case: One order-created event needs to inform billing, fulfillment and analytics independently, but a direct Lambda chain loses downstream events when one service is unavailable. For the stated situation (A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs.), the better principle is: External event ingress must authenticate and deduplicate repeated delivery attempts. The deciding distinction is: External event ingress must authenticate and deduplicate repeated delivery attempts.
D:Security findings need reliable event routing with context and severity-based action. This instead addresses a different case: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. For the stated situation (A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs.), the better principle is: External event ingress must authenticate and deduplicate repeated delivery attempts. The deciding distinction is: External event ingress must authenticate and deduplicate repeated delivery attempts.
Question 156
An AWS platform team investigates this condition: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. Which DevOps principle BEST explains the core problem?
- A hot partition can throttle despite table-wide capacity and requires appropriate key design.
- Scaling policies must account for instance startup and warmup behavior.
- Cross-Region resilience must include regional identity, secret and cryptographic dependencies.
- Stream throughput depends on partition distribution as well as shard capacity.
Explanation
Correct Answer
A:A hot partition can throttle despite table-wide capacity and requires appropriate key design. Relevant first evidence: Inspect partition key distribution, throttled requests and access patterns. The resulting controlled response is: Redesign a skewed access key or shard high-volume writes while maintaining correct queries.
Incorrect Answers
B:Scaling policies must account for instance startup and warmup behavior. This instead addresses a different case: An EC2 Auto Scaling policy sees high CPU during boot and launches many extra instances before new nodes can serve traffic. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better principle is: A hot partition can throttle despite table-wide capacity and requires appropriate key design. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
C:Cross-Region resilience must include regional identity, secret and cryptographic dependencies. This instead addresses a different case: A warm standby web tier exists in a second Region but depends on secrets and KMS keys that are only accessible in the primary Region. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better principle is: A hot partition can throttle despite table-wide capacity and requires appropriate key design. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
D:Stream throughput depends on partition distribution as well as shard capacity. This instead addresses a different case: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better principle is: A hot partition can throttle despite table-wide capacity and requires appropriate key design. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Question 157
An AWS platform team investigates this condition: Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination. Which DevOps principle BEST explains the core problem?
- Central federation can simplify attribution, temporary sessions and staff deprovisioning.
- Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
- High-impact human administrative access should require MFA and strong federation controls.
- NACLs are stateless and require explicit return-path allowances; security groups are stateful.
Explanation
Correct Answer
A:Central federation can simplify attribution, temporary sessions and staff deprovisioning. Relevant first evidence: Review IAM users, IAM Identity Center assignments and HR identity lifecycle. The resulting controlled response is: Move workforce access to federated IAM Identity Center permission sets with scoped sessions.
Incorrect Answers
B:Machine credentials should be centrally rotated with coordinated client refresh and access scoping. 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 (Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination.), the better principle is: Central federation can simplify attribution, temporary sessions and staff deprovisioning. The deciding distinction is: Central federation can simplify attribution, temporary sessions and staff deprovisioning.
C:High-impact human administrative access should require MFA and strong federation controls. This instead addresses a different case: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. For the stated situation (Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination.), the better principle is: Central federation can simplify attribution, temporary sessions and staff deprovisioning. The deciding distinction is: Central federation can simplify attribution, temporary sessions and staff deprovisioning.
D:NACLs are stateless and require explicit return-path allowances; security groups are stateful. This instead addresses a different case: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. For the stated situation (Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination.), the better principle is: Central federation can simplify attribution, temporary sessions and staff deprovisioning. The deciding distinction is: Central federation can simplify attribution, temporary sessions and staff deprovisioning.
Question 158
Before changing production, engineers find: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. Which investigation should the engineer perform FIRST?
- Review alarm dependencies, parent symptoms and notification routing.
- Inspect AWS Health event source, EventBridge rules, targets and account aggregation.
- Review AWS Config resource timeline and recorded CloudTrail changes for the period.
- Inspect AWS Config rule events, EventBridge filters and automation target permissions.
Explanation
Correct Answer
D:Inspect AWS Config rule events, EventBridge filters and automation target permissions. The governing principle is: Configuration compliance events can trigger managed event routing and bounded remediation. The next controlled engineering decision is: Route noncompliance events to appropriate response automation and human visibility.
Incorrect Answers
A:Review alarm dependencies, parent symptoms and notification routing. 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 (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better investigation is: Inspect AWS Config rule events, EventBridge filters and automation target permissions. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
B:Inspect AWS Health event source, EventBridge rules, targets and account aggregation. 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 (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better investigation is: Inspect AWS Config rule events, EventBridge filters and automation target permissions. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
C:Review AWS Config resource timeline and recorded CloudTrail changes for the period. This instead addresses a different case: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better investigation is: Inspect AWS Config rule events, EventBridge filters and automation target permissions. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
Question 159
A DevOps team is reviewing: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. Which TWO complementary actions should it take? Select TWO answers.
- Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes.
- Attach a tuned WAF web ACL with suitable rate-based or managed protections.
- Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights.
- Replace stored access keys with a least-privilege EC2 instance profile role.
- Use appropriate tag-aware policies with guarded tagging permissions.
Explanation
Correct Answers
C:Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. This is a required diagnostic evidence step for the stated situation: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. The complementary correct action is: Use appropriate tag-aware policies with guarded tagging permissions. Both follow the principle: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
E:Use appropriate tag-aware policies with guarded tagging permissions. This is a required controlled engineering action for the stated situation: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. The complementary correct action is: Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights. Both follow the principle: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
Incorrect Answers
A:Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes. This is suitable for another situation: A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account. In this case, engineers instead need the paired investigation (Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights.) and design change (Use appropriate tag-aware policies with guarded tagging permissions.). These two steps address: A shared ECS deployment role can update any workload in the account despite developers owning separate applications.
B:Attach a tuned WAF web ACL with suitable rate-based or managed protections. This is suitable for another situation: A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing. In this case, engineers instead need the paired investigation (Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights.) and design change (Use appropriate tag-aware policies with guarded tagging permissions.). These two steps address: A shared ECS deployment role can update any workload in the account despite developers owning separate applications.
D:Replace stored access keys with a least-privilege EC2 instance profile role. This is suitable for another situation: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. In this case, engineers instead need the paired investigation (Inspect role tags, ECS resource tags, aws:PrincipalTag conditions and tag mutation rights.) and design change (Use appropriate tag-aware policies with guarded tagging permissions.). These two steps address: A shared ECS deployment role can update any workload in the account despite developers owning separate applications.
Question 160
An engineering review identifies: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. Which shortcut is MOST unsafe for this exact condition?
- Create another shared IAM user for the whole development team.
- Rely on every developer remembering a security checklist after deployment.
- Allow every team to retag resources freely to satisfy any ABAC condition.
- Treat non-public bucket ACLs as proof that bucket policies cannot grant external access.
Explanation
Correct Answer
D:Treat non-public bucket ACLs as proof that bucket policies cannot grant external access. The case is: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. A safer engineering response is: Enable suitable access analysis and correct unapproved external principals. The deciding principle is: Resource-policy access analysis can identify externally accessible resources for review.
Incorrect Answers
A:Create another shared IAM user for the whole development team. 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 (An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust.), the better unsafe assumption to reject is: Treat non-public bucket ACLs as proof that bucket policies cannot grant external access. The deciding distinction is: Resource-policy access analysis can identify externally accessible resources for review.
B:Rely on every developer remembering a security checklist after deployment. 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 S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust.), the better unsafe assumption to reject is: Treat non-public bucket ACLs as proof that bucket policies cannot grant external access. The deciding distinction is: Resource-policy access analysis can identify externally accessible resources for review.
C:Allow every team to retag resources freely to satisfy any ABAC condition. 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 (An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust.), the better unsafe assumption to reject is: Treat non-public bucket ACLs as proof that bucket policies cannot grant external access. The deciding distinction is: Resource-policy access analysis can identify externally accessible resources for review.