Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Practice Test Questions and Exam Dumps Part 6 Q101-120

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

 

Question 101. What automates a CodePipeline workflow?

  1. CloudTrail
    2. CodePipeline
    3. GuardDuty
    4. Inspector

Correct Answer: 2. CodePipeline

Explanation:

AWS CodePipeline is designed to automate the stages involved in releasing application changes, including source retrieval, building, testing, and deployment. A pipeline can connect services such as CodeCommit, Amazon S3, CodeBuild, CodeDeploy, and other supported actions into a controlled workflow. When a configured source change is detected, CodePipeline can automatically move artifacts through the defined stages. This reduces the need for manually coordinating releases and provides a repeatable delivery process. Teams can also add approvals, testing actions, deployment actions, and failure handling to control how changes progress through the pipeline.

Question 102. What defines an individual step in CodePipeline?

  1. Repository
    2. Artifact
    3. Action
    4. Environment

Correct Answer: 3. Action

Explanation:

An action represents an individual task performed within a CodePipeline stage. Examples include retrieving source code, running a CodeBuild project, deploying through CodeDeploy, invoking a Lambda function, or performing another supported operation. Actions are organized inside stages, and a stage can contain one or more actions that execute sequentially or in parallel depending on the configuration. Understanding the distinction between stages and actions is important when designing CI/CD workflows. A stage represents a logical phase of the pipeline, while actions perform the specific operations required during that phase.

Question 103. Where can CodePipeline store artifacts?

  1. Amazon S3
    2. Amazon Route 53
    3. Amazon CloudFront
    4. Amazon DynamoDB

Correct Answer: 1. Amazon S3

Explanation:

Amazon S3 is commonly used by CodePipeline as an artifact store for intermediate files exchanged between pipeline stages. Build outputs, packaged application files, and other artifacts can be stored in an S3 bucket and passed from one action to another. Using S3 provides durable storage and allows different pipeline services to access artifacts without requiring direct communication between every stage. Organizations can also apply security controls such as bucket policies, encryption, versioning, and access permissions. Proper artifact-store configuration is therefore an important part of designing a secure and reliable CI/CD pipeline.

Question 104. What does CodeBuild produce after a successful build?

  1. IAM policies
    2. CloudWatch alarms
    3. Deployment groups
    4. Build artifacts

Correct Answer: 4. Build artifacts

Explanation:

AWS CodeBuild can produce build artifacts as output from a successful build process. These artifacts may include compiled binaries, packaged application files, deployment packages, configuration files, or other files required by later stages of a release workflow. The buildspec file determines which files or directories should be included as output. Artifacts can then be stored in Amazon S3 or passed to another service through CodePipeline. Separating source files from generated artifacts helps create a repeatable release process because downstream deployment stages can consume a defined build output rather than rebuilding the application independently.

Question 105. Where can CodeBuild obtain sensitive environment values?

  1. Amazon Route 53
    2. AWS Systems Manager Parameter Store
    3. Amazon CloudFront
    4. AWS Trusted Advisor

Correct Answer: 2. AWS Systems Manager Parameter Store

Explanation:

CodeBuild can retrieve configuration values and sensitive parameters from AWS Systems Manager Parameter Store instead of placing those values directly inside source code or buildspec files. Parameter Store supports storing configuration data and secure string parameters, allowing access to be controlled through IAM permissions. CodeBuild can reference these values as environment variables during a build. This approach helps reduce the risk of accidentally exposing credentials or configuration information in source repositories. For secrets that require dedicated secret-management capabilities, AWS Secrets Manager can also be integrated into the build environment.

Question 106. Which file commonly defines CodeBuild commands?

  1. buildspec.yml
    2. appspec.yml
    3. template.json
    4. policy.xml

Correct Answer: 1. buildspec.yml

Explanation:

The buildspec file defines how AWS CodeBuild should perform a build. It can specify phases such as installation, pre-build, build, and post-build, along with commands that should run during those phases. It can also define artifacts, environment variables, reports, and other build-related settings. By keeping build instructions in a version-controlled buildspec file, teams can make the build process repeatable and consistent across environments. CodeBuild reads the buildspec configuration when a build starts and executes the specified commands according to the defined sequence.

Question 107. What can CodeArtifact cache from an upstream repository?

  1. IAM roles
    2. CloudFormation stacks
    3. Software packages
    4. EC2 instances

Correct Answer: 3. Software packages

Explanation:

AWS CodeArtifact can use upstream repositories to obtain software packages that are not already available in a local repository. When a requested package is retrieved through an upstream connection, CodeArtifact can retain the package in the domain’s repository so that subsequent requests can be served from the managed repository. This reduces repeated external downloads and provides organizations with greater control over dependency consumption. CodeArtifact supports package formats used by several popular development ecosystems. Centralizing dependencies can also improve build consistency because development and CI/CD environments can consume packages through a controlled organizational repository.

Question 108. What controls access to a CodeArtifact repository?

  1. IAM permissions
    2. Route 53 records
    3. CloudWatch dashboards
    4. ECR lifecycle rules

Correct Answer: 4. IAM permissions

Explanation:

AWS Identity and Access Management controls who can perform operations against CodeArtifact resources. IAM policies can allow or deny actions such as reading packages, publishing packages, obtaining authorization tokens, or managing repositories and domains. Permissions should follow the principle of least privilege so that developers, build systems, and deployment services receive only the access they actually require. CodeArtifact repository resource policies can also be used for cross-account access scenarios. Correctly designing these permissions is important because package repositories can contain proprietary software, internal libraries, and dependencies that should not be broadly accessible.

Question 109. What prevents overwriting an existing ECR image tag?

  1. CloudTrail
    2. ECR tag immutability
    3. CloudFormation
    4. AWS Config

Correct Answer: 2. ECR tag immutability

Explanation:

Amazon Elastic Container Registry supports tag immutability to prevent an existing image tag from being reused for a different image. This is valuable in CI/CD environments because tags such as release identifiers can otherwise be moved to another image, making it difficult to determine exactly which image was deployed. With immutable tags enabled, an existing tag cannot simply be overwritten with a new image. Teams can therefore associate a tag with a specific image more reliably. Image digests provide an even stronger immutable identifier because the digest uniquely represents the image content.

Question 110. What controls repository-level ECR access?

  1. CloudWatch Logs
    2. AWS Config
    3. ECR repository policy
    4. CodeBuild report group

Correct Answer: 3. ECR repository policy

Explanation:

An Amazon ECR repository policy controls access to a particular container image repository. Repository policies are especially useful when access must be granted to principals in another AWS account or when repository-specific permissions need to be defined. IAM policies can also control ECR operations, so both identity-based and resource-based authorization may be relevant depending on the scenario. A well-designed repository policy should restrict access to the required principals and actions. For example, a deployment role may need permission to pull images while a CI role may require permissions to push new images.

Question 111. What determines how many ECS tasks a service should maintain?

  1. Desired task count
    2. Route 53 health checks
    3. CloudTrail events
    4. S3 lifecycle rules

Correct Answer: 1. Desired task count

Explanation:

The desired task count of an Amazon ECS service specifies how many task instances the service attempts to keep running. ECS continuously works toward maintaining that desired number by starting replacement tasks when appropriate and stopping excess tasks during service changes. Desired count can be configured manually or adjusted through service auto scaling. Maintaining an appropriate desired count is important for application availability and capacity. During deployments, ECS also uses deployment configuration settings to determine how many tasks can run during the transition between old and new task revisions.

Question 112. What checks whether an ECS task is ready for traffic?

  1. CloudTrail
    2. IAM Access Analyzer
    3. Load balancer health check
    4. CodeArtifact

Correct Answer: 4. Load balancer health check

Explanation:

When an ECS service is integrated with an Elastic Load Balancing target group, load balancer health checks can determine whether registered tasks are healthy enough to receive traffic. The health check sends requests to the configured path and evaluates the response according to the target group’s settings. If a task repeatedly fails the health check, the load balancer can stop routing traffic to that target. ECS deployment behavior can also use target health information when replacing tasks. Proper health-check configuration helps prevent traffic from being sent to containers that have started but are not yet ready to serve requests correctly.

Question 113. What controls ECS blue/green traffic shifting?

  1. AWS Config
    2. CodeDeploy
    3. Amazon Inspector
    4. AWS Backup

Correct Answer: 2. CodeDeploy

Explanation:

AWS CodeDeploy can manage blue/green deployments for Amazon ECS services by coordinating traffic movement between the existing task set and the replacement task set. This approach allows the new application version to be deployed separately before production traffic is shifted to it. Depending on the deployment configuration, traffic can be moved in stages or all at once. During the transition, health checks and deployment monitoring can help identify problems. If the deployment fails according to configured conditions, the previous environment can remain available while the deployment is stopped or rolled back.

Question 114. What happens to the previous ECS environment in blue/green deployment?

  1. It becomes an IAM role
    2. It is always deleted immediately
    3. It becomes an S3 bucket
    4. It can remain available during deployment

Correct Answer: 4. It can remain available during deployment

Explanation:

In an ECS blue/green deployment, the existing environment can remain active while the replacement environment is created and validated. This separation provides a useful safety mechanism because production traffic can initially continue using the previous task set while the new version is tested. After successful validation and traffic shifting, the previous environment can eventually be terminated according to the deployment configuration. Keeping the old environment available during the transition supports faster recovery because the deployment process does not require rebuilding the previous version if a problem is detected.

Question 115. What reduces cold-start impact for Lambda functions?

  1. Provisioned concurrency
    2. CloudTrail
    3. S3 versioning
    4. ECR lifecycle policy

Correct Answer: 1. Provisioned concurrency

Explanation:

AWS Lambda provisioned concurrency keeps a configured number of execution environments initialized and ready to respond to requests. This can significantly reduce initialization latency for applications that require predictable response times, particularly when traffic begins suddenly or when a function performs expensive initialization work. Provisioned concurrency can be associated with a published Lambda version or alias, allowing specific versions of an application to receive pre-initialized capacity. It differs from reserved concurrency, which primarily establishes a concurrency limit and protects capacity for a function rather than specifically keeping execution environments initialized.

Question 116. What limits concurrent Lambda executions?

  1. CodeArtifact
    2. Reserved concurrency
    3. CloudFormation drift
    4. S3 replication

Correct Answer: 2. Reserved concurrency

Explanation:

Lambda reserved concurrency establishes a dedicated concurrency limit for a function. It ensures that the function cannot consume more than the configured number of concurrent executions and also reserves that amount of account concurrency for the function. This can help prevent one workload from consuming excessive Lambda capacity and affecting other functions. Reserved concurrency is therefore useful for protecting critical workloads and controlling scaling behavior. It is different from provisioned concurrency, which keeps execution environments initialized to reduce startup latency. The two features address different operational concerns and can be used together when appropriate.

Question 117. What applies CloudFormation changes after review?

  1. Change set execution
    2. Drift detection
    3. Stack termination protection
    4. Stack policy

Correct Answer: 1. Change set execution

Explanation:

A CloudFormation change set allows administrators to review proposed modifications before they are applied to an existing stack. After reviewing the proposed resource additions, modifications, or removals, the change set can be executed to apply those changes. This provides an important control point for infrastructure deployments because teams can inspect the expected impact before modifying production resources. Creating a change set does not itself apply the changes. Execution is the step that causes CloudFormation to perform the operations described by the change set, subject to normal stack update behavior and resource dependencies.

Question 118. What does a CloudFormation change set provide?

  1. Secret rotation
    2. A preview of stack changes
    3. Container image scanning
    4. IAM credential rotation

Correct Answer: 2. A preview of stack changes

Explanation:

A CloudFormation change set provides a preview of how a proposed stack update is expected to affect resources. It can show resources that will be added, modified, or removed and can identify certain replacement behavior before the update is executed. This is particularly useful for production infrastructure because administrators can review potentially disruptive changes before applying them. Change sets improve visibility in infrastructure-as-code workflows and can be incorporated into controlled deployment processes. However, the preview should be interpreted carefully because some runtime behavior or external dependencies may not be completely represented by the change set.

Question 119. What protects a CloudFormation stack from deletion?

  1. StackSets
    2. Change sets
    3. Termination protection
    4. Drift detection

Correct Answer: 3. Termination protection

Explanation:

CloudFormation termination protection helps prevent an entire stack from being accidentally deleted. When termination protection is enabled, a request to delete the protected stack is blocked until the protection setting is disabled. This can be especially useful for production environments or other stacks containing critical infrastructure. Termination protection should not be confused with a stack policy. A stack policy controls which resources can be updated during stack operations, while termination protection specifically helps prevent stack deletion. Organizations can combine multiple CloudFormation safeguards to reduce the risk of accidental infrastructure changes.

Question 120. What deploys CloudFormation stacks across accounts and Regions?

  1. CodeBuild
    2. CloudWatch
    3. StackSets
    4. CodeArtifact

Correct Answer: 3. StackSets

Explanation:

AWS CloudFormation StackSets enables administrators to create and manage CloudFormation stacks across multiple AWS accounts and AWS Regions from a centralized configuration. This is useful for organizations that need consistent infrastructure, security resources, logging configurations, or operational components across many environments. StackSets can work with AWS Organizations and can use deployment preferences to control how stack instances are created or updated. Instead of manually deploying the same template repeatedly, administrators can define a StackSet and target the required accounts and Regions. This supports standardized infrastructure management while reducing repetitive deployment work.