AWS Certified DevOps Engineer Sample Questions

  1. Home
  2. AWS Certified DevOps Engineer Sample Questions
AWS Certified DevOps Engineer Sample Questions

The AWS Certified DevOps Engineer Professional certification exam’s objective is to assess a candidate’s technical competence in configuring, managing, and supervising distributed application systems on the AWS platform. The article provides a list of AWS Certified DevOps Engineer Sample Questions that cover core exam topics including –

  • SDLC Automation
  • Configuration Management and Infrastructure as Code
  • Monitoring and Logging
  • Policies and Standards Automation
  • Incident and Event Response 
  • High Availability, Fault Tolerance, and Disaster Recovery

Q1)What does a circular dependency mean in AWS CloudFormation?

  • A. When a Template makes a reference to a previous iteration of itself.
  • B. When Nested Stacks are interdependent.
  • C. When a DependOn loop forms between Resources.
  • D. When a Template mentions a region, and the original Template is referenced.

Correct Answer: C

Refer: What is AWS CloudFormation?

Q2)Regarding AWS CloudFormation, which of the following claims is accurate?

  • A. The default timeout for custom resources that use SNS is three minutes.
  • B. A code>ServiceToken/code> attribute is not necessary for custom resources that use SNS.
  • C. Unique resources created using Lambda and code>
  • Code.ZipFile enables inline resource compilation for Node.js.
  • D. Lambda does not require a code>ServiceToken/code> field for custom resources.

Correct Answer: C

Q3)Which of the following claims is true in terms of compliance and security?

  • A. Access keys for AWS IAM Users never need to be rotated.
  • B. Neither AWS IAM Users nor AWS IAM Roles ever require you to rotate access keys.
  • C. None of the other claims are accurate.
  • D. Access keys for AWS IAM Roles never need to be rotated.

Correct Answer: D

Explanation: You do not need to rotate IAM Role Access Keys because AWS will do it on your behalf. Through the use of the security credentials linked to the role, the application is given access to the actions and resources that you have defined for the role. We automatically rotate these temporary security credentials. At least five minutes before the old credentials expire, we make fresh credentials available.

Refer: IAM roles for Amazon EC2

Q4)Which of the above parameters needs to be set in order to prevent file system damage when a user attaches an EBS volume to a new instance after detaching it from an existing one?

  • A. Unmount the volume first
  • B. Stop all the I/O of the volume before processing
  • C. Take a snapshot of the volume before detaching
  • D. Force Detach the volume to ensure that all the data stays intact

Correct Answer: A

Q5)Which language cannot be used to build customised Ansible modules?

  • A. Python
  • B. C++
  • C. Bash
  • D. All of the languages listed are supported

Correct Answer: D

Q6)Where in a playbook’s “vars” section should a variable that has been assigned be overridden?

  • A. Inventory group var
  • B. playbook host_vars
  • C. role defaults
  • D. extra vars

Correct Answer: D

Q7)When thinking about AWS Elastic Beanstalk, which of the following assertions is accurate?

  • A. Worker tiers pull jobs from SNS.
  • B. Worker tiers pull jobs from HTTP.
  • C. Worker tiers pull jobs from JSON.
  • D. Worker tiers pull jobs from SQS.

Correct Answer: D

Q8)How ought a playbook to be appropriately launched (in accordance with best practises)?

  • A. – hosts: all
  • B. …
  • C. ###
  • D. —

Correct Answer: D

Q9)Which of the following is the appropriate syntax to use when passing multiple variable names and values to a playbook’s command line?

  • A. ansible-playbook playbook.yml -e `host=”foo” pkg=”bar”‘
  • B. ansible-playbook playbook.yml -e `host: “foo”, pkg: “bar”‘
  • C. ansible-playbook playbook.yml -e `host=”foo”‘ -e `pkg=”bar”‘
  • D. ansible-playbook playbook.yml –extra-vars “host=foo”, “pkg=bar”

Correct Answer: A

Q10)Which deployment method, when using AWS Auto Scaling Groups and Auto Scaling Launch Configurations, provides the quickest time to live for individual servers?

  • A. Pre-baking AMIs with complete code and deployment setup.
  • B. Launching an instance while using a Dockerfile bootstrap.
  • C. Using bootstrapping scripts for UserData.
  • D. SSHing into fleets dynamically using AWS EC2 Run Commands.

Correct Answer: A

Q11) Which of the following statements about AWS OpsWorks is true?

  • A. Both layers and stacks have numerous levels.
  • B. Stacks and instances both have a large number of layers.
  • C. Stacks have numerous instances, and layers have many stacks.
  • D. Stacks have numerous instances, and instances have numerous layers.

Correct Answer: A

Q12)What holds true for DynamoDB’s Local Secondary Key attributes?

  • A. Only one of the two keys—the sort key or the partition key—can be different from the table.
  • B. The table can only differ from the sort key.
  • C. The partition key and sort key may not match the table exactly.
  • D. The only key that can differ from the table is the partition key.

Correct Answer: B

Q13)When deploying to a Docker swarm, which section of the docker-compose file contains settings for service deployment and operation?

  • A. VOLUME
  • B. USER
  • C. ADD
  • D. CMD

Correct Answer: C

Q14)Which section of the docker-compose file contains settings for service deployment and operation when deployed to a Docker swarm?

  • A. services
  • B. build
  • C. deploy
  • D. args

Correct Answer: C

Q15)Which high-level language is used to define plays, tasks, and playbooks is fully supported by Ansible.

  • A. YAML
  • B. Python
  • C. XML
  • D. JSON

Correct Answer: A

Q16)What does it mean if all of the EBS volumes connected to an active EC2 instance have 0 IOPS and a full I/O queue?

  • A. The I/O queue is flushing its buffers.
  • B. The disc head(s) of your EBS are looking for magnetic stripes.
  • C. There is no access to the EBS volume.
  • D. The EBS volume needs to be re-mounted in the OS.

Correct Answer: C

Q17)What would be the best method for leveraging distribution-specific commands to run a single playbook across many Linux distributions?

  • A. Make fact-finding possible and adapt the distribution to the task by using the “when” conditional.
  • B. This is not feasible; a different playbook is needed for each target Linux distribution.
  • C. In the tasks, use “ignore errors: true.”
  • D. Create your own checks for each command that is executed using the “shell” module.

Correct Answer: A

Q18)Which AWS CloudFormation status represents a failure state?

  • A. <code>UPDATE_COMPLETE_CLEANUP_IN_PROGRESS</code>
  • B. <code>DELETE_COMPLETE_WITH_ARTIFACTS</code>
  • C. <code>ROLLBACK_IN_PROGRESS</code>
  • D. <code>ROLLBACK_FAILED</code>

Correct Answer: D

Q19)Which of the following claims regarding the design of AWS Elastic Beanstalk is true?

  • A. Applications are deployed into a variety of contexts.
  • B. Applications and environments both have numerous deployments.
  • C. Environments and applications both have a wide variety of deployments.
  • D. Environments have multiple applications, and deployments have several environments.

Correct Answer: C

Q20)What characteristics of DynamoDB’s Global Secondary Key exist?

  • A. The partition key and sort key may not match the table exactly.
  • B. The only key that can differ from the table is the partition key.
  • C. Only one of the keys—the partition key or the sort key—can be distinct from the table.
  • D. The table can only differ from the sort key.

Correct Answer: A

AWS Certified DevOps Engineer free practice test
Menu