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 20
A hosted repository sends duplicate push events and the deployment pipeline starts several overlapping releases for the same commit. Choose TWO measures that implement and verify an effective AWS response to this specific situation. (Choose TWO.)
- Commit a harmless change on the approved branch and correlate its source revision with one pipeline execution and deployment artifact.
- Verify the webhook endpoint URL only, without confirming the source revision actually reaches the intended pipeline stage.
- Enable pipeline polling for every branch and accept any source revision because repository events might arrive late.
- Bind the source action to the intended branch or event rule and control concurrent executions according to the release workflow.
- Allow duplicate production executions to overlap so a later commit always finishes faster than an earlier one.
Explanation
Correct Answers
A:Commit a harmless change on the approved branch and correlate its source revision with one pipeline execution and deployment artifact. CI/CD source triggers must represent approved repository events, not merely an available polling or webhook endpoint.
D:Bind the source action to the intended branch or event rule and control concurrent executions according to the release workflow. CI/CD source triggers must represent approved repository events, not merely an available polling or webhook endpoint. Wrong or duplicate triggers can omit approved changes or cause conflicting deployments of an identical revision.
Incorrect Answers
B:Verify the webhook endpoint URL only, without confirming the source revision actually reaches the intended pipeline stage. It conflicts with the stated operating condition: CI/CD source triggers must represent approved repository events, not merely an available polling or webhook endpoint.
C:Enable pipeline polling for every branch and accept any source revision because repository events might arrive late. It conflicts with the stated operating condition: CI/CD source triggers must represent approved repository events, not merely an available polling or webhook endpoint.
E:Allow duplicate production executions to overlap so a later commit always finishes faster than an earlier one. It conflicts with the stated operating condition: CI/CD source triggers must represent approved repository events, not merely an available polling or webhook endpoint.
Question 21
A CodeBuild project that only compiles a Java package is granted permission to replace production load balancer listeners. Which implementation BEST addresses the operational issue?
- Choose a CodeDeploy deployment configuration that maintains the required minimum healthy host capacity and verifies deployment hooks.
- Publish versioned packages to controlled CodeArtifact repositories and pin tested dependency versions in build manifests.
- Shift a limited percentage of alias traffic to a new Lambda version and attach deployment alarms with automatic rollback.
- Split build and deployment service roles so CodeBuild reads required sources and artifacts while a controlled deployment action owns production changes.
Explanation
Correct Answer
D:Split build and deployment service roles so CodeBuild reads required sources and artifacts while a controlled deployment action owns production changes. An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges. If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Incorrect Answers
A:Choose a CodeDeploy deployment configuration that maintains the required minimum healthy host capacity and verifies deployment hooks.
B:Publish versioned packages to controlled CodeArtifact repositories and pin tested dependency versions in build manifests.
C:Shift a limited percentage of alias traffic to a new Lambda version and attach deployment alarms with automatic rollback. That relates to lambda alias weighted traffic with automatic rollback, not separate build permissions from production deployment permissions.
Question 22
A CodeBuild project that only compiles a Java package is granted permission to replace production load balancer listeners. How should the team validate the intended result?
- Verify the alias target and deployment package code hash against the approved pipeline artifact before traffic moves.
- Compare the running ECS task image digest to the scanned, signed and approved image manifest.
- Retrieve a prior release by object version and confirm digest, access logs and pipeline provenance match the deployment manifest.
- Use IAM policy simulation and CloudTrail to confirm the build role cannot modify live infrastructure but deployment succeeds via its separate role.
Explanation
Correct Answer
D:Use IAM policy simulation and CloudTrail to confirm the build role cannot modify live infrastructure but deployment succeeds via its separate role. An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges.
Incorrect Answers
A:Verify the alias target and deployment package code hash against the approved pipeline artifact before traffic moves.
B:Compare the running ECS task image digest to the scanned, signed and approved image manifest.
C:Retrieve a prior release by object version and confirm digest, access logs and pipeline provenance match the deployment manifest. That relates to artifact s3 bucket integrity and retention control, not separate build permissions from production deployment permissions.
Question 23
A CodeBuild project that only compiles a Java package is granted permission to replace production load balancer listeners. Which AWS operational principle BEST explains the issue?
- An artifact repository must preserve both authorized access and reliable identity of the released bytes.
- An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges.
- Blue-green separates new and old environment versions so a failed release need not rely on undoing in-place host changes.
- Infrastructure resource health does not prove the customer transaction path is operational after a release.
Explanation
Correct Answer
B:An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges. If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Incorrect Answers
A:An artifact repository must preserve both authorized access and reliable identity of the released bytes. That relates to artifact s3 bucket integrity and retention control, not controlling principle for separate build permissions from production deployment permissions.
C:Blue-green separates new and old environment versions so a failed release need not rely on undoing in-place host changes.
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 separate build permissions from production deployment permissions.
Question 24
A CodeBuild project that only compiles a Java package is granted permission to replace production load balancer listeners. What preventive practice should be maintained after the fix?
- Rebaseline load profiles and thresholds after traffic changes while retaining prior performance comparison artifacts.
- Enforce service-role templates and inspect privilege changes during pipeline and buildspec reviews.
- Revisit minimum healthy capacity and autoscaling headroom when baseline load or instance count changes.
- Audit package publication roles, namespace ownership and lock-file updates in code reviews.
Explanation
Correct Answer
B:Enforce service-role templates and inspect privilege changes during pipeline and buildspec reviews. If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Incorrect Answers
A:Rebaseline load profiles and thresholds after traffic changes while retaining prior performance comparison artifacts.
C:Revisit minimum healthy capacity and autoscaling headroom when baseline load or instance count changes. This helps sustain a control for codedeploy ec2 rolling deployment with minimum healthy hosts; it does not directly stop recurrence of separate build permissions from production deployment permissions described in this case.
D:Audit package publication roles, namespace ownership and lock-file updates in code reviews. This helps sustain a control for codeartifact package version pinning and provenance; it does not directly stop recurrence of separate build permissions from production deployment permissions described in this case.
Question 25
A CodeBuild project that only compiles a Java package is granted permission to replace production load balancer listeners. What outcome most clearly explains the business impact?
- Without service-aware deployment failure detection, a new task set may replace healthy capacity and prolong outages.
- A functionally correct version may degrade or collapse under predictable production demand.
- If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
- Without versioned artifacts, a rollback may unknowingly execute different code than the previously validated build.
Explanation
Correct Answer
C:If a build worker is compromised, unnecessary deployment rights allow direct production tampering. This is the directly relevant business or security consequence of separate build permissions from production deployment permissions. Root cause: An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges.
Incorrect Answers
A:Without service-aware deployment failure detection, a new task set may replace healthy capacity and prolong outages. That risk is relevant to ecs canary and container deployment circuit breaker, but the specific unresolved condition here concerns separate build permissions from production deployment permissions 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 separate build permissions from production deployment permissions and has a different direct consequence.
D:Without versioned artifacts, a rollback may unknowingly execute different code than the previously validated build. That risk is relevant to lambda deployment package reproducibility, but the specific unresolved condition here concerns separate build permissions from production deployment permissions and has a different direct consequence.
Question 26
A release organization uses one role for source retrieval, package creation, security scanning and all production infrastructure changes. Which solution should be prioritized to resolve the stated failure?
- Shift a limited percentage of alias traffic to a new Lambda version and attach deployment alarms with automatic rollback.
- Split build and deployment service roles so CodeBuild reads required sources and artifacts while a controlled deployment action owns production changes.
- Publish versioned packages to controlled CodeArtifact repositories and pin tested dependency versions in build manifests.
- Choose a CodeDeploy deployment configuration that maintains the required minimum healthy host capacity and verifies deployment hooks.
Explanation
Correct Answer
B:Split build and deployment service roles so CodeBuild reads required sources and artifacts while a controlled deployment action owns production changes. An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges. If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Incorrect Answers
A:Shift a limited percentage of alias traffic to a new Lambda version and attach deployment alarms with automatic rollback. That relates to lambda alias weighted traffic with automatic rollback, not separate build permissions from production deployment permissions.
C:Publish versioned packages to controlled CodeArtifact repositories and pin tested dependency versions in build manifests.
D:Choose a CodeDeploy deployment configuration that maintains the required minimum healthy host capacity and verifies deployment hooks.
Question 27
A release organization uses one role for source retrieval, package creation, security scanning and all production infrastructure changes. Which evidence would BEST demonstrate that the fix operates as intended?
- Verify the alias target and deployment package code hash against the approved pipeline artifact before traffic moves.
- Use IAM policy simulation and CloudTrail to confirm the build role cannot modify live infrastructure but deployment succeeds via its separate role.
- Compare the running ECS task image digest to the scanned, signed and approved image manifest.
- Retrieve a prior release by object version and confirm digest, access logs and pipeline provenance match the deployment manifest.
Explanation
Correct Answer
B:Use IAM policy simulation and CloudTrail to confirm the build role cannot modify live infrastructure but deployment succeeds via its separate role. An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges.
Incorrect Answers
A:Verify the alias target and deployment package code hash against the approved pipeline artifact before traffic moves.
C:Compare the running ECS task image digest to the scanned, signed and approved image manifest.
D:Retrieve a prior release by object version and confirm digest, access logs and pipeline provenance match the deployment manifest. That relates to artifact s3 bucket integrity and retention control, not separate build permissions from production deployment permissions.
Question 28
A release organization uses one role for source retrieval, package creation, security scanning and all production infrastructure changes. Which AWS operational principle BEST explains the issue?
- Functional correctness under minimal traffic does not establish performance or stability at production concurrency.
- Blue-green separates new and old environment versions so a failed release need not rely on undoing in-place host changes.
- An artifact repository must preserve both authorized access and reliable identity of the released bytes.
- An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges.
Explanation
Correct Answer
D:An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges. If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Incorrect Answers
A:Functional correctness under minimal traffic does not establish performance or stability at production concurrency. That relates to performance load test gates for capacity-sensitive releases, not controlling principle for separate build permissions from production deployment permissions.
B:Blue-green separates new and old environment versions so a failed release need not rely on undoing in-place host changes.
C:An artifact repository must preserve both authorized access and reliable identity of the released bytes. That relates to artifact s3 bucket integrity and retention control, not controlling principle for separate build permissions from production deployment permissions.
Question 29
A release organization uses one role for source retrieval, package creation, security scanning and all production infrastructure changes. What preventive practice should be maintained after the fix?
- Revisit minimum healthy capacity and autoscaling headroom when baseline load or instance count changes.
- Rebaseline load profiles and thresholds after traffic changes while retaining prior performance comparison artifacts.
- Enforce service-role templates and inspect privilege changes during pipeline and buildspec reviews.
- Version interface contracts and require integration test evidence before approving any dependent service change.
Explanation
Correct Answer
C:Enforce service-role templates and inspect privilege changes during pipeline and buildspec reviews. If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Incorrect Answers
A:Revisit minimum healthy capacity and autoscaling headroom when baseline load or instance count changes. This helps sustain a control for codedeploy ec2 rolling deployment with minimum healthy hosts; it does not directly stop recurrence of separate build permissions from production deployment permissions described in this case.
B:Rebaseline load profiles and thresholds after traffic changes while retaining prior performance comparison artifacts.
D:Version interface contracts and require integration test evidence before approving any dependent service change. This helps sustain a control for integration tests with controlled dependent services; it does not directly stop recurrence of separate build permissions from production deployment permissions described in this case.
Question 30
A release organization uses one role for source retrieval, package creation, security scanning and all production infrastructure changes. What outcome most clearly explains the business impact?
- A functionally correct version may degrade or collapse under predictable production demand.
- Without service-aware deployment failure detection, a new task set may replace healthy capacity and prolong outages.
- Without versioned artifacts, a rollback may unknowingly execute different code than the previously validated build.
- If a build worker is compromised, unnecessary deployment rights allow direct production tampering.
Explanation
Correct Answer
D:If a build worker is compromised, unnecessary deployment rights allow direct production tampering. This is the directly relevant business or security consequence of separate build permissions from production deployment permissions. Root cause: An artifact build has a narrower trust boundary than environment deployment and should not inherit full production privileges.
Incorrect Answers
A: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 separate build permissions from production deployment permissions and has a different direct consequence.
B:Without service-aware deployment failure detection, a new task set may replace healthy capacity and prolong outages. That risk is relevant to ecs canary and container deployment circuit breaker, but the specific unresolved condition here concerns separate build permissions from production deployment permissions and has a different direct consequence.
C:Without versioned artifacts, a rollback may unknowingly execute different code than the previously validated build. That risk is relevant to lambda deployment package reproducibility, but the specific unresolved condition here concerns separate build permissions from production deployment permissions and has a different direct consequence.
AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests