AWS Certified DevOps Engineer – Professional ( DevOps Engineering on AWS ) Quiz Questions and Answers

You have a current Clouformation template defined in AWS. You need to change the current alarm threshold defined in the Cloudwatch alarm. How can you achieve this?

Answer :
  • Update the template and then update the stack with the new template. Only those resources that need to be changed will be changed. All other resources which do not need to be changed will remain as they are.

As part of your continuous deployment process, your application undergoes an I/O load performance test before it is deployed to production using new AMIs. The application uses one Amazon Elastic Block Store (EBS) PIOPS volume per instance and requires consistent I/O performance. Which of the following must be carried out to ensure that I/O load performance tests yield the correct results in a repeatable manner?

Answer :
  • Ensure that the Amazon EBS volumes restored from snapshots have been pre-warmed by reading all the blocks before the test.

You are using Chef in your data center. Which service is designed to let the customer leverage existing Chef recipes in AWS?

Answer :
  • AWS OpsWorks

In your LAMP application, you have some developers that say they would like access to your logs. However, since you are using an AWS Auto Scaling group, your instances are constantly being re-created. What would you do to make sure that these developers can access these log files?

Answer :
  • Setup a central logging server that you can use to archive your logs; archive these logs to an S3 bucket for developer-access.

You are creating a Lambda function that will be triggered by a CloudWatch Event. The data from these events need to be stored in a DynamoDB table. How should the Lambda function be given access to the DynamoDB table?

Answer :
  • Use an IAM role that has permissions to the DynamoDB table and attaches it to the Lambda function

You have decided that you need to change the instance type of your production instances which are running as part of an AutoScaling group. The entire architecture is deployed using CloudFormation Template. You currently have 4 instances in Production. You cannot have any interruption in service and need to ensure 2 instances are always running during the update? Which of the options below listed can be used for this?

Answer :
  • AutoScalingRollingUpdate

You currently have the following setup in AWS: 1) An Elastic Load Balancer 2) Auto Scaling Group which launches EC2 Instances 3) AMIs with your code pre-installed You want to deploy the updates of your app to only a certain number of users. You want to have a cost-effective solution. You should also be able to revert quickly. Which of the below solutions is the most feasible?

Answer :
  • Create a second ELB, and a new Auto Scaling Group assigned a new Launch Configuration. Create a new AMI with the updated app. Use Route53 Weighted Round Robin Records to adjust the proportion of traffic hitting the two ELBs.

Your application is currently running on Amazon EC2 instances behind a load balancer. Your management has decided to use a Blue/Green deployment strategy. How should you implement this for each deployment?

Answer :
  • Create a new load balancer with new Amazon EC2 instances, carry out the deployment, and then switch DNS over to the new load balancer using Amazon Route 53 after testing.

You have an application running a specific process that is critical to the application's functionality and has added the health check process to your Auto Scaling Group. The instances are showing healthy, but the application itself is not working as it should. What could be the issue with the health check, since it is still showing the instances as healthy?

Answer :
  • The health check is not checking the application process.

You have just recently deployed an application on EC2 instances behind an ELB. After a couple of weeks, customers are complaining about receiving errors from the application. You want to diagnose the errors and are trying to get errors from the ELB access logs. But the ELB access logs are empty. What is the reason for this?

Answer :
  • Access logging is an optional feature of Elastic Load Balancing that is disabled by default.