View Full Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Exam Dumps and Practice Test Dumps
Question 361. What does a Secrets Manager rotation schedule control?
- When a secret should be rotated
2. How ECS tasks are distributed
3. How CodeBuild caches files
4. How CloudFormation creates stacks
Correct Answer: 1. When a secret should be rotated
Explanation:
AWS Secrets Manager rotation schedules determine how frequently a secret should undergo its configured rotation process. Regular rotation reduces the amount of time that a compromised credential could remain useful. Secrets Manager can work with supported rotation mechanisms to generate a new credential, update the underlying service, and make the new version available to applications. The exact rotation implementation depends on the secret and the associated service. Applications should retrieve the current secret dynamically rather than embedding credentials in source code. Rotation schedules should also account for application behavior because systems that cache credentials for long periods may experience authentication failures if they do not refresh the secret appropriately.
Question 362. Which S3 feature protects pipeline artifacts from accidental overwrite?
- Versioning
2. Security groups
3. IAM groups
4. ECS service discovery
Correct Answer: 1. Versioning
Explanation:
Amazon S3 versioning maintains multiple versions of objects in a bucket, helping protect important pipeline artifacts from accidental overwrites or deletions. In a CI/CD architecture, artifacts may include packaged application files, deployment bundles, templates, or other release components. Versioning provides a history of object versions, making it possible to identify or recover an earlier version when supported recovery procedures are used. It does not by itself prevent every form of deletion or unauthorized access, so appropriate bucket policies, IAM permissions, encryption, and lifecycle management should also be configured. For production pipelines, versioning can provide an additional layer of resilience and traceability for artifact storage.
Question 363. Why encrypt CodePipeline artifacts in S3?
- To protect stored artifact data
2. To increase ECS capacity
3. To create Lambda aliases
4. To enable CodeBuild caching
Correct Answer: 1. To protect stored artifact data
Explanation:
Pipeline artifacts can contain application packages, configuration files, deployment templates, and other information that should not be exposed to unauthorized users. Encrypting artifacts stored in Amazon S3 helps protect their confidentiality while they are at rest. AWS Key Management Service can be used to provide controlled encryption-key management and access policies. Encryption should be combined with restrictive S3 bucket policies, least-privilege IAM permissions, and appropriate artifact-store access controls. In cross-account or cross-Region pipelines, teams should also ensure that the required principals and services can use the encryption key correctly. Protecting artifact storage is an important part of securing the software delivery supply chain.
Question 364. What does an S3 bucket policy control?
- Access to resources in the bucket
2. Lambda execution duration
3. ECS deployment percentages
4. CodeBuild compute size
Correct Answer: 1. Access to resources in the bucket
Explanation:
An Amazon S3 bucket policy is a resource-based policy that can define who is allowed or denied access to objects and operations associated with the bucket. Bucket policies are commonly used to control access for AWS accounts, IAM principals, services, or specific conditions. In a DevOps environment, an artifact bucket policy might allow a CI/CD service to read and write pipeline artifacts while denying unrelated principals. Policies can include conditions that restrict access based on factors such as encryption requirements or secure transport. Careful policy design is important because overly broad permissions can expose sensitive artifacts, while overly restrictive policies can interrupt automated deployments.
Question 365. What is an immutable artifact?
- An artifact that is not modified after creation
2. An artifact deleted after deployment
3. A temporary IAM credential
4. A CloudWatch alarm
Correct Answer: 1. An artifact that is not modified after creation
Explanation:
An immutable artifact is a release artifact that remains unchanged after it has been created and validated. Instead of rebuilding or modifying the same package between environments, a DevOps pipeline promotes the exact artifact from development through testing and eventually into production. This improves consistency because the artifact tested in an earlier environment is the same artifact deployed later. Immutable artifacts can also strengthen software supply-chain controls by making release contents easier to identify and verify. Container image digests, versioned packages, and uniquely identified deployment bundles are common examples of approaches that support immutability. This strategy reduces uncertainty caused by rebuilding software separately for each environment.
Question 366. Why promote the same artifact across environments?
- To ensure tested code is deployed unchanged
2. To increase IAM permissions
3. To disable deployment monitoring
4. To remove version tracking
Correct Answer: 1. To ensure tested code is deployed unchanged
Explanation:
Promoting the same artifact across development, testing, staging, and production environments helps ensure that the software validated earlier in the pipeline is the software ultimately released. Rebuilding an application independently for each environment can introduce differences caused by dependency changes, build-time settings, or inconsistent tooling. A controlled artifact-promotion model avoids this problem by creating a versioned artifact once and then moving that exact artifact through progressively stricter environments. Environment-specific configuration can still be supplied separately when required. This approach supports reproducibility, traceability, and reliable rollback because previous artifacts remain identifiable. It is an important DevOps practice for reducing uncertainty during production releases.
Question 367. What is a deployment quality gate?
- A condition that must pass before deployment continues
2. An ECS network interface
3. An ECR image layer
4. An S3 lifecycle rule
Correct Answer: 1. A condition that must pass before deployment continues
Explanation:
A deployment quality gate is a condition that must be satisfied before a pipeline is allowed to proceed to a later deployment stage. Quality gates can include automated unit tests, integration tests, security scans, infrastructure validation, code-quality checks, or application health measurements. In a mature CI/CD pipeline, these checks help prevent known problems from reaching production. Gates can be implemented through CodeBuild results, CodePipeline actions, approval steps, or monitoring-driven deployment controls. The goal is not simply to add more checks, but to establish meaningful criteria that provide confidence in the release. Gates should be automated wherever practical so that deployment remains repeatable and does not depend unnecessarily on manual intervention.
Question 368. Why use automated security scanning in CI/CD?
- To identify security issues before release
2. To increase application memory
3. To disable CloudTrail
4. To create ECS clusters
Correct Answer: 1. To identify security issues before release
Explanation:
Automated security scanning integrates security checks directly into the software delivery process so that potential problems can be identified before an application reaches production. Depending on the pipeline, scans can evaluate source code, dependencies, container images, infrastructure definitions, or other release components. Early detection allows teams to address vulnerabilities before they become operational incidents. A security scan should be treated as one component of a broader security program because automated tools can produce false positives, miss certain classes of problems, or depend on vulnerability databases that change over time. Integrating meaningful findings into pipeline quality gates can nevertheless reduce the likelihood of knowingly promoting vulnerable software.
Question 369. What does deployment observability provide?
- Visibility into application and deployment behavior
2. Automatic IAM administrator access
3. ECR repository deletion
4. CloudFormation template compression
Correct Answer: 1. Visibility into application and deployment behavior
Explanation:
Deployment observability provides information about how an application and its infrastructure behave before, during, and after a release. Useful signals can include request errors, latency, CPU or memory usage, logs, traces, application-specific metrics, and deployment events. These signals help teams determine whether a new release is operating normally or introducing unexpected behavior. In automated deployments, observability can also be connected to alarms that influence rollout or rollback decisions. Effective observability requires meaningful instrumentation and appropriately configured monitoring thresholds. Without reliable operational signals, a pipeline may report that a deployment completed successfully even though users are experiencing application failures.
Question 370. What is the purpose of an automated rollback?
- Restore a previously working release after failure
2. Increase build duration
3. Disable application monitoring
4. Delete deployment history
Correct Answer: 1. Restore a previously working release after failure
Explanation:
Automated rollback provides a mechanism for returning an application or infrastructure environment to a previously known working state when a deployment causes unacceptable behavior. Rollback can be triggered by failed deployment actions, health checks, CloudWatch alarms, or other predefined conditions depending on the deployment service. The goal is to reduce the duration and impact of production incidents by avoiding prolonged manual recovery. A successful rollback strategy requires that previous versions or configurations remain available and identifiable. Teams should also monitor rollback operations because the rollback itself can fail. Testing rollback procedures in realistic environments is important because an untested recovery mechanism may not behave as expected during an incident.
Question 371. What does a canary deployment initially expose?
- A small portion of traffic to the new version
2. All production traffic immediately
3. Only development users permanently
4. No users under any condition
Correct Answer: 1. A small portion of traffic to the new version
Explanation:
A canary deployment initially directs a limited portion of traffic to a new application version while the existing version continues serving the majority of users. The deployment team can then observe metrics such as error rates, latency, resource consumption, and business-specific indicators before expanding traffic. This approach reduces the blast radius of a faulty release because only a subset of users is initially exposed. If the new version behaves correctly, traffic can gradually increase until the new version becomes the primary release. Canary deployments require meaningful monitoring and clear rollback criteria. Without effective observability, the limited exposure does not provide much protection because failures may remain undetected.
Question 372. What distinguishes blue/green deployment?
- Two environments support controlled traffic switching
2. Only one environment can ever exist
3. Every deployment requires rebuilding the operating system
4. No rollback is possible
Correct Answer: 1. Two environments support controlled traffic switching
Explanation:
A blue/green deployment maintains two environments or versions so that traffic can be switched between them in a controlled manner. One environment represents the currently serving version while the other hosts the candidate release. After the new environment has been validated, traffic can be shifted to it. If serious problems are detected, traffic can potentially be redirected to the previous environment, providing a relatively fast recovery mechanism. The exact implementation can vary depending on the AWS services involved. Blue/green deployment can require additional infrastructure capacity because both environments may need to exist during the transition. Teams should also consider database compatibility and state management.
Question 373. What does a rolling deployment change gradually?
- The number of instances or tasks running the new version
2. The AWS account root password
3. The S3 bucket name
4. The KMS key identifier
Correct Answer: 1. The number of instances or tasks running the new version
Explanation:
A rolling deployment gradually replaces instances or tasks running the old application version with instances or tasks running the new version. Instead of switching the entire environment at once, the deployment proceeds in controlled batches. This can reduce infrastructure requirements compared with maintaining two complete environments, although some old and new capacity will coexist during the deployment. ECS deployment parameters such as minimum and maximum healthy percentages influence how many tasks can be stopped and started during the process. Health checks are especially important because they help determine whether new tasks are ready to receive traffic. Rolling deployments should be monitored closely because failures can affect multiple batches if not detected early.
Question 374. What does ECS minimum healthy percentage control?
- The minimum proportion of desired tasks kept healthy during deployment
2. The maximum number of IAM users
3. The ECR storage quota
4. The CloudWatch log retention period
Correct Answer: 1. The minimum proportion of desired tasks kept healthy during deployment
Explanation:
The ECS deployment minimum healthy percentage influences how many tasks ECS attempts to keep running and healthy during a rolling deployment. It is expressed relative to the service’s desired task count and helps balance availability against deployment speed. A higher minimum percentage generally places greater emphasis on maintaining running capacity while replacing old tasks, whereas a lower value can allow more old tasks to be stopped before new ones become healthy. The exact deployment behavior also depends on the maximum healthy percentage and available capacity. These settings should be selected according to application availability requirements, cluster capacity, and the characteristics of the deployment process.
Question 375. What does ECS maximum healthy percentage influence?
- How many tasks may run during a deployment
2. How many CloudTrail logs are retained
3. How many IAM policies exist
4. How many S3 buckets can be created
Correct Answer: 1. How many tasks may run during a deployment
Explanation:
The ECS deployment maximum healthy percentage determines the upper limit on the number of running tasks during a rolling deployment relative to the service’s desired count. It allows ECS to temporarily run additional tasks while new versions are started before older tasks are stopped. This can make deployments faster when sufficient capacity is available because the service can launch new tasks without immediately stopping the existing ones. However, higher temporary capacity can increase resource consumption. The maximum healthy percentage should therefore be considered together with the minimum healthy percentage, cluster capacity, task startup time, and application availability requirements to create an appropriate deployment configuration.
Question 376. What does a Lambda alias simplify during deployment?
- Switching traffic between published versions
2. Creating VPC subnets
3. Encrypting S3 buckets
4. Installing CodeBuild dependencies
Correct Answer: 1. Switching traffic between published versions
Explanation:
A Lambda alias provides a stable reference that can point to a published Lambda function version. During deployment, the alias can be updated to point to a new version or can distribute traffic between two versions using supported weighted routing. This makes aliases useful for controlled releases because applications can continue invoking the same alias while the underlying version changes. If the new version produces unacceptable results, traffic can be shifted back to the previous version. Aliases also help separate application consumers from numeric Lambda version identifiers. A deployment process should combine alias changes with monitoring so that traffic shifts are based on observable application behavior rather than simply successful version publication.
Question 377. What can Lambda weighted routing support?
- Gradual traffic shifting between versions
2. S3 object replication
3. ECR image scanning
4. CloudFormation drift detection
Correct Answer: 1. Gradual traffic shifting between versions
Explanation:
Lambda weighted routing can distribute invocation traffic between two published versions associated with an alias. This enables gradual traffic shifting, which is useful for canary-style deployments. For example, a small percentage of traffic can initially reach a new version while most requests continue using the previous version. CloudWatch metrics and application monitoring can then be used to evaluate the new release. If the release performs correctly, the deployment can increase the traffic percentage until the new version receives all traffic. If problems occur, the deployment can reduce or remove traffic from the new version. This approach provides a controlled way to expose production workloads to application changes.
Question 378. What is IAM policy simulation useful for?
- Testing whether policies allow or deny requested actions
2. Deploying ECS containers
3. Building Docker images
4. Creating CloudWatch dashboards
Correct Answer: 1. Testing whether policies allow or deny requested actions
Explanation:
IAM policy simulation helps administrators evaluate whether a principal’s policies would allow or deny specific AWS API actions under defined conditions. It can be useful when troubleshooting authorization problems or validating a least-privilege policy before applying it to production workloads. Policy simulation can help reveal how multiple identity-based policies, resource-based policies, permissions boundaries, and other authorization elements affect an action. It should be used as a validation aid rather than as the only security control. Real requests can still be affected by context, resource policies, service-specific behavior, or organizational controls. Careful testing helps reduce accidental over-permissioning while making deployment roles easier to troubleshoot.
Question 379. What does a permissions boundary limit?
- The maximum permissions an IAM principal can receive
2. The maximum ECS task count
3. The number of S3 objects
4. The size of a Lambda package
Correct Answer: 1. The maximum permissions an IAM principal can receive
Explanation:
An IAM permissions boundary establishes the maximum permissions that an IAM user or role can receive through identity-based policies. A permissions boundary does not itself grant permissions; instead, it places an upper limit on what the principal can be authorized to do. This can be useful in delegated administration scenarios where teams need to create or manage roles but must remain within centrally defined security limits. Effective permissions are determined by the interaction of applicable policies and boundaries, along with other authorization controls. Permissions boundaries are therefore useful for enforcing organizational guardrails while still allowing teams some flexibility. They should be reviewed alongside trust policies and resource-based policies.
Question 380. Why use least privilege for CI/CD roles?
- To limit the impact of compromised deployment credentials
2. To make every deployment use root access
3. To disable deployment auditing
4. To remove all pipeline automation
Correct Answer: 1. To limit the impact of compromised deployment credentials
Explanation:
Least-privilege access ensures that CI/CD roles receive only the permissions required to perform their specific deployment tasks. This is particularly important because pipeline roles can interact with production infrastructure, source artifacts, deployment services, and other sensitive resources. If a deployment credential is compromised, unnecessary permissions could significantly increase the potential impact. Restricting the role to required resources and actions reduces that risk. Organizations should also use separate roles for different environments, protect artifact stores, monitor activity with CloudTrail, and avoid embedding long-term credentials in source code. Regular permission reviews are important because deployment workflows evolve over time and unused permissions can accumulate if they are not removed.