AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 39
Question 380
An AWS DevOps engineer must address this situation: An account administrator needs to block users from leaving approved AWS Regions, but existing IAM identity policies allow all AWS actions. Which implementation choice BEST meets the main operational requirement?
- Enforce suitable strong authentication for privileged human access and log emergency-role assumption.
- Evaluate attribute-based access control with approved session or principal tags and controlled resource tags.
- Attach an appropriately scoped IAM permissions boundary to roles they create and restrict boundary removal.
- Apply carefully designed AWS Organizations SCP restrictions with documented global-service and break-glass exceptions.
Explanation
Correct Answer
D:This response directly addresses the stated requirement: Apply carefully designed AWS Organizations SCP restrictions with documented global-service and break-glass exceptions. The relevant technical mechanism is that organization guardrails limit allowed actions across member accounts even when local IAM permissions are broad. Without this design, users can create workloads in prohibited Regions because local Allow policies have no upper organizational restriction. An operational acceptance check should confirm that a test allowed Region operation succeeds while the same prohibited Region operation is denied by the SCP.
Incorrect Answers
A:This design is appropriate for another AWS operational requirement: A rarely used break-glass administrative role has no multi-factor authentication control and its usage is not audited. In that situation the corresponding response would be to enforce suitable strong authentication for privileged human access and log emergency-role assumption. It does not directly mitigate the current failure mode, where users can create workloads in prohibited Regions because local Allow policies have no upper organizational restriction. The current requirement instead calls for apply carefully designed AWS Organizations SCP restrictions with documented global-service and break-glass exceptions.
B:This design is appropriate for another AWS operational requirement: Application teams deploy dozens of services needing access to distinct tenant-specific S3 prefixes, and static role policies are manually copied for each tenant. In that situation the corresponding response would be to evaluate attribute-based access control with approved session or principal tags and controlled resource tags. It does not directly mitigate the current failure mode, where users can create workloads in prohibited Regions because local Allow policies have no upper organizational restriction. The current requirement instead calls for apply carefully designed AWS Organizations SCP restrictions with documented global-service and break-glass exceptions.
C:This design is appropriate for another AWS operational requirement: Developers may create IAM roles for their applications but must never grant themselves organization administrator rights. In that situation the corresponding response would be to attach an appropriately scoped IAM permissions boundary to roles they create and restrict boundary removal. It does not directly mitigate the current failure mode, where users can create workloads in prohibited Regions because local Allow policies have no upper organizational restriction. The current requirement instead calls for apply carefully designed AWS Organizations SCP restrictions with documented global-service and break-glass exceptions.
Question 381
An operations team deploys the following safeguard: Use parameterized, reviewed nested stacks or reusable CloudFormation modules for shared infrastructure patterns. Which observed result is the STRONGEST validation that the safeguard works?
- Two new services created from the shared module have consistent approved monitoring and access settings.
- A drift report identifies the modified security group and an approved template revision restores the intended policy.
- A multi-account deployment resolves the correct authorized parameter value without embedding it in source.
- A test stack deletion retains the protected data resource under the documented ownership procedure.
Explanation
Correct Answer
A:The best verification result is: Two new services created from the shared module have consistent approved monitoring and access settings. It specifically demonstrates that the implemented safeguard to use parameterized, reviewed nested stacks or reusable CloudFormation modules for shared infrastructure patterns. is effective. This control matters where a large CloudFormation template duplicates the same monitoring and security configuration across twelve microservices. Without suitable evidence, the outstanding exposure is that copy-and-paste template changes can leave different services with different guardrails and alarms.
Incorrect Answers
B:This measurement validates a different AWS control: Run CloudFormation drift detection and reconcile the desired state through the authorized template and change workflow. It is most relevant where operators have edited security groups in the console for a stack-managed service and deploy the original CloudFormation template again. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that two new services created from the shared module have consistent approved monitoring and access settings.
C:This measurement validates a different AWS control: Reference approved Systems Manager Parameter Store values or secure CloudFormation parameters instead of copying environment settings. It is most relevant where a team manually enters account-specific database endpoints into each deployment, creating inconsistent application configuration. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that two new services created from the shared module have consistent approved monitoring and access settings.
D:This measurement validates a different AWS control: Set appropriate CloudFormation DeletionPolicy or retention controls for protected stateful resources. It is most relevant where cloudFormation destroys persistent storage when a test stack is deleted, even though the storage contains audit evidence required for retention. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that two new services created from the shared module have consistent approved monitoring and access settings.
Question 382
An operations team deploys the following safeguard: Use AWS Control Tower Account Factory or a governed AWS Organizations account-vending process to automate baseline provisioning. Which observed result is the STRONGEST validation that the safeguard works?
- A valid audit session expires automatically and cannot invoke write APIs in member accounts.
- A newly vended account lands in the intended OU with required enrollment, logging and baseline checks.
- The account registry connects each active account to an approved owner, environment and business purpose.
- A move rehearsal verifies effective SCPs and required account-level resources match the destination OU.
Explanation
Correct Answer
B:The best verification result is: A newly vended account lands in the intended OU with required enrollment, logging and baseline checks. It specifically demonstrates that the implemented safeguard to use AWS Control Tower Account Factory or a governed AWS Organizations account-vending process to automate baseline provisioning. is effective. This control matters where business units request new AWS accounts by email and the central team often forgets to enable logging and security baselines. Without suitable evidence, the outstanding exposure is that a newly opened account may host sensitive workloads outside the organization's security visibility.
Incorrect Answers
A:This measurement validates a different AWS control: Define cross-account IAM roles with constrained trust and read permissions, then assume them through AWS STS. It is most relevant where a central audit function needs short-lived read-only access into every workload account but currently distributes permanent IAM user credentials. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a newly vended account lands in the intended OU with required enrollment, logging and baseline checks.
C:This measurement validates a different AWS control: Standardize governed account requests with unique identifiers, accountable owners and approved organizational-unit placement. It is most relevant where two teams independently create AWS accounts with duplicate email aliases and no clear business ownership. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a newly vended account lands in the intended OU with required enrollment, logging and baseline checks.
D:This measurement validates a different AWS control: Reconcile the account against the destination OU's policy and baseline requirements after organizational moves. It is most relevant where an account moves to a different AWS Organizations OU, yet its deployed security baselines and exception set are never rechecked. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a newly vended account lands in the intended OU with required enrollment, logging and baseline checks.
Question 383
An operations team deploys the following safeguard: Test forward and backward compatibility against representative migration state and establish rollback handling. Which observed result is the STRONGEST validation that the safeguard works?
- Integration tests exercise the queue and data access path and reject a deliberately malformed message schema.
- A forced test failure produces a failed CodeBuild action and blocks the subsequent stage.
- A staged rollout proves that current and previous application versions tolerate the planned schema transition.
- A load test at the approved concurrency meets percentile latency and error-rate acceptance thresholds.
Explanation
Correct Answer
C:The best verification result is: A staged rollout proves that current and previous application versions tolerate the planned schema transition. It specifically demonstrates that the implemented safeguard to test forward and backward compatibility against representative migration state and establish rollback handling. is effective. This control matters where a pipeline validates schema changes using a stale test database that lacks the production migration history. Without suitable evidence, the outstanding exposure is that a non-backward-compatible migration can prevent rollback and break older active application instances.
Incorrect Answers
A:This measurement validates a different AWS control: Add isolated integration tests using realistic service endpoints, test data and least-privilege credentials. It is most relevant where a payment API passes mocked unit tests but fails when communicating with the actual message queue and database. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a staged rollout proves that current and previous application versions tolerate the planned schema transition.
B:This measurement validates a different AWS control: Make build steps return nonzero status on failed tests and configure reports to gate release decisions. It is most relevant where a pipeline marks a CodeBuild action successful even though a shell script prints test failures but exits with status zero. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a staged rollout proves that current and previous application versions tolerate the planned schema transition.
D:This measurement validates a different AWS control: Run representative preproduction load testing with explicit throughput, latency and failure thresholds. It is most relevant where an API endpoint works at light load but exceeds response-time requirements during seasonal traffic peaks. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a staged rollout proves that current and previous application versions tolerate the planned schema transition.
Question 384
A team proposes this change: Reconcile the account against the destination OU's policy and baseline requirements after organizational moves. The environment is: An account moves to a different AWS Organizations OU, yet its deployed security baselines and exception set are never rechecked. Which AWS engineering principle most directly supports the proposal?
- SCPs establish a maximum permissions boundary for member accounts but do not themselves grant actions.
- Separating logging storage from workload administration limits the ability of a compromised account to alter evidence.
- Account creation at scale must attach preventive controls, centralized logging and ownership at onboarding.
- Account governance must follow organizational placement changes, not assume original provisioning controls remain adequate.
Explanation
Correct Answer
D:The central principle is that account governance must follow organizational placement changes, not assume original provisioning controls remain adequate. It supports the decision to reconcile the account against the destination OU's policy and baseline requirements after organizational moves. because the workload problem is: An account moves to a different AWS Organizations OU, yet its deployed security baselines and exception set are never rechecked. The consequence of ignoring the principle is: A moved account may retain formerly valid exceptions inconsistent with its new environment classification. The design can be tested by confirming that a move rehearsal verifies effective SCPs and required account-level resources match the destination OU.
Incorrect Answers
A:This principle concerns the different situation in which an organization wants to prevent member accounts from disabling organization-wide security settings even when local administrators are powerful. It explains the alternative control to apply AWS Organizations service control policies at appropriate organizational-unit boundaries alongside IAM policies. For the present workload, an account moves to a different AWS Organizations OU, yet its deployed security baselines and exception set are never rechecked. the design rationale is instead that account governance must follow organizational placement changes, not assume original provisioning controls remain adequate.
B:This principle concerns the different situation in which audit logs from all member accounts currently reside only in those accounts, where local administrators can modify retention. It explains the alternative control to route organization-wide audit evidence into a separately governed centralized log archive with restricted modification privileges. For the present workload, an account moves to a different AWS Organizations OU, yet its deployed security baselines and exception set are never rechecked. the design rationale is instead that account governance must follow organizational placement changes, not assume original provisioning controls remain adequate.
C:This principle concerns the different situation in which business units request new AWS accounts by email and the central team often forgets to enable logging and security baselines. It explains the alternative control to use AWS Control Tower Account Factory or a governed AWS Organizations account-vending process to automate baseline provisioning. For the present workload, an account moves to a different AWS Organizations OU, yet its deployed security baselines and exception set are never rechecked. the design rationale is instead that account governance must follow organizational placement changes, not assume original provisioning controls remain adequate.
Question 385
An AWS DevOps engineer must address this situation: An EventBridge rule responds to all CloudTrail API calls and launches an expensive remediation for unrelated operations. Which implementation choice BEST meets the main operational requirement?
- Match specific event source, detail type, API name and applicable resources in the EventBridge rule pattern.
- Create EventBridge rules for relevant AWS Health events and route them to an owned incident channel.
- Introduce durable SQS buffering and appropriate dead-letter handling with idempotent consumers where suitable.
- Apply idempotency keys and deduplication in the event-processing workflow using stable event identity.
Explanation
Correct Answer
A:This response directly addresses the stated requirement: Match specific event source, detail type, API name and applicable resources in the EventBridge rule pattern. The relevant technical mechanism is that event filtering must distinguish the actionable signal from broad unrelated cloud activity. Without this design, overbroad automation can disrupt healthy resources and exhaust incident-processing quotas. An operational acceptance check should confirm that a test relevant API event triggers one expected workflow while unrelated calls produce no remediation.
Incorrect Answers
B:This design is appropriate for another AWS operational requirement: A company relies on employees to check AWS Health dashboards to find planned service disruptions affecting production. In that situation the corresponding response would be to create EventBridge rules for relevant AWS Health events and route them to an owned incident channel. It does not directly mitigate the current failure mode, where overbroad automation can disrupt healthy resources and exhaust incident-processing quotas. The current requirement instead calls for match specific event source, detail type, API name and applicable resources in the EventBridge rule pattern.
C:This design is appropriate for another AWS operational requirement: An EventBridge-triggered Lambda sometimes fails to process payment events and the publisher assumes delivery succeeded. In that situation the corresponding response would be to introduce durable SQS buffering and appropriate dead-letter handling with idempotent consumers where suitable. It does not directly mitigate the current failure mode, where overbroad automation can disrupt healthy resources and exhaust incident-processing quotas. The current requirement instead calls for match specific event source, detail type, API name and applicable resources in the EventBridge rule pattern.
D:This design is appropriate for another AWS operational requirement: A production event source generates duplicate notifications and the response workflow creates repeated incident tickets and conflicting actions. In that situation the corresponding response would be to apply idempotency keys and deduplication in the event-processing workflow using stable event identity. It does not directly mitigate the current failure mode, where overbroad automation can disrupt healthy resources and exhaust incident-processing quotas. The current requirement instead calls for match specific event source, detail type, API name and applicable resources in the EventBridge rule pattern.
Question 386
An operations team deploys the following safeguard: Bind deployments to the reviewed source revision and require artifact provenance checks before release. Which observed result is the STRONGEST validation that the safeguard works?
- A test build can retrieve an authorized secret while log inspection and unauthorized role tests show no disclosure.
- Release metadata proves the exact committed revision, build execution and signed or hashed artifact used in production.
- A controlled commit triggers exactly the expected pipeline execution and its output records the source revision.
- Access tests show the deployment role updates the intended ECS service but cannot delete logs or create IAM users.
Explanation
Correct Answer
B:The best verification result is: Release metadata proves the exact committed revision, build execution and signed or hashed artifact used in production. It specifically demonstrates that the implemented safeguard to bind deployments to the reviewed source revision and require artifact provenance checks before release. is effective. This control matters where a release pipeline tests only the current branch head while allowing production deploys from arbitrary manually uploaded files. Without suitable evidence, the outstanding exposure is that a caller can replace an approved build with a binary unrelated to the pull request that passed review.
Incorrect Answers
A:This measurement validates a different AWS control: Resolve protected build secrets at execution time through Secrets Manager or encrypted Systems Manager parameters with least-privilege roles. It is most relevant where a pipeline downloads third-party package credentials from plaintext environment variables visible to build log readers. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that release metadata proves the exact committed revision, build execution and signed or hashed artifact used in production.
C:This measurement validates a different AWS control: Configure source change detection to trigger a CodePipeline workflow with reviewed automated build and validation stages. It is most relevant where a software team manually starts releases after every merge and frequently forgets to deliver critical patches. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that release metadata proves the exact committed revision, build execution and signed or hashed artifact used in production.
D:This measurement validates a different AWS control: Separate pipeline stage execution roles and grant narrowly scoped build and deployment permissions. It is most relevant where a deployment pipeline runs as one broad role that can delete organization logs and create IAM users although it only updates an ECS service. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that release metadata proves the exact committed revision, build execution and signed or hashed artifact used in production.
Question 387
An AWS DevOps engineer must address this situation: An S3 replication service has an IAM policy allowing reads, but replication still fails because the destination bucket denies access. Which implementation choice BEST meets the main operational requirement?
- Enforce suitable strong authentication for privileged human access and log emergency-role assumption.
- Attach an appropriately scoped IAM permissions boundary to roles they create and restrict boundary removal.
- Review identity-based and resource-based policy requirements, trust relationships and applicable KMS permissions together.
- Use a restrictive cross-account IAM trust policy with the required external ID or workload identity conditions.
Explanation
Correct Answer
C:This response directly addresses the stated requirement: Review identity-based and resource-based policy requirements, trust relationships and applicable KMS permissions together. The relevant technical mechanism is that effective AWS permissions can depend on multiple policy layers, not the identity policy alone. Without this design, a service can have apparent IAM permission yet fail at the resource or encryption authorization boundary. An operational acceptance check should confirm that a least-privilege replication test succeeds after both bucket access and necessary key policies are correct.
Incorrect Answers
A:This design is appropriate for another AWS operational requirement: A rarely used break-glass administrative role has no multi-factor authentication control and its usage is not audited. In that situation the corresponding response would be to enforce suitable strong authentication for privileged human access and log emergency-role assumption. It does not directly mitigate the current failure mode, where a service can have apparent IAM permission yet fail at the resource or encryption authorization boundary. The current requirement instead calls for review identity-based and resource-based policy requirements, trust relationships and applicable KMS permissions together.
B:This design is appropriate for another AWS operational requirement: Developers may create IAM roles for their applications but must never grant themselves organization administrator rights. In that situation the corresponding response would be to attach an appropriately scoped IAM permissions boundary to roles they create and restrict boundary removal. It does not directly mitigate the current failure mode, where a service can have apparent IAM permission yet fail at the resource or encryption authorization boundary. The current requirement instead calls for review identity-based and resource-based policy requirements, trust relationships and applicable KMS permissions together.
D:This design is appropriate for another AWS operational requirement: An external CI provider must deploy into an AWS account, but its role trust policy allows every account belonging to the provider. In that situation the corresponding response would be to use a restrictive cross-account IAM trust policy with the required external ID or workload identity conditions. It does not directly mitigate the current failure mode, where a service can have apparent IAM permission yet fail at the resource or encryption authorization boundary. The current requirement instead calls for review identity-based and resource-based policy requirements, trust relationships and applicable KMS permissions together.
Question 388
An AWS DevOps engineer must address this situation: An ECS service cannot reach desired count after release even though the task image exists in ECR. Which implementation choice BEST meets the main operational requirement?
- Inspect CodeDeploy deployment events, lifecycle hook output and target health to locate the earliest failed stage.
- Correlate Lambda duration, timeout, invocation errors, dependency latency and queue age before modifying concurrency.
- Correlate AWS Health, CloudWatch service metrics and deployment history to distinguish platform events from workload defects.
- Inspect ECS service events, stopped task reasons, capacity and task execution role permissions.
Explanation
Correct Answer
D:This response directly addresses the stated requirement: Inspect ECS service events, stopped task reasons, capacity and task execution role permissions. The relevant technical mechanism is that container startup failures require separating scheduling, image pull, networking and application exits. Without this design, repeated task restarts may persist when teams misdiagnose image existence as proof of deployability. An operational acceptance check should confirm that service events isolate a placement or image-pull permission error and the corrected task starts healthy.
Incorrect Answers
A:This design is appropriate for another AWS operational requirement: CodeDeploy marks a deployment failed when replacement instances cannot pass an application-start hook, but the team assumes the ALB is broken. In that situation the corresponding response would be to inspect CodeDeploy deployment events, lifecycle hook output and target health to locate the earliest failed stage. It does not directly mitigate the current failure mode, where repeated task restarts may persist when teams misdiagnose image existence as proof of deployability. The current requirement instead calls for inspect ECS service events, stopped task reasons, capacity and task execution role permissions.
B:This design is appropriate for another AWS operational requirement: A Lambda event-processing function times out during downstream database calls, triggering retries and a growing SQS backlog. In that situation the corresponding response would be to correlate Lambda duration, timeout, invocation errors, dependency latency and queue age before modifying concurrency. It does not directly mitigate the current failure mode, where repeated task restarts may persist when teams misdiagnose image existence as proof of deployability. The current requirement instead calls for inspect ECS service events, stopped task reasons, capacity and task execution role permissions.
C:This design is appropriate for another AWS operational requirement: An application failure starts during an AWS service disruption, but the team treats every instance restart as the root cause. In that situation the corresponding response would be to correlate AWS Health, CloudWatch service metrics and deployment history to distinguish platform events from workload defects. It does not directly mitigate the current failure mode, where repeated task restarts may persist when teams misdiagnose image existence as proof of deployability. The current requirement instead calls for inspect ECS service events, stopped task reasons, capacity and task execution role permissions.
Question 389
An operations team deploys the following safeguard: Restrict log-group access through IAM and use suitable encryption and data-protection controls for sensitive records. Which observed result is the STRONGEST validation that the safeguard works?
- Access tests allow only authorized operational roles to inspect protected logs while unapproved reads are denied.
- A retention review shows the log group lifecycle satisfies the approved duration and archive obligations.
- A controlled memory stress test increases the expected custom metric and fires the configured warning threshold.
- New account log delivery succeeds in a test, and audit logs confirm required write and encryption access.
Explanation
Correct Answer
A:The best verification result is: Access tests allow only authorized operational roles to inspect protected logs while unapproved reads are denied. It specifically demonstrates that the implemented safeguard to restrict log-group access through IAM and use suitable encryption and data-protection controls for sensitive records. is effective. This control matters where cloudWatch Logs contain secrets from application traces and a broad group of developers can read all production log streams. Without suitable evidence, the outstanding exposure is that credentials and private data in logs can be exposed to people who do not administer the production workload.
Incorrect Answers
B:This measurement validates a different AWS control: Define CloudWatch Logs retention aligned to policy and archive required records using appropriate storage controls. It is most relevant where a log group stores debug events indefinitely and continually increases costs while security retention requirements are finite. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that access tests allow only authorized operational roles to inspect protected logs while unapproved reads are denied.
C:This measurement validates a different AWS control: Install and configure the CloudWatch agent to publish memory usage and other required guest-operating-system custom metrics. It is most relevant where an EC2 application suffers memory exhaustion, but its team monitors only default CPU utilization and instance-status metrics. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that access tests allow only authorized operational roles to inspect protected logs while unapproved reads are denied.
D:This measurement validates a different AWS control: Design log collection destinations with tested bucket, IAM and KMS encryption permissions for producing accounts and services. It is most relevant where a team sends all regional log archives into one bucket but omits KMS grants required by the service delivery principals. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that access tests allow only authorized operational roles to inspect protected logs while unapproved reads are denied.
Question 390
An operations team deploys the following safeguard: Design log collection destinations with tested bucket, IAM and KMS encryption permissions for producing accounts and services. Which observed result is the STRONGEST validation that the safeguard works?
- A controlled memory stress test increases the expected custom metric and fires the configured warning threshold.
- New account log delivery succeeds in a test, and audit logs confirm required write and encryption access.
- A new matching log event appears in the analytics consumer within the defined delivery window.
- A retention review shows the log group lifecycle satisfies the approved duration and archive obligations.
Explanation
Correct Answer
B:The best verification result is: New account log delivery succeeds in a test, and audit logs confirm required write and encryption access. It specifically demonstrates that the implemented safeguard to design log collection destinations with tested bucket, IAM and KMS encryption permissions for producing accounts and services. is effective. This control matters where a team sends all regional log archives into one bucket but omits KMS grants required by the service delivery principals. Without suitable evidence, the outstanding exposure is that security logs can silently fail to arrive because a service cannot write or encrypt with the configured key.
Incorrect Answers
A:This measurement validates a different AWS control: Install and configure the CloudWatch agent to publish memory usage and other required guest-operating-system custom metrics. It is most relevant where an EC2 application suffers memory exhaustion, but its team monitors only default CPU utilization and instance-status metrics. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that new account log delivery succeeds in a test, and audit logs confirm required write and encryption access.
C:This measurement validates a different AWS control: Configure CloudWatch Logs subscription filters to stream matching log events to supported consumers such as Kinesis or Lambda. It is most relevant where security analysts require near-real-time processing of application log events in another analytics system but receive one nightly S3 export. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that new account log delivery succeeds in a test, and audit logs confirm required write and encryption access.
D:This measurement validates a different AWS control: Define CloudWatch Logs retention aligned to policy and archive required records using appropriate storage controls. It is most relevant where a log group stores debug events indefinitely and continually increases costs while security retention requirements are finite. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that new account log delivery succeeds in a test, and audit logs confirm required write and encryption access.