DOP-C02 exam dumps

DOP-C02 practice question 41 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 41

Single answer

Your team is deploying a critical application using AWS Elastic Beanstalk. The application requires a specific configuration for the environment, including custom instance types, scaling policies, and custom software installation during instance startup. Additionally, logs must be retained in an S3 bucket for auditing purposes. What is the MOST appropriate way to configure and manage this environment to meet these requirements?

  1. A

    Use the Elastic Beanstalk console to manually configure the environment, set up the required instance types, scaling policies, and log retention settings.

  2. B

    Create a custom Elastic Beanstalk platform using Packer, and include the necessary software and instance configurations in the AMI.

  3. C

    Use Elastic Beanstalk configuration files (.ebextensions) to automate instance configuration, scaling policies, and log retention settings.

  4. D

    Deploy a CloudFormation stack to manage the Elastic Beanstalk environment and configure it according to the application’s needs.

Show answer and explanation

Correct answer: C

Explanation

Using Elastic Beanstalk configuration files (.ebextensions) is the best approach in this scenario because it provides a declarative way to define environment customizations, including instance configurations, scaling policies, and log retention. This method aligns with best practices for managing Elastic Beanstalk environments and ensures repeatability and automation.

  • A. Incorrect.

    This approach involves manual configuration, which is error-prone and not suitable for repeatable, automated deployments. It also does not address the custom software installation or log retention requirements.

  • B. Incorrect.

    While creating a custom Elastic Beanstalk platform with Packer can address some requirements, it is more complex and typically unnecessary unless you need to extensively customize the platform itself. This option is not the best fit for the scenario.

  • C. Correct.

    Elastic Beanstalk configuration files (.ebextensions) allow you to declaratively define environment customizations, including instance configurations, scaling policies, and additional software installation. These files also enable log retention settings to be automated effectively.

  • D. Incorrect.

    While CloudFormation can manage the Elastic Beanstalk environment, it is not the most direct or efficient way to address specific instance-level configurations, software installation, or log retention in this scenario.

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