Module 5bc - Identity, Governance, Privacy and Compliance - Build a Cloud Governance Strategy, Policies Flashcards

1
Q

What is Azure Policy?

A

A service that allows you to create/assign/manage policies that control or audit Resources.

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

Hint: On Policy Assignment…

What three (3) things can Azure Policy do with Tags to improve your tagging scheme?

A

Policy can:

  • Ensure Resource Group tags inherit to child Resources; this tag propagation does not happen by default
  • Enforce tagging rules and other conventions
  • Reapply removed tags and other tag related functionality.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Not all Resources will require a tag; querying for Resources by tag will include non-tagged Resources as well (T/F)?

A

FALSE? Tag application gives a resource identifiable metadata, ergo upon query or search for a specific tag, ONLY those Resources with that matching metadata are returned in the result.

Any non-tagged Resources are NEVER returned in queries by tag.

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

What do you define when you create an Azure Policy?

A

You define Initiatives for Azure Policy to evaluate against your Resources.

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

Hint: IaaS

What are some categories for built-in initiatives?

A

The built-in Initiatives are categorized similar to IaaS offerings:

  • Storage
  • Networking
  • Compute
  • Security Center
  • Monitoring
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the three (3) basic steps for using and verifying an Azure Policy?

A
  1. Create Policy Definition
  2. Assign Policy to a Scope
  3. Review the evaluation results
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When creating an Azure Policy, what two things does it comprise of?

A

Initiatives and Remediation

Initiatives - What to evaluate
Remediation - What to do about it (Effects, etc)

Some example initiatives:

  • Allow VM SKUs: enables you to specify a set of VM SKUs your org can deploy
  • Allowed Locations: enables restrictions on deployment locations. Goes to geographic compliance reqs
  • CORS should not allow every resource to access your web applications: allow only required domains to interact with your web apps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three (3) Scopes of Policy Assignments?

A

A Policy Definition can take place and apply to three specific scopes:

  • Management Group (a collection of multiple Subscriptions)
  • A single Subscription
  • A Resource Group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Policy Assignments on a Resource Group are NOT propagated to the Group’s children because child resources are automatically exempted from Policy auto-assignments (T/F)?

A

False. When a Policy Assignment is made to a Resource Group, it is auto-applied to ALL Resources in the Group. You have the ability to exclude a sub-scope from the Policy Assignment.

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

Hint: excludes Regional Services from consideration

General Knowledge: Why use Azure Policies, Assignments and Initiatives to restrict deployments to specific Regions?

A

Improved Cost Tracking and Data Residency/Security Compliance

Since cost of certain Resources can differ per Region, assigning Policies to a specific scope that limits Region deployment can center down cost tracking per Region.

Depending on where the data is located, you may be bound to corporate/government data compliance rules that state where the data can be stored (GDRP for example)

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

When creating an Azure Policy, you need to review the evaluation results. How is this accomplished?

A

Evaluations happen once per hour, so making a change to your Policy Definition and/or Assignment, evaluation happens within the hour. During the evaluation is when your Resource(s) get(s) marked as compliant or noncompliant

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

What are Azure Policy Initiatives and the definitions of an Azure Policy, Initiative and a Policy?

A

Related Policies grouped into a set. Initiative Definitions contain all Policy Definitions for tracking larger-goal compliance states

  • Azure Policy Definitions == sets of one or more Initiative Definitions
  • Initiative Definitions == sets of one or more Policy Definitions
  • Policy Definition == a rule that, when applied, a Resource must comply with
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What capabilities does Azure Policy have to keep your Resources compliant?

A

Policies can ensure Compliance on Resources through various capabilities:

  • Prevent creation of noncompliant Resources
  • Highlight existing noncompliant Resources
  • Auto-Remediate noncompliant Resources and configurations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What two tools would you use to define an Initiative?

A

Azure Portal or by command line tools (PS or CLI)

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

Hint: add/remove

How do you assign an Initiative (Definition) and what’s the big advantage of doing so?

A

You assign it to a Scope via Policy Assignment

Because Initiatives are a collection/set of related Policies (Policy Rules), it’s easier to create an Initiative and start with just one or even a few Policies defined in the Initiative, then assign the Initiative to your target Scopes. You can then add/remove Policies over time, without having to change the Policy Assignments made to your Resources.

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

Where can I view all built-in Initiative Definitions?

A

Azure Portal > Authoring > Definitions. Filter by Definition Type for Initiative

17
Q

Where can I view all built-in Policy Definitions?

A

Azure Portal > Authoring > Definitions. Filter by Definition Type for Policy

18
Q

Hint: AAADDDM

What are the current seven (7) Policy Effects?

A
  • Append
  • Audit
  • AuditIfNotExists
  • Deny
  • DeployIfNotExists
  • Disabled
  • Modify
19
Q

How/When can a Managed Identity be created?

A

When assigning a Policy (Policy Assignment), you can create an identity manually or have one auto-created

20
Q

Hint: deployIfNotExists

What is a Managed Identity and why is it used for Remediation?

A

Manage Identities are used to provide an identity for Applications to use when connecting to or modifying Resources

A Managed Identity is required to make Remediation changes when an Azure Policy runs a template in deployIfNotExists mode, and to modify effect types.

21
Q

Hint: two outside

When assigning a Policy (ie Policy Assignment) what four (4) scenarios require a Managed Identity to be manually granted access?

A
  • The assignment is created through SDK
  • A Resource is modified by deployIfNotExists
  • A Resource is modified OUTSIDE the scope of the Policy Assignment
  • A Template accesses properties on Resources OUTSIDE the scope of the Policy Assignment
22
Q

Where can you view the Policy violation when attempting to deploy a Resource that has been restricted by Policy?

A

Azure Portal has record of Deployments. Go to the deployment details, find your failed Resource deployment and click on Operational Details

23
Q

Hint: What do pipelines generally allow you to do?

What does Azure DevOps allow us to do with Policies?

A

Integration with Azure DevOps CI/CD allows for both pre and post deployment Policy Assignment (ie applying a Policy to a Scope)