Amazon AWS DevOps Engineer Professional Exam
AWS DevOps Engineer - Professional (DOP-C01) (Page 6 )

Updated On: 12-Feb-2026

A DevOps engineer wants to nd a solution to migrate an application from on premises to AWS. The application is running on Linux and needs to run on speci c versions of Apache Tomcat, HAProxy, and Varnish Cache to function properly. The application's operating system-level parameters require tuning. The solution must include a way to automate the deployment of new application versions. The infrastructure should be scalable and faulty servers should be replaced automatically.
Which solution should the DevOps engineer use?

  1. Upload the application as a Docker image that contains all the necessary software to Amazon ECR. Create an Amazon ECS cluster using an AWS Fargate launch type and an Auto Scaling group. Create an AWS CodePipeline pipeline that uses Amazon ECR as a source and Amazon ECS as a deployment provider.
  2. Upload the application code to an AWS CodeCommit repository with a saved con guration le to con gure and install the software. Create an AWS Elastic Beanstalk web server tier and a load balanced-type environment that uses the Tomcat solution stack. Create an AWS CodePipeline pipeline that uses CodeCommit as a source and Elastic Beanstalk as a deployment provider.
  3. Upload the application code to an AWS CodeCommit repository with a set of .ebextensions les to con gure and install the software.
    Create an AWS Elastic Beanstalk worker tier environment that uses the Tomcat solution stack. Create an AWS CodePipeline pipeline that uses CodeCommit as a source and Elastic Beanstalk as a deployment provider.
  4. Upload the application code to an AWS CodeCommit repository with an appspec.yml le to con gure and install the necessary software.
    Create an AWS CodeDeploy deployment group associated with an Amazon EC2 Auto Scaling group. Create an AWS CodePipeline pipeline that uses CodeCommit as a source and CodeDeploy as a deployment provider.

Answer(s): D



A company wants to use AWS CloudFormation for infrastructure deployment. The company has strict tagging and resource requirements and wants to limit the deployment to two Regions. Developers will need to deploy multiple versions of the same application. Which solution ensures resources are deployed in accordance with company policy?

  1. Create AWS Trusted Advisor checks to nd and remediate unapproved CloudFormation StackSets.
  2. Create a CloudFormation drift detection operation to nd and remediate unapproved CloudFormation StackSets.
  3. Create CloudFormation StackSets with approved CloudFormation templates.
  4. Create AWS Service Catalog products with approved CloudFormation templates.

Answer(s): D


Reference:

https://aws.amazon.com/blogs/aws/use-cloudformation-stacksets-to-provision-resources-across-multiple-aws-accounts-and-regions/



A DevOps Engineer must track the health of a stateless RESTful service sitting behind a Classic Load Balancer. The deployment of new application revisions is through a CI/CD pipeline. If the service's latency increases beyond a de ned threshold, deployment should be stopped until the service has recovered.
Which of the following methods allow for the QUICKEST detection time?

  1. Use Amazon CloudWatch metrics provided by Elastic Load Balancing to calculate average latency. Alarm and stop deployment when latency increases beyond the de ned threshold.
  2. Use AWS Lambda and Elastic Load Balancing access logs to detect average latency. Alarm and stop deployment when latency increases beyond the de ned threshold.
  3. Use AWS CodeDeploy's MinimumHealthyHosts setting to de ne thresholds for rolling back deployments. If these thresholds are breached, roll back the deployment.
  4. Use Metric Filters to parse application logs in Amazon CloudWatch Logs. Create a lter for latency. Alarm and stop deployment when latency increases beyond the de ned threshold.

Answer(s): A


Reference:

https://docs.amazonaws.cn/en_us/elasticloadbalancing/latest/application/load-balancercloudwatch-metrics.html



An AWS CodePipeline pipeline has implemented a code release process. The pipeline is integrated with AWS CodeDeploy to deploy versions of an application to multiple Amazon EC2 instances for each CodePipeline stage.
During a recent deployment, the pipeline failed due to a CodeDeploy issue. The DevOps team wants to improve monitoring and noti cations during deployment to decrease resolution times.
What should the DevOps Engineer do to create noti cations when issues are discovered?

  1. Implement AWS CloudWatch Logs for CodePipeline and CodeDeploy, create an AWS Con g rule to evaluate code deployment issues, and create an Amazon SNS topic to notify stakeholders of deployment issues.
  2. Implement AWS CloudWatch Events for CodePipeline and CodeDeploy, create an AWS Lambda function to evaluate code deployment issues, and create an Amazon SNS topic to notify stakeholders of deployment issues.
  3. Implement AWS CloudTrail to record CodePipeline and CodeDeploy API call information, create an AWS Lambda function to evaluate code deployment issues, and create an Amazon SNS topic to notify stakeholders of deployment issues.
  4. Implement AWS CloudWatch Events for CodePipeline and CodeDeploy, create an Amazon Inspector assessment target to evaluate code deployment issues, and create an Amazon SNS topic to notify stakeholders of deployment issues.

Answer(s): B



A development team is using AWS CodeCommit to version control application code and AWS CodePipeline to orchestrate software deployments. The team has decided to use a remote master branch as the trigger for the pipeline to integrate code changes. A developer has pushed code changes to the CodeCommit repository, but noticed that the pipeline had no reaction, even after 10 minutes.
Which of the following actions should be taken to troubleshoot this issue?

  1. Check that an Amazon CloudWatch Events rule has been created for the master branch to trigger the pipeline.
  2. Check that the CodePipeline service role has permission to access the CodeCommit repository.
  3. Check that the developer's IAM role has permission to push to the CodeCommit repository.
  4. Check to see if the pipeline failed to start because of CodeCommit errors in Amazon CloudWatch Logs.

Answer(s): A






Post your Comments and Discuss Amazon AWS DevOps Engineer Professional exam prep with other Community members:

Join the AWS DevOps Engineer Professional Discussion