SOA-C02 exam dumps

SOA-C02 practice question 124 of 341

AWS Certified SysOps Administrator - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SOA-C02 Question 124

Single answer

An organization wants to automate the deployment of an application stack consisting of an EC2 instance, an RDS database, and an Elastic Load Balancer (ELB). They also want to ensure that the infrastructure can be easily recreated in another AWS Region if needed. Which AWS service and approach would be the best fit for this requirement?

  1. A

    Use AWS Elastic Beanstalk to define and deploy the application stack

  2. B

    Use AWS OpsWorks to manage and deploy the application stack

  3. C

    Write an AWS CloudFormation template to define the infrastructure as code and deploy the stack

  4. D

    Manually configure and deploy the resources through the AWS Management Console

Show answer and explanation

Correct answer: C

Explanation

AWS CloudFormation is the best service for this scenario because it allows you to define your infrastructure as code in a reusable template. This ensures the infrastructure can be easily deployed and replicated in other AWS Regions, meeting the organization's requirements for automation, consistency, and portability. Other services like Elastic Beanstalk and OpsWorks serve different purposes, and manual deployment lacks the benefits of automation and repeatability.

  • A. Incorrect.

    AWS Elastic Beanstalk is an abstraction layer primarily designed for deploying web applications and does not provide the same level of control for defining specific infrastructure resources like RDS, EC2, or ELB.

  • B. Incorrect.

    AWS OpsWorks is a configuration management service that uses Chef or Puppet but does not directly support Infrastructure as Code (IaC) with the same flexibility and portability as CloudFormation.

  • C. Correct.

    AWS CloudFormation enables Infrastructure as Code (IaC), allowing you to define and deploy the infrastructure stack in a JSON or YAML template. This approach ensures consistency and allows the stack to be easily replicated across regions.

  • D. Incorrect.

    Manually configuring and deploying resources through the AWS Management Console is time-consuming, error-prone, and does not allow for easy reproduction or automation of the infrastructure stack.

Timed practice exam

Take a SOA-C02 practice test under exam conditions

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

Start timed exam