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 Configuration Management and IaC Resilient Cloud Solutions Incident and Event Response 10 free practice questions Drawn from every domain. Pick an answer to see why each option is right or wrong.
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.
Your answer A. Create an AWS CodeConnections connection to the repository and register it as the project's source credential. Grant the project role access to it, so that each published release starts a build.Confuses source access with triggering. A connection lets CodeBuild authenticate to GitHub, but builds start from GitHub events only through a webhook created on the project. Your answer B. Create an Amazon EventBridge rule that matches the CodeBuild Build State Change events for the project. Make the project the rule's target, so that each published release starts a build.This rule waits for a CodeBuild build to change state. Since no build runs when a release is published, the rule never fires, and if one did run it would only start another build of itself. Your answer C. Turn on build status reporting in the CodeBuild project's primary source settings. Set the status context to release, so that each published release starts a build.Treats status reporting as a trigger. Reporting sends the start and finish of a build back to GitHub as a commit status, and the context only names that status; nothing in it starts a build. The answer D. Turn on the webhook in the CodeBuild project's primary source settings. Add a filter group whose EVENT filter is RELEASED, so that each published release starts a build.What turns a GitHub event into a CodeBuild build is the project's webhook, and the webhook's filter groups choose which GitHub events count.
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
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.
Your answer A. Set the DeletionPolicy attribute of the replication group resource to RetainExceptOnCreate in the template, then update the stack before it is deleted.RetainExceptOnCreate only deletes a resource when the operation that created it rolls back. On a stack deletion it keeps the replication group, so the cache would keep running and billing. Your answer B. Set the DeletionPolicy attribute of the audit log bucket resource to Retain in the template, then update the stack before it is deleted.Your answer C. Remove any DeletionPolicy attribute from the DB instance resource in the template, then update the stack before it is deleted.Leaving the attribute off does not mean delete for this resource. A DB instance outside a cluster gets a final snapshot by default, which breaks the rule that nothing of the load-test database may remain. Your answer D. Set the DeletionPolicy attribute of the audit log bucket resource to Snapshot in the template, then update the stack before it is deleted.A bucket cannot be snapshotted by CloudFormation, so this setting does not keep the audit logs. Retain is the setting that leaves the bucket and its objects in place. Your answer E. Set the DeletionPolicy attribute of the replication group resource to Snapshot in the template, then update the stack before it is deleted.Your answer F. Set the DeletionPolicy attribute of the DB instance resource to Delete in the template, then update the stack before it is deleted.
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.
The answer A. Add a public subnet in us-east-1b to the load balancer's Subnets list, so that the load balancer is enabled in us-east-1b as well.An Application Load Balancer must be enabled in at least two Availability Zones, and a zone is enabled by giving the load balancer one subnet in it, which is why stack creation fails with only us-east-1a listed. Your answer B. Keep the single public subnet, and turn on cross-zone load balancing for the target group so that the us-east-1a node also reaches us-east-1b.Cross-zone load balancing decides which targets a node may send to. It does not enable a zone, and a load balancer with one subnet cannot be created in the first place. Your answer C. Keep the single public subnet, and change the Auto Scaling group to launch every instance in us-east-1a so that all targets share the zone.Moves the targets to fit the load balancer; the load balancer still has one zone, which is below the minimum, and the service loses its second zone. Your answer D. Add a second public subnet in us-east-1a to the load balancer's Subnets list, so that the load balancer has two subnets in its Availability Zone.Two subnets in us-east-1a still enable only one zone, and the load balancer requires each of its subnets to come from a different Availability Zone, so the stack would still fail.
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.
Your answer A. Rely on AWS Systems Manager Automation, which runs a recovery runbook when an instance's system status check fails, and keep the instances' default agent settings unchanged.Automation can run a recovery runbook, but only when an alarm, rule or person starts it. With default settings nothing starts it on a status check failure. The answer B. Rely on simplified automatic recovery, which EC2 turns on by default at launch, and keep the instances' default recovery setting unchanged.Simplified automatic recovery is the EC2 feature built for this, and it is turned on by default for supported instances at launch, so the pipeline's instances already have it. Your answer C. Rely on AWS Health, which moves an instance to new hardware when it posts a scheduled event for its host, and keep the instances' default event settings unchanged.AWS Health tells the team about host issues and recovery outcomes, but it never relocates an instance. Something else has to do the move. Your answer D. Rely on Amazon EC2 Auto Scaling health checks, which replace an instance whose system status check fails, and keep the instances' default launch settings unchanged.These instances are not in an Auto Scaling group, so no Auto Scaling health check watches them, and replacement would change the instance ID anyway.
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
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.
Your answer A. Send the runbook with Systems Manager Run Command. Target the 400 instances by the tag Env=prod, and set the concurrency to 20 and the error threshold to 5.Run Command offers the same two knobs, which makes it look right, but it sends Command documents to managed nodes. The certificate job is an Automation runbook, so it has to be started through Automation. Your answer B. Create an AWS CloudFormation stack set from a template that calls the runbook. Deploy it to the production account, and set maximum concurrent accounts to 20 and failure tolerance to 5.A stack set's concurrency and failure tolerance count target accounts. Here everything is in one production account, so the setting of 20 would not limit how many instances change together. Your answer C. Package the runbook as an AWS CodeDeploy revision for a deployment group selecting the tag Env=prod. Use a minimum healthy hosts value of 380 and an alarm that stops it after 5 failures.CodeDeploy installs application revisions on instances; it does not run Systems Manager runbooks, and its healthy-host value is not a per-instance concurrency limit. The answer D. Start the runbook in the rate control execution mode of the Systems Manager console. Target the 400 instances by the tag Env=prod, and set the concurrency to 20 and the error threshold to 5.Automation already knows how to fan a runbook out over a fleet. Choosing the rate control mode lets the engineer pick the 400 instances by the tag Env=prod, cap the number running the runbook at once with a concurrency of 20, and set an error threshold of 5, after which Systems Manager stops sending the automation to the remaining instances.
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.
Your answer A. From the management account, designate the security tooling account as the delegated administrator for Amazon Detective. From the security tooling account, add the member accounts to the behavior graph and turn on its optional findings source package.Detective helps an analyst explore activity behind a finding after it happens. It does not test the accounts against any best practice standard, so the checks the team needs would never run. Your answer B. From the management account, designate the security tooling account as the delegated administrator for AWS Firewall Manager. From the security tooling account, create security group and AWS WAF policies that cover the member accounts.Firewall Manager would push security group and AWS WAF rules into the accounts, which is enforcement, not assessment. Nothing in that setup checks resources against best practices or shows GuardDuty and Inspector findings. Your answer C. From the management account, designate the security tooling account as the delegated administrator for AWS Config. From the security tooling account, create an organization aggregator and a conformance pack of best practices rules for the member accounts.AWS Config would evaluate rules in each account and the aggregator would show their compliance, but the GuardDuty and Inspector findings would still sit in those services. The team would have two places to look, not one. The answer D. From the management account, designate the security tooling account as the delegated administrator for AWS Security Hub CSPM. From the security tooling account, enable Security Hub CSPM and the AWS Foundational Security Best Practices standard for the member accounts.Security Hub CSPM is the service that does both halves of this job: it runs control checks from standards such as AWS Foundational Security Best Practices, and it receives findings from GuardDuty, Inspector and Macie into the same view.
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.
Your answer A. Keep the rolling update strategy with an alarm bake time of 30 minutes, and give the service's deployment alarms the load balancer's 5XX alarm with the rollback option turned on.With rolling updates each new task replaces an old one behind the same target group. There is nowhere for testers to reach the new revision alone, and once the update ends the old tasks are gone. Your answer B. Change the service to the linear deployment strategy with a step bake time of 30 minutes, and give the service the production listener rule, the test listener rule and an alternate target group.The linear strategy shifts customers in equal steps with a wait between each, so the move is gradual rather than one step. Your answer C. Change the service to the canary deployment strategy with a canary bake time of 30 minutes, and give the service the production listener rule, the test listener rule and an alternate target group.The canary strategy sends a share of real customers to the new revision for the canary bake time before moving the rest. Customers would meet the new revision before the full cut-over. The answer D. Change the service to the blue/green deployment strategy with a deployment bake time of 30 minutes, and give the service the production listener rule, the test listener rule and an alternate target group.The requirements describe a blue/green release: a green revision scaled up beside blue, test traffic sent to it through a test listener rule while customers stay on blue, then all production traffic moved at once.
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
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.
Your answer A. Call the AWS Service Catalog ProvisionProduct API for an AWS Control Tower Account Factory Customization blueprint product. Pass the account email, the account name, the IAM Identity Center user details and the registered OU from the ticket as provisioning parameters.Treats an AFC blueprint as the account vending product. A blueprint is a Service Catalog product that describes resources to add to an account that Account Factory provisions; it does not create or enroll an account itself. Your answer B. Call the AWS Organizations CreateAccount API with the account email, the account name and the ID of the registered OU from the ticket. Pass the OU ID as the parent under which Organizations creates the new account.CreateAccount has no way to create the account inside an OU; Organizations always creates it in the root. Even after a move, nothing in this path enrolls the account in Control Tower. Your answer C. Call the AWS Organizations CreateAccount API with the account email and the account name. When the request has succeeded, call the MoveAccount API to move the new account from the root into the registered OU from the ticket.Assumes that moving a new account into a registered OU enrolls it. With auto-enrollment off, an account moved in from outside is not given the OU's baselines and controls; it shows inheritance drift instead. The answer D. Call the AWS Service Catalog ProvisionProduct API for the AWS Control Tower Account Factory product. Pass the account email, the account name, the IAM Identity Center user details and the ticket's OU, written as its name and ID, in the ManagedOrganizationalUnit parameter.The ticketing automation needs the one product that both creates the account and runs Control Tower's enrollment for it. That is Account Factory, which Control Tower publishes as a Service Catalog product, so a script can vend through the Service Catalog ProvisionProduct API instead of the console.
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
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.
The answer A. Use Application Auto Scaling. Register the service's desired task count as a scalable target with a minimum of 4 and a maximum of 40, and attach a target tracking policy on average CPU utilization at 60 percent.Application Auto Scaling is the AWS service that scales resources other than EC2 Auto Scaling groups, and an ECS service's desired task count is one of its scalable targets; ECS service auto scaling is built on it. Your answer B. Use Amazon ECS cluster auto scaling. Create a capacity provider with managed scaling turned on, a minimum of 4 and a maximum of 40, and a target capacity of 60 percent for the cluster.Mixes up cluster capacity and service size. Cluster auto scaling grows the EC2 instances behind an Auto Scaling group capacity provider; it does not add tasks to a service, and a Fargate service has no such instances. Your answer C. Use AWS Compute Optimizer. Opt the account in to recommendations for Amazon ECS services on Fargate, and apply the recommendation that keeps average CPU utilization near 60 percent with 4 to 40 tasks.Takes a sizing advisor for a scaler. Compute Optimizer recommends CPU and memory sizes for Fargate services, refreshed daily; it never changes how many tasks run. Your answer D. Use Amazon EC2 Auto Scaling. Create an Auto Scaling group for the service with a minimum of 4 and a maximum of 40, and attach a target tracking policy on average CPU utilization at 60 percent.Picks the scaling service for EC2 instances. An Auto Scaling group launches instances; it cannot change an ECS service's task count, and Fargate tasks run on no instances the team owns.
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.
Your answer A. The Container Insights dashboard in Amazon CloudWatch, filtered to the service's CPU, memory and running task count metrics for the last hour.The dashboard would confirm that only 2 of 6 tasks are running, which the engineer already knows. Metrics do not carry the scheduler's explanation of why the other tasks did not start. Your answer B. The AWS CloudTrail event history, filtered to the Amazon ECS event source and to the API calls that the pipeline made against the service.CloudTrail would show the pipeline's UpdateService call succeeding. It records requests made to the API, not the scheduler's later attempts to start tasks, so the cause would not be there. Your answer C. The AWS Health Dashboard, filtered to open account events for Amazon ECS in the Region and to the resources that each event lists.The AWS Health Dashboard lists events that AWS raises about its services and the account's resources. A placement failure caused by this service's own configuration would not appear there. The answer D. The service's event log, shown on the Events tab of the service in the Amazon ECS console or in the events list that DescribeServices returns.A service that will not reach its desired count is first diagnosed from its event log. The ECS service scheduler writes a message there each time it cannot place a task or finds an unhealthy instance, so the reason the four missing tasks never started is recorded against this service.
Certopolis is an independent study game. It is not affiliated with, endorsed by or sponsored by Amazon Web Services, and its questions are not the exams' questions. Exam names are trademarks of their owners. Questions are AI-written from each exam's public guide and vendor docs and may contain errors. Terms · Privacy