Chapter 8 Application Deployment and Management

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Your company is migrating to AWS and wants to apply DevOps techniques to automate the deployment of new environments. What tool should they use? A. AWS CloudFormation B. AWS Config C. AWS Chef D. AWS Shielf

A. AWS CloudFormation AWS CloudFormation is a service that helps you model and set up your Amazon Web Services resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. You create a template that describes all of the AWS resources that you want (like Amazon EC2 instances or Amazon RDS DB instances), and AWS CloudFormation takes care of provisioning and configuring those resources for you

Your organization would like to implement a DevOps workflow. Application deployments will be frequent, so it was decided to reuse resources to minimize costs. What two services support an in-place upgrade of applications to existing resources? (Choose two) A. AWS OpsWorks B. AWS CloudFormation C. AWS Elastic Beanstalk D,. AWS CodeCommit

A. AWS OpsWorks, C. AWS Elastic Beanstalk AWS OpsWorks and AWS Elastic Beanstalk allow for deploying in-place upgrades of applications without replacing the instances. AWS CloudFormation does not support this directly. AWS CodeCommit is a managed repository for storing you application code, not a deployment service

You can deploy Docker containers on the following: (Choose three) A. Amazon EC2 B. Amazon ECS C. AWS Lambda D. AWS Elastic Beanstalk

A. Amazon EC2, B. Amazon ECS, D. AWS Elastic Beanstalk You can deploy Docker on Amazon EC2, Docker containers on the Amazon EC2 Container Service, and deploy single Docker containers on AWS Elastic Beanstalk

AWS Elastic Beanstalk supports the following types of deployment methods: (Choose three) A. Blue/green B. Rolling C. AWS CloudFormation conditional D. AWS OpsWorks layer update E. Immutable

A. Blue/green, B. Rolling, D. AWS OpsWorks layer update There is no such thing as AWS CloudFormation conditional deployments. AWS OpsWorks is its own service and doesn't apply to AWS Elastic Beanstalk

What are the two methods for updating the AWS CloudFormation Stack? (Choose two) A. Direct update B. Indirect update C. Rolling update D. Creation of change sets

A. Direct update, D. Creation of change sets AWS CloudFormation provides two methods for updating stacks: direct update or creating and executing change sets

Your company has not approved the use of AWS Elastic Beanstalk. You would like to do blue/green deployments on your AWS environments. What tool can be used to automate your deployment and perform a blue/green deployment? A. This is not possible without AWS Elastic Beanstalk B. AWS CloudFormation C. AWS Datapipeline D. AWS CodeCommit

B. AWS CloudFormation AWS CloudFormation, AWS OpsWorks, and AWS CodeDeploy support blue/green deployments

Your company uses Chef for it's automation. What AWS service can run Chef recipes? A. AWS Elastic Beanstalk B. AWS OpsWorks C. AWS CodeDeploy D. AWS CodeCommit

B. AWS OpsWorks AWS OpsWorks is a configuration management service that uses Chef, an automation platform that treats server configurations as code. OpsWorks uses Chef to automate how servers are configured, deployed, and managed across your Amazon EC2 instances or on-premises compute environments

You are creating an AWS CloudFormation template and you want to use it for multiple regions. What optional section of an AWS CloudFormation Stack needs to exist? A. Description B. Resources C. Conditions D. Mappings

D. Mappings The optional Mappings section matches a key to a corresponding set of named values.

You need to make changes to an existing AWS CloudFormation Stack's settings or change its resources. Instead of deleting it and creating a new stack, what two methods can be used to update the stack? (Choose two) A. Directly update a stack by submitting changes, specifying new input parameter values or an updated template B. Execute a script to modify the resources manually C. Create and execute a change set so that you can preview the changes D. Update the configuration of the resource directly within the given services instead of within AWS CloudFormation

A. Directly update a stack by submitting changes, specifying new input parameter values or an updated template, C. Create and execute a change set so that you can preview the changes With AWS CloudFormation you can update a stack directly but submitting a new template and CloudFormation will apply the deltas. Additionally you can create and execute a change set against a stack

AWS CloudFormation supports the following text formats: (Choose two) A. YAML B. JSON C. RAW D. XML

A. YAML, B. JSON

You're working on creating an AWS CloudFormation template based on the specification provided by the applications architect. It requires an Amazon DynamoDB table be provisioned which an Amazon EC2 instance will utilize. Both the DynamoDB table and EC2 instance should be provisioned with CloudFormation. How do you tell CloudFormation to create the DynamoDB table and wait for it to be completed before creating the EC2 instance that will need to connect to it? A. Create multiple stacks and a script that waits for one stack to be completed before creating the next B. Add a DependsOn attribute to the Amazon EC2 instance resource, and provide the Amazon DynamoDB resource's logical name C. Add a user data script to the instance that polls for the Amazon DynamoDB table D. Order the resources in the template so that the Amazon EC2 instance resource is listed after the Amazon DynamoDB table

B. Add a DependsOn attribute to the Amazon EC2 instance resource, and provide the Amazon DynamoDB resource's logical name An AWS Cloudformation template resource with the DependsOn attribute can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute

Which of the following languages does AWS Beanstalk NOT support? A. Go B. C C. Java D. PHP

B. C

True or False. Your application deployment requires an Elastic Load Balancer, Amazon EC2 Instances, Amazon RDS Instance, and an Amazon DynamoDB table. All of these services are integrated and deployable with AWS OpsWorks Stacks A. True B. False

B. False AWS OpsWorks Stacks can be used to connect to a back-end dartabase such as Amazon DynamoDB. However, OpsWorks will not deploy the DynamoDB table for you. Another deployment service would be required to provision the DynamoDB table

Which of the following statements are true? (Choose two) A. You can customize your application deployments on AWS using the Java programming language in CloudFormation B. You can customize your application deployments on AWS using JSON templates in AWS CloudFormation C. You can customize your application deployments on AWS using JSON templates in AWS OpsWorks D. You can customize your AWS deployments on AWS using Java programming language with AWS OpsWorks templates

B. You can customize your application deployments on AWS using JSON templates in AWS CloudFormation, C. You can customize your application deployments on AWS using JSON templates in AWS OpsWorks Both these services use JSON

Your developers require a service that easily provisions an environment and then deploys and runs applications in the AWS cloud. The service needs to be integrated with developer tools and provides a one-stop experience for you to manage the lifecycle of your applications. What service would provide this capability without needing to write code specifically to deploy the infrastructure A. AWS OpsWorks Stacks B. AWS CloudFormation C. AWS Elastic Beanstalk D. Amazon EC2 Container Service (ECS)

C. AWS Elastic Beanstalk AWS Elastic Beanstalk makes it even easier for developers to deploy and manage applications quickly in the AWS Cloud. Developers simply upload their application, and Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, Auto Scaling, and application health monitoring. The other sercices listed would require developers to build templates specifically for deploying infrastructure

You need to deploy a new version of your application to a different environment and then perform a CNAME swap to redirect traffic with zero downtime. This blue/green deployment needs to be automated without the complexity of building a solution yourself. What service supports this capability? A. AWS OpsWorks Stacks B. AWS CloudFormation C. AWS Elastic Beanstalk D. Amazon EC2 Container Service

C. AWS Elastic Beanstalk AWS Elastic Beanstalk supports this functionality natively by creating a new environment and utilizing the swap environment URLs feature

An Amazon EC2 instance is being created with an AWS CloudFormation template. It needs to have permissions to be Amazon S3 bucket for storing data persistently outside of the instance. How do you provide the instance permissions to the Amazon S3 bucket? A. Save the access key and secret access key in the user data script section of your CloudFormation template B. Store credentials in Amazon S3, and when creating the AWS CloudFormation Stack specify a parameter with the location of the credentials C. Add an IAM Instance profile to the AWS CloudFormation template that references a role with the appropriate policy attached, giving it allow permissions to the bucket. Reference the instance profile in the Amazon EC2 instance resource. D. Create a script that retrieves the keys and stores them on the instance.

C. Add an IAM Instance profile to the AWS CloudFormation template that references a role with the appropriate policy attached, giving it allow permissions to the bucket. Reference the instance profile in the Amazon EC2 instance resource. You can and should use an IAM role to manage temporary credentials for applications that run on an Amazon EC2 instance. The AWS IAM Instance Profile resource creates an AWS Identity and Access Management (IAM) instance profile that can be used with IAM roles for EC2 instances. With the appropriate policy attached to the role, the instance will be able to access the Amazon S3 service

The developers within your organization have determined that Docker containers will be used for application deployment. What AWS managed service can run containers and provide auto scaling of containers based on their utilization? A. AWS Elastic Beanstalk B. AWS OpsWorks C. Amazon EC2 Container Service D. Amazon Elastic Compute Cloud

C. Amazon EC2 Container Service Amazon EC2 Container Service (ECS) is a managed, highly scalable, high performance container management service that supports Docker containers and allows you to run applications easily on a managed cluster of Amazon EC2 instance

An AWS CloudFormation template was used to deploy the resources used for you application. The resources are no longer needed, however you need to keep the data for your Amazon RDS instance. How can you clean up the resources while preventing the database from being deleted? A. Manually delete all resources except the Amazon RDS instance B. Update the stack directly, and remove all of the resources from the template except the Amazon RDS instance C. Set a deletion policy attribute for the Amazon RDS instance resource, specifying to retain on delete and to create a snapshot D. It is not possible to retain resources when deleting an AWS CloudFormation Stack

C. Set a deletion policy attribute for the Amazon RDS instance resource, specifying to retain on delete and to create a snapshot An AWS CloudFormation template resource with the DeletionPolicy attribute can preserve or (in some cases) back up a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has a no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default

AWS CloudFormation template requires which of the following sections? (Choose two) A. Format Version B. Description C. Metadata D. Parameters E. Resources

E. Resources Format Version, Description, Metadata, and Parameters are optional sections of an AWS CloudFormation template. Only the Resources section is required


Kaugnay na mga set ng pag-aaral

IS Security Tools and Techniques Exam 2 Review Questions

View Set

Economics and Personal Finance study set

View Set

Anatomy Final (review: Exam 1 of 4)

View Set

Exam 3: Drug discovery: finding a lead

View Set

IST 220 CHAPTER 5: ETHERNET (802.3) SWITCHED LANs

View Set

Child Development II Exam #2 (Chap 4-7)

View Set

Earth Science Chapter 25 Homework

View Set

Chapter 33 Assessment and Management of Patients with Allergic Disorders

View Set