AWS Directory Service

5 minutes 5 Questions

AWS Directory Service provides managed Microsoft Active Directory (AD) options that let organizations use directory-based identities within AWS. For the SCS-C03 exam, know its three main types and when to choose each. AWS Managed Microsoft AD is a fully managed, highly available AD deployed across two Availability Zones in your VPC. It supports one-way or two-way forest and external trusts with on-premises AD, Group Policy, Kerberos, LDAPS, MFA through RADIUS, and seamless domain join for EC2 instances. It also powers AD-aware services such as Amazon RDS for SQL Server, FSx for Windows File Server, and WorkSpaces. AD Connector is a proxy that forwards authentication requests to your existing on-premises AD and stores no directory data in AWS. It suits organizations that must keep identities on-premises while granting access to the AWS Management Console, WorkSpaces, or QuickSight. Simple AD is a low-cost, Samba-based, AD-compatible directory for basic needs. It lacks trusts and MFA support. Key security features include: integration with IAM Identity Center, so AD users and groups map to permission sets for multi-account access; console access by assigning IAM roles to directory users or groups; MFA through RADIUS; LDAPS using certificates, which ACM Private CA can issue; security groups controlling traffic to directory network interfaces; forwarding of domain controller security event logs to CloudWatch Logs; SNS notifications for directory status changes; encryption of data at rest; snapshots for recovery; fine-grained password policies; and directory sharing across accounts through AWS Organizations to centralize identity. Exam tips: choose AD Connector when no identity data may be stored in the cloud; choose AWS Managed Microsoft AD when you need trusts, scale, or AWS-hosted AD-dependent workloads; and remember that you do not receive Domain Admin or Enterprise Admin rights. Instead, apply least privilege through the AWS Delegated Administrators groups. Cross-account sharing also helps reduce duplicate directories and the risk of inconsistent access controls.

AWS Directory Service: A Complete Guide for the AWS Security Specialty Exam

Introduction
AWS Directory Service is a family of managed services that lets you run or connect Microsoft Active Directory (AD) in the AWS Cloud. Identity is the foundation of every security architecture, and many enterprises already store their users, groups, computers and policies in Active Directory. The AWS Certified Security - Specialty exam expects you to know how these directories extend into AWS. You must also know how to secure them and how to pick the right directory type for each scenario.

Why AWS Directory Service Is Important
- Centralized identity: Organizations can reuse their existing corporate identities for AWS workloads. This avoids duplicate user stores and reduces credential sprawl.
- Least privilege and governance: AD groups can be mapped to IAM roles and IAM Identity Center permission sets. Access then follows the joiner-mover-leaver process already managed by HR and IT.
- Compliance: AWS handles patching, monitoring, replication and snapshots of domain controllers. This lowers operational risk and helps meet audit requirements.
- Workload enablement: Many AWS services need AD, including Amazon WorkSpaces, Amazon FSx for Windows File Server, Amazon RDS for SQL Server, Amazon Connect, Amazon QuickSight, Amazon WorkDocs and EC2 Windows or Linux domain join.
- Hybrid security: Trusts and proxies let on-premises identities reach cloud resources in a controlled way. Credentials stay in the place the organization chooses.

What AWS Directory Service Is: The Directory Types
1. AWS Managed Microsoft AD
- A real Microsoft Windows Server Active Directory, managed by AWS.
- It is offered in Standard Edition (up to about 30,000 objects) and Enterprise Edition (up to about 500,000 objects, with multi-Region replication).
- AWS deploys at least two domain controllers in separate Availability Zones inside your VPC. You can add more for scale and availability.
- It supports forest and external trusts (one-way and two-way) with on-premises AD, as well as schema extensions, Group Policy, fine-grained password policies, Kerberos, NTLM and LDAP.
- Security features include MFA through RADIUS, server-side and client-side LDAPS, certificate-based (smart card) authentication, log forwarding to CloudWatch Logs, directory sharing across accounts, and SNS notifications for directory status changes.
- You get delegated administrative rights (the AWS Delegated Administrators groups). You do not get Domain Admin or Enterprise Admin, and you have no RDP access to the domain controllers.

2. AD Connector
- A proxy (directory gateway) that sends authentication requests to your existing on-premises Active Directory.
- It stores no user data and caches no credentials in AWS. All identities remain on premises.
- It needs network connectivity to on-premises domain controllers over AWS Site-to-Site VPN or AWS Direct Connect, and a service account with delegated permissions.
- It comes in Small and Large sizes and supports MFA through an on-premises RADIUS server.
- Use cases include signing in to the AWS Management Console with corporate credentials, WorkSpaces, EC2 seamless domain join and IAM Identity Center.
- Limitations: it cannot be used for trusts, cannot host directory-aware applications that need a local AD (for example RDS for SQL Server), and depends on the availability of the on-premises link.

3. Simple AD
- A standalone, Samba 4 based, AD-compatible directory for basic needs.
- It comes in Small (up to about 500 users) and Large (up to about 5,000 users) sizes.
- It supports user accounts, group membership, domain join, Kerberos-based SSO and Group Policy.
- It does not support trusts, MFA, LDAPS, schema extensions, PowerShell AD cmdlets, or AWS services that need full Microsoft AD (such as RDS for SQL Server or FSx for Windows).

Related services you may see in questions
- Amazon Cognito: user directories for web and mobile applications (customer identities, not workforce AD).
- IAM Identity Center: can use Managed Microsoft AD or AD Connector as an identity source for multi-account access.

How It Works
Deployment and networking
- You choose a VPC and two subnets in different AZs. The service creates elastic network interfaces and a security group for the domain controllers, with the AD ports open (53, 88, 389, 445, 464, 636, 3268 and others).
- You should tighten this security group to trusted CIDRs and avoid opening it to 0.0.0.0/0.
- DNS: the domain controllers act as DNS servers. Use DHCP option sets or Route 53 Resolver outbound endpoints with conditional forwarding rules so that instances and on-premises networks can resolve the domain.

Trust relationships (Managed Microsoft AD)
- One-way outgoing trust (AWS trusts on-premises): on-premises users can reach AWS resources, and users stay in the corporate AD.
- Two-way trust: needed for some services and scenarios such as IAM Identity Center with trusted domains or WorkSpaces with resources on both sides.
- Trusts need connectivity (VPN or Direct Connect), the correct ports, and DNS conditional forwarders on both sides.

Authentication to AWS
- You create an access URL for the directory, enable AWS Management Console access, and assign IAM roles to AD users or groups. Users then sign in with AD credentials and assume those roles.
- With IAM Identity Center, AD groups are synced or referenced and mapped to permission sets across AWS Organizations accounts.

MFA
- Configure a RADIUS server (on premises or on EC2) and point Managed Microsoft AD or AD Connector to it. MFA then applies to WorkSpaces, console access, IAM Identity Center and other integrated applications.

Encryption and certificates
- Server-side LDAPS: encrypts LDAP traffic between directory-aware applications and Managed Microsoft AD. It needs an enterprise CA in the domain, often on EC2.
- Client-side LDAPS: encrypts traffic from Managed Microsoft AD to your on-premises or self-managed AD. This is relevant for AD Connector and trusts.
- Smart card and CAC/PIV authentication can be enabled for WorkSpaces through certificate-based authentication.
- Directory data at rest and snapshots are encrypted by AWS.

Monitoring and auditing
- CloudTrail records Directory Service API calls such as CreateDirectory, EnableSso and CreateTrust.
- Log forwarding sends Windows security event logs from domain controllers to CloudWatch Logs, where you can build metric filters and alarms (for example on failed logons, event 4625).
- SNS notifies you of directory health changes.

Resilience and sharing
- Automatic daily snapshots are taken, and you can create manual snapshots for restore.
- Multi-Region replication (Enterprise Edition) gives low latency and disaster recovery.
- Directory sharing lets other AWS accounts in an organization domain-join EC2 instances to one central Managed Microsoft AD.

Seamless domain join
- EC2 Windows and Linux instances can join the domain at launch using AWS Systems Manager documents (AWS-JoinDirectoryServiceDomain). The instance profile needs the AmazonSSMManagedInstanceCore and AmazonSSMDirectoryServiceAccess policies.

Exam Tips: Answering Questions on AWS Directory Service
1. Spot the keyword for the directory type:
- 'Users must stay on premises', 'no credentials cached in AWS', or 'use existing AD for console sign-in' points to AD Connector.
- 'Trust', 'schema extension', 'RDS for SQL Server', 'FSx for Windows', 'more than 5,000 users', 'LDAPS', or 'multi-Region' points to AWS Managed Microsoft AD.
- 'Low cost', 'small number of users', 'basic AD features', or 'no on-premises AD' points to Simple AD.
- 'Mobile or web app customers' points to Amazon Cognito, not Directory Service.
2. MFA questions: the answer almost always involves a RADIUS server integrated with Managed Microsoft AD or AD Connector. Simple AD cannot do MFA.
3. Encryption in transit: 'encrypt LDAP traffic' means enabling LDAPS (server-side for applications connecting to Managed AD, client-side for traffic to on-premises AD). Simple AD is ruled out.
4. Trust failures: check DNS conditional forwarders, security group and NACL ports, VPN or Direct Connect routing, and the trust direction. A wrong trust direction is a common distractor.
5. Detecting attacks: to alert on brute-force logons against domain controllers, enable log forwarding to CloudWatch Logs plus a metric filter and alarm. CloudTrail only records API activity, not AD logon events.
6. Admin rights: you never get Domain Admin on Managed Microsoft AD. Answers that require RDP into a domain controller or Enterprise Admin rights are incorrect.
7. Multi-account design: use directory sharing or IAM Identity Center with AD as the identity source, rather than deploying a directory in every account.
8. Least privilege for domain join: use Systems Manager seamless join with a narrowly scoped IAM role. Avoid embedding domain credentials in user data or AMIs.
9. High availability: Managed AD already spans two AZs. For larger read loads add domain controllers, and for Region-level DR choose Enterprise Edition multi-Region replication.
10. AD Connector dependency: if the on-premises link fails, authentication fails. When a question stresses resilience during connectivity loss, prefer Managed Microsoft AD with a trust, or a replica.
11. Eliminate distractors: options proposing IAM users for every employee, or syncing passwords to S3 or DynamoDB, break best practice. Prefer federation through the directory.
12. Read for the 'most secure' or 'least operational overhead' clue: managed options (Managed AD, AD Connector) usually beat self-managed AD on EC2, unless the question requires full Domain Admin control or unsupported customizations.

Summary
AWS Directory Service brings enterprise identity into AWS through three main options. Managed Microsoft AD is a full AD that supports trusts, AD Connector is a proxy to on-premises AD, and Simple AD is a basic, low-cost directory. Secure them with tight security groups, RADIUS MFA, LDAPS, CloudWatch log forwarding, CloudTrail and least-privilege role mappings. In the exam, match the scenario keywords to the right directory type, and remember the feature gaps that rule out Simple AD and AD Connector.
Test mode:
More AWS Directory Service questions
60 questions (total)