Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Practice Test Questions and Exam Dumps Part5 Q81-100

View Full Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Exam Dumps and Practice Test Dumps

 

Question 81. What does CodeDeploy use for deployment validation?

  1. Lifecycle hooks
  2. Route tables
  3. IAM groups
  4. S3 policies

Correct Answer: 1. Lifecycle hooks

Explanation:

CodeDeploy lifecycle hooks provide controlled points where validation scripts can execute during an application deployment. These scripts can check whether an application has started correctly, whether required services are available, or whether the deployed version is responding as expected. Validation can be particularly useful after installation or startup operations. If a validation script fails, the deployment can be stopped or handled according to the configured deployment strategy. This helps prevent an unhealthy application version from being treated as successfully deployed. Combining lifecycle hooks with monitoring and automated rollback mechanisms creates a stronger deployment process that can detect problems before they affect a larger portion of users.

Question 82. What does a CodeDeploy AppSpec hook control?

  1. Deployment-stage commands
  2. DNS zones
  3. IAM password rules
  4. Database backups

Correct Answer: 1. Deployment-stage commands

Explanation:

An AppSpec lifecycle hook specifies commands or scripts that CodeDeploy should execute at particular stages of the deployment process. These commands can perform preparation, installation, configuration, application startup, or validation activities. For example, a deployment may use one hook to stop an existing service and another to start the new version after files have been installed. This provides a predictable sequence for deployment operations. Because the hook definitions are part of the deployment configuration, they can be maintained alongside application code and reviewed through normal development processes. Proper error handling is important because a failed hook can affect the outcome of the deployment.

Question 83. What can CodePipeline cross-account actions use?

  1. IAM roles
  2. Security groups
  3. NAT gateways
  4. EBS snapshots

Correct Answer: 1. IAM roles

Explanation:

Cross-account CodePipeline workflows commonly rely on IAM roles to establish controlled access between AWS accounts. A role in the target account can grant the permissions needed for a deployment or other pipeline action, while a trust policy allows the appropriate principal from the source account to assume it. This design supports separation between environments while maintaining automation. For example, a development account can run the pipeline while a production account contains the resources being deployed. Cross-account permissions should be narrowly scoped and should use encryption and artifact controls where appropriate. This helps maintain account isolation without requiring long-lived credentials to be shared between environments.

Question 84. What does CodeBuild report after a build?

  1. Build status
  2. DNS ownership
  3. IAM passwords
  4. VPC routes

Correct Answer: 1. Build status

Explanation:

AWS CodeBuild provides build results that indicate whether a build completed successfully, failed, or reached another defined state. Build information can include logs, phases, timing information, and artifact details depending on the configuration. CodePipeline and other automation systems can use the build result to determine whether subsequent stages should continue. This makes build status an important control point in a CI/CD workflow. For example, a failed compilation or test command can cause the build to fail, preventing an invalid artifact from being promoted. Monitoring build results helps development and operations teams identify failures quickly and maintain reliable automated software delivery.

Question 85. What does CodeBuild batch compute improve?

  1. Parallel processing
  2. DNS failover
  3. IAM federation
  4. S3 versioning

Correct Answer: 1. Parallel processing

Explanation:

CodeBuild batch processing can allow multiple related build tasks to execute as part of a coordinated build operation. When workloads can be processed independently, parallel execution can reduce the overall time required to complete testing or compilation. This is useful for projects that need to build several variants, run multiple test combinations, or process different components simultaneously. Instead of waiting for one build to finish before another begins, suitable workloads can use available compute resources concurrently. The exact benefit depends on workload characteristics and configuration. Teams should consider build dependencies, resource consumption, and artifact handling when designing efficient batch build processes.

Question 86. What does ECR image scanning identify?

  1. Software vulnerabilities
  2. DNS records
  3. IAM users
  4. Route changes

Correct Answer: 1. Software vulnerabilities

Explanation:

Amazon ECR image scanning helps identify known security vulnerabilities within container images. Vulnerability findings can include issues associated with operating-system packages or supported application components contained in an image. Integrating scanning into a container delivery workflow allows teams to identify security concerns before images are deployed to production. Organizations can review findings and establish appropriate policies for handling vulnerable images. Scanning is not a guarantee that an image is completely secure because vulnerability databases and threat information can change over time. Therefore, continuous monitoring, secure image construction, dependency management, and timely rebuilding are important parts of an overall container security strategy.

Question 87. What does ECR image digest provide?

  1. Unique image identification
  2. DNS resolution
  3. IAM authentication
  4. Log aggregation

Correct Answer: 1. Unique image identification

Explanation:

An Amazon ECR image digest uniquely identifies a specific container image content. Unlike a mutable tag, a digest is tied to the actual image content, making it useful when exact artifact identification is required. CI/CD systems can use image digests to ensure that a deployment references the precise image that was tested and approved. This improves reproducibility and reduces ambiguity when tags are reused or changed. Digests are especially valuable for production deployments and rollback procedures because teams can determine exactly which image was deployed. Combining immutable tags with image digests provides stronger artifact traceability across container-based delivery pipelines.

Question 88. What can ECR lifecycle rules remove?

  1. Unneeded images
  2. IAM roles
  3. DNS records
  4. CloudWatch alarms

Correct Answer: 1. Unneeded images

Explanation:

Amazon ECR lifecycle policies can automatically expire container images according to configured rules. This is useful because CI/CD pipelines can generate large numbers of images over time, including development builds, test versions, and older releases. A lifecycle policy can identify images based on criteria such as tags or age and remove those that are no longer required. Automated cleanup helps control storage usage and keeps repositories easier to manage. However, policies should be designed carefully so that images needed for production deployments, rollback, auditing, or compliance are retained. Organizations should test lifecycle rules before applying them broadly to important repositories.

Question 89. What supports multi-Region ECR deployments?

  1. ECR replication
  2. IAM groups
  3. CloudTrail insights
  4. Route tables

Correct Answer: 1. ECR replication

Explanation:

Amazon ECR replication can distribute container images between supported repositories and AWS Regions. This is useful when applications are deployed across multiple geographic locations and each environment needs access to the same container artifacts. Automated replication eliminates the need for teams to manually copy images before every deployment. It can also improve deployment efficiency by making required images available closer to the target environment. Replication configuration can be designed around specific repositories and supported account or Region relationships. Organizations should ensure that permissions, encryption, repository policies, and image-management practices are properly configured so that replicated artifacts remain secure and manageable.

Question 90. What does ECS deployment health depend on?

  1. Task health checks
  2. IAM usernames
  3. S3 object names
  4. Route table tags

Correct Answer: 1. Task health checks

Explanation:

Amazon ECS uses health information to determine whether application tasks are operating correctly during deployments and normal service operation. Container health checks can execute commands inside containers to verify application behavior, while load balancer health checks can evaluate whether services are responding correctly to requests. Healthy task information is important during rolling deployments because ECS needs to determine whether new tasks are ready before reducing the number of old tasks. Proper health checks should represent meaningful application readiness rather than simply confirming that a process exists. Well-designed checks help deployments detect unhealthy versions earlier and maintain service availability during application updates.

Question 91. What does ECS deployment circuit breaker detect?

  1. Failed deployments
  2. DNS changes
  3. IAM modifications
  4. S3 deletions

Correct Answer: 1. Failed deployments

Explanation:

The Amazon ECS deployment circuit breaker can detect when a service deployment is unable to reach a stable state. When enabled, it evaluates deployment progress and can mark a deployment as failed when tasks repeatedly fail to start or become healthy. Depending on configuration, the circuit breaker can also work with rollback behavior to return the service to a previously stable deployment. This reduces the time an unhealthy version remains active and limits repeated failed task replacement. It is particularly useful for automated delivery because it provides a service-level mechanism for detecting deployment problems without requiring an administrator to watch the deployment continuously.

Question 92. What does Lambda weighted routing enable?

  1. Traffic splitting
  2. DNS registration
  3. Database indexing
  4. EBS encryption

Correct Answer: 1. Traffic splitting

Explanation:

Lambda weighted routing allows invocation traffic to be distributed between two versions of a Lambda function through an alias configuration. This can support controlled release strategies where only a portion of requests initially reaches a new version. Teams can monitor application behavior before increasing traffic to the new version. If problems appear, traffic can be adjusted back toward the stable version. Weighted routing is particularly useful for canary-style deployments because it limits exposure while a new release is being evaluated. CloudWatch alarms and CodeDeploy can be combined with this mechanism to automate monitoring and rollback decisions during progressive serverless deployments.

Question 93. What does a Lambda alias simplify?

  1. Version management
  2. DNS hosting
  3. IAM user creation
  4. Database backups

Correct Answer: 1. Version management

Explanation:

A Lambda alias provides a stable identifier for a function version or controlled combination of versions. Applications and deployment systems can reference the alias rather than directly referencing changing version numbers. For example, a production alias can initially point to one published version and later be moved to another version as part of a deployment. This simplifies application configuration and supports controlled traffic-shifting strategies. Aliases can also be used with weighted routing to distribute traffic between versions. By separating the stable application reference from the underlying version number, aliases make Lambda deployments easier to manage and automate.

Question 94. What do CloudFormation stack policies protect?

  1. Selected resources
  2. DNS records
  3. Container images
  4. IAM passwords

Correct Answer: 1. Selected resources

Explanation:

CloudFormation stack policies can help protect specified stack resources from unintended update actions during stack updates. A policy can define which resources are protected and which update actions are allowed. This can be useful for critical resources where an accidental template change could have significant consequences. Stack policies are especially valuable in environments where infrastructure is frequently modified through automation. They provide an additional safeguard during CloudFormation updates, although they should not be considered a complete access-control mechanism. Teams should combine them with IAM permissions, code review, change controls, backups, and appropriate testing to protect important infrastructure resources.

Question 95. What does CloudFormation drift detection identify?

  1. Configuration differences
  2. Source-code bugs
  3. DNS latency
  4. Password expiration

Correct Answer: 1. Configuration differences

Explanation:

CloudFormation drift detection identifies differences between the configuration defined by a CloudFormation template and the current configuration of supported resources. Drift can occur when someone manually changes a resource outside CloudFormation after it was originally deployed. Detecting these differences helps teams determine whether the actual infrastructure still matches the intended infrastructure definition. This is useful for governance, troubleshooting, and infrastructure consistency. Drift detection does not automatically correct every difference; it primarily provides information about resource state compared with the expected template configuration. Teams can then decide whether to update the template or restore the resource to the desired configuration.

Question 96. What does Systems Manager Run Command execute?

  1. Commands on managed nodes
  2. DNS transfers
  3. S3 replication
  4. IAM policy creation only

Correct Answer: 1. Commands on managed nodes

Explanation:

AWS Systems Manager Run Command allows administrators and automation systems to execute commands remotely on managed nodes without requiring direct interactive access. Commands can be used for tasks such as installing software, changing configuration, collecting information, or troubleshooting systems. Execution can target individual instances or groups of managed nodes based on supported targeting mechanisms. Results and command status can be monitored through Systems Manager. This capability is valuable in DevOps environments because operational tasks can be standardized and automated across many instances. Appropriate IAM permissions and secure Systems Manager configuration are necessary to ensure that only authorized users and automation processes can execute commands.

Question 97. What does Systems Manager Patch Manager automate?

  1. Software patching
  2. DNS routing
  3. Container replication
  4. Source-code merging

Correct Answer: 1. Software patching

Explanation:

AWS Systems Manager Patch Manager helps automate the process of applying operating-system patches to managed nodes according to defined patch baselines and maintenance requirements. Organizations can use patch policies to determine which updates should be installed and can schedule patching activities through maintenance workflows. This reduces the need for administrators to connect to individual servers and manually apply updates. Patch management is important for maintaining security and system stability, but organizations should test patches before broad production deployment when appropriate. Monitoring patch compliance also helps identify systems that remain outdated and provides visibility into the overall patching state of managed infrastructure.

Question 98. What does CloudWatch Logs Insights provide?

  1. Log analysis
  2. IAM federation
  3. DNS hosting
  4. Container orchestration

Correct Answer: 1. Log analysis

Explanation:

CloudWatch Logs Insights provides an interactive way to search and analyze log data stored in Amazon CloudWatch Logs. Teams can use queries to identify patterns, investigate errors, calculate statistics, and examine application behavior without manually reviewing large amounts of raw log data. This is useful during incident investigation and deployment troubleshooting because engineers can quickly examine logs generated by applications and infrastructure. Logs Insights can also help compare behavior before and after a deployment. Effective log analysis depends on useful application logging and appropriate retention settings. Combining logs with CloudWatch metrics, alarms, and traces provides a broader observability strategy.

Question 99. What do CloudWatch alarms monitor?

  1. Metric conditions
  2. Source repositories
  3. IAM usernames
  4. Container tags only

Correct Answer: 1. Metric conditions

Explanation:

CloudWatch alarms monitor metrics against defined thresholds or other alarm conditions and change state when those conditions are met. Metrics can represent values such as CPU utilization, request latency, error counts, queue depth, or application-specific measurements. Alarm state changes can trigger notifications or automated actions through supported integrations. In DevOps workflows, alarms are commonly used to monitor application health during deployments and provide signals for rollback or operational response. A well-designed alarm should represent a meaningful condition rather than generating alerts for normal fluctuations. Appropriate thresholds, evaluation periods, and monitoring data help reduce false alarms and improve incident response.

Question 100. What does a deployment rollback restore?

  1. A previous stable version
  2. A deleted IAM user
  3. A DNS zone
  4. A database index

Correct Answer: 1. A previous stable version

Explanation:

A deployment rollback returns an application or service toward a previously known working version when a new release causes unacceptable problems. Rollback can be triggered manually or automatically depending on the deployment system and configuration. For example, monitoring alarms may identify increased application errors after a release, causing the deployment process to restore the previous version. Effective rollback requires reliable versioned artifacts and a deployment strategy that supports returning to the earlier state. Teams should also monitor the application after rollback to confirm recovery. Automated rollback is especially valuable in high-frequency CI/CD environments because it can reduce the duration and impact of failed releases.