Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 50
Question 490
A DevOps team is reviewing: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. Which TWO complementary actions should it take? Select TWO answers.
- Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.
- Enable appropriate continuous scanning and approved image remediation pipelines.
- Implement a controlled short-lived privileged role assumption with audit and review.
- Configure centralized Security Hub findings ingestion and approved incident routing.
- Correct narrowly scoped policy conditions for the approved organization trail.
Explanation
Correct Answers
A:Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. This is a required diagnostic evidence step for the stated situation: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. The complementary correct action is: Enable appropriate continuous scanning and approved image remediation pipelines. Both follow the principle: Vulnerability assessment should be continuous and integrated with immutable image updates.
B:Enable appropriate continuous scanning and approved image remediation pipelines. This is a required controlled engineering action for the stated situation: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. The complementary correct action is: Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. Both follow the principle: Vulnerability assessment should be continuous and integrated with immutable image updates.
Incorrect Answers
C:Implement a controlled short-lived privileged role assumption with audit and review. This is suitable for another situation: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. In this case, engineers instead need the paired investigation (Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.) and design change (Enable appropriate continuous scanning and approved image remediation pipelines.). These two steps address: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.
D:Configure centralized Security Hub findings ingestion and approved incident routing. This is suitable for another situation: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. In this case, engineers instead need the paired investigation (Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.) and design change (Enable appropriate continuous scanning and approved image remediation pipelines.). These two steps address: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.
E:Correct narrowly scoped policy conditions for the approved organization trail. This is suitable for another situation: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. In this case, engineers instead need the paired investigation (Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.) and design change (Enable appropriate continuous scanning and approved image remediation pipelines.). These two steps address: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually.
Question 491
An AWS platform team investigates this condition: A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny. Which DevOps principle BEST explains the core problem?
- Organization guardrails limit effective permissions regardless of broad account IAM Allow.
- Resource-policy access analysis can identify externally accessible resources for review.
- Cross-account resource access requires compatible identity permissions and resource-side authorization.
- Private TLS key material should be protected and excluded from build artifacts.
Explanation
Correct Answer
A:Organization guardrails limit effective permissions regardless of broad account IAM Allow. Relevant first evidence: Inspect inherited SCPs, IAM identity policy and the denied API condition. The resulting controlled response is: Adjust the approved OU guardrail or permitted design rather than bypassing IAM evaluation.
Incorrect Answers
B:Resource-policy access analysis can identify externally accessible resources for review. This instead addresses a different case: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. For the stated situation (A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny.), the better principle is: Organization guardrails limit effective permissions regardless of broad account IAM Allow. The deciding distinction is: Organization guardrails limit effective permissions regardless of broad account IAM Allow.
C: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 (A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny.), the better principle is: Organization guardrails limit effective permissions regardless of broad account IAM Allow. The deciding distinction is: Organization guardrails limit effective permissions regardless of broad account IAM Allow.
D:Private TLS key material should be protected and excluded from build artifacts. This instead addresses a different case: A custom TLS termination service stores its private key in an unencrypted public container image layer. For the stated situation (A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny.), the better principle is: Organization guardrails limit effective permissions regardless of broad account IAM Allow. The deciding distinction is: Organization guardrails limit effective permissions regardless of broad account IAM Allow.
Question 492
After implementing a proposed fix, the team reviews: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. Which result would BEST confirm that the risk is addressed?
- A management event in a new member account arrives at the controlled log archive.
- An authorized test role can access permitted buckets, and disallowed actions remain blocked.
- Two test applications deploy consistent network controls from the approved shared version.
- The migrated account receives exactly the new OU's required stacks and permissions.
Explanation
Correct Answer
D:The migrated account receives exactly the new OU's required stacks and permissions. The approved action is: Plan OU migrations with explicit baseline deployment and removal behavior tests. The risk principle is: Account movement can change inherited guardrails and service-managed StackSets targets.
Incorrect Answers
A:A management event in a new member account arrives at the controlled log archive. This instead addresses a different case: A newly onboarded account does not forward CloudTrail management activity to the security archive account. For the stated situation (A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review.), the better verification is: The migrated account receives exactly the new OU's required stacks and permissions. The deciding distinction is: Account movement can change inherited guardrails and service-managed StackSets targets.
B:An authorized test role can access permitted buckets, and disallowed actions remain blocked. 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 (A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review.), the better verification is: The migrated account receives exactly the new OU's required stacks and permissions. The deciding distinction is: Account movement can change inherited guardrails and service-managed StackSets targets.
C:Two test applications deploy consistent network controls from the approved shared version. 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 (A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review.), the better verification is: The migrated account receives exactly the new OU's required stacks and permissions. The deciding distinction is: Account movement can change inherited guardrails and service-managed StackSets targets.
Question 493
A DevOps team is reviewing: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. Which TWO complementary actions should it take? Select TWO answers.
- Route qualifying findings through EventBridge to the authorized incident workflow.
- Review delivery guarantees, subscriptions, DLQs and consumer coupling.
- Review GuardDuty event detail, EventBridge filters, targets and incident ownership.
- Use stable object identity and idempotent processing or transactional guards.
- Inspect rotation function stages, secret version labels and application cache lifecycle.
Explanation
Correct Answers
A:Route qualifying findings through EventBridge to the authorized incident workflow. This is a required controlled engineering action for the stated situation: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. The complementary correct action is: Review GuardDuty event detail, EventBridge filters, targets and incident ownership. Both follow the principle: Security findings need reliable event routing with context and severity-based action.
C:Review GuardDuty event detail, EventBridge filters, targets and incident ownership. This is a required diagnostic evidence step for the stated situation: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. The complementary correct action is: Route qualifying findings through EventBridge to the authorized incident workflow. Both follow the principle: Security findings need reliable event routing with context and severity-based action.
Incorrect Answers
B:Review delivery guarantees, subscriptions, DLQs and consumer coupling. This is suitable for another situation: 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. In this case, engineers instead need the paired investigation (Review GuardDuty event detail, EventBridge filters, targets and incident ownership.) and design change (Route qualifying findings through EventBridge to the authorized incident workflow.). These two steps address: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console.
D:Use stable object identity and idempotent processing or transactional guards. This is suitable for another situation: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. In this case, engineers instead need the paired investigation (Review GuardDuty event detail, EventBridge filters, targets and incident ownership.) and design change (Route qualifying findings through EventBridge to the authorized incident workflow.). These two steps address: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console.
E:Inspect rotation function stages, secret version labels and application cache lifecycle. This is suitable for another situation: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication. In this case, engineers instead need the paired investigation (Review GuardDuty event detail, EventBridge filters, targets and incident ownership.) and design change (Route qualifying findings through EventBridge to the authorized incident workflow.). These two steps address: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console.
Question 494
Before changing production, engineers find: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. Which investigation should the engineer perform FIRST?
- Inspect Config evaluation detail, remediation automation document and IAM target permissions.
- Review alarm condition, transaction criticality, runbook approvals and current service health.
- Inspect relevant AWS Health notices, affected resources, deploy timestamps and CloudWatch metrics.
- Inspect event resource ARN, instance IDs, SSM target selectors and security requirements.
Explanation
Correct Answer
A:Inspect Config evaluation detail, remediation automation document and IAM target permissions. The governing principle is: Event-based remediation should be scoped to the affected resource and run with least privilege. The next controlled engineering decision is: Use a controlled Systems Manager automation targeted only to eligible noncompliant nodes.
Incorrect Answers
B:Review alarm condition, transaction criticality, runbook approvals and current service health. This instead addresses a different case: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. For the stated situation (AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account.), the better investigation is: Inspect Config evaluation detail, remediation automation document and IAM target permissions. The deciding distinction is: Event-based remediation should be scoped to the affected resource and run with least privilege.
C:Inspect relevant AWS Health notices, affected resources, deploy timestamps and CloudWatch metrics. This instead addresses a different case: Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code. For the stated situation (AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account.), the better investigation is: Inspect Config evaluation detail, remediation automation document and IAM target permissions. The deciding distinction is: Event-based remediation should be scoped to the affected resource and run with least privilege.
D:Inspect event resource ARN, instance IDs, SSM target selectors and security requirements. This instead addresses a different case: An incident automation should isolate one compromised EC2 instance, but its script selects every instance in the same environment tag. For the stated situation (AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account.), the better investigation is: Inspect Config evaluation detail, remediation automation document and IAM target permissions. The deciding distinction is: Event-based remediation should be scoped to the affected resource and run with least privilege.
Question 495
An engineering review identifies: A central deployment role uses a shared user access key to write objects to member-account buckets. Which shortcut is MOST unsafe for this exact condition?
- Assume tag policies automatically add missing tags to every already-created resource.
- Attach an unrestricted administrator policy to bypass a restrictive SCP in production.
- Treat a tag named patched as evidence of currently installed security fixes.
- Store one root account access key for every deployment automation job.
Explanation
Correct Answer
D:Store one root account access key for every deployment automation job. The case is: A central deployment role uses a shared user access key to write objects to member-account buckets. A safer engineering response is: Replace persistent shared keys with approved cross-account roles and short-lived credentials. The deciding principle is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
Incorrect Answers
A:Assume tag policies automatically add missing tags to every already-created resource. This instead addresses a different case: Chargeback reports omit resources because each team uses different tag keys and case variants. For the stated situation (A central deployment role uses a shared user access key to write objects to member-account buckets.), the better unsafe assumption to reject is: Store one root account access key for every deployment automation job. The deciding distinction is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
B:Attach an unrestricted administrator policy to bypass a restrictive SCP in production. 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 (A central deployment role uses a shared user access key to write objects to member-account buckets.), the better unsafe assumption to reject is: Store one root account access key for every deployment automation job. The deciding distinction is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
C:Treat a tag named patched as evidence of currently installed security fixes. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (A central deployment role uses a shared user access key to write objects to member-account buckets.), the better unsafe assumption to reject is: Store one root account access key for every deployment automation job. The deciding distinction is: Machine-to-machine multi-account access should use STS role assumption with scoped trust.
Question 496
An AWS platform team investigates this condition: Developers manually create Lambda permissions and API Gateway integrations after deploying a packaged application, causing environment differences. Which DevOps principle BEST explains the core problem?
- Account vending should create standardized governed accounts through an approved landing-zone process.
- A failed IaC update should be diagnosed and recovered without destroying existing service state.
- Managed multi-account deployment benefits from governed CloudFormation StackSets administration.
- Serverless infrastructure and permissions should be represented as repeatable declarative resources.
Explanation
Correct Answer
D:Serverless infrastructure and permissions should be represented as repeatable declarative resources. Relevant first evidence: Inspect SAM template resources, generated roles and manually added triggers. The resulting controlled response is: Model function, API integration and minimum IAM permissions in the versioned SAM template.
Incorrect Answers
A:Account vending should create standardized governed accounts through an approved landing-zone process. This instead addresses a different case: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. For the stated situation (Developers manually create Lambda permissions and API Gateway integrations after deploying a packaged application, causing environment differences.), the better principle is: Serverless infrastructure and permissions should be represented as repeatable declarative resources. The deciding distinction is: Serverless infrastructure and permissions should be represented as repeatable declarative resources.
B:A failed IaC update should be diagnosed and recovered without destroying existing service state. This instead addresses a different case: An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover. For the stated situation (Developers manually create Lambda permissions and API Gateway integrations after deploying a packaged application, causing environment differences.), the better principle is: Serverless infrastructure and permissions should be represented as repeatable declarative resources. The deciding distinction is: Serverless infrastructure and permissions should be represented as repeatable declarative resources.
C:Managed multi-account deployment benefits from governed CloudFormation StackSets administration. This instead addresses a different case: A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time. For the stated situation (Developers manually create Lambda permissions and API Gateway integrations after deploying a packaged application, causing environment differences.), the better principle is: Serverless infrastructure and permissions should be represented as repeatable declarative resources. The deciding distinction is: Serverless infrastructure and permissions should be represented as repeatable declarative resources.
Question 497
The DevOps team must resolve this scenario: A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment. Which engineering change is MOST appropriate?
- Use AppConfig or an approved configuration store with versioned safe rollout and validation.
- Enable termination protection and suitable resource retention or backup controls with restricted delete rights.
- Model the dependency in the stack and ensure required resources exist before dependent operations.
- Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy.
Explanation
Correct Answer
A:Use AppConfig or an approved configuration store with versioned safe rollout and validation. Its validation is: An invalid flag value is rejected or rolled back without rebuilding the application image. The principle is: Runtime configuration changes should be governed separately from immutable application binaries.
Incorrect Answers
B:Enable termination protection and suitable resource retention or backup controls with restricted delete rights. This instead addresses a different case: A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better engineering action is: Use AppConfig or an approved configuration store with versioned safe rollout and validation. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
C:Model the dependency in the stack and ensure required resources exist before dependent operations. This instead addresses a different case: A stack update frequently fails because an IAM policy and a Lambda function using the policy are created in an unsafe order. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better engineering action is: Use AppConfig or an approved configuration store with versioned safe rollout and validation. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
D:Use EventBridge Scheduler or approved managed scheduling with alerting and retry policy. This instead addresses a different case: A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better engineering action is: Use AppConfig or an approved configuration store with versioned safe rollout and validation. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
Question 498
Before changing production, engineers find: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. Which investigation should the engineer perform FIRST?
- Review object version IDs, checksums, write permissions and deployment references.
- Review signing keys, image digests, publication roles and deployment verification policy.
- Inspect account IDs, test endpoints, IAM permissions and environment variable provenance.
- Review function package contents, layer versions, supported runtimes and release links.
Explanation
Correct Answer
A:Review object version IDs, checksums, write permissions and deployment references. The governing principle is: Artifact integrity should be verified against immutable signed or hashed release metadata. The next controlled engineering decision is: Deploy pinned S3 object versions or digests after controlled artifact publication.
Incorrect Answers
B:Review signing keys, image digests, publication roles and deployment verification policy. This instead addresses a different case: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. For the stated situation (A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record.), the better investigation is: Review object version IDs, checksums, write permissions and deployment references. The deciding distinction is: Artifact integrity should be verified against immutable signed or hashed release metadata.
C:Inspect account IDs, test endpoints, IAM permissions and environment variable provenance. This instead addresses a different case: Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable. For the stated situation (A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record.), the better investigation is: Review object version IDs, checksums, write permissions and deployment references. The deciding distinction is: Artifact integrity should be verified against immutable signed or hashed release metadata.
D:Review function package contents, layer versions, supported runtimes and release links. This instead addresses a different case: An application repeatedly packages a huge unchanged runtime dependency into every Lambda release, increasing rollout time and inconsistent versions. For the stated situation (A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record.), the better investigation is: Review object version IDs, checksums, write permissions and deployment references. The deciding distinction is: Artifact integrity should be verified against immutable signed or hashed release metadata.
Question 499
The DevOps team must resolve this scenario: New project buckets frequently become publicly readable because an IaC module omits S3 Block Public Access. Which engineering change is MOST appropriate?
- Add key deletion approval and dependency verification safeguards to cleanup automation.
- Fix the infrastructure module and enable appropriate Block Public Access plus monitoring.
- Automate drift detection, alerting and approved reconciliation for critical stacks.
- Restore valid DNS validation and monitor renewal before expiration.
Explanation
Correct Answer
B:Fix the infrastructure module and enable appropriate Block Public Access plus monitoring. Its validation is: A test attempt to create public access fails or triggers controlled remediation. The principle is: Preventive IaC guardrails and detective controls should enforce data exposure policy.
Incorrect Answers
A:Add key deletion approval and dependency verification safeguards to cleanup automation. This instead addresses a different case: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. For the stated situation (New project buckets frequently become publicly readable because an IaC module omits S3 Block Public Access.), the better engineering action is: Fix the infrastructure module and enable appropriate Block Public Access plus monitoring. The deciding distinction is: Preventive IaC guardrails and detective controls should enforce data exposure policy.
C:Automate drift detection, alerting and approved reconciliation for critical stacks. This instead addresses a different case: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. For the stated situation (New project buckets frequently become publicly readable because an IaC module omits S3 Block Public Access.), the better engineering action is: Fix the infrastructure module and enable appropriate Block Public Access plus monitoring. The deciding distinction is: Preventive IaC guardrails and detective controls should enforce data exposure policy.
D:Restore valid DNS validation and monitor renewal before expiration. This instead addresses a different case: A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted. For the stated situation (New project buckets frequently become publicly readable because an IaC module omits S3 Block Public Access.), the better engineering action is: Fix the infrastructure module and enable appropriate Block Public Access plus monitoring. The deciding distinction is: Preventive IaC guardrails and detective controls should enforce data exposure policy.
Question 500
Before changing production, engineers find: An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later. Which investigation should the engineer perform FIRST?
- Review agent connectivity, hybrid activation, licensing requirements and node enrollment.
- Inspect AWS Config evaluation, remediation role rights and affected resource types.
- Review discovery filters, resource ownership, dependency graph and deletion permissions.
- Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.
Explanation
Correct Answer
B:Inspect AWS Config evaluation, remediation role rights and affected resource types. The governing principle is: Governed configuration changes should trigger timely, scoped detection and remediation. The next controlled engineering decision is: Configure a suitable AWS Config rule with controlled Systems Manager automation remediation.
Incorrect Answers
A:Review agent connectivity, hybrid activation, licensing requirements and node enrollment. This instead addresses a different case: A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory. For the stated situation (An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later.), the better investigation is: Inspect AWS Config evaluation, remediation role rights and affected resource types. The deciding distinction is: Governed configuration changes should trigger timely, scoped detection and remediation.
C:Review discovery filters, resource ownership, dependency graph and deletion permissions. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later.), the better investigation is: Inspect AWS Config evaluation, remediation role rights and affected resource types. The deciding distinction is: Governed configuration changes should trigger timely, scoped detection and remediation.
D:Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. This instead addresses a different case: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. For the stated situation (An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later.), the better investigation is: Inspect AWS Config evaluation, remediation role rights and affected resource types. The deciding distinction is: Governed configuration changes should trigger timely, scoped detection and remediation.