
NEW 2021 Certification Sample Questions AWS-DevOps Dumps & Practice Exam
AWS-DevOps Deluxe Study Guide with Online Test Engine
If you want to start your career in the field of IT, you need to have at least one certification under your belt. Many vendors are providing a wide range of certificates you can choose from. So, if you are interested in improving your skills related to AWS, it is recommended to get one of the Amazon certifications, for example, AWS Certified DevOps Engineer – Professional.
NEW QUESTION 53
A company is adopting AWS CodeDeploy to automate its application deployments for a Java- Apache Tomcat application with an Apache webserver. The Development team started with a proof of concept, created a deployment group for a developer environment, and performed functional tests within the application. After completion, the team will create additional deployment groups for staging and production The current log level is configured within the Apache settings, but the team wants to change this configuration dynamically when the deployment occurs, so that they can set different log level configurations depending on the deployment group without having a different application revision for each group.
How can these requirements be met with the LEAST management overhead and without requiring different script versions for each deployment group?
- A. Create a script that uses the CodeDeploy environment variable DEPLOYMENT_GROUP_NAME to identify which deployment group the instances is part of. Use this information to configure the log level settings. Reference this script as part of the Beforelnstall lifecycle hook in the appspec.yml file
- B. Create a script that uses the CodeDeploy environment variable DEPLOYMENT_GROUP_ID to identify which deployment group the instance is part of to configure the log level settings.
Reference this script as part of the Install lifecycle hook in the appspec yml file. - C. Tag the Amazon EC2 instances depending on the deployment group. Then place a script into the application revision that calls the metadata service and the EC2 API to identify which deployment group the instance is part of. Use this information to configure the log level settings. Reference the script as part of the Afterinstall lifecycle hook in the appspec yml file.
- D. Create a CodeDeploy custom environment variable for each environment. Then place a script into the application revision that checks this environment variable to identify which deployment group the instance is part of. Use this information to configure the log level settings. Reference this script as part of the ValidateService lifecycle hook in the appspec yml file.
Answer: D
NEW QUESTION 54
You have configured the following AWS services in your organization - Auto Scalinggroup, Elastic Load Balancer, and EC2 instances. You have been requested to terminate an instance from the Autoscaling Group when the CPU utilization is less than 30%. How can you achieve this.
- A. Createa CloudWatch alarm to send a notification to the ELB. The ELB can then removeone instance from the Autoscaling Group.
- B. Createa CloudWatch alarm to send a notification to the admin team. The admin team canthen manually terminate an instance from the Autnsraline Groun.
- C. Createa Cloud Watch alarm to send a notification to SQS. SQS can then remove oneinstance from the Autoscaling Group.
- D. Createa CloudWatch alarm to send a notification to the Auto Scalinggroup when theaggregated CPU utilization is less than 30% and configure the Auto Scalingpolicy to remove one instance.
Answer: D
Explanation:
Explanation
The AWS Documentation mentions the following
You should have two policies, one for scaling in (terminating instances) and one for scaling out (launching instances), for each event to monitor. For example, if you want to scale out when the network bandwidth reaches a certain level, create a policy specifying that Auto Scaling should start a certain number of instances to help with your traffic. But you may also want an accompanying policy to scale in by a certain number when the network bandwidth level goes back down For more information on the scaling plans, please see the below link:
* http://docs.aws.amazon.com/autoscaling/latest/userguide/scaIing_plan.htmI
NEW QUESTION 55
Which of the following environment types are available in the Elastic Beanstalk environment. Choose 2 answers from the options given below
- A. Multi-Instance
- B. Load Balancing Autoscaling
- C. Single Instance
- D. SQS, Autoscaling
Answer: B,C
Explanation:
Explanation
The AWS Documentation mentions
In Elastic Beanstalk, you can create a load-balancing, autoscaling environment or a single-instance environment. The type of environment that you require depends on the application that you deploy.
When you go onto the Configuration for your environment, you will be able to see the Environment type from there
NEW QUESTION 56
You run a small online consignment marketplace. Interested sellers complete an online application in order to allow them to sell their products on your website.
Once approved, they can post their product using a custom interface.
From that pant, you manage the shopping cart process so that when a buyer decides to buy a product, you handle the billing and coordinate the shipping.
Part of this process requires sending emails to the buyer and the seller at different stages.
Your system has been running on AWS for a few months.
Occasionally, products are shipped before payment cleared and emails are sent out of order.
Furthermore, sometimes credit cards are being charged twice. How can you resolve these problems?
- A. Use the Amazon Simple Workflow Service (SWF), and use a different set of workers for each task.
- B. Use the Simple Email Service (SES) to control the correct order of email delivery.
- C. Use the Amazon Simple Queue Service (SQS), and use a single set of workers for each task.
- D. Use the AWS Data Pipeline service to control the process flow of the various tasks.
- E. Use the Amazon Simple Queue Service (SQS), and use a different set of workers for each task.
Answer: A
NEW QUESTION 57
You are getting a lot of empty receive requests when using Amazon SQS.
This is making a lot of unnecessary network load on your instances.
What can you do to reduce this load?
- A. Use as long of a poll as possible, instead of short polls.
- B. Subscribe your queue to an SNS topic instead.
- C. Use <code>sqsd</code> on your EC2 instances.
- D. Alter your visibility timeout to be shorter.
Answer: A
Explanation:
One benefit of long polling with Amazon SQS is the reduction of the number of empty responses, when there are no messages available to return, in reply to a ReceiveMessage request sent to an Amazon SQS queue. Long polling allows the Amazon SQS service to wait until a message is available in the queue before sending a response.
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long- polling.html
NEW QUESTION 58
A DevOps Engineer uses Docker container technology to build an image-analysis application. The application often sees spikes in traffic. The Engineer must automatically scale the application in response to customer demand while maintaining cost effectiveness and minimizing any impact on availability. What will allow the FASTEST response to spikes in traffic while fulfilling the other requirements?
- A. Create an Amazon ECS cluster with the container instances in an Auto Scaling group. Configure the ECS service to use Service Auto Scaling. Set up Amazon CloudWatch alarms to scale the ECS service and cluster.
- B. Deploy containers on an AWS Elastic Beanstalk Multicontainer Docker environment. Configure Elastic Beanstalk to automatically scale the environment based on Amazon CloudWatch metrics.
- C. Deploy containers on Amazon EC2 instances. Deploy a container scheduler to schedule containers onto EC2 instances. Configure EC2 Auto Scaling for EC2 instances based on available Amazon CloudWatch metrics.
- D. Create an Amazon ECS cluster using Spot instances. Configure the ECS service to use Service Auto Scaling. Set up Amazon CloudWatch alarms to scale the ECS service and cluster.
Answer: A
Explanation:
https://aws.amazon.com/blogs/compute/automatic-scaling-with-amazon-ecs/
NEW QUESTION 59
A company wants to implement a CI/CD pipeline for building and testing its mobile apps. A DevOps Engineer has been given the following requirements:
* Use AWS CodePipeline to orchestrate the workflow.
* Test the application on real devices.
* Trigger a notification.
* Stage the application binary on a production bucket in a different account.
* Make the application binary publicly accessible.
Which sequence of actions should the Engineer perform in the pipeline to meet the requirements?
- A. Use AWS CodeCommit as the code source and AWS CodeDeploy to compile and package the application.
Use CodeDeploy to deploy the application binary to an AWS Lambda function for testing. Use a third-party library on AWS Lambda to simulate the device platform. Allow a Lambda role to upload to the production Amazon S3 bucket. Make the binary publicly accessible. Trigger notifications using Amazon SNS. - B. Use GitHub as the code source and AWS Lambda to compile and package the application. Use another Lambda function to run unit tests and deliver the application binary to a development bucket. Use the binary from the development bucket and install the application on a personal device for testing. Deliver the binary to the production bucket after approval. Trigger notifications using Amazon SNS.
- C. Use an Amazon S3 bucket as the code source and AWS CodeBuild to compile and package the application. Use AWS CodeDeploy to deploy the application binary to a device farm for testing. Deliver the binary to the production S3 bucket. Use an S3 bucket policy to allow public read on the production S3 bucket. Trigger notifications using an Amazon CloudWatch Events rule with Amazon SNS.
- D. Use AWS CodeCommit as the code source and AWS CodeBuild to compile and package the application.
Invoke an AWS Lambda function that uploads the application binary to a device farm for testing. Deliver the binary to the production Amazon S3 bucket. Use an S3 bucket policy to allow public read on the production S3 bucket. Trigger notifications by using an Amazon CloudWatch Events rule.
Answer: D
NEW QUESTION 60
A healthcare services company is concerned about the growing costs of software licensing for an application for monitoring patient wellness. The company wants to create an audit process to ensure that the application is running exclusively on Amazon EC2 Dedicated Hosts. A DevOps Engineer must create a workflow to audit the application to ensure compliance.
What steps should the Engineer take to meet this requirement with the LEAST administrative overhead?
- A. Use AWS Config. Identify all EC2 instances to be audited by enabling Config Recording on all Amazon EC2 resources for the region. Create a custom AWS Config rule that triggers an AWS Lambda function by using the "config-rule-change-triggered" blueprint. Modify the Lambda evaluateCompliance () function to verify host placement to return a NON_COMPLIANT result if the instance is not running on an EC2 Dedicated Host. Use the AWS Config report to address noncompliant instances.
- B. Use custom Java code running on an EC2 instance. Set up EC2 Auto Scaling for the instance depending on the number of instances to be checked. Send the list of noncompliant EC2 instance IDs to an Amazon SQS queue. Set up another worker instance to process instance IDs from the SQS queue and write them to Amazon DynamoDB. Use an AWS Lambda function to terminate noncompliant instance IDs obtained from the queue, and send them to an Amazon SNS email topic for distribution.
- C. Use AWS CloudTrail. Identify all EC2 instances to be audited by analyzing all calls to the EC2 RunCommand API action. Invoke an AWS Lambda function that analyzes the host placement of the instance. Store the EC2 instance ID of noncompliant resources in an Amazon RDS MySOL DB instance.
Generate a report by querying the RDS instance and exporting the query results to a CSV text file. - D. Use AWS Systems Manager Configuration Compliance. Use calls to the put-compliance- items API action to scan and build a database of noncompliant EC2 instances based on their host placement configuration.
Use an Amazon DynamoDB table to store these instance IDs for fast access. Generate a report through Systems Manager by calling the list-compliance- summaries API action.
Answer: A
NEW QUESTION 61
A DevOps Engineer just joined a new company that is already running workloads on Amazon EC2 instances.
AWS has been adopted incrementally with no central governance. The Engineer must now assess how well the existing deployments comply with the following requirements:
* EC2 instances are running only approved AMIs.
* Amazon EBS volumes are encrypted.
* EC2 instances have an Owner tag.
* Root login over SSH is disabled on EC2 instances.
Which services should the Engineer use to perform this assessment with the LEAST amount of effort? (Select TWO.)
- A. Amazon Inspector
- B. AWS System Manager
- C. Amazon GuardDuty
- D. AWS Directory Service
- E. AWS Config
Answer: B,E
NEW QUESTION 62
Which command will start an assessment run?
- A. aws inspector start-assessment-run --assessment-run-name examplerun --assessment-target
<target-arn> - B. aws inspector start-assessment-run --assessment-run-name examplerun
- C. aws inspector start-assessment-run --assessment-run-name examplerun --assessment-duration
<duration-in-seconds> - D. aws inspector start-assessment-run --assessment-template-arn <template-arn>
Answer: D
Explanation:
start-assessment-run command requires --assessment-template-arn, other parameters are optional start-assessment-run
--assessment-template-arn <value>
[--assessment-run-name <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
Reference:
http://docs.aws.amazon.com/cli/latest/reference/inspector/start-assessment-run.html
NEW QUESTION 63
An n-tier application requires a table in an Amazon RDS MySQL DB instance to be dropped and repopulated at each deployment. This process can take several minutes and the web tier cannot come online until the process is complete. Currently, the web tier is configured in an Amazon EC2 Auto Scaling group, with instances being terminated and replaced at each deployment. The MySQL table
is populated by running a SQL query through an AWS CodeBuild job.
What should be done to ensure that the web tier does not come online before the database is completely configured?
- A. Use AWS Step Functions to monitor and maintain the state of data population. Mark the database in service before continuing with the deployment.
- B. Use Amazon Aurora as a drop-in replacement for RDS MySQL. Use snapshots to populate the table with the correct data.
- C. Use an EC2 Auto Scaling lifecycle hook to pause the configuration of the web tier until the table is populated.
- D. Modify the launch configuration of the Auto Scaling group to pause user data execution for 600 seconds, allowing the table to be populated.
Answer: C
NEW QUESTION 64
An EC2 instance has failed a health check. What will the ELB do?
- A. The ELB will terminate the instance
- B. The ELB stops sending traffic to the instance that failed its health check
- C. The ELB will replace the instance
- D. The ELB does nothing
Answer: B
Explanation:
Explanation
The AWS Documentation mentions
The load balancer routes requests only to the healthy instances. When the load balancer determines that an instance is unhealthy, it stops routing requests to that instance. The load balancer resumes routing requests to the instance when it has been restored to a healthy state.
For more information on ELB health checks, please refer to the below link:
* http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html
NEW QUESTION 65
A company has EC2 instances running in AWS. The EC2 instances are running via an Autoscaling solution.
There is a lot of requests being lost because of the load on the servers. The Autoscaling solution is launching
new instances to take the load but there are still some requests which are being lost. Which of the following is
likely to provide the most cost-effective solution to avoid losing recently submitted requests? Choose the
correct answer from the options given below
- A. UseanSQS queue to decouple the application components
- B. Keepone extra EC2 instance always powered on in case a spike occurs
- C. Uselarger instances for your application
- D. Pre -warmyour Elastic Load Balancer
Answer: A
Explanation:
Explanation
Amazon Simple Queue Service (SQS) is a fully-managed message queuing service for reliably communicating
among distributed software components and microservices - at any scale. Building applications from
individual components that each perform a discrete function improves scalability and reliability, and is best
practice design for modern applications
For more information on SQS, please refer to the below link:
* https://aws.amazon.com/sqs/
NEW QUESTION 66
For AWS CloudFormation, which stack state refuses UpdateStack calls?
- A. <code>UPDATE_ROLLBACK_FAILED</code>
- B. <code>UPDATE_COMPLETE</code>
- C. <code>CREATE_COMPLETE</code>
- D. <code>UPDATE_ROLLBACK_COMPLETE</code>
Answer: A
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 67
You have a development team that is continuously spending a lot of time rolling back updates for an application. They work on changes, and if the change fails, they spend more than 5-6h in rolling back the update. Which of the below options can help reduce the time for rolling back application versions.
- A. Use Elastic Beanstalk and re-deploy using Application Versions
- B. Use OpsWorks and re-deploy using rollback feature.
- C. Use CloudFormation and update the stack with the previous template
- D. Use S3 to store each version and then re-deploy with Elastic Beanstalk
Answer: A
Explanation:
Explanation
Option B is invalid because Clastic Beanstalk already has the facility to manage various versions and you don't need to use S3 separately for this.
Option C is invalid because in Cloudformation you will need to maintain the versions. Clastic Beanstalk can so that automatically for you.
Option D is good for production scenarios and Clastic Beanstalk is great for development scenarios.
AWS beanstalk is the perfect solution for developers to maintain application versions.
With AWS Clastic Beanstalk, you can quickly deploy and manage applications in the AWS Cloud without worrying about the infrastructure that runs those applications. AWS Clastic Beanstalk reduces management complexity without restricting choice or control.
You simply upload your application, and AWS Clastic
Beanstalk automatically handles the details of capacity provisioning, load balancing, scaling, and application health monitoring.
For more information on AWS Beanstalk please refer to the below link:
* https://aws.amazon.com/documentation/elastic-beanstalk/
NEW QUESTION 68
For Amazon Inspector's integration with CloudTrail, what information is logged for List* and Describe* APIs?
- A. Both request and response information is logged.
- B. None. Amazon Inspector is an automated service and not monitored by CloudTrail.
- C. Only request information is logged .
- D. Request information is always logged. Response information is logged only for Completed assessment runs.
Answer: C
Explanation:
For the Amazon Inspector integration with CloudTrail, for the List* and Describe* APIs, only the request information is logged.
Reference:
https://docs.aws.amazon.com/inspector/latest/userguide/logging-using-cloudtrail.html
NEW QUESTION 69
A company wants to migrate its content sharing web application hosted on Amazon EC2 to a serverless architecture. The company currently deploys changes to its application by creating a new Auto Scaling group of EC2 instances and a new Elastic Load Balancer and then shifting the traffic away using an Amazon Route 53 weighted routing policy For its new serverless application, the company is planning to use Amazon API Gateway and AWS Lambda The company will need to update its deployment processes to work with the new application. It will also need to retain the ability to test new features on a small number of users before rolling the features out to the entire user base Which deployment strategy will meet these requirements?
- A. Use AWS OpsWorks to deploy API Gateway in the service layer and Lambda functions in a custom layer. When code needs to be changed, use OpsWorks to perform a blue/green deployment and shift traffic gradually
- B. Use AWS Elastic Beanstalk to deploy API Gateway and Lambda functions When code needs to be changed, deploy a new version of the API and Lambda functions. Shift traffic gradually using an Elastic Beanstalk blue/green deployment.
- C. Use AWS CloudFormation to deploy API Gateway and Lambda functions using Lambda function versions When code needs to be changed, update the CloudFormation stack with the new Lambda code and update the API versions using a canary release strategy Promote the new version when testing is complete.
- D. Use AWS CDK to deploy API Gateway and Lambda functions. When code needs to be changed, update the AWS CloudFormation stack and deploy the new version of the APIs and Lambda functions. Use a Route 53 failover routing policy for the canary release strategy.
Answer: C
NEW QUESTION 70
......
Incident and Event Response (18%)
- Troubleshooting the issues and defining how to restore the operations.
- Defining how to automate event management & alerting;
- Applying the concepts required for implementing automated healing and setting up the event-driven automated actions;
AWS-DevOps dumps review - Professional Quiz Study Materials: https://www.verifieddumps.com/AWS-DevOps-valid-exam-braindumps.html
AWS-DevOps Test Prep Training Practice Exam Questions Practice Tests: https://drive.google.com/open?id=1MD6p2t68httrol_bLkRt9HHuFrNZNE2M
