Hello friends in this post we are going to discuss about Cloud Automation DevOps MCQ with answers| Cloud Automation DevOps Multiple choice questions| Cloud Automation DevOps objective type questions| Cloud Automation DevOps Accenture Questions Answers
Q1.Which one of these is Build tools?
Q2.Which tool/platform cannot be used to provision AWS Services as scripts?
Q3. which among following is NOT the benefit of DevOps?
A.Implant Manual Errors
B. Enables anyone to perform tasks
C. Enable speed, reliability
E. Both 1&2
Q4.Which git command allows downloading from repository?
Q5.Which one of those is a double type variable?
D. Augusta = 1234567
Q6. Where are user passwords stored?
Q7. How to set timezone in a VM?
A.timedatectl set-zone zonename
B.timedatectl timezone zonename
C.timedatectl set-timezone zonename
D. timedatecti zone zonename
Q8.Which of these options is not a WebElement method?
Q9. What are the possible actions you will perform to fix a broken build in Jenkins?
A.Check console output for missing file changes
B.Clean and update local workspace
C.All of the above
D.Check job configuration
Q10. What are the best practices of CI?
A.Automate build and deployment
B.Test in a clone of the production environment
C.Make the build fast and self-testing
D.All of the above
Q11.Which file is used to define dependency in Maven?
Q12. How to upgrade Jenkins installation?
A.Using jenkins war file or through web interface
B.Using jenkins war file only
C. Depends on platform support
D. Cannot upgrade
Q13. How can you trigger a build job?
A.Start a build job once another build job is completed
B.Kick off builds at periodical intervals
C. Poll the SCM for changes
D.All of the above
Q14.How can we stop a Jenkins job from being executed temporarily?
A.Delete the project
B.Cancel the project
C.Abort the project
D.Disable the project
Q15. Why do we get an error ‘SSL CRIFY_FAILED’ in Windows under Ansible?
A. When Ansible controller is working on Python 2.7.9+ or an older version.
B. When Ansible controller is working on current Python version
C. If certificate cannot be validated None of the above material
D.1 & 3
Q16. How to increase the Ansible reboot module to more than 600 seconds?
A.name: Reboot a Linux system reboot:
reboot timeout: 1000
B. name: Reboot a Linux system reboot:
reboot_Stimeout: 1000 emat
C.name: Reboot a Linux system reboot
D.name: Reboot a Linux system reboot:
Q17.What is the default location of Inventory file?
Q18.Your company has been using a paid cloud management tool to manage resorces in Azure. Dua to some upper management decisions, the company wants to discontinue this paid cloud mangement tool,and leverage open-source Terraform to move towards Infrastructure as as code and save cost. Now your boss asked you to explore Terraform to manage existing Azure resources. How can it be done without recreating existing resources?
A. Existing resources can not be managed by open-source Terraform. You need a paid version to import existing infrastructure directly to the Terraform cloud state.
B. You can use the Terraform export command to add exsisting infrastructure to Terraform’s state file, so that Terraform is aware of and can manage that infrastructure.
C. You have to stop your exsisting resources,and then use Terraform import command with resource-id to import all resources one by one to Terraform state.
D. You can use the Terraform import command to add exsisting infrastructure to Terraform’s state file, so that Terraform is aware of and can manage that infrastructure. emai
Q19. How is the Terraform remote backend different than other state backends such as S3. Consul etc ?
A. It does not show the ouptput of a Terraform apply locally.
B. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform
C. It is only available to paying customers.
D.All of the above.
Q20. Sentinel is _______. kind of service that prevents the provisioning of out-of-policy
Q21. Terraform cannot reason about what the provisioner does. Hence, if a creation-time provisioner falls for a resource, Terraform will plan to destroy and recreate resources upon the next Terraform apply.
Ans – True
Q22. Let us say you are using AWS provider and you need to create two EC2 instances in two different AWS regions. Is it possible to create resources in more than one region with a single configuration?
A. No, it is not possible with single configuration.
B. Yes,we would need to define two provider block one for each region. For each additional non-default configuration, use the alias meta-argument to provide a new name segment.
Q23. You have a Terraform configuration file which has resources to be deployed in cloud. If you run Terraform apply 3 times to the same terraform configuration file the resources be created 3 times in cloud platform.
Ans – False
Q24. You can set variables declared in the root module using CLI options and environment variables. But to set variables declared in child modules, you should pass their values in the module block.
Ans – True
Q25. How does the Infrastructure as a Code(laaC) make infrastructure more reliable? Choose 4 correct answers.
A.laaC automates infrastructure changes. It has no relation to its reliability.
B. With laaC, we can test the code and review the results before the code is applied to our target environments.
C. Since code is checked into version control system such as GitHub, GitLab, BitBucket etc., It is possible to review how the infrastructure evolves over the time.
D.laaC makes changes idempotent, consistent, repeatable and predictable.
E. Without laaC, an operator might open multiple sessions during infrastructure changes which often results in skipped steps that can cause slight differences between servers that trials emai compound over time and could impact their perforability or security.
Ans: a b c e
Q26. Which command automatically updates configurations in the current directory for easy readability and consistency?
A. terraform fmt
B. terraform validate
C. terraform format
D. terraform plan
E. terraform init
Q27. What is the workflow for deploying new infastucture with Terraform?
A. Terraform plan to import the current infrastucture to the the state file,make code changes and apply to update the infrastructure.
B.Write a Terraform configuration, run Terraform init, run Terraform plan to view planned infrastructure changes, and apply to create new infrastructure.
C. Write a terraform configuration,run terraform show to view proposed changes, a create new infrastructure. apply to
D. Terraform plan to import the current infrastructure to the state file,make apply to update the infrastructure. atia changes, and
Q28.How do you upgrade the Ansible version to the specific version using one-line command?
A. sudo pip install ansible=version-number=
B. sudo install ansible=<version-number>=
Q29. Which one word command is used to initiate actions on a host without using a playbook?
A. ad hoc
Q30. How to you create encrypted files in Ansible?
A.$ ansible-vault create filename.yaml
B.$ ansible-vault create filename
C. $ ansible-vault filename.yaml
D.$ ansible-vault create file.yaml
Q31.Is there a way to get Ansible to identify target hosts that are unreachable/dead?
A. Yes, this can be done by setting server_alive_poll to true in inventory file
B. Yes, this can be done by adding -o ServerAliveinterval-NumberOfSeconds in from ansible.cfg args
C. Yes, this can be done by adding ServerAliveinterval into global SSH configuration
D. Both 2 and 3
E. 12 and 3
Q32. By default, where does Ansible look for roles? (Select more than one)
A. ln/ etc / ansible / roles
B. specfied in roles path in ansible.cfg file
C. In a directory called roles, relative to the playbook file
Ans: a c
Q33._______is a combination of multiple pie working together to become an automation tool
Q34. _____are global variables which store details about the system, such as network Interfaces or operating system
A. Environmental Variable
Q35.Which tool can be used to perform static code analysis for .net project?
Q36. Which of the following is not support by CI?
A. Automated build process
B. Automated code quality checks
C. Automated deployment to production
D. Automated unit test
Q37.In which directory are the settings, logs and configurations are stored?
Q38. What are the 4 types Of Format Commands that can be used to format data? a)Format-Wide b)Format-Text c)Format-Table d)Format-Custom e)Format-List
ans – a,c,d,e
Q38.What is the output of this program? #l/bin/bash echo “Which file do you want to check” read x until [- o * sx do if [Sa = y] ; then touch Sx fi echo “The file does not exit. Do you want to coate ? y/n” read a echo “Your file has been created successfully done echo “the file is present in this directory exit 0
A. It checks the existence of your entered file in the present working directory
B. It creates the file if file does not exist c. Program runs until you create the file
D. All of the mentioned
Q39. What is the alternate command for “echo”?
Q41. How can you rename a variable?
A. Rename-Item-Path Env: MyVariable -NewName MyRenamed Var
B.Rename-Item-Path Env: MyVariable -NewName
C.Rename-Item- Path Env: MyVariableName MyRenamedVar
D.Rename-Item- Path Env: MyVariable -NewName MyVar
Q42. How much memory space does Linux occupy?
Q43.Which sign considers the entire set of positional parameters as a single string?
44.What is the other name of new shell?
Q45.To what does pipeline in Continuous Delivery refer?
Q46.Which ones can be used for Deployment?
A. C and d
Q47.Which type of Architecture helps in efficiency improvement and Testability?
A. API based
Q48.What is “R” in the MTTR?
Q49.Which among these are Open Source tools?
Q50. What is “point” in RPO?