
Study HIGH Quality AWS-DevOps-Engineer-Professional Free Study Guides and Exams Tutorials
Download Amazon AWS-DevOps-Engineer-Professional Exam Dumps to Pass Exam Easily
NEW QUESTION 137
You are a Devops engineer for your company.There is a requirement to host a custom application which has custom dependencies for a development team. This needs to be done using AWS service. Which of the following is the ideal way to fulfil this requirement.
- A. Packagethe application and dependencies in an S3 file, and deploy the Docker containerwith Elastic Beanstalk.
- B. Packagethe application and dependencies with in Elastic Beanstalk, and deploy withElastic Beanstalk
- C. Packagethe application and dependencies with Docker, and deploy the Docker containerwith CloudFormation.
- D. Packagethe application and dependencies with Docker, and deploy the Docker containerwith Elastic Beanstalk.
Answer: D
Explanation:
Explanation
The AWS Documentation mentions
Clastic Beanstalk supports the deployment of web applications from Docker containers. With Docker containers, you can define your own runtime environment. You can choose your own platform, programming language, and any application dependencies (such as package managers or tools), that aren't supported by other platforms. Docker containers are self-contained and include all the configuration information and software your web application requires to run.
For more information on Elastic beanstalk and Docker, please visit the below URL:
* http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.
html
NEW QUESTION 138
You were just hired as a DevOps Engineer for a startup. Your startup uses AWS for 100% of their infrastructure. They currently have no automation at all for deployment, and they have had many failures while trying to deploy to production. The company has told you deployment process risk mitigation is the most important thing now, and you have a lot of budget for tools and AWS resources.
Their stack:
2-tier API
Data stored in DynamoDB or S3, depending on type
Compute layer is EC2 in Auto Scaling Groups
They use Route53 for DNS pointing to an ELB
An ELB balances load across the EC2 instances
The scaling group properly varies between 4 and 12 EC2 servers. Which of the following approaches, given this company's stack and their priorities, best meets the company's needs?
- A. Model the stack in AWS Elastic Beanstalk as a single Application with multiple Environments. Use Elastic Beanstalk's Rolling Deploy option to progressively roll out application code changes when promoting across environments.
- B. Model the stack in AWS OpsWorks as a single Stack, with 1 compute layer and its associated ELB.
Use Chef and App Deployments to automate Rolling Deployment. - C. Model the stack in 1 CloudFormation template, to ensure consistency and dependency graph resolution. Write deployment and integration testing automation following Rolling Deployment methodologies.
- D. Model the stack in 3 CloudFormation templates: Data layer, compute layer, and networking layer.
Write stack deployment and integration testing automation following Blue-Green methodologies.
Answer: D
Explanation:
AWS recommends Blue-Green for zero-downtime deploys. Since you use DynamoDB, and neither AWS OpsWorks nor AWS Elastic Beanstalk directly supports DynamoDB, the option selecting CloudFormation and Blue-Green is correct.
You use various strategies to migrate the traffic from your current application stack (blue) to a new version of the application (green). This is a popular technique for deploying applications with zero downtime. The deployment services like AWS Elastic Beanstalk, AWS CloudFormation, or AWS OpsWorks are particularly useful as they provide a simple way to clone your running application stack. You can set up a new version of your application (green) by simply cloning current version of the application (blue). https://d0.awsstatic.com/whitepapers/overview-of- deployment-options-on-aws.pdf
NEW QUESTION 139
In reviewing the Auto-Scaling events for your application you notice that your application is scaling up and
down multiple times in the same hour. What design choice could you make to optimize for costs while
preserving elasticity?
Choose 2 options from the choices given below
- A. Modifythe Auto Scaling Group cool down timers
- B. Modifythe Auto Scaling policy to use scheduled scaling actions
- C. Modifythe Auto Scalinggroup termination policy to terminate the newest instancefirst.
- D. Modifythe Amazon Cloudwatch alarm period that triggers your AutoScaling scale downpolicy.
Answer: A,D
Explanation:
Explanation
The Auto Scaling cooldown period is a configurable setting for your Auto Scalinggroup that helps to ensure
that Auto Scaling doesn't launch or terminate additional
instances before the previous scaling activity takes effect. After the Auto Scalinggroup dynamically scales
using a simple scaling policy. Auto Scaling waits for the
cooldown period to complete before resuming scaling activities. When you manually scale your Auto Scaling
group, the default is not to wait for the cooldown period,
but you can override the default and honor the cooldown period. Note that if an instance becomes unhealthy.
Auto Scaling does not wait for the cooldown period to
complete before replacing the unhealthy instance.
For more information on Autoscale cool down timers please visit the URL:
* http://docs.ws.amazon.com/autoscaling/latest/userguide/Cooldown.htm
I
You can also modify the Cloudwatch triggers to ensure the thresholds are appropriate for the scale down
policy For more information on Autoscaling user guide please visit the URL:
* http://docs.aws.amazon.com/autoscaling/latest/userguide/as-scale-based-on-demand.
html
NEW QUESTION 140
You were just hired as a DevOps Engineer for a startup. Your startup uses AWS for 100% of their infrastructure. They currently have no automation at all for deployment, and they have had many failures while trying to deploy to production. The company has told you deployment process risk mitigation is the most important thing now, and you have a lot of budget for tools and AWS resources.
Their stack:
2-tier API
Data stored in DynamoDB or S3, depending on type
Compute layer is EC2 in Auto Scaling Groups
They use Route53 for DNS pointing to an ELB
An ELB balances load across the EC2 instances
The scaling group properly varies between 4 and 12 EC2 servers. Which of the following approaches, given this company's stack and their priorities, best meets the company's needs?
- A. Model the stack in AWS Elastic Beanstalk as a single Application with multiple Environments. Use Elastic Beanstalk's Rolling Deploy option to progressively roll out application code changes when promoting across environments.
- B. Model the stack in AWS OpsWorks as a single Stack, with 1 compute layer and its associated ELB.
Use Chef and App Deployments to automate Rolling Deployment. - C. Model the stack in 1 CloudFormation template, to ensure consistency and dependency graph resolution. Write deployment and integration testing automation following Rolling Deployment methodologies.
- D. Model the stack in 3 CloudFormation templates: Data layer, compute layer, and networking layer.
Write stack deployment and integration testing automation following Blue-Green methodologies.
Answer: D
Explanation:
AWS recommends Blue-Green for zero-downtime deploys. Since you use DynamoDB, and neither AWS OpsWorks nor AWS Elastic Beanstalk directly supports DynamoDB, the option selecting CloudFormation and Blue-Green is correct.
You use various strategies to migrate the traffic from your current application stack (blue) to a new version of the application (green). This is a popular technique for deploying applications with zero downtime. The deployment services like AWS Elastic Beanstalk, AWS CloudFormation, or AWS OpsWorks are particularly useful as they provide a simple way to clone your running application stack. You can set up a new version of your application (green) by simply cloning current version of the application (blue). https://d0.awsstatic.com/whitepapers/overview-of- deployment-options-on-aws.pdf
NEW QUESTION 141
You are using AWS Elastic Beanstalk to deploy your application and must make data stored on an Amazon Elastic Block Store (EBS) volume snapshot available to the Amazon Elastic Compute Cloud (EC2) instances. How can you modify your Elastic Beanstalk environment so that the data is added to the Amazon EC2 instances every time you deploy your application?
- A. Add commands to the Chef recipe associated with your environment, use the create-volume Amazon EC2 API or CLI to create a new Amazon EBS volume based on the specified snapshot, and then mount the volume on launch.
- B. Add commands to a configuration file in the .ebextensions folder of your deployable archive that uses the create-volume Amazon EC2 API or CLI to create a new ephemeral volume based on the specified snapshot and then mounts the volume on launch.
- C. Add commands to the Amazon EC2 user data that will be executed by eb-init, which uses the create- volume Amazon EC2 API or CLI to create a new Amazon EBS volume based on the specified snapshot, and then mounts the volume on launch.
- D. Add commands to a configuration file in the .ebextensions folder of your deployable archive that mount an additional Amazon EBS volume on launch.
Also add a "BlockDeviceMappings" option, and specify the snapshot to use for the block device in the Auto Scaling launch configuration.
Answer: D
NEW QUESTION 142
You work for a company that automatically tags photographs using artificial neural networks (ANNs), which run on GPUs using C++. You receive millions of images at a time, but only 3 times per day on average. These images are loaded into an AWS S3 bucket you control for you in a batch, and then the customer publishes a JSON-formatted manifest into another S3 bucket you control as well. Each image takes 10 milliseconds to process using a full GPU. Your neural network software requires 5 minutes to bootstrap. Image tags are JSON objects, and you must publish them to an S3 bucket. Which of these is the best system architectures for this system?
- A. Create an OpsWorks Stack with two Layers. The first contains lifecycle scripts for launching and bootstrapping an HTTP API on G2 instances for ANN image processing, and the second has an always-on instance which monitors the S3 manifest bucket for new files. When a new file is detected, request instances to boot on the ANN layer. When the instances are booted and the HTTP APIs are up, submit processing requests to individual instances.
- B. Make an S3 notification configuration which publishes to AWS Lambda on the manifest bucket.
Make the Lambda create a CloudFormation Stack which contains the logic to construct an autoscaling worker tier of EC2 G2 instances with the ANN code on each instance. Create an SQS queue of the images in the manifest. Tear the stack down when the queue is empty. - C. Deploy your ANN code to AWS Lambda as a bundled binary for the C++ extension. Make an S3 notification configuration on the manifest, which publishes to another AWS Lambda running controller code. This controller code publishes all the images in the manifest to AWS Kinesis.
Your ANN code Lambda Function uses the Kinesis as an Event Source. The system automatically scales when the stream contains image events. - D. Create an Auto Scaling, Load Balanced Elastic Beanstalk worker tier Application and Environment.
Deploy the ANN code to G2 instances in this tier. Set the desired capacity to 1. Make the code periodically check S3 for new manifests. When a new manifest is detected, push all of the images in the manifest into the SQS queue associated with the Elastic Beanstalk worker tier.
Answer: B
Explanation:
The Elastic Beanstalk option is incorrect because it requires a constantly-polling instance, which may break and costs money.
The Lambda fleet option is incorrect because AWS Lambda does not support GPU usage. The OpsWorks stack option both requires a constantly-polling instance, and also requires complex timing and capacity planning logic.
The CloudFormation option requires no polling, has no always-on instances, and allows arbitrarily fast processing by simply setting the instance count as high as needed.
http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
NEW QUESTION 143
A web application experiences high compute costs due to serving a high amount of static web content.
How should the web server architecture be designed to be the MOST cost-efficient?
- A. Create an Auto Scaling group to scale out based on average CPU usage.
- B. Leverage Reserved Instances to add additional capacity at a significantly lower price.
- C. Create an Amazon CloudFront distribution to pull static content from an Amazon S3 bucket.
- D. Create a multi-region deployment using an Amazon Route 53 geolocation routing policy.
Answer: C
NEW QUESTION 144
You would like to run automated, continuous application level integration tests on all members of an Auto Scaling group. Which two options should you use?
Choose 2 answers.
- A. Use the AWS SDK to run the DescribeAutoScalinglnstances API call on the Auto Scaling Group, iterate over the members using the Describe Instances API call, remotely connect to each Amazon EC2 instance, and then run the integration tests.
- B. Set up a custom CloudWatch metric that uses the output of the DescribeAutoScalingInstances API call to determine the HealthCheck status of the Amazon EC2 instances.
- C. Using the Auto Cycle Group lifecycle policy, define a scheduled task to run integration tests on individual instances using the Amazon EC2 user data to export test data to CloudWatch Logs.
- D. Using an Auto Cycle Group lifecycle policy, define a scheduled task to run integration tests when a new Amazon EC2 instance enters the InService state.
- E. Set up a custom CloudWatch metric with the output of your integration tests that are run by a scheduled process on each instance, and then set up a CloudWatch alert for any failures.
- F. Use the AWS SDK to run the DescribeInstances API call on the Auto Scaling group, and then iterate over the members and remotely connect to each Amazon EC2 instance and run the integration tests.
Answer: A,E
NEW QUESTION 145
A company that runs many workloads on AWS has an Amazon EBS spend that has increased over time. The DevOps team notices there are many unattached EBS volumes. Although there are workloads where volumes are detached, volumes over 14 days old are stale and no longer needed. A DevOps engineer has been tasked with creating automation that deletes unattached EBS volumes that have been unattached for 14 days.
Which solution will accomplish this?
- A. Create an Amazon CloudWatch Events rule to execute an AWS Lambda function daily. The Lambda function should find unattached EBS volumes and tag them with the current date, and delete unattached volumes that have tags with dates that are more than 14 days old.
- B. Use Amazon EC2 and Amazon Data Lifecycle Manager to configure a volume lifecycle policy. Set the interval period for unattached EBS volumes to 14 days and set the retention rule to delete. Set the policy target volumes as
- C. Configure the AWS Config ec2-vo!ume-inuse-check managed rule with a configuration changes trigger type and an Amazon EC2 volume resource target. Create a new Amazon CloudWatch Events rule scheduled to execute an AWS Lambda function in 14 days to delete the specified EBS volume.
- D. Use AWS Trusted Advisor to detect EBS volumes that have been detached for more than 14 days. Execute an AWS Lambda function that creates a snapshot and then deletes the EBS volume.
Answer: D
NEW QUESTION 146
Your API requires the ability to stay online during AWS regional failures. Your API does not store any state, it only aggregates data from other sources - you do not have a database. What is a simple but effective way to achieve this uptime goal?
- A. Use an ELB and a cross-zone ELB deployment to create redundancy across datacenters. Even if a region fails, the other AZ will stay online.
- B. Create a Route53 Weighted Round Robin record, and if one region goes down, have that region redirect to the other region.
- C. Use a CloudFront distribution to serve up your API. Even if the region your API is in goes down, the edge locations CloudFront uses will be fine.
- D. Create a Route53 Latency Based Routing Record with Failover and point it to two identical deployments of your stateless API in two different regions. Make sure both regions use Auto Scaling Groups behind ELBs.
Answer: D
Explanation:
Latency Based Records allow request distribution when all is well with both regions, and the Failover component enables fallbacks between regions. By adding in the ELB and ASG, your system in the surviving region can expand to meet 100% of demand instead of the original fraction, whenever failover occurs.
http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
NEW QUESTION 147
A company wants to use a grid system for a proprietary enterprise in-memory data store on top of AWS. This system can run in multiple server nodes in any Linux-based distribution. The system must be able to reconfigure the entire cluster every time a node is added or removed. When adding or removing nodes, an /etc./cluster/nodes. config file must be updated, listing the IP addresses of the current node members of that cluster The company wants to automate the task of adding new nodes to a cluster. What can a DevOps Engineer do to meet these requirements?
- A. Put the file nodes.config in version control. Create an AWS CodeDeploy deployment configuration and deployment group based on an Amazon EC2 tag value for the cluster nodes. When adding a new node to the cluster, update the file with all tagged instances, and make a commit in version control. Deploy the new file and restart the services.
- B. Create a user data script that lists all members of the current security group of the cluster and automatically updates the /etc/cluster/nodes.config file whenever a new instance is added to the cluster
- C. Use AWS OpsWorks Stacks to layer the server nodes of that cluster. Create a Chef recipe that populates the content of the/etc/cluster/nodes config file and restarts the service by using the current members of the layer. Assign that recipe to the Configure lifecycle event.
- D. Create an Amazon S3 bucket and upload a version of the etc/cluster/ nodes.config file. Create a crontab script that will poll for that S3 file and download it frequently. Use a process manager, such as Monit or systemd, to restart the cluster services when it detects that the new file was modified. When adding a node to the cluster, edit the file's most recent members. Upload the new file to the S3 bucket .
Answer: C
NEW QUESTION 148
Your CTO is very worried about the security of your AWS account. How best can you prevent hackers from completely hijacking your account?
- A. Don'twrite down or remember the root account password after creating the AWSaccount.
- B. Useshort but complex password on the root account and any administrators.
- C. UseAWS 1AM Geo-Lock and disallow anyone from logging in except for in your city.
- D. UseMFA on all users and accounts, especially on the root account.
Answer: D
Explanation:
Explanation
The AWS documentation mentions the following on MFA
AWS Multi-Factor Authentication (MFA) is a simple best practice that adds an extra layer of protection on top of your user name and password. With MFA enabled, when a user signs in to an AWS website, they will be prompted for their user name and password (the first factor-what they know), as well as for an authentication code from their AWS MFA device (the second factor-what they have). Taken together, these multiple factors provide increased security for your AWS account settings and resources.
For more information on MFA please visit the below link
https://aws.ama zon.com/ia m/detai Is/mfa/
NEW QUESTION 149
As part of your deployment pipeline, you want to enable automated testing of your AWS CloudFormation
template. What testing should be performed to enable faster feedback while minimizing costs and risk? Select
three answers from the options given below
- A. Usethe AWS CloudFormation Validate Template to validate the syntax of the template
- B. Validatethe AWS CloudFormation template against the official XSD scheme definitionpublished by
Amazon Web Services. - C. Validatethe template's is syntax using a generalJSON parser.
- D. Usethe AWS CloudFormation Validate Template to validate the properties ofresources defined in the
template. - E. When creating the stack, specify an Amazon SNS topic to which your testing system is subscribed. Your
testing system runs tests when it receives notification that the stack is created or updated. - F. Updatethe stack with the template. If the template fails rollback will return thestack and its resources to
exactly the same state.
Answer: A,E,F
Explanation:
Explanation
The AWS documentation mentions the following
The aws cloudformation validate-template command is designed to check only the syntax of your template. It
does not ensure that the property values that you have specified for a resource are valid for that resource. Nor
does it determine the number of resources that will exist when the stack is created.
To check the operational validity, you need to attempt to create the stack. There is no sandbox or test area for
AWS Cloud Formation stacks, so you are charged for the resources you create during testing.
Option F is needed for notification.
For more information on Cloudformation template validation, please visit the link:
* http://docs.aws.a
mazon.com/AWSCIoudFormation/latest/UserGuide/using-cfn-va I idate-template.htm I
NEW QUESTION 150
What is AWS CloudTrail Processing Library?
- A. An object library with CloudTrail log files in a movable format machine code that is usually not directly executable
- B. A Java library that makes it easy to build an application that reads and processes CloudTrail log files
- C. A static library with CloudTrail log files in a movable format machine code that is directly executable
- D. A PHP library that renders various generic containers needed for CloudTrail log files
Answer: B
Explanation:
AWS CloudTrail Processing Library is a Java library that makes it easy to build an application that reads and processes CloudTrail log files.
You can download CloudTrail Processing Library from GitHub.
Reference: http://aws.amazon.com/cloudtrail/faqs/
NEW QUESTION 151
What is the scope of AWS IAM?
- A. Availability Zone
- B. Global
- C. Region
- D. Placement Group
Answer: B
Explanation:
IAM resources are all global; there is not regional constraint.
Reference: https://aws.amazon.com/iam/faqs/
NEW QUESTION 152
You are building a game high score table in DynamoDB. You will store each user's highest score for each game, with many games, all of which have relatively similar usage levels and numbers of players. You need to be able to look up the highest score for any game.
What is the best DynamoDB key structure?
- A. HighestScore as the hash / only key.
- B. GameID as the range / only key.
- C. GameID as the hash key, HighestScore as the range key.
- D. GameID as the hash / only key.
Answer: C
Explanation:
Since access and storage for games is uniform, and you need to have ordering within each game for the scores (to access the highest value), your hash (partition) key should be the GameID, and there should be a range key for HighestScore.
NEW QUESTION 153
Which of the following is not a component of Elastic Beanstalk?
- A. ApplicationVersion
- B. Environment
- C. Docker
- D. Application
Answer: C
Explanation:
Explanation
Answer - C
The following are the components of Clastic Beanstalk
1) Application - An Clastic Beanstalk application is a logical collection of Clastic Beanstalk components,
including environments, versions, and environment configurations. In Clastic Beanstalk an application is
conceptually similar to a folder
2) Application version - In Clastic Beanstalk, an application version refers to a specific, labeled iteration of
deployable code for a web application
3) environment - An environment is a version that is deployed onto AWS resources. Cach environment runs
only a single application version at a time, however you can run the same version or different versions in many
environments at the same time.
4) environment Configuration - An environment configuration identifies a collection of parameters and
settings that define how an environment and its associated resources behave.
5) Configuration Template - A configuration template is a starting point for creating unique environment
configurations. For more information on the components of Clastic beanstalk please refer to the below link
http://docs.aws.a
mazon.com/elasticbeanstalk/latest/dg/concepts.compo nents.html
NEW QUESTION 154
For AWS CloudFormation, which stack state refuses UpdateStack calls?
- A. <code>UPDATE_ROLLBACK_COMPLETE</code>
- B. <code>UPDATE_COMPLETE</code>
- C. <code>CREATE_COMPLETE</code>
- D. <code>UPDATE_ROLLBACK_FAILED</code>
Answer: D
Explanation:
When a stack is in the UPDATE_ROLLBACK_FAILED state, you can continue rolling it back to return it to a working state (to UPDATE_ROLLBACK_COMPLETE). You cannot update a stack that is in the UPDATE_ROLLBACK_FAILED state. However, if you can continue to roll it back, you can return the stack to its original settings and try to update it again.
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks- continueu pdaterollback.html
NEW QUESTION 155
A large enterprise is deploying a web application on AWS. The application runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Auto Scaling group across multiple Availability Zones. The application stores data in an Amazon RDS Oracle DB instance and Amazon DynamoDB.
There are separate environments for development, testing, and production.
What is the MOST secure and flexible way to obtain password credentials during deployment?
- A. Retrieve an access key from an AWS Systems Manager SecureString parameter to access AWS services. Retrieve the database credentials from a Systems Manager SecureString parameter.
- B. Launch the EC2 instances with an EC2 IAM role to access AWS services. Store the database passwords in an encrypted config file with the application artifacts.
- C. Launch the EC2 instances with an EC2 IAM role to access AWS services. Retrieve the database credentials from AWS Secrets Manager.
- D. Retrieve an access key from an AWS Systems Manager plaintext parameter to access AWS services.
Retrieve the database credentials from a Systems Manager SecureString parameter.
Answer: B
NEW QUESTION 156
Your API requires the ability to stay online during AWS regional failures. Your API does not store any state, it only aggregates data from other sources - you do not have a database. What is a simple but effective way to achieve this uptime goal?
- A. Use an ELB and a cross-zone ELB deployment to create redundancy across datacenters. Even if a region fails, the other AZ will stay online.
- B. Create a Route53 Weighted Round Robin record, and if one region goes down, have that region redirect to the other region.
- C. Use a CloudFront distribution to serve up your API. Even if the region your API is in goes down, the edge locations CloudFront uses will be fine.
- D. Create a Route53 Latency Based Routing Record with Failover and point it to two identical deployments of your stateless API in two different regions. Make sure both regions use Auto Scaling Groups behind ELBs.
Answer: D
Explanation:
Latency Based Records allow request distribution when all is well with both regions, and the Failover component enables fallbacks between regions. By adding in the ELB and ASG, your system in the surviving region can expand to meet 100% of demand instead of the original fraction, whenever failover occurs.
http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
NEW QUESTION 157
If a variable is assigned in the `vars' section of a playbook, where is the proper place to override that variable?
- A. extra vars
- B. playbook host_vars
- C. Inventory group var
- D. role defaults
Answer: A
Explanation:
In Ansible's variable precedence, the highest precedence is the extra vars option on the command line.
Reference:
http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i- put-a-variable
NEW QUESTION 158
A company has a website in an AWS Elastic Beanstalk load balancing and automatic scaling environment.
This environment has an Amazon RDS MySQL instance configured as its database resource. After a sudden increase in traffic, the website started dropping traffic. An administrator discovered that the application on some instances is not responding as the result of out-of-memory errors. Classic Load Balancer marked those instances as out of service, and the health status of Elastic Beanstalk enhanced health reporting is degraded.
However, Elastic Beanstalk did not replace those instances. Because of the diminished capacity behind the Classic Load Balancer, the application response times are slower for the customers.
Which action will permanently fix this issue?
- A. Write a cron script for restraining the web server process when memory is full, and deploy it with AWS Systems Manager.
- B. Change the setting for the Auto Scaling group health check from Amazon EC2 to Elastic Load Balancing, and increase the capacity of the group.
- C. Temporarily change the maximum number of instances in the Auto Scaling group to allow the group to support more traffic.
- D. Clone the Elastic Beanstalk environment. When the new environment is up, swap CNAME and terminate the earlier environment.
Answer: B
NEW QUESTION 159
A company has a hybrid architecture solution in which some legacy systems remain on-premises, while a specific cluster of servers is moved to AWS. The company cannot reconfigure the legacy systems, so the cluster nodes must have a fixed hostname and local IP address for each server that is part of the cluster. The DevOps Engineer must automate the configuration for a six-node cluster with high availability across three Availability Zones (AZs), placing two elastic network interfaces in a specific subnet for each AZ. Each node's hostname and local IP address should remain the same between reboots or instance failures.
Which solution involves the LEAST amount of effort to automate this task?
- A. Create an AWS Elastic Beanstalk application and a specific environment for each server of the cluster.
For each environment, give the hostname, elastic network interface, and AZ as input parameters. Use the local health agent to name the instance and attach a specific elastic network interface based on the current environment. - B. Create an Amazon DynamoDB table with the list of hostnames subnets, and elastic network interfaces to be used. Create a single AWS CloudFormation template to manage an Auto Scaling group with a minimum size of 6 and a maximum size of 6. Create a programmatic solution that is installed in each instance that will lock/release the assignment of each hostname and local IP address, depending on the subnet in which a new instance will be launched.
- C. Create a reusable AWS CLI script to launch each instance individually, which will name the instance, place it in a specific AZ, and attach a specific elastic network interface. Monitor the instances and in the event of failure, replace the missing instance manually by running the script again.
- D. Create a reusable AWS CloudFormation template to manage an Amazon EC2 Auto Scaling group with a minimum size of 1 and a maximum size of 1. Give the hostname, elastic network interface, and AZ as stack parameters. Use those parameters to set up an EC2 instance with EC2 Auto Scaling and a user data script to attach to the specific elastic network interface. Use CloudFormation nested stacks to nest the template six times for a total of six nodes needed for the cluster, and deploy using the master template.
Answer: D
NEW QUESTION 160
Your company needs to automate 3 layers of a large cloud deployment. You want to be able to track this deployment's evolution as it changes over time, and carefully control any alterations. What is a good way to automate a stack to meet these requirements?
- A. Use OpsWorks Stacks with three layers to model the layering in your stack.
- B. Use CloudFormation Nested Stack Templates, with three child stacks to represent the three logical layers of your cloud.
- C. Use AWS Config to declare a configuration set that AWS should roll out to your cloud.
- D. Use Elastic Beanstalk Linked Applications, passing the important DNS entires between layers using the metadata interface.
Answer: B
Explanation:
Explanation
As your infrastructure grows, common patterns can emerge in which you declare the same components in each of your templates. You can separate out these common components and create dedicated templates for them.
That way, you can mix and match different templates but use nested stacks to create a single, unified stack. Nested stacks are stacks that create other stacks. To create nested stacks, use the AWS:: Cloud Form ation::Stackresource in your template to reference other templates.
For more information on nested stacks, please visit the below URL:
* http://docs^ws.amazon.com/AWSCIoudFormation/latest/UserGuide/best-practices.html#nested Note:
The query is, how you can automate a stack over the period of time, when changes are required, with out recreating the stack.
The function of Nested Stacks are to reuse Common Template Patterns.
For example, assume that you have a load balancer configuration that you use for most of your stacks. Instead of copying and pasting the same configurations into your templates, you can create a dedicated template for the load balancer. Then, you just use the resource to reference that template from within other templates.
Yet another example is if you have a launch configuration with certain specific configuration and you need to change the instance size only in the production environment and to leave it as it is in the development environment.
AWS also recommends that updates to nested stacks are run from the parent stack.
When you apply template changes to update a top-level stack, AWS CloudFormation updates the top-level stack and initiates an update to its nested stacks. AWS Cloud Formation updates the resources of modified nested stacks, but does not update the resources of unmodified nested stacks.
NEW QUESTION 161
A social networking service runs a web API that allows its partners to search public posts. Post data is stored in Amazon DynamoDB and indexed by AWS Lambda functions, with an Amazon ES domain storing the indexes and providing search functionality to the application.
The service needs to maintain full capacity during deployments and ensure that failed deployments do not cause downtime or reduced capacity, or prevent subsequent deployments.
How can these requirements be met? (Select TWO )
- A. Run the web application in AWS Elastic Beanstalk with the deployment policy set to All at Once.
Deploy the Lambda functions, DynamoDB tables, and Amazon ES domain with an AWS CloudFormation template. - B. Run the web.application in AWS Elastic Beanstalk with the deployment policy set to Rolling Deploy the Lambda functions, DynamoDB tables, and Amazon ES domain with an AWS CloudFormation template.
- C. Deploy the web application, Lambda functions, DynamoDB tables, and Amazon ES domain in an AWS CloudFormation template. Deploy changes with an AWS CodeDeploy in-place deployment.
- D. Run the web application in AWS Elastic Beanstalk with the deployment policy set to Immutable Deploy the Lambda functions, DynamoDB tables, and Amazon ES domain with an AWS CloudFormation template.
- E. Deploy the web application, Lambda functions, DynamoDB tables, and Amazon ES domain in an AWS CloudFormation template. Deploy changes with an AWS CodeDeploy blue/green deployment.
Answer: C,D
NEW QUESTION 162
......
What Career Opportunities Can AWS Certified DevOps Engineer – Professional Have?
A certified AWS DevOps Engineer – Professional receives automated access to better-paid jobs and will receive recognition from both colleagues and recruiters. If you are determined to get this certification, you should know that you can apply to the following jobs:
- Senior DevOps Engineer;
- Development Operations Engineer.
- Cloud Architect;
Payscale.com has a clear structure when it comes to the average annual salaries that the specialists in IT can receive annually. In the case of a Senior DevOps Engineer, you should know that you can get $117k in one year. Also, if you are determined to be a Cloud Architect, then you will get $128k annually.
Get 100% Real Free AWS Certified DevOps Engineer AWS-DevOps-Engineer-Professional Sample Questions: https://www.actualcollection.com/AWS-DevOps-Engineer-Professional-exam-questions.html
Accurate AWS-DevOps-Engineer-Professional Questions with Free and Fast Updates: https://drive.google.com/open?id=1Pql9t93b6A0Eu5e0_MJLVka1wFJ7yIEP