View Full Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Exam Dumps and Practice Test Dumps
Question 21. What can trigger a CodeDeploy rollback?
- A failed CloudWatch alarm
- A new IAM user
- An S3 bucket creation
- A VPC route change
Correct Answer: 1. A failed CloudWatch alarm
Explanation:
AWS CodeDeploy can automatically stop or roll back a deployment when configured CloudWatch alarms enter an alarm state. This provides an automated safety mechanism for detecting problems after or during application deployment. For example, an application might begin producing more errors, returning slower responses, or generating excessive HTTP 5xx responses after new code is released. CloudWatch can monitor these metrics and trigger an alarm. CodeDeploy can then respond according to the configured deployment settings, including stopping the deployment or initiating rollback. This approach reduces the time required to detect failures and helps restore the application to a previously working version without requiring an administrator to manually intervene.
Question 22. What does a rolling deployment replace gradually?
- Database tables
- Application instances
- IAM policies
- S3 objects
Correct Answer: 2. Application instances
Explanation:
A rolling deployment updates application instances in groups instead of replacing the entire application environment simultaneously. During deployment, a portion of the existing instances is taken out of service or updated, while other instances continue serving traffic. Once the updated instances are healthy, another group can be processed. This strategy helps maintain application availability while new software is introduced. The size of each deployment group depends on the selected deployment configuration. Rolling deployments are useful when an organization wants to reduce infrastructure disruption and avoid requiring a completely separate environment. However, the application must tolerate different versions running simultaneously during the transition.
Question 23. Which service can react to CloudFormation events?
- Amazon EventBridge
- Amazon ECR
- AWS CodeArtifact
- Amazon Inspector
Correct Answer: 1. Amazon EventBridge
Explanation:
Amazon EventBridge can receive and process events generated by AWS services, including AWS CloudFormation. An organization can create event rules that match specific CloudFormation events and then send those events to targets such as Lambda functions, SNS topics, SQS queues, or Systems Manager Automation. This enables event-driven workflows without requiring continuous polling. For example, an organization could automatically notify an operations team when a stack deployment fails or trigger a remediation process when a particular CloudFormation event occurs. EventBridge therefore helps connect infrastructure changes with automated operational processes while reducing manual monitoring and custom integration code.
Question 24. Why promote immutable artifacts?
- To prevent unexpected changes
- To increase passwords
- To remove testing
- To disable monitoring
Correct Answer: 1. To prevent unexpected changes
Explanation:
Immutable artifacts are created once and then promoted through different environments without modification. This approach improves consistency because the exact artifact tested in one environment is the same artifact deployed to later environments. For example, a build pipeline might create a container image or application package and store it in an artifact repository. Testing can be performed against that exact version before production deployment. If the artifact were rebuilt separately for production, small differences could introduce unexpected behavior. Immutable artifact promotion therefore supports reliable release processes, improves traceability, simplifies troubleshooting, and provides stronger confidence that production is running the same software that successfully passed earlier validation.
Question 25. What does Infrastructure as Code manage?
- Infrastructure through code
- Employee attendance
- Customer invoices
- Email messages
Correct Answer: 1. Infrastructure through code
Explanation:
Infrastructure as Code, commonly called IaC, allows infrastructure resources to be defined, deployed, and managed using machine-readable configuration or programming constructs. Instead of manually creating resources through a management console, teams can define resources such as EC2 instances, VPCs, IAM roles, databases, and security groups in templates. AWS CloudFormation is a major IaC service within AWS. IaC improves repeatability because the same configuration can be used across multiple environments. It also supports version control, automated deployment, review processes, and easier recovery. In DevOps environments, IaC helps infrastructure changes become part of the same controlled and automated workflow used for application development.
Question 26. Where can CodeBuild run test commands?
- In the buildspec
- In an IAM policy
- In Route 53
- In an S3 lifecycle rule
Correct Answer: 1. In the buildspec
Explanation:
AWS CodeBuild uses a buildspec file to define commands and instructions for the build process. The buildspec can contain different phases, such as install, pre_build, build, and post_build. Test commands can be placed in an appropriate phase so that automated tests execute during the build process. If a test command fails and causes the build to fail, the pipeline can prevent the artifact from progressing to later stages. This provides an important quality-control mechanism in CI/CD. Teams can therefore integrate unit tests, integration tests, static checks, and other validation activities directly into their automated CodeBuild workflows.
Question 27. What does CodeArtifact provide?
- Package management
- DNS resolution
- Network routing
- Server monitoring
Correct Answer: 1. Package management
Explanation:
AWS CodeArtifact is a managed artifact repository service designed to store and manage software packages and dependencies. Development teams can use it to securely store packages used by applications and builds, reducing dependence on uncontrolled external package sources. CodeArtifact supports common package formats and can integrate with build systems such as AWS CodeBuild. It can also be configured to obtain packages from upstream repositories when required. Centralizing dependencies improves control, availability, and security within software delivery pipelines. Organizations can manage access through AWS Identity and Access Management and integrate repository usage into automated CI/CD workflows.
Question 28. How can a pipeline detect source changes?
- Through a source trigger
- Through an IAM password
- Through an EBS snapshot
- Through a security group
Correct Answer: 1. Through a source trigger
Explanation:
A CI/CD pipeline needs a mechanism to recognize when new source code is available so that automated processing can begin. AWS CodePipeline can use source-change detection mechanisms associated with supported source providers. When a new commit or source revision is detected, the pipeline can automatically start subsequent stages such as building, testing, and deployment. This reduces the need for developers or operations teams to manually start every release. Automated source triggers are an important part of continuous integration because they connect developer activity with repeatable delivery workflows and allow software changes to move through predefined validation and deployment stages.
Question 29. Why monitor deployments with CloudWatch?
- To detect application problems
- To create IAM users
- To store source code
- To manage DNS zones
Correct Answer: 1. To detect application problems
Explanation:
Amazon CloudWatch provides monitoring capabilities that can help teams determine whether a newly deployed application is behaving correctly. Metrics, logs, alarms, and other monitoring signals can reveal issues such as increased error rates, latency, resource exhaustion, or abnormal application behavior. During a deployment, these signals can be connected to automated controls such as CodeDeploy deployment alarms. If the new release causes monitored metrics to cross defined thresholds, an alarm can enter an alert state and support automated deployment actions. This makes CloudWatch an important component of deployment observability and helps teams identify operational problems quickly after releasing software.
Question 30. What does a blue/green deployment use?
- Two application environments
- Two IAM accounts only
- Two S3 buckets only
- Two DNS records only
Correct Answer: 1. Two application environments
Explanation:
A blue/green deployment maintains two application environments so that traffic can be moved between the existing version and the new version. The currently active environment serves users while the new version is deployed and validated separately. After testing confirms that the new version is ready, traffic can be shifted to the new environment. If serious problems occur, traffic can potentially be shifted back to the previous environment. This approach can reduce deployment downtime and simplify rollback compared with replacing the production environment in place. It is particularly useful when controlled traffic switching and rapid recovery are important operational requirements.
Question 31. What can Systems Manager Automation execute?
- Automated operational tasks
- Website advertisements
- DNS registration only
- Source-code commits only
Correct Answer: 1. Automated operational tasks
Explanation:
AWS Systems Manager Automation allows organizations to define and execute repeatable operational procedures using automation runbooks. These runbooks can perform actions across AWS resources, such as restarting services, modifying configurations, applying changes, or responding to detected operational conditions. Automation can also be integrated with other AWS services to create event-driven remediation workflows. For example, a monitoring event could trigger an automation runbook that performs a predefined corrective action. This reduces manual operational effort and helps standardize responses to recurring issues. Automation is especially useful in DevOps environments where infrastructure management and incident remediation need to be repeatable, controlled, and auditable.
Question 32. What can Parameter Store securely store?
- Configuration parameters
- Video files
- DNS traffic
- Application binaries only
Correct Answer: 1. Configuration parameters
Explanation:
AWS Systems Manager Parameter Store provides centralized storage for configuration values and parameters used by applications and infrastructure. Parameters can contain values such as environment-specific configuration settings, connection information, or other operational values. SecureString parameters can use AWS KMS encryption to protect sensitive parameter values. Applications and automation processes can retrieve parameters through IAM-controlled access instead of embedding configuration directly into source code. This separation makes deployments easier to manage because configuration can change without requiring source-code modifications. Parameter Store is commonly integrated with services such as CodeBuild, CodeDeploy, Lambda, and Systems Manager automation workflows.
Question 33. What feature can rotate Secrets Manager secrets?
- Automatic rotation
- CloudFormation drift
- S3 replication
- ECR scanning
Correct Answer: 1. Automatic rotation
Explanation:
AWS Secrets Manager supports automatic rotation for supported secrets, allowing credentials to be changed on a scheduled basis without requiring administrators to perform the process manually each time. Rotation can use AWS Lambda functions to coordinate the credential update between the secret and the associated service or database. Regular rotation reduces the amount of time that a compromised credential remains useful and supports stronger secret-management practices. Applications can retrieve the current secret from Secrets Manager rather than storing long-lived credentials in source code or configuration files. Proper IAM permissions and application integration are still required to ensure that rotated credentials are handled correctly.
Question 34. What does AWS Config evaluate?
- Resource configurations
- Employee performance
- Email content
- Application source code only
Correct Answer: 1. Resource configurations
Explanation:
AWS Config continuously records and evaluates the configurations of supported AWS resources. Organizations can create rules that determine whether resources comply with defined configuration requirements. For example, a rule could check whether security groups allow overly broad access or whether required resource settings are configured correctly. AWS Config can provide configuration history, compliance information, and relationships between resources. This makes it useful for governance, auditing, security monitoring, and automated compliance workflows. When a resource becomes noncompliant, AWS Config can also work with remediation mechanisms to initiate corrective actions. It therefore provides an important configuration-management capability for AWS environments.
Question 35. What can remediate an AWS Config violation?
- Systems Manager Automation
- Amazon Route 53
- Amazon ECR
- AWS CodeArtifact
Correct Answer: 1. Systems Manager Automation
Explanation:
AWS Config can identify resources that do not meet defined compliance requirements, while Systems Manager Automation can perform corrective actions for certain violations. A remediation workflow can invoke a predefined Systems Manager Automation runbook when a resource becomes noncompliant. For example, an organization could automatically correct a configuration setting or apply a standardized security change. This combination separates detection from remediation: Config determines whether a resource violates a rule, while Automation performs the operational response. Automated remediation reduces manual intervention and helps organizations maintain consistent configurations across large AWS environments where continuously checking and fixing resources manually would be inefficient.
Question 36. Which service scans container images?
- Amazon Inspector
- Amazon Route 53
- AWS CodeArtifact
- AWS CloudFormation
Correct Answer: 1. Amazon Inspector
Explanation:
Amazon Inspector can assess supported workloads for security vulnerabilities, including container images stored in Amazon Elastic Container Registry. Image scanning can identify known vulnerabilities in operating-system packages and supported application dependencies. This information can be incorporated into software delivery processes so that potentially vulnerable images are identified before they reach production environments. Integrating vulnerability assessment into CI/CD pipelines helps organizations discover security issues earlier in the development lifecycle. Teams can use scan findings to establish policies or quality gates that determine whether images should proceed to deployment. Regular scanning is also valuable because new vulnerabilities can be discovered after an image has already been created.
Question 37. What does AWS KMS manage?
- Encryption keys
- DNS records
- Container clusters
- Source repositories
Correct Answer: 1. Encryption keys
Explanation:
AWS Key Management Service, or AWS KMS, is used to create and control cryptographic keys used for encryption and decryption across AWS services and applications. Many AWS services can integrate with KMS to protect data at rest. KMS also provides centralized control over key permissions and usage through IAM and key policies. In DevOps environments, KMS can protect build artifacts, deployment packages, configuration data, logs, and other sensitive information. Centralized key management helps organizations apply consistent encryption controls while maintaining visibility into key usage. Proper access policies are important because permissions determine which identities and services can use specific keys.
Question 38. What do CloudFormation Hooks enforce?
- Deployment policies
- Email filtering
- DNS caching
- Database queries
Correct Answer: 1. Deployment policies
Explanation:
AWS CloudFormation Hooks can evaluate resources during CloudFormation operations and apply organization-defined checks before resources are created or updated. They can help enforce standards by examining resource properties and preventing operations that do not meet required conditions. For example, an organization could establish checks for security-related settings or required configuration attributes. This provides a preventive control because noncompliant resources can be blocked before the deployment completes. Hooks are useful in environments where teams need consistent infrastructure governance without relying entirely on manual reviews. They can complement other controls such as IAM policies, AWS Config rules, and organizational governance mechanisms.
Question 39. What provides an EC2 instance with AWS permissions?
- IAM role
- Security group
- Route table
- EBS volume
Correct Answer: 1. IAM role
Explanation:
An IAM role attached to an EC2 instance allows applications running on that instance to obtain temporary AWS credentials and call authorized AWS APIs. This is preferable to placing long-term access keys directly on the server. The permissions are defined through policies associated with the role, allowing administrators to grant only the actions required by the application. For example, an application might need permission to read specific objects from an S3 bucket or publish metrics to another AWS service. Using instance roles supports the principle of least privilege and makes credential management easier because temporary credentials are supplied automatically by AWS.
Question 40. What is a CI/CD quality gate?
- A condition that controls promotion
- A database backup
- A DNS configuration
- A network interface
Correct Answer: 1. A condition that controls promotion
Explanation:
A CI/CD quality gate is a defined condition that must be satisfied before software can progress to a later stage of the delivery pipeline. Quality gates can evaluate different signals, such as automated test results, security scan findings, code-quality measurements, deployment health metrics, or required approvals. If the required conditions are not satisfied, the pipeline can stop or prevent promotion to the next environment. This creates a controlled release process and reduces the likelihood of deploying software that has known problems. Quality gates can be implemented through pipeline actions, automated tests, approval stages, monitoring alarms, or integrations with other validation services.