cert
cert-1
cert-2

Pass Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AWS Certified DevOps Engineer - Professional DOP-C02 Exam - Verified By Experts
AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle
$14.99

AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle

$74.99
$89.98
  • Premium File 480 Questions & Answers. Last update: Nov 08, 2026
  • Training Course 242 Video Lectures
 
$89.98
$74.99
accept 62 downloads in last 7 days
block-screenshots
Purchase Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam Training Products Individually
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Premium File
Premium File 480 Q&A
$76.99$69.99
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Video Training Course
Training Course 242 Lectures
$21.99 $19.99
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 87

Question 860

The DevOps team must resolve this scenario: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. Which engineering change is MOST appropriate?

  1. Correct the measured network or query bottleneck and choose an appropriate timeout.
  2. Introduce versioned event contracts, compatibility checks and error routing.
  3. Validate the webhook signature and store an idempotency key before issuing jobs.
  4. Use stable object identity and idempotent processing or transactional guards.

Explanation

Correct Answer

D:

Use stable object identity and idempotent processing or transactional guards. Its validation is: Replaying one S3 event results in one intended destination record. The principle is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

Incorrect Answers

A:

Correct the measured network or query bottleneck and choose an appropriate timeout. 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 S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better engineering action is: Use stable object identity and idempotent processing or transactional guards. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

B:

Introduce versioned event contracts, compatibility checks and error routing. This instead addresses a different case: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better engineering action is: Use stable object identity and idempotent processing or transactional guards. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

C:

Validate the webhook signature and store an idempotency key before issuing jobs. This instead addresses a different case: A partner sends the same signed webhook three times after a network timeout, and an AWS ingestion function creates three fulfillment jobs. For the stated situation (An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store.), the better engineering action is: Use stable object identity and idempotent processing or transactional guards. The deciding distinction is: Event-driven systems must handle duplicate delivery safely and preserve idempotency.

Question 861

An engineering review identifies: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. Which shortcut is MOST unsafe for this exact condition?

  1. Give every Config-triggered function AdministratorAccess to avoid AccessDenied errors.
  2. Deploy a breaking schema change without updating any subscribing consumers.
  3. Assume midnight schedule means every upstream file has finished uploading.
  4. Assume Kinesis guarantees global ordering across all shards and partition keys.

Explanation

Correct Answer

B:

Deploy a breaking schema change without updating any subscribing consumers. The case is: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. A safer engineering response is: Introduce versioned event contracts, compatibility checks and error routing. The deciding principle is: Event contracts and consumers need version-aware validation and safe schema evolution.

Incorrect Answers

A:

Give every Config-triggered function AdministratorAccess to avoid AccessDenied errors. This instead addresses a different case: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better unsafe assumption to reject is: Deploy a breaking schema change without updating any subscribing consumers. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.

C:

Assume midnight schedule means every upstream file has finished uploading. This instead addresses a different case: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better unsafe assumption to reject is: Deploy a breaking schema change without updating any subscribing consumers. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.

D:

Assume Kinesis guarantees global ordering across all shards and partition keys. This instead addresses a different case: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better unsafe assumption to reject is: Deploy a breaking schema change without updating any subscribing consumers. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.

Question 862

Before changing production, engineers find: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. Which investigation should the engineer perform FIRST?

  1. Review backup plan, cross-account copy, vault access and retention protections.
  2. Inspect retry configuration, recovery traffic ramp, standby capacity and database errors.
  3. Review producer partition keys, throttling, shard metrics and consumer lag.
  4. Review transaction ordering, backup points, queue offsets and reconciliation design.

Explanation

Correct Answer

A:

Review backup plan, cross-account copy, vault access and retention protections. The governing principle is: Recovery copies should be protected against compromised primary account identities. The next controlled engineering decision is: Use protected cross-account or cross-Region backups with appropriately isolated recovery roles.

Incorrect Answers

B:

Inspect retry configuration, recovery traffic ramp, standby capacity and database errors. This instead addresses a different case: During a regional outage, aggressive retry loops cause all recovered services to overload the backup database within minutes. For the stated situation (Ransomware could delete backups because production administrators have the same permissions on the only backup vault.), the better investigation is: Review backup plan, cross-account copy, vault access and retention protections. The deciding distinction is: Recovery copies should be protected against compromised primary account identities.

C:

Review producer partition keys, throttling, shard metrics and consumer lag. This instead addresses a different case: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. For the stated situation (Ransomware could delete backups because production administrators have the same permissions on the only backup vault.), the better investigation is: Review backup plan, cross-account copy, vault access and retention protections. The deciding distinction is: Recovery copies should be protected against compromised primary account identities.

D:

Review transaction ordering, backup points, queue offsets and reconciliation design. This instead addresses a different case: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. For the stated situation (Ransomware could delete backups because production administrators have the same permissions on the only backup vault.), the better investigation is: Review backup plan, cross-account copy, vault access and retention protections. The deciding distinction is: Recovery copies should be protected against compromised primary account identities.

Question 863

A DevOps team is reviewing: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. Which TWO complementary actions should it take? Select TWO answers.

  1. Use the appropriate metric split and correlated logs to target the failing layer.
  2. Configure CloudWatch metric streams with a managed supported delivery route.
  3. Inspect centralized CloudTrail object layout, partitioning and access permissions.
  4. Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events.
  5. Inspect X-Ray service map, trace segments, status errors and downstream call durations.

Explanation

Correct Answers

C:

Inspect centralized CloudTrail object layout, partitioning and access permissions. This is a required diagnostic evidence step for the stated situation: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. The complementary correct action is: Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events. Both follow the principle: Long-term audit queries can use protected S3 log data with suitable analytics tables.

D:

Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events. This is a required controlled engineering action for the stated situation: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. The complementary correct action is: Inspect centralized CloudTrail object layout, partitioning and access permissions. Both follow the principle: Long-term audit queries can use protected S3 log data with suitable analytics tables.

Incorrect Answers

A:

Use the appropriate metric split and correlated logs to target the failing layer. This is suitable for another situation: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. In this case, engineers instead need the paired investigation (Inspect centralized CloudTrail object layout, partitioning and access permissions.) and design change (Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events.). These two steps address: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes.

B:

Configure CloudWatch metric streams with a managed supported delivery route. This is suitable for another situation: An enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits. In this case, engineers instead need the paired investigation (Inspect centralized CloudTrail object layout, partitioning and access permissions.) and design change (Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events.). These two steps address: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes.

E:

Inspect X-Ray service map, trace segments, status errors and downstream call durations. This is suitable for another situation: An application has slow checkout requests only when external credit checks are called, but aggregate ALB metrics cannot locate the dependency. In this case, engineers instead need the paired investigation (Inspect centralized CloudTrail object layout, partitioning and access permissions.) and design change (Use an appropriate Athena-backed query or CloudTrail Lake pattern to search retained audit events.). These two steps address: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes.

Question 864

Before changing production, engineers find: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. Which investigation should the engineer perform FIRST?

  1. Trace pipeline stages, approval authorization, test outputs and required change windows.
  2. Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions.
  3. Review Lambda reserved concurrency, connection limits, event source settings and connection pooling.
  4. Inspect consumer contract tests, deployment sequencing and service version dependencies.

Explanation

Correct Answer

D:

Inspect consumer contract tests, deployment sequencing and service version dependencies. The governing principle is: Multi-service releases need explicit interface compatibility, version and rollout coordination. The next controlled engineering decision is: Introduce contract testing and backward-compatible staged promotion between affected pipelines.

Incorrect Answers

A:

Trace pipeline stages, approval authorization, test outputs and required change windows. 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 customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate.), the better investigation is: Inspect consumer contract tests, deployment sequencing and service version dependencies. The deciding distinction is: Multi-service releases need explicit interface compatibility, version and rollout coordination.

B:

Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. This instead addresses a different case: An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service. For the stated situation (A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate.), the better investigation is: Inspect consumer contract tests, deployment sequencing and service version dependencies. The deciding distinction is: Multi-service releases need explicit interface compatibility, version and rollout coordination.

C:

Review Lambda reserved concurrency, connection limits, event source settings and connection pooling. This instead addresses a different case: A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder. For the stated situation (A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate.), the better investigation is: Inspect consumer contract tests, deployment sequencing and service version dependencies. The deciding distinction is: Multi-service releases need explicit interface compatibility, version and rollout coordination.

Question 865

After implementing a proposed fix, the team reviews: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. Which result would BEST confirm that the risk is addressed?

  1. The service presents a current trusted certificate before expiry without unexpected interruption.
  2. A single crashed task is replaced, while repeated failures trigger a meaningful incident.
  3. Representative load shows reduced deadlocks and successful committed transactions.
  4. The workflow defers unsafe destruction during critical processing and records authorization.

Explanation

Correct Answer

B:

A single crashed task is replaced, while repeated failures trigger a meaningful incident. The approved action is: Use ECS service reconciliation with alarms and root-cause escalation for repeated failures. The risk principle is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

Incorrect Answers

A:

The service presents a current trusted certificate before expiry without unexpected interruption. This instead addresses a different case: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better verification is: A single crashed task is replaced, while repeated failures trigger a meaningful incident. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

C:

Representative load shows reduced deadlocks and successful committed transactions. This instead addresses a different case: A new backend version causes transaction timeouts and rising database deadlocks, while CPU utilization remains moderate. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better verification is: A single crashed task is replaced, while repeated failures trigger a meaningful incident. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

D:

The workflow defers unsafe destruction during critical processing and records authorization. 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 (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better verification is: A single crashed task is replaced, while repeated failures trigger a meaningful incident. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

Question 866

The DevOps team must resolve this scenario: A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours. Which engineering change is MOST appropriate?

  1. Use protected cross-account or cross-Region backups with appropriately isolated recovery roles.
  2. Provision and test a suitably sized standby baseline with controlled scale-up on failover.
  3. Automate suitable recovery steps with controlled Step Functions or Systems Manager workflows.
  4. Configure S3 replication with required permissions and encryption handling.

Explanation

Correct Answer

B:

Provision and test a suitably sized standby baseline with controlled scale-up on failover. Its validation is: A regional outage exercise serves business transactions within approved RTO. The principle is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.

Incorrect Answers

A:

Use protected cross-account or cross-Region backups with appropriately isolated recovery roles. This instead addresses a different case: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better engineering action is: Provision and test a suitably sized standby baseline with controlled scale-up on failover. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.

C:

Automate suitable recovery steps with controlled Step Functions or Systems Manager workflows. 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 standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better engineering action is: Provision and test a suitably sized standby baseline with controlled scale-up on failover. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.

D:

Configure S3 replication with required permissions and encryption handling. This instead addresses a different case: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better engineering action is: Provision and test a suitably sized standby baseline with controlled scale-up on failover. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.

Question 867

Before changing production, engineers find: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. Which investigation should the engineer perform FIRST?

  1. Review source history, build environment variables, secret access logs and build role permissions.
  2. Review synthetic journey coverage, response assertion logic and post-deploy gate signals.
  3. Review generated CloudFormation change sets, deletion or replacement actions and approval policy.
  4. Review staged connection settings, test secrets, IAM role access and failed connection traces.

Explanation

Correct Answer

B:

Review synthetic journey coverage, response assertion logic and post-deploy gate signals. The governing principle is: End-to-end application acceptance should validate critical customer transactions and dependencies. The next controlled engineering decision is: Add controlled authenticated canary tests for critical paths and fail deployment on business failures.

Incorrect Answers

A:

Review source history, build environment variables, secret access logs and build role permissions. This instead addresses a different case: A build job reads a database password directly from a committed buildspec environment variable. For the stated situation (After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers.), the better investigation is: Review synthetic journey coverage, response assertion logic and post-deploy gate signals. The deciding distinction is: End-to-end application acceptance should validate critical customer transactions and dependencies.

C:

Review generated CloudFormation change sets, deletion or replacement actions and approval policy. This instead addresses a different case: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. For the stated situation (After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers.), the better investigation is: Review synthetic journey coverage, response assertion logic and post-deploy gate signals. The deciding distinction is: End-to-end application acceptance should validate critical customer transactions and dependencies.

D:

Review staged connection settings, test secrets, IAM role access and failed connection traces. 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 (After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers.), the better investigation is: Review synthetic journey coverage, response assertion logic and post-deploy gate signals. The deciding distinction is: End-to-end application acceptance should validate critical customer transactions and dependencies.

Question 868

An engineering review identifies: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. Which shortcut is MOST unsafe for this exact condition?

  1. Ask analysts to sign in to each account manually every morning.
  2. Grant resource deletion across all accounts based only on a generic environment tag.
  3. Run the script across every account and Region simultaneously with no dry run.
  4. Chain asynchronous Lambda functions without recording workflow state or failure handling.

Explanation

Correct Answer

C:

Run the script across every account and Region simultaneously with no dry run. The case is: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. A safer engineering response is: Create reviewed document versions with least-privilege roles and maxConcurrency/maxErrors limits. The deciding principle is: Operational automation requires versioning, target control and bounded failure exposure.

Incorrect Answers

A:

Ask analysts to sign in to each account manually every morning. This instead addresses a different case: Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better unsafe assumption to reject is: Run the script across every account and Region simultaneously with no dry run. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.

B:

Grant resource deletion across all accounts based only on a generic environment tag. 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 (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better unsafe assumption to reject is: Run the script across every account and Region simultaneously with no dry run. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.

D:

Chain asynchronous Lambda functions without recording workflow state or failure handling. This instead addresses a different case: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. For the stated situation (A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency.), the better unsafe assumption to reject is: Run the script across every account and Region simultaneously with no dry run. The deciding distinction is: Operational automation requires versioning, target control and bounded failure exposure.

Question 869

The DevOps team must resolve this scenario: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. Which engineering change is MOST appropriate?

  1. Configure a supported CloudWatch Logs subscription to the approved analytics pipeline.
  2. Set queue age alarms and controlled poison-message routing to a DLQ.
  3. Route noncompliance events to appropriate response automation and human visibility.
  4. Create relevant throttling alarms and adjust target tracking or key design as evidence dictates.

Explanation

Correct Answer

C:

Route noncompliance events to appropriate response automation and human visibility. Its validation is: A test misconfigured resource triggers a traceable event and approved corrective action. The principle is: Configuration compliance events can trigger managed event routing and bounded remediation.

Incorrect Answers

A:

Configure a supported CloudWatch Logs subscription to the approved analytics pipeline. This instead addresses a different case: CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better engineering action is: Route noncompliance events to appropriate response automation and human visibility. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.

B:

Set queue age alarms and controlled poison-message routing to a DLQ. This instead addresses a different case: A queue's depth remains modest but its oldest message waits 40 minutes because one poison message repeatedly fails processing. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better engineering action is: Route noncompliance events to appropriate response automation and human visibility. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.

D:

Create relevant throttling alarms and adjust target tracking or key design as evidence dictates. This instead addresses a different case: A provisioned DynamoDB table experiences frequent throttling without any configured application alarm. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better engineering action is: Route noncompliance events to appropriate response automation and human visibility. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.

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?

  1. Use appropriate tag-aware policies with guarded tagging permissions.
  2. Replace stored access keys with a least-privilege EC2 instance profile role.
  3. Enable suitable access analysis and correct unapproved external principals.
  4. 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.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests