Amazon Web ServicesProfessional levelDOP-C02Page 3 of 5

DOP-C02 exam dumps: questions 201 to 300 of 410

Page 3 of the free DOP-C02 question bank for the AWS Certified DevOps Engineer - Professional exam. Questions 201 to 300 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated December 2024

Free DOP-C02 practice questions

Questions 201 to 205 of 410

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

DOP-C02 Question 201

Select 3

Your organization runs a critical web application on AWS using an Auto Scaling group behind an Application Load Balancer (ALB). Recently, a deployment caused unexpected downtime due to misconfigured application code. To improve recovery procedures and minimize future downtime, your team decides to implement a rollback mechanism. Which of the following approaches would facilitate an automated rollback in case of deployment failure?

  1. A

    Enable AWS CodeDeploy with blue/green deployments and configure automatic rollback on deployment failure.

  2. B

    Use AWS CloudFormation with a stack policy that prevents updates to critical resources during a rollback.

  3. C

    Integrate Amazon CloudWatch Alarms with an AWS Lambda function to trigger a rollback by redeploying the last known good version.

  4. D

    Leverage AWS Elastic Beanstalk with enhanced health monitoring and configure it to automatically roll back to the previous version if health checks fail.

  5. E

    Use S3 Versioning to store application code and manually deploy the previous version in case of failure.

Show answer and explanation

Correct answers: A, C, D

Explanation

Automated recovery procedures are crucial for minimizing downtime during deployment failures. AWS CodeDeploy with blue/green deployments allows seamless rollback by redirecting traffic. CloudWatch Alarms paired with Lambda can automate rollback actions based on failure metrics. Elastic Beanstalk offers built-in rollback capabilities for failed deployments. However, solutions like manual S3 Versioning or CloudFormation stack policies do not provide fully automated rollback mechanisms, making them unsuitable for this scenario.

  • A. Correct.

    Enabling AWS CodeDeploy with blue/green deployments and automatic rollback ensures that in case of deployment failure, the traffic is redirected back to the last working environment without manual intervention.

  • B. Incorrect.

    AWS CloudFormation stack policies are used to protect critical resources from updates but do not automatically facilitate application rollbacks in case of deployment failure.

  • C. Correct.

    Integrating CloudWatch Alarms with a Lambda function can automate rollbacks by triggering redeployment of a stable version when pre-configured failure thresholds are met.

  • D. Correct.

    AWS Elastic Beanstalk’s enhanced health monitoring can detect deployment failures and automatically roll back to the last successful version, ensuring minimal downtime.

  • E. Incorrect.

    While S3 Versioning provides a way to store previous versions of application code, the rollback process would require manual intervention, making it unsuitable for automated recovery procedures.

DOP-C02 Question 202

Single answer

Your organization runs a critical application on an Amazon RDS MySQL database instance. A recent test of the disaster recovery plan revealed that restoring from a snapshot takes a significant amount of time, leading to unacceptable downtime. To improve recovery time in case of a failure, what is the most appropriate approach?

  1. A

    Enable Amazon RDS Multi-AZ deployments for automatic failover.

  2. B

    Increase the instance size of the Amazon RDS instance to reduce snapshot restoration time.

  3. C

    Use Amazon RDS Read Replicas and promote one to the primary instance during a failure.

  4. D

    Schedule frequent manual snapshots and keep them in a different AWS Region.

Show answer and explanation

Correct answer: A

Explanation

The best approach to reduce downtime in case of an RDS instance failure is to enable Multi-AZ deployments. This ensures that a standby instance is always available in a different Availability Zone, allowing for automatic failover with minimal disruption. Other options either do not address the downtime issue or require manual intervention, which increases recovery time.

  • A. Correct.

    Enabling Amazon RDS Multi-AZ deployments ensures high availability by automatically failing over to a standby instance in case of failure, significantly reducing downtime.

  • B. Incorrect.

    Increasing the instance size does not address the issue of downtime during snapshot restoration. It only improves performance during normal operations.

  • C. Incorrect.

    Amazon RDS Read Replicas are designed for read scalability and do not provide automatic failover capabilities. Promoting a read replica to primary is a manual process that can still result in significant downtime.

  • D. Incorrect.

    Frequent manual snapshots stored in a different AWS Region help with disaster recovery but do not address recovery time in the same Region. Restoring from a snapshot still involves significant downtime.

DOP-C02 Question 203

Select 3

Your organization runs a microservices-based application on Amazon ECS with Fargate. The application is experiencing intermittent latency issues, and the team suspects that specific services are encountering memory and CPU resource constraints. As a DevOps Engineer, you need to implement a monitoring solution to identify bottlenecks and resource issues efficiently. Which combination of steps should you take to achieve this?

  1. A

    Enable Amazon CloudWatch Container Insights for the ECS cluster to collect detailed performance metrics and logs for the services.

  2. B

    Use AWS X-Ray to trace the requests and identify which services are contributing to the latency.

  3. C

    Set up custom CloudWatch Alarms on Fargate task memory and CPU utilization metrics to alert when thresholds are breached.

  4. D

    Install the CloudWatch Agent on the Fargate tasks to collect detailed OS-level metrics for memory and CPU usage.

  5. E

    Enable AWS Config rules to monitor the configuration compliance of ECS services to ensure they are using the optimal task definitions.

Show answer and explanation

Correct answers: A, B, C

Explanation

To effectively monitor and troubleshoot the latency issues in a microservices-based application running on ECS with Fargate, you need to use tools like CloudWatch Container Insights for detailed resource metrics, AWS X-Ray for tracing request paths across services, and CloudWatch Alarms for proactive resource monitoring. These steps ensure you can identify and address the root cause of latency issues efficiently. Options involving the CloudWatch Agent or AWS Config are irrelevant for this scenario.

  • A. Correct.

    Enabling Amazon CloudWatch Container Insights provides granular metrics such as memory, CPU usage, and network usage for ECS services, which is vital for identifying resource constraints.

  • B. Correct.

    AWS X-Ray is designed to trace requests across distributed services, helping identify which specific services are causing latency issues.

  • C. Correct.

    Setting up custom CloudWatch Alarms on memory and CPU utilization ensures you get notified when resources are constrained, allowing for proactive resolution of the issue.

  • D. Incorrect.

    The CloudWatch Agent cannot be installed on Fargate tasks as Fargate is a serverless compute engine. Metrics for Fargate are natively collected via CloudWatch without requiring an agent.

  • E. Incorrect.

    AWS Config rules are used for compliance and configuration drift detection, not for monitoring performance or resource constraints.

DOP-C02 Question 204

Select 3

You are managing a distributed application running on AWS that uses multiple EC2 instances, an RDS database, and an S3 bucket. Your team has reported intermittent performance issues and wants to identify the root cause. The solution should provide detailed insights into request latency, errors, and resource utilization across all components of the application. Which combination of monitoring and logging services should you use to effectively address this requirement?

  1. A

    Amazon CloudWatch Metrics to monitor resource utilization and set up alarms for EC2 instances and RDS

  2. B

    AWS X-Ray to trace requests through the application and identify latency bottlenecks

  3. C

    Amazon CloudTrail to capture API call logs for your application

  4. D

    Amazon S3 Event Notifications to monitor changes in S3 buckets

  5. E

    Amazon CloudWatch Logs to centralize and analyze application logs from EC2 instances

Show answer and explanation

Correct answers: A, B, E

Explanation

To troubleshoot intermittent performance issues in a distributed application, you need a combination of services that provide resource utilization metrics, request traceability, and centralized log analysis. Amazon CloudWatch Metrics helps monitor the health of infrastructure components. AWS X-Ray traces requests across the application to identify latency or errors in specific components. Amazon CloudWatch Logs centralizes and analyzes logs, making it easier to detect patterns or issues. Together, these services provide a comprehensive view of your application's performance and help identify the root cause of issues.

  • A. Correct.

    Correct. Amazon CloudWatch Metrics is ideal for monitoring resource utilization (e.g., CPU, memory, disk) and setting alarms to notify you of unusual behavior in EC2 and RDS instances.

  • B. Correct.

    Correct. AWS X-Ray helps trace requests through the application, allowing you to visualize the latency of individual components and identify bottlenecks or errors.

  • C. Incorrect.

    Incorrect. While Amazon CloudTrail logs API calls, it does not provide detailed insights into resource utilization or request latency. It is more suited for security and compliance use cases.

  • D. Incorrect.

    Incorrect. Amazon S3 Event Notifications are useful for triggering workflows based on changes in S3, but they are not designed for application-wide monitoring or performance troubleshooting.

  • E. Correct.

    Correct. Amazon CloudWatch Logs centralizes and aggregates logs from EC2 instances, making it easier to analyze application-level errors and performance issues.

DOP-C02 Question 205

Select 2

Your company runs a containerized application on Amazon ECS using the Fargate launch type. The application has intermittent performance issues, and you need to implement a monitoring solution to gain visibility into application performance and troubleshoot issues effectively. Which of the following steps should you take to achieve this? (Select TWO.)

  1. A

    Enable Container Insights in Amazon CloudWatch for the ECS cluster.

  2. B

    Create custom CloudWatch metrics for the application using the AWS SDK.

  3. C

    Use AWS X-Ray to trace requests through the application and visualize service maps.

  4. D

    Configure an Amazon SNS topic to send ECS service event notifications.

  5. E

    Deploy Prometheus on an EC2 instance to monitor the Fargate tasks.

Show answer and explanation

Correct answers: A, C

Explanation

To effectively monitor and troubleshoot the intermittent performance issues in your ECS Fargate cluster, enabling Container Insights in Amazon CloudWatch provides detailed metrics and logs for containers, while AWS X-Ray offers distributed tracing capabilities to pinpoint bottlenecks and visualize service dependencies. These two tools complement each other and are AWS-native solutions optimized for ECS and Fargate workloads.

  • A. Correct.

    Enabling Container Insights in Amazon CloudWatch provides detailed metrics and logs for ECS services, tasks, and containers, making it easier to monitor and troubleshoot performance issues.

  • B. Incorrect.

    While creating custom CloudWatch metrics is a valid approach for specific use cases, it does not provide the comprehensive monitoring and tracing capabilities required for debugging intermittent performance issues in a containerized application.

  • C. Correct.

    AWS X-Ray is designed to trace requests through distributed applications, allowing you to visualize service maps and identify bottlenecks or latency issues, which is highly relevant for troubleshooting performance problems.

  • D. Incorrect.

    Configuring an SNS topic for ECS service event notifications is useful for operational alerts but does not directly help with monitoring or troubleshooting performance issues.

  • E. Incorrect.

    Prometheus is commonly used for monitoring, but deploying it on an EC2 instance does not align with the Fargate launch type, as Fargate does not provide direct access to the underlying infrastructure.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

DOP-C02 practice questions 201 to 300 of 410

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 5 pages of up to 100 questions.

  1. 201.Your organization runs a critical web application on AWS using an Auto Scaling group behind an Application...
  2. 202.Your organization runs a critical application on an Amazon RDS MySQL database instance. A recent test of the...
  3. 203.Your organization runs a microservices-based application on Amazon ECS with Fargate. The application is...
  4. 204.You are managing a distributed application running on AWS that uses multiple EC2 instances, an RDS database,...
  5. 205.Your company runs a containerized application on Amazon ECS using the Fargate launch type. The application...
  6. 206.Your team manages an e-commerce platform running on AWS, and you are responsible for ensuring proper...
  7. 207.Your team manages a high-traffic web application hosted on Amazon ECS with tasks running on Fargate. To...
  8. 208.An e-commerce company runs its application on Amazon ECS using Fargate. The company wants to configure...
  9. 209.Your company has a distributed application running on multiple Amazon EC2 instances behind an Application...
  10. 210.Your organization runs a distributed application on Amazon ECS using Fargate. The team wants to collect logs...
  11. 211.Your organization is using a CI/CD pipeline on AWS to deploy a serverless application built with AWS Lambda....
  12. 212.Your company is using AWS CodePipeline for its CI/CD process. The pipeline contains a build stage that...
  13. 213.You are managing an AWS environment for a company that requires high availability and fault tolerance for its...
  14. 214.Your organization has a multi-account setup in AWS and you are tasked with implementing a centralized logging...
  15. 215.Your organization has deployed a highly available web application using Amazon ECS on AWS Fargate. To ensure...
  16. 216.You are managing a high-traffic e-commerce application hosted on AWS. The application consists of EC2...
  17. 217.You are managing a microservices-based application running on Amazon ECS with Fargate. The application has...
  18. 218.Your organization runs a high-traffic e-commerce application on AWS using Amazon EC2 instances behind an...
  19. 219.Your team has built a custom application running on Amazon EC2 instances that emits metrics to Amazon...
  20. 220.Your company is monitoring a fleet of EC2 instances using Amazon CloudWatch. A critical application running...
  21. 221.Your company has deployed a web application on Amazon EC2 instances behind an Application Load Balancer...
  22. 222.Your organization has an application running on multiple Amazon EC2 instances behind an Application Load...
  23. 223.Your organization is deploying a real-time log ingestion pipeline to process and analyze application logs...
  24. 224.Your company is running a highly distributed microservices application on Amazon ECS. The application...
  25. 225.Your organization runs a large-scale e-commerce platform, and you are tasked with designing a solution to...
  26. 226.Your organization is building a real-time log ingestion pipeline to process application logs from multiple...
  27. 227.Your organization uses Amazon CloudWatch Logs to monitor application performance and store log data for...
  28. 228.You are managing an application that generates sensitive logs stored in Amazon S3. Compliance requirements...
  29. 229.You are a DevOps Engineer responsible for ensuring that application logs and metrics in your AWS environment...
  30. 230.Your organization uses Amazon CloudWatch to collect logs and metrics from various AWS services. Due to...
  31. 231.Your organization is setting up centralized logging using Amazon CloudWatch Logs to collect application logs...
  32. 232.Your organization is implementing centralized log collection using Amazon CloudWatch Logs. You need to...
  33. 233.You are setting up centralized log collection for all applications in your organization using Amazon...
  34. 234.Your organization uses Amazon CloudWatch Logs to collect and monitor application logs. You are tasked with...
  35. 235.Your organization runs a microservices-based application on Amazon EKS. You need to monitor application logs...
  36. 236.Your organization runs a distributed microservices architecture on AWS. Recently, users have reported...
  37. 237.Your organization has deployed a critical customer-facing application on AWS. You are tasked with ensuring...
  38. 238.Your company has recently migrated to AWS and uses Amazon CloudWatch for monitoring logs and metrics. You...
  39. 239.You are managing a CI/CD pipeline for a web application hosted on Amazon ECS using Fargate. The development...
  40. 240.Your team manages a CI/CD pipeline using AWS CodePipeline integrated with AWS CodeBuild for building and...
  41. 241.Your organization is using AWS CodePipeline to automate the release process for a web application. As part of...
  42. 242.You are managing a CI/CD pipeline for a web application hosted on Amazon ECS using Fargate. The pipeline uses...
  43. 243.Your team has implemented an Amazon CloudWatch anomaly detection alarm to monitor the latency of an API...
  44. 244.Your DevOps team manages a highly dynamic web application hosted on Amazon EC2 instances. The traffic pattern...
  45. 245.A DevOps team is managing an application that has dynamic traffic patterns. They want to set up alerts for...
  46. 246.Your team is responsible for monitoring the performance of an e-commerce platform hosted on AWS. Recently,...
  47. 247.You are managing a web application that is deployed behind an Application Load Balancer (ALB) in your AWS...
  48. 248.You are managing a web application hosted on Amazon EC2 instances behind an Application Load Balancer (ALB)....
  49. 249.Your team manages a web application hosted on Amazon EC2 instances behind an Application Load Balancer (ALB)....
  50. 250.You are a DevOps Engineer managing an e-commerce platform hosted on AWS. Recently, some users reported...
  51. 251.Your organization uses Amazon Inspector for vulnerability scanning across multiple AWS accounts in an...
  52. 252.Your organization uses Amazon Inspector to assess vulnerabilities across multiple Amazon EC2 instances and...
  53. 253.Your company has a multi-account AWS environment managed through AWS Organizations. You are tasked with...
  54. 254.Your organization is using Amazon Inspector to assess vulnerabilities in an Amazon EC2 environment. The...
  55. 255.Your organization uses AWS Config to ensure compliance with security policies. A new requirement mandates...
  56. 256.Your organization needs to ensure compliance by enforcing that all S3 buckets are encrypted using AWS...
  57. 257.Your company has mandated that all S3 buckets must have server-side encryption enabled. You are tasked with...
  58. 258.Your organization wants to enforce compliance by ensuring that all S3 buckets have server-side encryption...
  59. 259.Your organization has enabled AWS CloudTrail across all regions in your AWS account to monitor API activity....
  60. 260.Your organization uses AWS CloudTrail to monitor API activity across multiple accounts in an AWS...
  61. 261.Your organization is using AWS CloudTrail to capture API activity across multiple AWS accounts. Recently, you...
  62. 262.Your organization has enabled AWS CloudTrail for logging API activity across multiple AWS accounts in an...
  63. 263.Your organization runs a complex multi-account AWS environment with hundreds of applications across various...
  64. 264.You are managing a complex AWS environment with microservices running on Amazon ECS, serverless applications...
  65. 265.You are managing a large-scale microservices-based application deployed on Amazon ECS and integrated with...
  66. 266.You are a DevOps engineer managing a complex microservices architecture running on Amazon ECS. You need to...
  67. 267.Your organization has a CI/CD pipeline implemented in AWS CodePipeline. A recent security audit recommended...
  68. 268.Your company is running a highly available web application hosted on Amazon EC2 instances behind an...
  69. 269.Your company has implemented a CI/CD pipeline using AWS CodePipeline. The pipeline deploys an application to...
  70. 270.Your organization is using AWS CodePipeline to orchestrate a CI/CD process. The pipeline deploys an...
  71. 271.A media company has a requirement to process image files uploaded to an Amazon S3 bucket. The processing...
  72. 272.Your company is building a serverless application to process images uploaded to an S3 bucket. The workflow...
  73. 273.A company is building a serverless application to process and analyze images uploaded to an Amazon S3 bucket....
  74. 274.An e-commerce company wants to build a serverless architecture to process customer orders asynchronously....
  75. 275.A company is running a web application that uses a combination of Amazon EC2 instances for compute, Amazon...
  76. 276.Your company runs a critical e-commerce application on AWS that experiences unpredictable traffic spikes...
  77. 277.Your company runs a highly available web application using Amazon ECS on AWS Fargate. The application traffic...
  78. 278.A company is running a highly dynamic application using Amazon ECS on Fargate. The application experiences...
  79. 279.A company has a critical web application running on Amazon EC2 instances behind an Application Load Balancer....
  80. 280.Your team manages a critical web application running on Amazon EC2 instances in an Auto Scaling group. To...
  81. 281.Your organization runs a critical web application on Amazon EC2 instances behind an Auto Scaling group. To...
  82. 282.Your team manages an application running on Amazon EC2 instances behind an Auto Scaling group. You need to...
  83. 283.You are managing a web application deployed across multiple AWS Regions. The application uses an Application...
  84. 284.Your company operates a web application hosted on an Auto Scaling group of EC2 instances behind an...
  85. 285.You are managing an application hosted on Amazon ECS behind an Application Load Balancer (ALB). The ALB is...
  86. 286.Your company has deployed a web application using an Auto Scaling group behind an Application Load Balancer...
  87. 287.Your team has been notified of a sudden increase in latency for an application hosted on Amazon ECS with an...
  88. 288.Your company has implemented AWS Systems Manager Incident Manager to handle potential outages in a highly...
  89. 289.Your team is responsible for maintaining a critical application hosted on AWS. Recently, the application...
  90. 290.Your team manages a distributed application running on AWS with Auto Scaling Groups, an ALB (Application Load...
  91. 291.You are managing an e-commerce application that processes a large number of orders daily. The application is...
  92. 292.Your team is developing a serverless application that processes customer orders. When a new order is placed,...
  93. 293.You are managing an e-commerce application hosted on AWS. The application processes customer orders, and each...
  94. 294.You are managing a serverless application that processes customer orders. The application uses an Amazon SQS...
  95. 295.A DevOps team is implementing a CI/CD pipeline for deploying a containerized application on Amazon ECS using...
  96. 296.Your team is managing a CI/CD pipeline using AWS CodePipeline, and you have an approval stage configured...
  97. 297.Your company has a multi-account setup in AWS and uses AWS Organizations to centrally manage all accounts....
  98. 298.Your organization has a CI/CD pipeline using AWS CodePipeline integrated with AWS CodeBuild to build and test...
  99. 299.Your company runs a multi-account AWS environment, and you have been tasked with designing a solution to...
  100. 300.Your organization wants to implement an event-driven architecture to monitor AWS Health events and trigger...