DOP-C02 exam dumps

DOP-C02 practice question 119 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 119

Single answer

Your organization operates a large-scale e-commerce platform deployed across multiple AWS Regions. You are tasked with designing an automated solution to scale your infrastructure during traffic spikes and ensure consistency across environments. The solution should support infrastructure as code (IaC) principles and minimize manual intervention. Which of the following approaches would best meet these requirements?

  1. A

    Use AWS CloudFormation templates with parameters and deploy stacks in each region manually during traffic spikes.

  2. B

    Implement AWS CloudFormation StackSets with automatic deployment of resources to multiple regions and use Amazon CloudWatch alarms to trigger scaling events.

  3. C

    Write a custom Python script to deploy and manage resources across regions using the AWS SDK (Boto3).

  4. D

    Manually replicate Amazon EC2 Auto Scaling configurations across regions and use AWS CLI to execute scaling policies during traffic spikes.

Show answer and explanation

Correct answer: B

Explanation

The correct answer is to use AWS CloudFormation StackSets with Amazon CloudWatch alarms to fully automate resource deployment and scaling across multiple regions. This solution aligns with infrastructure as code (IaC) best practices, minimizes manual intervention, and supports large-scale environments. By leveraging native AWS services, you ensure scalability, consistency, and reliability in managing your infrastructure.

  • A. Incorrect.

    This option does not fully automate the process because it requires manual intervention to deploy stacks during traffic spikes. It does not align with the requirements to minimize manual intervention.

  • B. Correct.

    This option leverages AWS CloudFormation StackSets, which allow you to deploy and manage resources across multiple AWS accounts and regions automatically. Combined with Amazon CloudWatch alarms, it provides a fully automated and scalable solution.

  • C. Incorrect.

    While writing a custom Python script using Boto3 could work, it introduces complexity and requires ongoing maintenance. It is not the most efficient or scalable solution compared to using native AWS services like CloudFormation StackSets.

  • D. Incorrect.

    Manually replicating configurations and triggering scaling policies is error-prone, time-consuming, and does not align with infrastructure as code (IaC) principles or the need for automation.

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