DOP-C02 Exam Question 16

A production account has a requirement that any Amazon EC2 instance that has been logged in to manually must be terminated within 24 hours. All applications in the production account are using Auto Scaling groups with the Amazon CloudWatch Logs agent configured.
How can this process be automated?
  • DOP-C02 Exam Question 17

    A company uses AWS Organizations to manage multiple accounts. Information security policies require that all unencrypted Amazon EBS volumes be marked as non-compliant. A DevOps engineer needs to automatically deploy the solution and ensure that this compliance check is always present.
    Which solution will accomplish this?
  • DOP-C02 Exam Question 18

    A DevOps engineer manages a web application that runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances run in an EC2 Auto Scaling group across multiple Availability Zones. The engineer needs to implement a deployment strategy that:
    Launches a second fleet of instances with the same capacity as the original fleet.
    Maintains the original fleet unchanged while the second fleet is launched.
    Transitions traffic to the second fleet when the second fleet is fully deployed.
    Terminates the original fleet automatically 1 hour after transition.
    Which solution will satisfy these requirements?
  • DOP-C02 Exam Question 19

    A company is developing a new application. The application uses AWS Lambda functions for its compute tier. The company must use a canary deployment for any changes to the Lambda functions. Automated rollback must occur if any failures are reported.
    The company's DevOps team needs to create the infrastructure as code (IaC) and the CI/CD pipeline for this solution.
    Which combination of steps will meet these requirements? (Choose three.)
  • DOP-C02 Exam Question 20

    A company uses a single AWS account lo test applications on Amazon EC2 instances. The company has turned on AWS Config in the AWS account and has activated the restricted-ssh AWS Config managed rule.
    The company needs an automated monitoring solution that will provide a customized notification in real time if any security group in the account is not compliant with the restricted-ssh rule. The customized notification must contain the name and ID of the noncompliant security group.
    A DevOps engineer creates an Amazon Simple Notification Service (Amazon SNS) topic in the account and subscribes the appropriate personnel to the topic.
    What should me DevOps engineer do next to meet these requirements?