Microsoft Professional Program for DevOps Flashcards

1
Q

Default activity log retention period

A

90 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Resource lock types

A
  • CanNotDelete - authorized users can still read and modify a resource, but they can’t delete the resource.
  • ReadOnly - authorized users can read a resource, but they can’t delete or update the resource.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

PowerShell command to add an authenticated Azure account to use for Azure Resource Manager cmdlet requests.

A

Add-AzureRmAccount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two types of approaches to Infrastructure as Code?

A
  • declarative (functional) - states “what” the final state should be. When run, the script or definition will initialize or configure the machine to have the finished state that was declared.
  • imperative (procedural) - states the “how” for the final state of the machine by executing through the steps to get to the finished state.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the two types of methods in Infrastructure as Code?

A
  • push - the controlling or master server will push the configuration to the target machines
  • pull - the machines configured will pull the configuration from a controlling server, such as a master server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is salt master?

A

It’s a master component in Salt, mainly responsible for sending commands and configurations to the minions to manage them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is salt minion?

A

It represents a managed system, and it is responsible for receiving and executing commands and configurations that a user sends via master.

Salt can be run in a masterless mode where only the Minion is used.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are salt formulas?

A

They are pre-written salt states. A formula could be either declarative or imperative, representing a system configuration. Formulas can be used to execute tasks like managing configurations and services states, or installing and managing system packages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are salt grains?

A

They are the interface to access static information about the Minion system, such as OS, kernel, memory, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are salt pillars?

A

They are user-defined variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What’s the difference between grains and pillars?

A

Pillars are stored in the master and passed through to the minion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are salt runners?

A

They are modules located inside the master and are responsible for executing different tasks such as:

  • reporting job and connection status
  • interacting with external APIs
  • interacting with minions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between runners and execution modules?

A

It’s the fact that a runner executes on the master, not the minion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are salt returners?

A

They return the data from master or minion to an external system like MySQL or Redis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are salt reactors?

A

They are event triggers. They use the event bus to watch event tags and, if a tag matches a given pattern, the system runs a command in response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is salt cloud?

A

It’s a SaltStack interface for interacting with cloud providers such as Microsoft Azure. With Salt Cloud, the system administrator can provision systems and virtual machines on different cloud providers without leaving Salt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are four elements of Azure Advisor?

A
  • high availability
  • security
  • performance
  • cost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

RBAC owner role

A

An owner can do anything—create objects, delete objects, modify things, and assign permissions to other users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

RBAC contributor role

A

A contributor can do everything except modify permissions. A contributor cannot grant someone access to something but can create runbooks, execute them, and run them.

20
Q

RBAC reader role

A

A reader is a view-only administrator; readers can view everything but cannot change anything.

21
Q

RBAC automation operator role

A

An automation operator can perform tasks that are involved in the operation of an automation account such as starting and stopping runbooks, but an operator cannot add new runbooks, modify runbooks, modify credentials, or grant permissions.

22
Q

RBAC: user access administrator

A

A user access administrator cannot do anything to the Automation objects but can grant and revoke permissions.

23
Q

What is RBAC?

A

Role-Based Access Control

24
Q

You are using an Azure Automation runbook to manage a set of virtual machines. You need to ensure that the runbook can securely authenticate to the relevant Azure subscription. The solution must be usable for multiple runbooks.

What 5 steps do you need to take in order?

A
  1. Create a certificate and PFX file.
  2. Create a Key Credential object.
  3. Create an Azure Active Directory service principal.
  4. Assign role-based access control permissions.
  5. Create an Azure Automation asset
25
Q

You need to use Azure Automation to automate the process of creating, configuring, and managing the virtual machines (VMs) for your organization.

What 5 actions do you need to take in order?

A
  1. Create an Azure PowerShell script.
  2. Upload the script to Azure Automation Services.
  3. Compile the script into a Managed Object Format (MOF) file.
  4. Define the nodes that will use the configuration.
  5. Configure the registration data for each VM.
26
Q

What is the role of chef client / node?

A

Provides an interfaces to cloud resources.

27
Q

What is the role of chef server?

A

Manages and deploys configurations.

28
Q

What is the role of chef workstation?

A

Allows the administrator to execute commands.

29
Q

What are the 3 pillars of CI?

A
  • Version Control System (Git, TFVC, etc.)
  • Continuous Integration System (Azure DevOps, Bamboo, Jenkins, etc.)
  • Automated Build Process (Gradle, Ant, etc.)
30
Q

What are the strengths of centralized source control system?

A
  • easily scales for very large codebases
  • granular permission control
  • permits monitoring of usage
  • allows exclusive file locking
31
Q

What are the strengths of distributed source control system?

A
  • cross platform support
  • open source friendly code review model via pull requests
  • complete offline support
  • portable history
  • quickly growing user base
32
Q

What are the common reasons for techincal debt?

A
  • code cuplications
  • bad distribution of complexity
  • spaghetti design
  • lack of unit tests
  • lack of coding standards
  • potential bugs
  • too few or too many comments
33
Q

Name two tools which help to minimize the techincal debt?

A
  • SonarQube
  • NDepend
34
Q

What are the ways of detecting techincal debt?

A
  • manual examination (code review)
  • code analysis
  • code coverage
  • code metrics
  • architecture layer diagrams
35
Q

What are the common code metrics?

A
  • maintainability index for functions and classes
  • cyclomatic complexity of functions (MaCabe’s number)
  • inheritance depth of classes
  • amount of coupling among classes
36
Q

Which three check-in policies can VSTS enforce before a check-in is allowed?

A
  • code analysis has completed
  • check-in tests have completed
  • work items are associated with the check-in
37
Q

What are the three phases of continuous integration in a deployment pipeline?

A
  • version control
  • development
  • build and unit testing
38
Q

What’s diamond dependency problem about?

A

When a library A depends on libraries B and C, both B and C depend on library D, but B requires version D.1 and C requires version D.2. The build fails because only one version of D can exist in the final executable

39
Q

What are the parts of semantic versioning?

A

major.minor.patch

  • major - incompatible (breaking) API changes
  • minor - new functionality that is backward compatible
  • patch - bug fixes that are backward compatible
40
Q

What are the 8 principles of Continuous Delivery?

A
  • process for releasing and deploying must be repeatable and reliable
  • automate everything
  • do diffucult things often
  • everything in source control
  • done = released
  • build quality in
  • release process is everyone’s responsibility
  • improve continuously (build - measure - learn)
41
Q

What are the 4 practices of Continuous Delivery?

A
  • build once, deploy everywhere
  • unified deployment process for all environments
  • smoke test deployments
  • address failing parts before moving forwards
42
Q

What does it mean that an operation is idempotent?

A

It means that it produces the same results regardless of how many times it’s run.

43
Q

What’s Octopus Deploy?

A

It’s an automated deployment and release management solution

44
Q

What are the three major components of Octopus Deploy?

A
  • Server. The server is responsible for providing the user interface and the API interface, and for coordinating the execution of the deployments.
  • Agent. The agent is responsible for deploying files and execute scripts on the machines where the code is deployed.
  • Runner. The runner is responsible for executing scripts on behalf of the server or the agent.
45
Q

What does Octopus Deploy server provide?

A
  • The Octopus web portal
  • The engine that orchestrates the deployments and distributes work to Tentacles
  • REST API
46
Q

What functions does the agent have?

A
  • Transfer files (using a secure connection), and execute deploy scripts.
  • Ensure that all necessary scripts are up to date and on the machine.
47
Q
A