Certopolis

AWS Certified DevOps Engineer – Professional: study guide and free practice questions

The ideas the DevOps Engineer – Professional (DOP-C02) exam tests, one page each: what the AWS docs say, the traps the questions set, and real practice questions to try. Every page is written from AWS's own documentation and links to it.

Topics

10 free practice questions

Drawn from every domain. Pick an answer to see why each option is right or wrong.

  1. A company maintains a command-line tool in a public GitHub repository. Developers merge changes into main many times a day, but a maintainer publishes a GitHub release only when a version is ready for customers. An AWS CodeBuild project that uses the repository as its source packages the tool and uploads the installers to an Amazon S3 bucket. Today a DevOps engineer starts that project by hand after each release. The company wants the notice that GitHub sends for each published release to start the project automatically. Which solution will meet these requirements?

    Right. In the game that’s Renown for your SDLC Automation building.

    Not that one: D is right. In the game your SDLC Automation building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    A group with the RELEASED event type passes when GitHub reports a published release, so the maintainer's release starts the packaging build with no one at the console, while the many merges into main send push events that this group does not match.

    Written from docs.aws.amazon.com/codebuild/latest/userguide/github-webhook.html

  2. A company is retiring a project and will delete the project's AWS CloudFormation stack. The stack holds an Amazon S3 bucket of audit logs, an Amazon ElastiCache replication group, and an Amazon RDS DB instance that is not part of a cluster and was used only for load testing. Company policy requires the bucket and its objects to remain after the deletion. The cache must not keep running, but a restorable copy of its data must remain. Nothing may remain of the load-test database, including any snapshot. Which combination of steps will meet these requirements? (Select THREE.)

    Right. In the game that’s Renown for your Configuration Management and IaC building.

    Not that one: B,E,F is right. In the game your Configuration Management and IaC building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The load-test DB instance must leave nothing at all, and because a stand-alone DB instance defaults to Snapshot, the template has to say Delete explicitly. Updating the stack first records the policies so that they apply when the stack is deleted.

    Written from docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-attribute-deletionpolicy.html

  3. A DevOps team deploys a web service with an AWS CloudFormation template. The template creates an Auto Scaling group that launches instances into private subnets in us-east-1a and us-east-1b, and an internet-facing Application Load Balancer that lists a single public subnet, in us-east-1a. Stack creation fails on the load balancer resource. The service must be reachable through the load balancer, and instances in us-east-1a and us-east-1b must receive requests. How should the DevOps engineer change the template to meet these requirements?

    Right. In the game that’s Renown for your Resilient Cloud Solutions building.

    Not that one: A is right. In the game your Resilient Cloud Solutions building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Adding a public subnet in us-east-1b enables the second zone, ELB places a node there, and targets registered in us-east-1b start receiving requests, because targets in a zone the load balancer is not enabled in get no traffic.

    Written from docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html

  4. A company's pipeline launches standalone Amazon EC2 instances, outside any Auto Scaling group, to run build caches for each product team. The instances are EBS-backed, have no instance store volumes, and use an instance type that EC2 supports for its host-failure recovery features. The DevOps team wants each instance to be moved to healthy hardware automatically, keeping its instance ID and IP addresses, if an AWS host problem makes its system status check fail. The team wants to add as little configuration as possible. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Monitoring and Logging building.

    Not that one: B is right. In the game your Monitoring and Logging building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    When AWS detects a host problem that fails the system status check, it moves the instance to another host. The instance keeps its instance ID, IP addresses, metadata and attached EBS volumes, and the move looks to the operating system like an unplanned reboot. Nothing extra needs to be configured.

    Written from docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html

  5. A company keeps a custom AWS Systems Manager Automation runbook that renews local TLS certificates on Amazon EC2 instances. The runbook must now run once against all 400 managed instances that carry the tag Env=prod. The change board allows no more than 20 instances to be changing at the same time, and the rollout must stop before it reaches further instances once 5 of them have failed. The DevOps team does not want to write a script that loops over the instances. What should a DevOps engineer do to meet these requirements?

    Right. In the game that’s Renown for your Incident and Event Response building.

    Not that one: D is right. In the game your Incident and Event Response building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    No loop script is needed, and the child automations show the result for each instance.

    Written from docs.aws.amazon.com/systems-manager/latest/userguide/running-automations-scale.html

  6. A company has 45 AWS accounts in an organization in AWS Organizations, and its DevOps team runs security tooling from one member account. The team must run automated checks of the resources in every account against AWS security best practices. The team must review the results of those checks next to the findings that Amazon GuardDuty and Amazon Inspector report, in one place in the security tooling account. New accounts join the organization every month. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Security and Compliance building.

    Not that one: D is right. In the game your Security and Compliance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Designating the security tooling account as its delegated administrator from the management account lets the team turn on Security Hub CSPM and the standard for member accounts and read everything from that one account.

    Written from docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html

  7. A company's pipeline deploys a customer portal to an Amazon ECS service on AWS Fargate behind an Application Load Balancer, and the service currently uses rolling updates. From now on, testers must check each new revision through a listener rule that matches a test header before any customer request reaches it. Customer traffic must then move to the new revision in a single step. For 30 minutes after that move, the previous revision must keep running so that traffic can go straight back to it if errors appear. Which solution will meet these requirements?

    Right. In the game that’s Renown for your SDLC Automation building.

    Not that one: D is right. In the game your SDLC Automation building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The deployment bake time is the period after the production shift during which Amazon ECS keeps both revisions running, so setting it to 30 minutes gives the immediate route back before blue is scaled down. Amazon ECS updates the listener rules itself, using the alternate target group for green.

    Written from docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-blue-green.html

  8. A company governs its AWS accounts with an AWS Control Tower landing zone, and auto-enrollment is turned off in the landing zone settings. Teams request new accounts through an internal ticketing system. A DevOps engineer is writing the automation that the ticketing system calls for each approved request. Each new account must be enrolled in Control Tower as it is created, placed in the registered OU that the ticket names, and given that OU's baseline and controls. The automation's IAM role has every permission that each approach needs. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Configuration Management and IaC building.

    Not that one: D is right. In the game your Configuration Management and IaC building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The provisioning parameters carry the account email and name, the Identity Center user and the target OU (the ManagedOrganizationalUnit parameter, written as the OU name with its ID). Control Tower then creates the account in that registered OU and applies the OU's baseline and controls, which is exactly what each ticket asks for, with auto-enrollment off.

    Written from docs.aws.amazon.com/controltower/latest/userguide/provision-as-end-user.html

  9. A company deploys an order API as an Amazon Elastic Container Service (Amazon ECS) service on AWS Fargate through a pipeline in AWS CodePipeline. The service runs a fixed 4 tasks. During evening sales, its average CPU utilization stays above 85 percent for hours and response times climb. The DevOps team wants the number of running tasks to rise and fall on its own between 4 and 40 to keep average CPU utilization near 60 percent, using a managed AWS scaling feature instead of code the team writes and maintains. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Resilient Cloud Solutions building.

    Not that one: A is right. In the game your Resilient Cloud Solutions building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Registering the service with a minimum of 4 and a maximum of 40 and adding a target tracking policy at 60 percent CPU lets the service add tasks during the evening sales and remove them afterwards, with no scaling code for the team to keep.

    Written from docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html

  10. A company's pipeline deploys a new revision of an Amazon ECS service that runs on AWS Fargate. Thirty minutes later the service still shows 2 running tasks against a desired count of 6, and the deployment has not reached a steady state. Nothing in the application logs explains it, because the new tasks never start. Before changing anything, the DevOps engineer wants to read the messages that Amazon ECS itself has recorded about this service, such as why it could not start the new tasks. What should a DevOps engineer use to meet these requirements?

    Right. In the game that’s Renown for your Incident and Event Response building.

    Not that one: D is right. In the game your Incident and Event Response building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The engineer can read it on the service's Events tab or in the events that DescribeServices returns.

    Written from docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages.html

Ask for something