2 Implement a secure environment Flashcards

1
Q

What 2 types of authentication does Azure SQL support?

A
  • SQL Server
  • Microsoft Entra ID (previously Azure Active Directory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What types of identities does Microsoft Entra ID/Azure AD support?

A
  • Cloud-only identities
  • Hybrid identities that support cloud authentication with SSO, using password hash or pass-through authentication
  • Hybrid identities that support federated authentication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the decision tree for authentication?

A
  • Cloud-only identities
  • Federated authentication
  • Pass-through identification
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why would you use cloud-only identities for authentication?

A
  • Azure AD handles sign-in completely in the cloud
  • Don’t want enforced AD security policies during sign in
  • Don’t have a sign-in requirement not natively supported by Azure AD
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why would you use federated authentication for authentication?

A
  • If you want to integrate with an existing federation provider, or
  • Have a sign-in requirement not natively supported by Azure AD
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why would you use pass-through authentication?

A
  • All other cases
  • Do not have a sign-in requirement not natively supported by Azure AD
  • No integration with an existing federation provider, OR want to enforce user-level AD security policies during sign in
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are other authentications?

A
  • Apps running on an Azure VM - passwordless authentication
  • Apps running on a non-Azure machine that is domain-joined: use managed identities
  • Apps running on a non-Azure machine that is not domain-joined: use certificate
  • Admin tools on a non-Azure machine that is not domain-joined: use Azure AD integrated authentication, or Auzre AD interactive authentication with multifactor authentication.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you enable multi-factor authentication with Microsoft Entra ID?

A
  • Go to the Portal, Active Directory, and Authentication methods. These include
  • FIDO2 (Hardware) Security Key
  • Microsoft Authenticator (App)
  • Text message
  • Temporary Access Pass
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you add a new user with Azure AD authentication?

A
  1. In the Portal, go to Microsoft Entra ID.
  2. Go to Users > New User
  3. Enter name, username (similar to email addresses, either @[DomainName].onmicrosoft.com, or custom)
  4. Groups (optional)
  5. Azure AD role (Optional)
  6. Job Info (Optional)
  7. Password will be auto generated
  8. Click create
  9. Users are deleted from the same place
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How should you create a second admin account?

A

You should create a second admin account as an Azure AD account, with the db_owner database role

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

How do you create a login for Azure SQL Managed Instance?

A

CREATE LOGIN MyLogin
WITH PASSWORD = ‘mypassword’;
CREATE USER MyLogin FOR LOGIN MyLogin

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

What can logins do in Azure SQL MI?

A
  • Do SQL Agent management and jobs execution
  • Database backup and restore operations
  • Auditing
  • Trigger login triggers
  • Setup Service Brokers and DB mail
  • Users cannot be created using the Azure Portal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can you create logins from Azure AD users, groups or apps?

A

Yes
CREATE LOGIN loginname
[FROM EXTERNAL PROVIDER]
{WITH <option_list> [,...]}</option_list>

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

What are the parameters/options for creating a login from Azure AD users, groups, or apps?

A
  • login name - an existing Azure AD UserPrincipalName of the user, DisplayName group, or app
  • OptionList
  • Password, cannot be used with FROM EXTERNAL PROVDER
  • SID
  • DEFAULT_DATABASE = database
  • DEFAULT_LANGUAGE = language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does FROM EXTERNAL PROVIDER mean as part of the CREATE LOGIN statement?

A

Indicates Azure AD Authentication

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

What is the syntax for creating users?

A

CREATE USER user_name
FOR | FROM LOGIN login_name
| FROM EXTERNAL PROVIDER
[WITH <limited_options_list> [,...]]</limited_options_list>

17
Q

What is the limited options list when creating a user?

A

DEFAULT SCHEMA = schema_name
| DEFAULT_LANGUAGE = {NONE|lcid|language name|language alias}
|ALLOW_ENCRYPTED_VALUE_MODIFICATION = [ON|OFF]]