AWS Certified SysOps Administrator – Chapter – 6

Review Questions

Your company user Chef for its automation. What AWS service can run Chef recipes?

  • AWS Elastic Beanstalk
  • AWS OpsWorks
  • AWS CodeDeploy
  • AWS CodeCommit

Your company is migrating to AWS and wants to apply DevOps techniques to automate the deployment of new environments. What tool should they use?

  • AWS CloudFormation
  • AWS Config
  • AWS Chef
  • AWS Shield

AWS CloudFormation template requires which of the following sections?

  • Format Version
  • Description
  • Matadata
  • Parameters
  • Resources

AWS CloudFormation supports the following text formats: (Choose two.)

  • YAML
  • JSON
  • RAW
  • XML

Which of the following languages does AWS Elastic Beanstalk NOT support?

  • Go
  • C
  • Java
  • PHP

You can deploy Docker container on the following: (Choose three.)

  • Amazon EC2
  • Amazon ECS
  • AWS Lambda
  • AWS Elastic Beanstalk

AWS Elastic Beanstalk supports the following type of deployment methods. (Choose three.)

  • Blue/green
  • Rolling
  • AWS CloudFormation conditional
  • AWS OpsWork layer update
  • Immutable

You 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 used to automate your deployment and perform a blue/green deployment?

  • This is not possible without AWS Elastic Beanstalk.
  • AWS CloudFormation
  • AWS Datapipeline
  • AWS CodeCommit

What are the methods for update an AWS CloudFormation Stack? (Choose two)

  • Direct update
  • Indirect update
  • Rolling update
  • Create of change sets

You are creating AWS CloudFormation template and you want to use it for multiple regions. What optional section of an AWS CloudFormation Stack needs to exist?

  • Description
  • Resources
  • Conditions
  • Mappings

Which of the following statements are true? (Choose two.)

  • You can customize your application deployments on AWS using the java programming language in AWS CloudFormation.
  • You can costomize your application deployments on AWS using JSON templates in AWS CloudFormation.
  • You can customize you application deployments on AWS using JSON templates in AWS OpsWorks.
  • You can customize your AWS deployments on AWS using the Java programming language with AWS OpsWorks templates.

You 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?

  • AWS OpsWorks Stacks
  • AWS CloudFormation
  • AWS Elastic Beanstalk
  • Amazon EC2 Container Service

True or False. You application deployment requires an Elastic Load Balancer, Amazon EC2 Instances, Amazon RDS Instance, and an Amazon DynamoDB table. All of these service are integrated and deployable with AWS Opsworks Stacks.

  • True
  • False

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 mathods can be used to update the stack? (Choose two.)

  • Directly update a stack by submitting changes, specifying new input parameter values or an update templete.
  • Execute a script to modify the resources manually.
  • Create and execute a Change set so that you can preview the changes.
  • Update the configuration of the resource directly within the given service instead of within AWS CloudFormation.

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 need to be automated without the complexity of building a solution yourself. What service supports this capability?

  • AWS OpsWorks Stacks
  • AWS CloudFormation
  • AWS Elastic Beanstalk
  • Amazon EC2 Container 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?

  • AWS Elastic Beanstalk
  • AWS OpsWorks
  • Amazon EC2 Container Service
  • Amazon Elastic Compute Cloud

An AWS CloudFormation template was used to deploy the resources used for your application. The resource 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?

  • Manually delete all resources except the Amazon RDS instance.
  • Update the stack directly, and remove all of the resources from the template except the Amazon RDS instance.
  • Set a deletion policy attribute for the Amazon RDS instance resources, specifying to retain on delete and to create a snapshot.
  • It is not possible to retain resources when deleting as AWS CloudFormation Stack.

You’re working on creating an AWS CloudForamation template based on the specification provided by the application 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 Cloud Formation to create the DynamoDB table and wait for it to be completed before creating the EC2 instance that will need to connect to it?

  • Create multiple stacks and a script that waits for one stack to be completed before creating the next.
  • Add a DependsOn attribute to the Amazon EC2 instance resource, and provide the Amazon DynamoDB resource’s logical name.
  • Add user data script to the instance that polls for the Amazon DynamoDB table.
  • Order the resources in the template so that the Amazon EC2 instance resource is listed after the Amazon DynameDB table.

An Amazon EC2 instance is being created with an AWS CloudFormation template. It needs to have permissions to an Amazon S3 bucket for storing data persistently outside of the instance. How do you provide the instance permissions to the Amazon S3 bucket?

  • Save the access key and secret access key in the user data script section of your Cloudformation template.
  • Store credentials in Amazon S3, and when creating the AWS CloudFormation Stack specify a parameter with the location of the credentials.
  • 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.
  • Create a Script that retrieves the keys and stores them on the instance.

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 application to existing resources?

  • AWS OpsWorks
  • AWS CloudFormation
  • AWS Elastic Beanstalk
  • AWS CodeCommit
Rajesh Kumar
Follow me