Amazon DOP-C01 Practice Test - Questions Answers, Page 6
List of questions
Question 51

An ecommerce company is looking for ways to deploy an application on AWS that satisfies the following requirements:
Has a simple and automated application deployment process.
Has minimal deployment costs while ensuring that at least half of the instances are available to receive end-user requests. If the application fails, an automated healing mechanism will replace the affected instances.
Which deployment strategy will meet these requirements?
Question 52

When writing custom Ansible modules, which language is not supported?
Explanation:
Ansible modules can be written in any language that is executable on the target system. The only requirement is that the module can write its results as JSON output to STDOUT for Ansible to consume.
Reference: http://docs.ansible.com/ansible/developing_modules.html
Question 53

A company’s security team discovers that IAM access keys were potentially exposed. The DevOps team wants to implement a solution that will automatically disable any keys that are suspected of being compromised. The solution also must provide a notification to the security team.
Which solution will accomplish this?
Explanation:
Reference: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html
Question 54

What is the scope of an EC2 EIP?
Explanation:
An Elastic IP address is tied to a region and can be associated only with an instance in the same region.
Reference: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resources.html
Question 55

Which answer is the proper syntax for specifying two target hosts on the command line when running an Ansible Playbook?
Explanation:
Ansible uses the `-i' flag for accepting an inventory file or host. To allow Ansible to determine if you are passing a host list versus an inventory file the list must be comma separated. If a single host is specified, a trailing comma must be present.
Reference: http://docs.ansible.com/ansible/intro_inventory.html#inventory
Question 56

A DevOps engineer is writing an AWS CloudFormation template to stand up a web service that will run on Amazon EC2 instances in a private subnet behind an ELB Application Load Balancer. The Engineer must ensure that the service can accept requests from clients that have IPv6 addresses.
Which configuration items should the Engineer incorporate into the CloudFormation template to allow IPv6 clients to access the web service?
Question 57

A Development team is currently using AWS CodeDeploy to deploy an application revision to an Auto Scaling group. If the deployment process fails, it must be rolled back automatically and a notification must be sent. What is the MOST effective configuration that can satisfy all of the requirements?
Question 58

When deploying to a Docker swarm, which section of the docker-compose file defines configuration related to the deployment and running of services?
Explanation:
Specify configuration related to the deployment and running of services. This only takes effect when deploying to a swarm withdocker stack deploy, and is ignored by docker-compose up and dockercompose run.
Reference: https://docs.docker.com/compose/compose-file/#deploy
Question 59

A company has a mission-critical application on AWS that uses automatic scaling. The company wants the deployment lifecycle to meet the following parameters:
• The application must be deployed one instance at a time to ensure the remaining fleet continues to serve traffic. • The application is CPU intensive and must be closely monitored.
• The deployment must automatically roll back if the CPU utilization of the deployment instance exceeds 85%. Which solution will meet these requirements?
Explanation:
Reference: https://aws.amazon.com/about-aws/whats-new/2016/09/aws-codedeploy-introduces-deployment-monitoring-withamazon-cloudwatch-alarms-and-automatic-deployment-rollback/
Question 60

A company has thousands of Amazon EC2 instances as well as hundreds of virtual machines on-premises. Developers routinely sign in to the console for on-premises systems to perform troubleshooting. The Developers want to sign in to AWS instances to run performance tools, but are unable to due to the lack of a central console logging system. A DevOps Engineer wants to ensure that console access is logged on all systems. Which combination of steps will meet these requirements? (Choose two.)
Question