Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 88
Question 870
The DevOps team must resolve this scenario: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. Which engineering change is MOST appropriate?
- Use appropriate tag-aware policies with guarded tagging permissions.
- Replace stored access keys with a least-privilege EC2 instance profile role.
- Enable suitable access analysis and correct unapproved external principals.
- Enable sufficient flow log scope with protected centralized analysis.
Explanation
Correct Answer
B:Replace stored access keys with a least-privilege EC2 instance profile role. Its validation is: The application uploads to approved buckets without any permanent key on disk. The principle is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
Incorrect Answers
A:Use appropriate tag-aware policies with guarded tagging permissions. 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 EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3.), the better engineering action is: Replace stored access keys with a least-privilege EC2 instance profile role. The deciding distinction is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
C:Enable suitable access analysis and correct unapproved external principals. 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 (An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3.), the better engineering action is: Replace stored access keys with a least-privilege EC2 instance profile role. The deciding distinction is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
D:Enable sufficient flow log scope with protected centralized analysis. This instead addresses a different case: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. For the stated situation (An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3.), the better engineering action is: Replace stored access keys with a least-privilege EC2 instance profile role. The deciding distinction is: AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
Question 871
An AWS platform team investigates this condition: A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted. Which DevOps principle BEST explains the core problem?
- Sensitive-data discovery should be automated and authorized across relevant storage scopes.
- Security findings need aggregation, deduplication and accountable response in multi-account environments.
- Managed public certificate renewal depends on sustained validation prerequisites.
- AWS WAF application-layer rules can reduce abusive requests independently of network ACLs.
Explanation
Correct Answer
C:Managed public certificate renewal depends on sustained validation prerequisites. Relevant first evidence: Inspect ACM status, validation records, domain ownership and ALB listener association. The resulting controlled response is: Restore valid DNS validation and monitor renewal before expiration.
Incorrect Answers
A:Sensitive-data discovery should be automated and authorized across relevant storage scopes. This instead addresses a different case: An enterprise stores thousands of S3 objects across accounts and needs to discover unclassified personal records at scale. For the stated situation (A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted.), the better principle is: Managed public certificate renewal depends on sustained validation prerequisites. The deciding distinction is: Managed public certificate renewal depends on sustained validation prerequisites.
B:Security findings need aggregation, deduplication and accountable response in multi-account environments. This instead addresses a different case: A suspicious EC2 credential event generates a GuardDuty finding but never reaches the central analyst workflow. For the stated situation (A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted.), the better principle is: Managed public certificate renewal depends on sustained validation prerequisites. The deciding distinction is: Managed public certificate renewal depends on sustained validation prerequisites.
D:AWS WAF application-layer rules can reduce abusive requests independently of network ACLs. This instead addresses a different case: A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing. For the stated situation (A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted.), the better principle is: Managed public certificate renewal depends on sustained validation prerequisites. The deciding distinction is: Managed public certificate renewal depends on sustained validation prerequisites.
Question 872
After implementing a proposed fix, the team reviews: An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery. Which result would BEST confirm that the risk is addressed?
- A test log group expires data according to its authorized retention policy.
- A failing test release restores healthy tasks while recording the rollback reason.
- Test audit events resume delivery and are decryptable by approved security analysts.
- A representative failed request produces an ALB log object readable by approved responders.
Explanation
Correct Answer
D:A representative failed request produces an ALB log object readable by approved responders. The approved action is: Set approved bucket access and logging settings without broad public permissions. The risk principle is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
Incorrect Answers
A:A test log group expires data according to its authorized retention policy. This instead addresses a different case: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. For the stated situation (An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery.), the better verification is: A representative failed request produces an ALB log object readable by approved responders. The deciding distinction is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
B:A failing test release restores healthy tasks while recording the rollback reason. This instead addresses a different case: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. For the stated situation (An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery.), the better verification is: A representative failed request produces an ALB log object readable by approved responders. The deciding distinction is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
C:Test audit events resume delivery and are decryptable by approved security analysts. This instead addresses a different case: Member accounts send CloudTrail logs to a central S3 bucket but delivery fails after the bucket switches to a new customer managed KMS key. For the stated situation (An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery.), the better verification is: A representative failed request produces an ALB log object readable by approved responders. The deciding distinction is: ALB log delivery must have an authorized S3 destination and valid prefix permissions.
Question 873
An AWS platform team investigates this condition: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. Which DevOps principle BEST explains the core problem?
- Log-group retention should reflect business, legal and investigation requirements.
- Capacity monitoring should alert on consumption, throttling and autoscaling effectiveness.
- Composite alarms can group related signals into meaningful incident notifications.
- Predictable demand can be addressed with scheduled or predictive capacity planning.
Explanation
Correct Answer
C:Composite alarms can group related signals into meaningful incident notifications. Relevant first evidence: Review alarm dependencies, parent symptoms and notification routing. The resulting controlled response is: Use CloudWatch composite alarm logic with deliberate suppression or grouping.
Incorrect Answers
A:Log-group retention should reflect business, legal and investigation requirements. This instead addresses a different case: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. For the stated situation (Five related alarms page the same team simultaneously for a single database outage, overwhelming responders.), the better principle is: Composite alarms can group related signals into meaningful incident notifications. The deciding distinction is: Composite alarms can group related signals into meaningful incident notifications.
B:Capacity monitoring should alert on consumption, throttling and autoscaling effectiveness. This instead addresses a different case: A provisioned DynamoDB table experiences frequent throttling without any configured application alarm. For the stated situation (Five related alarms page the same team simultaneously for a single database outage, overwhelming responders.), the better principle is: Composite alarms can group related signals into meaningful incident notifications. The deciding distinction is: Composite alarms can group related signals into meaningful incident notifications.
D:Predictable demand can be addressed with scheduled or predictive capacity planning. This instead addresses a different case: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. For the stated situation (Five related alarms page the same team simultaneously for a single database outage, overwhelming responders.), the better principle is: Composite alarms can group related signals into meaningful incident notifications. The deciding distinction is: Composite alarms can group related signals into meaningful incident notifications.
Question 874
After implementing a proposed fix, the team reviews: A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption. Which result would BEST confirm that the risk is addressed?
- A controlled management event from the affected account arrives in the archive.
- A test restored EBS volume is encrypted with the authorized key.
- The ALB continues presenting a renewed trusted certificate without downtime.
- A test attempt to create public access fails or triggers controlled remediation.
Explanation
Correct Answer
B:A test restored EBS volume is encrypted with the authorized key. The approved action is: Enforce default EBS encryption and approved KMS use for restore workflows. The risk principle is: Encryption standards should apply to restored volumes and associated snapshot workflows.
Incorrect Answers
A:A controlled management event from the affected account arrives in the archive. This instead addresses a different case: A central S3 audit bucket receives CloudTrail from most accounts but one member account fails because a KMS policy condition excludes its trail. For the stated situation (A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption.), the better verification is: A test restored EBS volume is encrypted with the authorized key. The deciding distinction is: Encryption standards should apply to restored volumes and associated snapshot workflows.
C:The ALB continues presenting a renewed trusted certificate without downtime. This instead addresses a different case: A production ALB certificate renewal stalls because the required DNS validation CNAME was deleted. For the stated situation (A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption.), the better verification is: A test restored EBS volume is encrypted with the authorized key. The deciding distinction is: Encryption standards should apply to restored volumes and associated snapshot workflows.
D:A test attempt to create public access fails or triggers controlled remediation. 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 (A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption.), the better verification is: A test restored EBS volume is encrypted with the authorized key. The deciding distinction is: Encryption standards should apply to restored volumes and associated snapshot workflows.
Question 875
An AWS platform team investigates this condition: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. Which DevOps principle BEST explains the core problem?
- Certificate lifecycle automation must match certificate origin and supported renewal method.
- Temporary security changes need scoped automatic detection and accountable restoration.
- Timeout diagnosis should separate function execution, network reachability and downstream latency.
- Containment automation must use precise resource identity, scope and rollback safeguards.
Explanation
Correct Answer
A:Certificate lifecycle automation must match certificate origin and supported renewal method. Relevant first evidence: Inspect ACM certificate status, DNS validation, import provenance and attached listeners. The resulting controlled response is: Use valid renewal procedures and monitored replacement for imported certificates.
Incorrect Answers
B: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 (An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored.), the better principle is: Certificate lifecycle automation must match certificate origin and supported renewal method. The deciding distinction is: Certificate lifecycle automation must match certificate origin and supported renewal method.
C:Timeout diagnosis should separate function execution, network reachability and downstream latency. This instead addresses a different case: An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database. For the stated situation (An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored.), the better principle is: Certificate lifecycle automation must match certificate origin and supported renewal method. The deciding distinction is: Certificate lifecycle automation must match certificate origin and supported renewal method.
D:Containment automation must use precise resource identity, scope and rollback safeguards. 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 (An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored.), the better principle is: Certificate lifecycle automation must match certificate origin and supported renewal method. The deciding distinction is: Certificate lifecycle automation must match certificate origin and supported renewal method.
Question 876
After implementing a proposed fix, the team reviews: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. Which result would BEST confirm that the risk is addressed?
- A simulated production admin compromise cannot erase retained centralized audit evidence.
- A member-account noncompliant test volume appears in the aggregated view.
- A deliberately vulnerable test image is found and corrected through a tracked release.
- A developer can create an allowed app role but cannot create or use an unrestricted admin role.
Explanation
Correct Answer
B:A member-account noncompliant test volume appears in the aggregated view. The approved action is: Configure an organization Config aggregator and required centrally managed rule coverage. The risk principle is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
Incorrect Answers
A:A simulated production admin compromise cannot erase retained centralized audit evidence. This instead addresses a different case: An administrator can modify production resources and delete the only CloudTrail delivery bucket objects using the same role. For the stated situation (Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region.), the better verification is: A member-account noncompliant test volume appears in the aggregated view. The deciding distinction is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
C:A deliberately vulnerable test image is found and corrected through a tracked release. This instead addresses a different case: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. For the stated situation (Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region.), the better verification is: A member-account noncompliant test volume appears in the aggregated view. The deciding distinction is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
D:A developer can create an allowed app role but cannot create or use an unrestricted admin role. This instead addresses a different case: A platform group allows developers to create application IAM roles, but one developer creates a new role granting AdministratorAccess. For the stated situation (Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region.), the better verification is: A member-account noncompliant test volume appears in the aggregated view. The deciding distinction is: Compliance monitoring needs organization-level collection and aggregation at appropriate scope.
Question 877
Before changing production, engineers find: 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. Which investigation should the engineer perform FIRST?
- Inspect secret replication, KMS key design, role access and DNS/failover flows.
- Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state.
- Map recovery dependencies, state transitions, approvals and rollback criteria.
- Inspect origin group configuration, bucket dependencies and selected HTTP failure codes.
Explanation
Correct Answer
B:Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state. The governing principle is: DNS failover needs accurate health evaluation and correctly associated routing records. The next controlled engineering decision is: Configure failover routing records with valid health checks and appropriate backup endpoint.
Incorrect Answers
A:Inspect secret replication, KMS key design, role access and DNS/failover flows. 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 secondary-region service is healthy but Route 53 sends users to a failed primary endpoint because its failover record has no meaningful health check.), the better investigation is: Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state. The deciding distinction is: DNS failover needs accurate health evaluation and correctly associated routing records.
C:Map recovery dependencies, state transitions, approvals and rollback criteria. This instead addresses a different case: A failover runbook manually changes 14 DNS and compute settings in a fixed order; quarterly drills frequently skip steps. For the stated situation (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.), the better investigation is: Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state. The deciding distinction is: DNS failover needs accurate health evaluation and correctly associated routing records.
D:Inspect origin group configuration, bucket dependencies and selected HTTP failure codes. This instead addresses a different case: A global static site uses CloudFront but both primary and fallback origins point to the same unavailable S3 bucket. For the stated situation (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.), the better investigation is: Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state. The deciding distinction is: DNS failover needs accurate health evaluation and correctly associated routing records.
Question 878
Before changing production, engineers find: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. Which investigation should the engineer perform FIRST?
- Inspect fields for status code, revision, trace ID and service name.
- Inspect installed CloudWatch agent, metric namespace, dimensions and memory alarms.
- Inspect centralized CloudTrail object layout, partitioning and access permissions.
- Review eventName, principal identity, request parameters, source IP and timestamp.
Explanation
Correct Answer
D:Review eventName, principal identity, request parameters, source IP and timestamp. The governing principle is: CloudTrail management events can attribute configuration changes when logged and retained appropriately. The next controlled engineering decision is: Query trusted CloudTrail records and correlate with approved change records.
Incorrect Answers
A:Inspect fields for status code, revision, trace ID and service name. This instead addresses a different case: A burst of HTTP 500s appears in logs, but operators query raw text and cannot correlate failures by deployment revision. For the stated situation (A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.), the better investigation is: Review eventName, principal identity, request parameters, source IP and timestamp. The deciding distinction is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
B:Inspect installed CloudWatch agent, metric namespace, dimensions and memory alarms. This instead addresses a different case: An EC2 application runs out of memory while CPU remains low, but CloudWatch dashboards contain only default EC2 CPU metrics. For the stated situation (A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.), the better investigation is: Review eventName, principal identity, request parameters, source IP and timestamp. The deciding distinction is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
C:Inspect centralized CloudTrail object layout, partitioning and access permissions. This instead addresses a different case: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. For the stated situation (A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.), the better investigation is: Review eventName, principal identity, request parameters, source IP and timestamp. The deciding distinction is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
Question 879
An AWS platform team investigates this condition: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. Which DevOps principle BEST explains the core problem?
- Integration testing must exercise dependent services and environment configuration, not just isolated functions.
- Pipeline triggers should select relevant branch and file changes without missing dependencies.
- Concurrent deployment executions must preserve intended release ordering and state consistency.
- Build-once promotion reduces environment drift and strengthens artifact provenance.
Explanation
Correct Answer
D:Build-once promotion reduces environment drift and strengthens artifact provenance. Relevant first evidence: Compare staging and production package hashes, dependency resolution and pipeline stage contracts. The resulting controlled response is: Build a versioned immutable artifact once, then promote that artifact through approvals and environments.
Incorrect Answers
A:Integration testing must exercise dependent services and environment configuration, not just isolated functions. This instead addresses a different case: Unit tests pass but a newly deployed Lambda service cannot authenticate to the staging RDS database. For the stated situation (Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.), the better principle is: Build-once promotion reduces environment drift and strengthens artifact provenance. The deciding distinction is: Build-once promotion reduces environment drift and strengthens artifact provenance.
B: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 (Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.), the better principle is: Build-once promotion reduces environment drift and strengthens artifact provenance. The deciding distinction is: Build-once promotion reduces environment drift and strengthens artifact provenance.
C:Concurrent deployment executions must preserve intended release ordering and state consistency. This instead addresses a different case: Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release. For the stated situation (Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.), the better principle is: Build-once promotion reduces environment drift and strengthens artifact provenance. The deciding distinction is: Build-once promotion reduces environment drift and strengthens artifact provenance.
Question 880
The DevOps team must resolve this scenario: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. Which engineering change is MOST appropriate?
- Use appropriate source change triggers and path filters with explicit handling of shared dependencies.
- Integrate deployment alarms and an automated rollback path for failed acceptance windows.
- Insert a manual approval action between verified staging tests and the production deployment.
- Publish a versioned Lambda layer and deploy function versions referencing the approved layer.
Explanation
Correct Answer
A:Use appropriate source change triggers and path filters with explicit handling of shared dependencies. Its validation is: An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. The principle is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
Incorrect Answers
B:Integrate deployment alarms and an automated rollback path for failed acceptance windows. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better engineering action is: Use appropriate source change triggers and path filters with explicit handling of shared dependencies. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
C:Insert a manual approval action between verified staging tests and the production deployment. This instead addresses a different case: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better engineering action is: Use appropriate source change triggers and path filters with explicit handling of shared dependencies. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.
D:Publish a versioned Lambda layer and deploy function versions referencing the approved layer. 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 monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better engineering action is: Use appropriate source change triggers and path filters with explicit handling of shared dependencies. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.