Free AWS Certified DevOps Engineer - Professional Practice Questions
200 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the AWS Certified DevOps Engineer - Professional practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1Within one CodePipeline stage, two build actions must run concurrently after a source preparation action. How should their runOrder values be set?
- A. Give both builds the same value greater than the preparation action's value.
- B. Give the builds consecutive values greater than the preparation action's value.
- C. Give both builds a value smaller than the preparation action's value.
- D. Give the builds different values equal to the preparation action's value.
Answer: A
Explanation: The action declaration says, "Parallel actions in the stage are shown as having the same integer." It also says, "To specify a serial sequence of actions, use the smallest number for the first action and larger numbers for each of the rest of the actions in sequence." Thus the builds share a later value; consecutive values serialize them.
2A CloudFormation stack update could replace a critical resource. Which workflow lets an engineer inspect proposed changes before applying them?
- A. Create and review a change set, then execute it if acceptable.
- B. Run stack drift detection and assume it applies the proposed update.
- C. Deploy an unchanged StackSet to the same account.
- D. Run cdk synth and assume it directly updates the stack.
Answer: A
Explanation: The CloudFormation guide says, "Change sets allow you to preview how proposed changes to a stack might impact your running resources" and that changes occur "only when you decide to execute the change set". Drift detection and synthesis have different purposes.
Reference: Update CloudFormation stacks using change sets — Update CloudFormation stacks using change sets
3An RDS DB instance needs automatic standby capacity in another Availability Zone for an instance or AZ failure. Which deployment provides that high-availability pattern?
- A. A single-AZ DB instance with scheduled snapshots.
- B. A Multi-AZ DB instance with a synchronous standby.
- C. A primary DB instance with a same-AZ read replica.
- D. A primary DB instance with a cross-Region read replica.
Answer: B
Explanation: RDS states, "In a Multi-AZ DB instance deployment, Amazon RDS automatically provisions and maintains a synchronous standby replica in a different Availability Zone." Snapshots and read replicas do not provide that synchronous standby in another AZ for the DB instance.
Reference: Multi-AZ DB instance deployments for Amazon RDS — Multi-AZ DB instance deployments for Amazon RDS
4An application publishes a custom CloudWatch metric and needs one-second granularity to inspect brief spikes. How should the metric be published?
- A. Use a high-resolution custom metric.
- B. Use a standard-resolution custom metric.
- C. Increase the metric's namespace count.
- D. Add more dimensions to the standard metric.
5An operations team must automatically notify responders when an AWS Health event affecting its resources matches a specified rule. Which event integration should it configure?
- A. Match AWS Health events in EventBridge and target a notification workflow.
- B. Review AWS Health events manually in the Health dashboard.
- C. Create an EventBridge schedule without an AWS Health event pattern.
- D. Create an EventBridge rule for CloudTrail API calls only.
Answer: A
Explanation: AWS Health says, "You can use Amazon EventBridge to detect and react to AWS Health events." A matching Health event pattern and response target implement automatic notification; manual viewing and unrelated rules do not.
Reference: Monitoring events in AWS Health with Amazon EventBridge — Monitoring events in AWS Health with Amazon EventBridge
6An application on an EC2 instance needs AWS API access without storing long-term access keys on the instance. Which identity mechanism should supply its credentials?
- A. Associate an IAM role with the EC2 instance for temporary credentials.
- B. Embed an IAM user's long-term access keys in the AMI.
- C. Copy temporary STS credentials into the AMI during baking.
- D. Place an IAM user's long-term keys in instance environment variables.
Answer: A
Explanation: IAM says, "you can and should use an IAM role to manage temporary credentials for applications that run on an Amazon EC2 instance." Baking temporary or long-term keys into images, or storing long-term keys in environment variables, does not provide managed role credentials.
Reference: Use an IAM role to grant permissions to applications running on Amazon EC2 instances — Use an IAM role to grant permissions to applications running on Amazon EC2 instances
7A CodePipeline build action consumes the output of a preceding source action. What must its input artifact name do?
- A. Match the pipeline's stage name.
- B. Match the preceding action's declared output artifact name exactly.
- C. Match the S3 bucket name used as the artifact store.
- D. Match the source repository's branch name.
8A common CloudFormation template must provision the same infrastructure pattern into selected accounts across several Regions. Which service feature supports one coordinated operation?
- A. CloudFormation StackSets across selected accounts and Regions.
- B. A standalone CloudFormation stack in one account and Region.
- C. A nested stack within a single parent stack.
- D. A resource import operation into one existing stack.
Answer: A
Explanation: AWS states, "CloudFormation StackSets extends the capability of stacks by allowing you to create, update, or delete stacks across multiple accounts and AWS Regions with a single operation." Standalone or nested stacks and resource import do not provide that coordinated scope.
Reference: Managing stacks across accounts and Regions with StackSets — Managing stacks across accounts and Regions with StackSets
9A team enables a single-standby RDS Multi-AZ DB instance deployment and expects the standby to serve reporting queries. What should they change for read-only traffic?
- A. Direct reporting queries to the standby DB instance
- B. Increase the Multi-AZ standby's instance class
- C. Create a read replica or use a Multi-AZ DB cluster
- D. Change only the primary instance's endpoint
Answer: C
Explanation: AWS says, "You can't use a standby replica to serve read traffic. To serve read-only traffic, use a Multi-AZ DB cluster or a read replica instead." The standby in the specified DB instance deployment supplies HA rather than query offload.
Reference: Multi-AZ DB instance deployments for Amazon RDS — Multi-AZ DB instance deployments for Amazon RDS; Note
10Several applications publish similarly named CloudWatch metrics. Which metric attribute separates them so their statistics are not mixed across applications?
- A. Metric resolution
- B. Metric period
- C. Metric namespace
- D. Metric unit
Answer: C
Explanation: The documentation states, "Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics." Resolution and period govern time, while unit describes measurement.
Topics in this practice bank
These topics describe the available practice for AWS Certified DevOps Engineer - Professional. Review the examination outline and its sources for scope and allocation details.
SDLC Automation
- Implement CI/CD pipelines
- Integrate automated testing into CI/CD pipelines
- Build and manage artifacts
- Implement deployment strategies for instance, container, and serverless environments
Configuration Management and IaC
- Define cloud infrastructure and reusable components to provision and manage systems throughout their lifecycle
- Deploy automation to create, onboard, and secure AWS accounts in a multi-account or multi-Region environment
- Design and build automated solutions for complex tasks and large-scale environments
Resilient Cloud Solutions
- Implement highly available solutions to meet resilience and business requirements
- Implement solutions that are scalable to meet business requirements
- Implement automated recovery processes to meet RTO and RPO requirements
Monitoring and Logging
- Configure the collection, aggregation, and storage of logs and metrics
- Audit, monitor, and analyze logs and metrics to detect issues
- Automate monitoring and event management of complex environments
Incident and Event Response
- Manage event sources to process, notify, and take action in response to events
- Implement configuration changes in response to events
- Troubleshoot system and application failures
Security and Compliance
- Implement techniques for identity and access management at scale
- Apply automation for security controls and data protection
- Implement security monitoring and auditing solutions
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view AWS Certified DevOps Engineer - Professional details.