100% Latest & Updated Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 120
Developers publish a replacement package using the same informal label, leaving auditors unable to reproduce an incident build. Choose TWO measures that implement and verify an effective AWS response to this specific situation. (Choose TWO.)
- Permit package publishers to replace the contents of a version that has already passed the acceptance test suite.
- Let production resolve floating dependency versions so each deployment automatically gets the most recently published package.
- Verify the package name alone rather than the locked dependency version or artifact integrity hash.
- Publish versioned packages to controlled CodeArtifact repositories and pin tested dependency versions in build manifests.
- Recreate a build using the locked dependency manifest and verify package versions and hashes match the original artifact.
Explanation
Correct Answers
D:Publish versioned packages to controlled CodeArtifact repositories and pin tested dependency versions in build manifests. Reproducible builds require immutable dependency identity and trusted repositories rather than floating package resolution. Dependency substitutions can silently change tested software or introduce supply-chain malware.
E:Recreate a build using the locked dependency manifest and verify package versions and hashes match the original artifact. Reproducible builds require immutable dependency identity and trusted repositories rather than floating package resolution.
Incorrect Answers
A:Permit package publishers to replace the contents of a version that has already passed the acceptance test suite. It conflicts with the stated operating condition: Reproducible builds require immutable dependency identity and trusted repositories rather than floating package resolution.
B:Let production resolve floating dependency versions so each deployment automatically gets the most recently published package. It conflicts with the stated operating condition: Reproducible builds require immutable dependency identity and trusted repositories rather than floating package resolution.
C:Verify the package name alone rather than the locked dependency version or artifact integrity hash. It conflicts with the stated operating condition: Reproducible builds require immutable dependency identity and trusted repositories rather than floating package resolution.
Question 121
A deployment uses the mutable latest tag and a new image is pushed before the production rollout starts. Which solution should be prioritized to resolve the stated failure?
- Choose a CodeDeploy deployment configuration that maintains the required minimum healthy host capacity and verifies deployment hooks.
- Store a uniquely identifiable ECR image digest with each release and deploy the pinned digest across environments.
- Run authenticated dependency and image scanning in CI and enforce documented severity-based release criteria.
- Use a separate green environment with CodeDeploy blue-green traffic switching and preserved rollback capacity.
Explanation
Correct Answer
B:Store a uniquely identifiable ECR image digest with each release and deploy the pinned digest across environments. A mutable tag is a pointer that can change independently of the tested image bytes. Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Incorrect Answers
A:Choose a CodeDeploy deployment configuration that maintains the required minimum healthy host capacity and verifies deployment hooks. That relates to codedeploy ec2 rolling deployment with minimum healthy hosts, not container image digest promotion in amazon ecr.
C:Run authenticated dependency and image scanning in CI and enforce documented severity-based release criteria. That relates to security scan as pipeline release gate, not container image digest promotion in amazon ecr.
D:Use a separate green environment with CodeDeploy blue-green traffic switching and preserved rollback capacity. That relates to blue green deployment and traffic shift for ec2, not container image digest promotion in amazon ecr.
Question 122
A deployment uses the mutable latest tag and a new image is pushed before the production rollout starts. Which evidence would BEST demonstrate that the fix operates as intended?
- Compare the running ECS task image digest to the scanned, signed and approved image manifest.
- Compare artifact digest or version across build, staging and production deployment records for the exact release.
- Check that the new target group passes end-to-end health probes before shifting traffic and that the old group can be restored.
- Deploy a deliberately unhealthy test task and verify service events and target health restore the previous task definition.
Explanation
Correct Answer
A:Compare the running ECS task image digest to the scanned, signed and approved image manifest. A mutable tag is a pointer that can change independently of the tested image bytes.
Incorrect Answers
B:Compare artifact digest or version across build, staging and production deployment records for the exact release. That relates to immutable pipeline revision and promotion ordering, not container image digest promotion in amazon ecr.
C:Check that the new target group passes end-to-end health probes before shifting traffic and that the old group can be restored. That relates to blue green deployment and traffic shift for ec2, not container image digest promotion in amazon ecr.
D:Deploy a deliberately unhealthy test task and verify service events and target health restore the previous task definition. That relates to ecs canary and container deployment circuit breaker, not container image digest promotion in amazon ecr.
Question 123
A deployment uses the mutable latest tag and a new image is pushed before the production rollout starts. Which design distinction is MOST relevant in these conditions?
- Kubernetes scheduling success is not equivalent to application readiness, especially during dependency initialization.
- A mutable tag is a pointer that can change independently of the tested image bytes.
- A scheduler can start containers successfully even when application readiness or target-group checks fail.
- Infrastructure resource health does not prove the customer transaction path is operational after a release.
Explanation
Correct Answer
B:A mutable tag is a pointer that can change independently of the tested image bytes. Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Incorrect Answers
A:Kubernetes scheduling success is not equivalent to application readiness, especially during dependency initialization. That relates to kubernetes readiness and rolling update disruption budget, not controlling principle for container image digest promotion in amazon ecr.
C:A scheduler can start containers successfully even when application readiness or target-group checks fail. That relates to ecs canary and container deployment circuit breaker, not controlling principle for container image digest promotion in amazon ecr.
D:Infrastructure resource health does not prove the customer transaction path is operational after a release. That relates to canary verification using synthetic customer transactions, not controlling principle for container image digest promotion in amazon ecr.
Question 124
A deployment uses the mutable latest tag and a new image is pushed before the production rollout starts. Which ongoing guardrail would BEST prevent this problem from recurring?
- Protect approval authority and expiry rules, and review that no alternate pipeline stage can skip the gate.
- Restrict tag mutation and use digest-based deployment records and cleanup retention rules.
- Test deployment alarm configuration and preserve the previous published version for the rollback window.
- Periodically review each deployment role trust policy and reconcile account onboarding with pipeline permission boundaries.
Explanation
Correct Answer
B:Restrict tag mutation and use digest-based deployment records and cleanup retention rules. Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Incorrect Answers
A:Protect approval authority and expiry rules, and review that no alternate pipeline stage can skip the gate. This helps sustain a control for manual production approval after automated staging tests; it does not directly stop recurrence of container image digest promotion in amazon ecr described in this case.
C:Test deployment alarm configuration and preserve the previous published version for the rollback window. This helps sustain a control for lambda alias weighted traffic with automatic rollback; it does not directly stop recurrence of container image digest promotion in amazon ecr described in this case.
D:Periodically review each deployment role trust policy and reconcile account onboarding with pipeline permission boundaries. This helps sustain a control for cross-account deployment role trust in codepipeline; it does not directly stop recurrence of container image digest promotion in amazon ecr described in this case.
Question 125
A deployment uses the mutable latest tag and a new image is pushed before the production rollout starts. Which risk is directly created by the described failure?
- Aggressive batching can turn an otherwise valid application update into a preventable service outage.
- Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
- Wrong or duplicate triggers can omit approved changes or cause conflicting deployments of an identical revision.
- A functionally correct version may degrade or collapse under predictable production demand.
Explanation
Correct Answer
B:Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible. This is the directly relevant business or security consequence of container image digest promotion in amazon ecr. Root cause: A mutable tag is a pointer that can change independently of the tested image bytes.
Incorrect Answers
A:Aggressive batching can turn an otherwise valid application update into a preventable service outage. That risk is relevant to codedeploy ec2 rolling deployment with minimum healthy hosts, but the specific unresolved condition here concerns container image digest promotion in amazon ecr and has a different direct consequence.
C:Wrong or duplicate triggers can omit approved changes or cause conflicting deployments of an identical revision. That risk is relevant to event driven source changes initiate pipeline runs, but the specific unresolved condition here concerns container image digest promotion in amazon ecr and has a different direct consequence.
D:A functionally correct version may degrade or collapse under predictable production demand. That risk is relevant to performance load test gates for capacity-sensitive releases, but the specific unresolved condition here concerns container image digest promotion in amazon ecr and has a different direct consequence.
Question 126
An ECS service rollback selects a container tag that has since been moved to a different digest. Which implementation BEST addresses the operational issue?
- Store a uniquely identifiable ECR image digest with each release and deploy the pinned digest across environments.
- Run authenticated dependency and image scanning in CI and enforce documented severity-based release criteria.
- Use a separate green environment with CodeDeploy blue-green traffic switching and preserved rollback capacity.
- Add integration tests in a representative isolated environment with explicit dependent services and cleanup after execution.
Explanation
Correct Answer
A:Store a uniquely identifiable ECR image digest with each release and deploy the pinned digest across environments. A mutable tag is a pointer that can change independently of the tested image bytes. Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Incorrect Answers
B:Run authenticated dependency and image scanning in CI and enforce documented severity-based release criteria. That relates to security scan as pipeline release gate, not container image digest promotion in amazon ecr.
C:Use a separate green environment with CodeDeploy blue-green traffic switching and preserved rollback capacity. That relates to blue green deployment and traffic shift for ec2, not container image digest promotion in amazon ecr.
D:Add integration tests in a representative isolated environment with explicit dependent services and cleanup after execution. That relates to integration tests with controlled dependent services, not container image digest promotion in amazon ecr.
Question 127
An ECS service rollback selects a container tag that has since been moved to a different digest. How should the team validate the intended result?
- Check that the new target group passes end-to-end health probes before shifting traffic and that the old group can be restored.
- Deploy a deliberately unhealthy test task and verify service events and target health restore the previous task definition.
- Compare the running ECS task image digest to the scanned, signed and approved image manifest.
- Compare artifact digest or version across build, staging and production deployment records for the exact release.
Explanation
Correct Answer
C:Compare the running ECS task image digest to the scanned, signed and approved image manifest. A mutable tag is a pointer that can change independently of the tested image bytes.
Incorrect Answers
A:Check that the new target group passes end-to-end health probes before shifting traffic and that the old group can be restored. That relates to blue green deployment and traffic shift for ec2, not container image digest promotion in amazon ecr.
B:Deploy a deliberately unhealthy test task and verify service events and target health restore the previous task definition. That relates to ecs canary and container deployment circuit breaker, not container image digest promotion in amazon ecr.
D:Compare artifact digest or version across build, staging and production deployment records for the exact release. That relates to immutable pipeline revision and promotion ordering, not container image digest promotion in amazon ecr.
Question 128
An ECS service rollback selects a container tag that has since been moved to a different digest. Which design distinction is MOST relevant in these conditions?
- A scheduler can start containers successfully even when application readiness or target-group checks fail.
- A mutable tag is a pointer that can change independently of the tested image bytes.
- Infrastructure resource health does not prove the customer transaction path is operational after a release.
- Kubernetes scheduling success is not equivalent to application readiness, especially during dependency initialization.
Explanation
Correct Answer
B:A mutable tag is a pointer that can change independently of the tested image bytes. Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Incorrect Answers
A:A scheduler can start containers successfully even when application readiness or target-group checks fail. That relates to ecs canary and container deployment circuit breaker, not controlling principle for container image digest promotion in amazon ecr.
C:Infrastructure resource health does not prove the customer transaction path is operational after a release. That relates to canary verification using synthetic customer transactions, not controlling principle for container image digest promotion in amazon ecr.
D:Kubernetes scheduling success is not equivalent to application readiness, especially during dependency initialization. That relates to kubernetes readiness and rolling update disruption budget, not controlling principle for container image digest promotion in amazon ecr.
Question 129
An ECS service rollback selects a container tag that has since been moved to a different digest. Which ongoing guardrail would BEST prevent this problem from recurring?
- Restrict tag mutation and use digest-based deployment records and cleanup retention rules.
- Periodically review each deployment role trust policy and reconcile account onboarding with pipeline permission boundaries.
- Test deployment alarm configuration and preserve the previous published version for the rollback window.
- Enforce compatibility tests and defer destructive schema cleanup until old clients are verified absent.
Explanation
Correct Answer
A:Restrict tag mutation and use digest-based deployment records and cleanup retention rules. Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Incorrect Answers
B:Periodically review each deployment role trust policy and reconcile account onboarding with pipeline permission boundaries. This helps sustain a control for cross-account deployment role trust in codepipeline; it does not directly stop recurrence of container image digest promotion in amazon ecr described in this case.
C:Test deployment alarm configuration and preserve the previous published version for the rollback window. This helps sustain a control for lambda alias weighted traffic with automatic rollback; it does not directly stop recurrence of container image digest promotion in amazon ecr described in this case.
D:Enforce compatibility tests and defer destructive schema cleanup until old clients are verified absent. This helps sustain a control for stateful schema evolution during zero downtime releases; it does not directly stop recurrence of container image digest promotion in amazon ecr described in this case.
Question 130
An ECS service rollback selects a container tag that has since been moved to a different digest. Which risk is directly created by the described failure?
- Aggressive batching can turn an otherwise valid application update into a preventable service outage.
- A functionally correct version may degrade or collapse under predictable production demand.
- Wrong or duplicate triggers can omit approved changes or cause conflicting deployments of an identical revision.
- Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible.
Explanation
Correct Answer
D:Mutable image references can cause nonrepeatable deployments and make a validated rollback impossible. This is the directly relevant business or security consequence of container image digest promotion in amazon ecr. Root cause: A mutable tag is a pointer that can change independently of the tested image bytes.
Incorrect Answers
A:Aggressive batching can turn an otherwise valid application update into a preventable service outage. That risk is relevant to codedeploy ec2 rolling deployment with minimum healthy hosts, but the specific unresolved condition here concerns container image digest promotion in amazon ecr and has a different direct consequence.
B:A functionally correct version may degrade or collapse under predictable production demand. That risk is relevant to performance load test gates for capacity-sensitive releases, but the specific unresolved condition here concerns container image digest promotion in amazon ecr and has a different direct consequence.
C:Wrong or duplicate triggers can omit approved changes or cause conflicting deployments of an identical revision. That risk is relevant to event driven source changes initiate pipeline runs, but the specific unresolved condition here concerns container image digest promotion in amazon ecr and has a different direct consequence.
AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests