AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 36
Question 350
A team proposes this change: Scale consumers using suitable queue backlog per worker or message-age signals rather than CPU alone. The environment is: SQS workers use CPU utilization as their scaling signal even though queued messages grow while CPU remains low due to network waits. Which AWS engineering principle most directly supports the proposal?
- Container-task scaling only works when cluster capacity grows with the requested task demand.
- Queue-driven applications should scale from work arrival and processing capacity, not only compute utilization.
- Serverless scaling must respect downstream system capacity; more parallel invocations are not always safer.
- Capacity mode selection should match traffic predictability while monitoring hot keys and service limits.
Explanation
Correct Answer
B:The central principle is that queue-driven applications should scale from work arrival and processing capacity, not only compute utilization. It supports the decision to scale consumers using suitable queue backlog per worker or message-age signals rather than CPU alone. because the workload problem is: SQS workers use CPU utilization as their scaling signal even though queued messages grow while CPU remains low due to network waits. The consequence of ignoring the principle is: Messages can exceed their processing deadline while worker CPUs remain mostly idle. The design can be tested by confirming that a synthetic queue burst increases consumer capacity and reduces oldest-message age to within the SLO.
Incorrect Answers
A:This principle concerns the different situation in which an ECS service scales task count, but its EC2 capacity pool cannot place more tasks during peak traffic. It explains the alternative control to configure an appropriate ECS capacity provider and scaling for the underlying compute capacity. For the present workload, sQS workers use CPU utilization as their scaling signal even though queued messages grow while CPU remains low due to network waits. the design rationale is instead that queue-driven applications should scale from work arrival and processing capacity, not only compute utilization.
C:This principle concerns the different situation in which a Lambda workload experiences a traffic spike that overwhelms a downstream database because invocations scale far beyond safe connections. It explains the alternative control to apply reserved concurrency and downstream-aware throttling or queue-based buffering to bound concurrent work. For the present workload, sQS workers use CPU utilization as their scaling signal even though queued messages grow while CPU remains low due to network waits. the design rationale is instead that queue-driven applications should scale from work arrival and processing capacity, not only compute utilization.
D:This principle concerns the different situation in which a DynamoDB table has unpredictable request peaks and provisioned throughput throttles clients despite low off-peak utilization. It explains the alternative control to evaluate DynamoDB on-demand capacity mode or appropriate auto scaling based on the observed traffic profile. For the present workload, sQS workers use CPU utilization as their scaling signal even though queued messages grow while CPU remains low due to network waits. the design rationale is instead that queue-driven applications should scale from work arrival and processing capacity, not only compute utilization.
Question 351
A team proposes this change: Store the credential in Secrets Manager with supported rotation and use authorized application retrieval. The environment is: A production database password is copied into EC2 user data and rotated manually by editing every application server. Which AWS engineering principle most directly supports the proposal?
- Central federation and temporary role sessions reduce orphaned local user identities at multi-account scale.
- Permission boundaries set an upper limit on identity permissions but do not independently grant access.
- Centralized managed secret rotation avoids distributing long-lived passwords in templates and bootstrap logs.
- Effective AWS permissions can depend on multiple policy layers, not the identity policy alone.
Explanation
Correct Answer
C:The central principle is that centralized managed secret rotation avoids distributing long-lived passwords in templates and bootstrap logs. It supports the decision to store the credential in Secrets Manager with supported rotation and use authorized application retrieval. because the workload problem is: A production database password is copied into EC2 user data and rotated manually by editing every application server. The consequence of ignoring the principle is: A leaked password can survive indefinitely on every server and force manual emergency rebuilds. The design can be tested by confirming that a rotation rehearsal updates the database and applications without exposing the secret in user data.
Incorrect Answers
A:This principle concerns the different situation in which employees from several teams require AWS console access but each workload account has manually maintained permanent IAM users. It explains the alternative control to use IAM Identity Center with federated workforce identities and permission sets mapped to approved account roles. For the present workload, a production database password is copied into EC2 user data and rotated manually by editing every application server. the design rationale is instead that centralized managed secret rotation avoids distributing long-lived passwords in templates and bootstrap logs.
B:This principle concerns the different situation in which developers may create IAM roles for their applications but must never grant themselves organization administrator rights. It explains the alternative control to attach an appropriately scoped IAM permissions boundary to roles they create and restrict boundary removal. For the present workload, a production database password is copied into EC2 user data and rotated manually by editing every application server. the design rationale is instead that centralized managed secret rotation avoids distributing long-lived passwords in templates and bootstrap logs.
D:This principle concerns the different situation in which an S3 replication service has an IAM policy allowing reads, but replication still fails because the destination bucket denies access. It explains the alternative control to review identity-based and resource-based policy requirements, trust relationships and applicable KMS permissions together. For the present workload, a production database password is copied into EC2 user data and rotated manually by editing every application server. the design rationale is instead that centralized managed secret rotation avoids distributing long-lived passwords in templates and bootstrap logs.
Question 352
The team has omitted the measure to use an AWS CodePipeline deployment role that assumes narrowly scoped target-account roles through IAM trust policies. It operates in this setting: A company deploys services into development and production AWS accounts, but the build account has permanent administrator credentials for both. Which resulting risk is MOST direct?
- An unapproved build might reach production despite policy requiring independent release authorization.
- An undocumented console-only pipeline can be rebuilt with different permissions or skipped security stages.
- A release can fail in the secondary Region because the action cannot retrieve or decrypt its input artifact.
- Long-lived deployment keys can be reused to compromise production outside approved release activity.
Explanation
Correct Answer
D:The omitted control leaves this direct failure exposure: Long-lived deployment keys can be reused to compromise production outside approved release activity. This follows from the specific situation: A company deploys services into development and production AWS accounts, but the build account has permanent administrator credentials for both. The proposed safeguard would be to use an AWS CodePipeline deployment role that assumes narrowly scoped target-account roles through IAM trust policies. The governing engineering reason is that cross-account continuous delivery should use short-lived role sessions and trust boundaries instead of static organization-wide credentials. A test would check that a test production deployment succeeds through AWS STS while access outside the defined role permissions is denied.
Incorrect Answers
A:This failure could arise in a related but different scenario: A production release requires compliance approval, yet the pipeline advances automatically from integration tests to the production stage. There the appropriate mitigation is to insert an authorized CodePipeline manual approval action before production with bounded notification and review procedures. The current environment is specifically a company deploys services into development and production AWS accounts, but the build account has permanent administrator credentials for both. Its omitted safeguard creates the more direct consequence: Long-lived deployment keys can be reused to compromise production outside approved release activity.
B:This failure could arise in a related but different scenario: A microservice team stores a CodePipeline definition only in the console, and rebuilding the production pipeline after an outage is manual. There the appropriate mitigation is to version and provision the pipeline and its supporting roles through reviewed infrastructure-as-code templates. The current environment is specifically a company deploys services into development and production AWS accounts, but the build account has permanent administrator credentials for both. Its omitted safeguard creates the more direct consequence: Long-lived deployment keys can be reused to compromise production outside approved release activity.
C:This failure could arise in a related but different scenario: A central delivery account must publish application artifacts into two AWS Regions, but the team assumes one artifact bucket automatically covers every Region. There the appropriate mitigation is to configure appropriately regionalized CodePipeline artifact stores and KMS permissions for cross-Region actions. The current environment is specifically a company deploys services into development and production AWS accounts, but the build account has permanent administrator credentials for both. Its omitted safeguard creates the more direct consequence: Long-lived deployment keys can be reused to compromise production outside approved release activity.
Question 353
A team proposes this change: Use CloudWatch anomaly detection or workload-normalized thresholds with suitable evaluation periods. The environment is: A nightly batch varies naturally with business volume and a hardcoded CloudWatch threshold creates constant false alerts. Which AWS engineering principle most directly supports the proposal?
- Behavior-sensitive alarms can reduce false positives for metrics with predictable seasonality or changing baselines.
- Operational analysis sometimes requires attributing load to distinct producers or dimensions, not just aggregate totals.
- Configuration-state evidence and identity-attributed API history complement rather than replace each other.
- Infrastructure health does not prove end-to-end application response quality under customer traffic.
Explanation
Correct Answer
A:The central principle is that behavior-sensitive alarms can reduce false positives for metrics with predictable seasonality or changing baselines. It supports the decision to use CloudWatch anomaly detection or workload-normalized thresholds with suitable evaluation periods. because the workload problem is: A nightly batch varies naturally with business volume and a hardcoded CloudWatch threshold creates constant false alerts. The consequence of ignoring the principle is: Alert fatigue may cause operators to disregard a genuinely abnormal production failure. The design can be tested by confirming that normal seasonal spikes avoid unnecessary alerts while an injected unusual deviation generates an alarm.
Incorrect Answers
B:This principle concerns the different situation in which an application uses Amazon SQS and one noisy producer dominates message backlog, but aggregate queue metrics do not identify top contributors. It explains the alternative control to use suitable dimensional custom metrics or CloudWatch Contributor Insights rules for high-cardinality traffic patterns. For the present workload, a nightly batch varies naturally with business volume and a hardcoded CloudWatch threshold creates constant false alerts. the design rationale is instead that behavior-sensitive alarms can reduce false positives for metrics with predictable seasonality or changing baselines.
C:This principle concerns the different situation in which security monitors when an S3 bucket encryption configuration changes but cannot determine who made the API request. It explains the alternative control to use AWS Config configuration history for resource state and CloudTrail for attributable API activity. For the present workload, a nightly batch varies naturally with business volume and a hardcoded CloudWatch threshold creates constant false alerts. the design rationale is instead that behavior-sensitive alarms can reduce false positives for metrics with predictable seasonality or changing baselines.
D:This principle concerns the different situation in which an ALB-backed application has healthy EC2 hosts but clients experience increased 5xx responses and unacceptable response time. It explains the alternative control to monitor Application Load Balancer error and target-response-time metrics alongside business-level availability indicators. For the present workload, a nightly batch varies naturally with business volume and a hardcoded CloudWatch threshold creates constant false alerts. the design rationale is instead that behavior-sensitive alarms can reduce false positives for metrics with predictable seasonality or changing baselines.
Question 354
A team proposes this change: Protect pipeline artifact buckets with encryption and least-privilege bucket and key access policies. The environment is: A production account receives an artifact stored in S3 without server-side encryption or an explicit deployment read role. Which AWS engineering principle most directly supports the proposal?
- A controlled package repository enables reproducible dependency resolution across CI environments.
- Stored delivery artifacts can contain proprietary code and must have controlled access at rest and during promotion.
- Container delivery must identify image content, not merely a mutable human-readable label.
- Restorable releases depend on preserving the actual tested artifacts, not assuming reproducible recompilation.
Explanation
Correct Answer
B:The central principle is that stored delivery artifacts can contain proprietary code and must have controlled access at rest and during promotion. It supports the decision to protect pipeline artifact buckets with encryption and least-privilege bucket and key access policies. because the workload problem is: A production account receives an artifact stored in S3 without server-side encryption or an explicit deployment read role. The consequence of ignoring the principle is: Public or over-broad artifact access could expose unreleased application code and supply-chain metadata. The design can be tested by confirming that policy tests deny unauthorized artifact reads and confirm encryption and approved decrypt permissions.
Incorrect Answers
A:This principle concerns the different situation in which a multi-account build consumes shared private packages but each account independently copies libraries and loses dependency provenance. It explains the alternative control to publish versioned internal packages to AWS CodeArtifact and authorize consumers using appropriate repository policies and tokens. For the present workload, a production account receives an artifact stored in S3 without server-side encryption or an explicit deployment read role. the design rationale is instead that stored delivery artifacts can contain proprietary code and must have controlled access at rest and during promotion.
C:This principle concerns the different situation in which a company overwrites an Amazon ECR image tag named production every day and cannot identify which digest was deployed during an incident. It explains the alternative control to use immutable versioned image tags or image digests and retain release-to-digest deployment records. For the present workload, a production account receives an artifact stored in S3 without server-side encryption or an explicit deployment read role. the design rationale is instead that stored delivery artifacts can contain proprietary code and must have controlled access at rest and during promotion.
D:This principle concerns the different situation in which a pipeline deletes the artifact storage object as soon as it deploys, making an emergency rollback depend on recompiling source. It explains the alternative control to retain immutable approved deployment artifacts for the required rollback and audit period. For the present workload, a production account receives an artifact stored in S3 without server-side encryption or an explicit deployment read role. the design rationale is instead that stored delivery artifacts can contain proprietary code and must have controlled access at rest and during promotion.
Question 355
An AWS DevOps engineer must address this situation: A public-facing security group is changed to allow unrestricted SSH, and AWS Config detects the violation without correcting it. Which implementation choice BEST meets the main operational requirement?
- Configure supported cross-account observability roles or CloudWatch observability links with least-privilege access.
- Route AWS Health EventBridge events to the appropriate SNS or incident workflow with account and resource context.
- Connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails.
- Route alarms through SNS or an incident integration that includes actionable ownership and response information.
Explanation
Correct Answer
C:This response directly addresses the stated requirement: Connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails. The relevant technical mechanism is that config compliance evaluation can trigger controlled, auditable actions that restore required configuration. Without this design, a prohibited rule may remain open for hours while the security team manually reviews a ticket. An operational acceptance check should confirm that a test noncompliant security group is remediated and the compliance state returns to normal.
Incorrect Answers
A:This design is appropriate for another AWS operational requirement: An operations team centralizes CloudWatch dashboards but cannot view logs from separate workload accounts without sharing administrator credentials. In that situation the corresponding response would be to configure supported cross-account observability roles or CloudWatch observability links with least-privilege access. It does not directly mitigate the current failure mode, where a prohibited rule may remain open for hours while the security team manually reviews a ticket. The current requirement instead calls for connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails.
B:This design is appropriate for another AWS operational requirement: AWS Health publishes an event for one account but its owner relies on staff manually checking the console. In that situation the corresponding response would be to route AWS Health EventBridge events to the appropriate SNS or incident workflow with account and resource context. It does not directly mitigate the current failure mode, where a prohibited rule may remain open for hours while the security team manually reviews a ticket. The current requirement instead calls for connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails.
D:This design is appropriate for another AWS operational requirement: A CloudWatch alarm sends a raw metric ID to a general mailbox without any account, resource or runbook context. In that situation the corresponding response would be to route alarms through SNS or an incident integration that includes actionable ownership and response information. It does not directly mitigate the current failure mode, where a prohibited rule may remain open for hours while the security team manually reviews a ticket. The current requirement instead calls for connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails.
Question 356
A team proposes this change: Connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails. The environment is: A public-facing security group is changed to allow unrestricted SSH, and AWS Config detects the violation without correcting it. Which AWS engineering principle most directly supports the proposal?
- Scaling alarms should reflect the bottleneck that causes service degradation, not an unrelated utilization proxy.
- Centralized monitoring should aggregate telemetry while preserving workload-account identity and access boundaries.
- Alert delivery is effective only when the receiver can interpret and act on the signal promptly.
- Config compliance evaluation can trigger controlled, auditable actions that restore required configuration.
Explanation
Correct Answer
D:The central principle is that config compliance evaluation can trigger controlled, auditable actions that restore required configuration. It supports the decision to connect a narrowly scoped Config rule with approved automatic remediation and escalation when remediation fails. because the workload problem is: A public-facing security group is changed to allow unrestricted SSH, and AWS Config detects the violation without correcting it. The consequence of ignoring the principle is: A prohibited rule may remain open for hours while the security team manually reviews a ticket. The design can be tested by confirming that a test noncompliant security group is remediated and the compliance state returns to normal.
Incorrect Answers
A:This principle concerns the different situation in which an Auto Scaling group adds instances based on average CPU although the application hits a hard connection threshold first. It explains the alternative control to publish and alarm on a meaningful application-capacity custom metric to drive supported scaling policies. For the present workload, a public-facing security group is changed to allow unrestricted SSH, and AWS Config detects the violation without correcting it. the design rationale is instead that config compliance evaluation can trigger controlled, auditable actions that restore required configuration.
B:This principle concerns the different situation in which an operations team centralizes CloudWatch dashboards but cannot view logs from separate workload accounts without sharing administrator credentials. It explains the alternative control to configure supported cross-account observability roles or CloudWatch observability links with least-privilege access. For the present workload, a public-facing security group is changed to allow unrestricted SSH, and AWS Config detects the violation without correcting it. the design rationale is instead that config compliance evaluation can trigger controlled, auditable actions that restore required configuration.
C:This principle concerns the different situation in which a CloudWatch alarm sends a raw metric ID to a general mailbox without any account, resource or runbook context. It explains the alternative control to route alarms through SNS or an incident integration that includes actionable ownership and response information. For the present workload, a public-facing security group is changed to allow unrestricted SSH, and AWS Config detects the violation without correcting it. the design rationale is instead that config compliance evaluation can trigger controlled, auditable actions that restore required configuration.
Question 357
The team has omitted the measure to use Systems Manager Patch Manager with approved baselines, maintenance windows and compliance reporting. It operates in this setting: An EC2 fleet needs monthly security patching, but engineers log into instances and run package managers manually. Which resulting risk is MOST direct?
- Hundreds of instances can remain unpatched without visibility into which hosts missed the window.
- One skipped or reordered manual command can leave infrastructure in an unsafe intermediate state.
- An unreviewed script revision can execute with broad privileges and damage unrelated environments.
- An invalid flag setting can disable every service instance before the first alert is noticed.
Explanation
Correct Answer
A:The omitted control leaves this direct failure exposure: Hundreds of instances can remain unpatched without visibility into which hosts missed the window. This follows from the specific situation: An EC2 fleet needs monthly security patching, but engineers log into instances and run package managers manually. The proposed safeguard would be to use Systems Manager Patch Manager with approved baselines, maintenance windows and compliance reporting. The governing engineering reason is that fleet patch automation requires policy-driven patch selection, scheduling and auditable results rather than individual SSH commands. A test would check that a patch run updates a canary cohort and produces compliance status for every targeted instance.
Incorrect Answers
B:This failure could arise in a related but different scenario: A recurring operations task requires several AWS API steps and human review, but staff execute commands in different orders. There the appropriate mitigation is to build a versioned Systems Manager Automation document with explicit steps, constraints and approvals. The current environment is specifically an EC2 fleet needs monthly security patching, but engineers log into instances and run package managers manually. Its omitted safeguard creates the more direct consequence: Hundreds of instances can remain unpatched without visibility into which hosts missed the window.
C:This failure could arise in a related but different scenario: Operators collect manual troubleshooting commands into unversioned shell scripts on a shared bastion server. There the appropriate mitigation is to manage approved automation documents through version control, least-privilege execution and logged Systems Manager operations. The current environment is specifically an EC2 fleet needs monthly security patching, but engineers log into instances and run package managers manually. Its omitted safeguard creates the more direct consequence: Hundreds of instances can remain unpatched without visibility into which hosts missed the window.
D:This failure could arise in a related but different scenario: A team deploys one feature-flag value to every application node instantly and causes a sudden spike in transaction failures. There the appropriate mitigation is to use AWS AppConfig deployment strategies and validators with monitors to roll out configuration changes gradually. The current environment is specifically an EC2 fleet needs monthly security patching, but engineers log into instances and run package managers manually. Its omitted safeguard creates the more direct consequence: Hundreds of instances can remain unpatched without visibility into which hosts missed the window.
Question 358
A team proposes this change: Use Amazon Macie or approved sensitive-data discovery workflows with centralized findings and remediation ownership. The environment is: An enterprise stores regulated identifiers in thousands of S3 buckets and cannot tell which new datasets contain personal information. Which AWS engineering principle most directly supports the proposal?
- Cryptographic key rotation and key deletion are distinct operations; protected historic data must remain decryptable.
- Automated data classification can locate unexpected sensitive records across distributed object storage.
- S3 object permissions and KMS decrypt authorization are independent gates for customer-managed-key data.
- Layer-seven request filtering complements network-level authorization for web application threats.
Explanation
Correct Answer
B:The central principle is that automated data classification can locate unexpected sensitive records across distributed object storage. It supports the decision to use Amazon Macie or approved sensitive-data discovery workflows with centralized findings and remediation ownership. because the workload problem is: An enterprise stores regulated identifiers in thousands of S3 buckets and cannot tell which new datasets contain personal information. The consequence of ignoring the principle is: Unknown personally identifiable data may remain broadly accessible outside required privacy controls. The design can be tested by confirming that a controlled sample bucket containing recognized sensitive fields creates a finding that reaches the correct owner.
Incorrect Answers
A:This principle concerns the different situation in which a team rotates an encryption key but inadvertently loses access to historical backups needed for compliance restoration. It explains the alternative control to use a supported KMS key lifecycle and key-policy process that preserves required decrypt availability during rotation. For the present workload, an enterprise stores regulated identifiers in thousands of S3 buckets and cannot tell which new datasets contain personal information. the design rationale is instead that automated data classification can locate unexpected sensitive records across distributed object storage.
C:This principle concerns the different situation in which an encrypted S3 object must be copied across AWS accounts, but the recipient has bucket permissions and still cannot decrypt it. It explains the alternative control to configure the appropriate KMS key policy and grants for approved cross-account encrypted object access. For the present workload, an enterprise stores regulated identifiers in thousands of S3 buckets and cannot tell which new datasets contain personal information. the design rationale is instead that automated data classification can locate unexpected sensitive records across distributed object storage.
D:This principle concerns the different situation in which a public API receives credential-stuffing bursts from many IP addresses and ordinary security groups cannot inspect HTTP request behavior. It explains the alternative control to apply AWS WAF web ACL rules and suitable rate-based controls at the relevant supported edge or ALB integration. For the present workload, an enterprise stores regulated identifiers in thousands of S3 buckets and cannot tell which new datasets contain personal information. the design rationale is instead that automated data classification can locate unexpected sensitive records across distributed object storage.
Question 359
The team has omitted the measure to configure ECR lifecycle policies that preserve deployed and rollback-required images while expiring safe old candidates. It operates in this setting: An ECR repository retains thousands of unused candidate images and storage costs grow without limits. Which resulting risk is MOST direct?
- A production incident may require a rebuild that incorporates new dependencies and behaves differently.
- Teams may unknowingly build different binaries from untracked or stale library copies.
- An indiscriminate image cleanup may delete the only known-good rollback candidate.
- Public or over-broad artifact access could expose unreleased application code and supply-chain metadata.
Explanation
Correct Answer
C:The omitted control leaves this direct failure exposure: An indiscriminate image cleanup may delete the only known-good rollback candidate. This follows from the specific situation: An ECR repository retains thousands of unused candidate images and storage costs grow without limits. The proposed safeguard would be to configure ECR lifecycle policies that preserve deployed and rollback-required images while expiring safe old candidates. The governing engineering reason is that artifact retention must balance storage hygiene with operational rollback and forensic needs. A test would check that lifecycle previews confirm obsolete unreferenced images expire while required release digests remain available.
Incorrect Answers
A:This failure could arise in a related but different scenario: A pipeline deletes the artifact storage object as soon as it deploys, making an emergency rollback depend on recompiling source. There the appropriate mitigation is to retain immutable approved deployment artifacts for the required rollback and audit period. The current environment is specifically an ECR repository retains thousands of unused candidate images and storage costs grow without limits. Its omitted safeguard creates the more direct consequence: An indiscriminate image cleanup may delete the only known-good rollback candidate.
B:This failure could arise in a related but different scenario: A multi-account build consumes shared private packages but each account independently copies libraries and loses dependency provenance. There the appropriate mitigation is to publish versioned internal packages to AWS CodeArtifact and authorize consumers using appropriate repository policies and tokens. The current environment is specifically an ECR repository retains thousands of unused candidate images and storage costs grow without limits. Its omitted safeguard creates the more direct consequence: An indiscriminate image cleanup may delete the only known-good rollback candidate.
D:This failure could arise in a related but different scenario: A production account receives an artifact stored in S3 without server-side encryption or an explicit deployment read role. There the appropriate mitigation is to protect pipeline artifact buckets with encryption and least-privilege bucket and key access policies. The current environment is specifically an ECR repository retains thousands of unused candidate images and storage costs grow without limits. Its omitted safeguard creates the more direct consequence: An indiscriminate image cleanup may delete the only known-good rollback candidate.
Question 360
An operations team deploys the following safeguard: Resolve protected build secrets at execution time through Secrets Manager or encrypted Systems Manager parameters with least-privilege roles. Which observed result is the STRONGEST validation that the safeguard works?
- A controlled commit triggers exactly the expected pipeline execution and its output records the source revision.
- The hashes and source revision of the deployed production bundle match the integration-tested release artifact.
- Access tests show the deployment role updates the intended ECS service but cannot delete logs or create IAM users.
- A test build can retrieve an authorized secret while log inspection and unauthorized role tests show no disclosure.
Explanation
Correct Answer
D:The best verification result is: A test build can retrieve an authorized secret while log inspection and unauthorized role tests show no disclosure. It specifically demonstrates that the implemented safeguard to resolve protected build secrets at execution time through Secrets Manager or encrypted Systems Manager parameters with least-privilege roles. is effective. This control matters where a pipeline downloads third-party package credentials from plaintext environment variables visible to build log readers. Without suitable evidence, the outstanding exposure is that pipeline logs or archived build specifications can expose credentials that authorize production package publication.
Incorrect Answers
A:This measurement validates a different AWS control: Configure source change detection to trigger a CodePipeline workflow with reviewed automated build and validation stages. It is most relevant where a software team manually starts releases after every merge and frequently forgets to deliver critical patches. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a test build can retrieve an authorized secret while log inspection and unauthorized role tests show no disclosure.
B:This measurement validates a different AWS control: Promote the identical immutable build artifact across environments and preserve checksum and source-revision traceability. It is most relevant where the team publishes an AWS CodeBuild artifact to S3 and then edits the binary in a separate account before production deployment. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a test build can retrieve an authorized secret while log inspection and unauthorized role tests show no disclosure.
C:This measurement validates a different AWS control: Separate pipeline stage execution roles and grant narrowly scoped build and deployment permissions. It is most relevant where a deployment pipeline runs as one broad role that can delete organization logs and create IAM users although it only updates an ECS service. It would not establish whether the current safeguard is effective; the required acceptance evidence is specifically that a test build can retrieve an authorized secret while log inspection and unauthorized role tests show no disclosure.