Skip to main content

AutoOps+ Practice Questions

Dive into practice questions

Question 1

A developer patches code-related bugs that were found in version 1.2.3 of an application. Which of the following is the next version number?

A. 1.2.3.1

B. 1.2.4

C. 1.3.1

D. 2.0.0

Question 2

A cloud engineer is analyzing the workflow files for a repository. Based on the following workflow files:

workflow.yaml
on:
  push:
    branches: [dev, main, staging, test]
jobs:
  build:
    name: build
    run: build
 
workflow2.yaml
on:
  push:
    branches:
#     - dev
      - main
jobs:
  build:
    name: build
    run: build
  deploy:
    name: deploy
    run: deploy

  Which of the following branches triggers a deployment?  

A. dev

A. staging

A. main

A. test

Question 3

A DevOps team is releasing versions of its applications and wants to make the versions easily identifiable in a Git repository. Which of the following features best meets this requirement?

A. Tags

B. Commit

C. Pull

D. Rollback

Question 4

An infrastructure engineer is designing a new version of a module for a cloud-based asset to improve security and reusability. Due to a major change since version 1.5.9 of the module, application programming interface (API) calls no longer work on the new module. Using the semantic versioning model, which of the following version numbers should the new module have?

A. 1.5.10

B. 1.5.89

C. 2.0.0

D. 2.6.9.1

Question 5

An administrator is running a command on a remote Linux server. Which of the following technologies should the administrator use to connect to the server?

A. Secure Shell (SSH)

B. Power-on self-test (POST)

C. Virtual private network (VPN)

D. Windows Remote Management (WinRM)

Question 6

A company's public-facing application is running in the cloud on a single virtual machine (VM) that is receiving heavy traffic. To improve performance, the company adds a second VM. Which of the following infrastructure components should the company add next so the second VM receives traffic?

A. Disk image

B. Load balancer

C. Pipeline gate

D. Container network

Question 7

A programmer runs the following default.sh script:

#/bin/bash
5Name=user4000
echo $5Name
 

The programmer receives the following error while executing default.sh:

./default.sh: line 2: 5Name=user4000: command not found
Name

 

Which of the following should the programmer do to resolve the error?

A. Remove the digit (5) from the variable and the echo command.

B. Remove the echo command and remove the pound sign (#) from the first line.

C. Remove the pound sign (#) from the first line and the dollar sign ($) from the echo command.

D. Edit the script to add Name as a second variable.

Question 8

A developer runs the following script:

#!/bin/python3
import requests
requests.get("https://www.comptia.com")

 

The developer receives the following error message:

ModuleNotFoundError: No module named 'requests'

 

Which of the following is causing the error?

A. The required library is missing.

B. The code is syntactically incorrect.

C. The python3 package is not installed.

D. The interpreter is incorrect.

Question 9

Which of the following best compares the use of a software development kit (SDK), a command-line interface (CLI), and identity and access management (IAM) roles?

A. IAM is a user interface used for manual login, while an SDK provides automatic updates through the CLI.

B. A CLI is required for application programming interface (API) access, while an SDK works only when combined with IAM.

C. An SDK provides the lowest level of access, while IAM and a CLI support manual access to the API.

D. IAM provides secure access, while a CLI and an SDK use IAM to authenticate and interact with the API.

Answer key

Question 1: B (1.2.4)

Question 2: C (main)
Question 3: A (Tags)
Question 4: C (2.0.0)
Question 5: A (Secure Shell (SSH))
Question 6: B (Load balancer)
Question 7: A (Remove the digit (5) from the variable and the echo command.)
Question 8: A (The required library is missing.)
Question 9: D (IAM provides secure access, while a CLI and an SDK use IAM to authenticate and interact with the API.)