Courseiva

CCNA Secure Windows Server Infrastructure Questions

18 questions · Secure Windows Server Infrastructure topic · All types, answers revealed

1
MCQhard

Refer to the exhibit. You are reviewing a partial Windows Defender Application Control (WDAC) policy XML file. You need to identify the behavior of this policy regarding the file 'untrusted.exe'. What will occur if a user attempts to run 'untrusted.exe'?

A.The file will be allowed because the 'Allow Signed' rule uses a wildcard for the FileName.
B.The file will be allowed if it is digitally signed by a trusted Windows publisher.
C.The file will be blocked regardless of its signature or version.
D.The file will be allowed but an audit event will be generated in the event log.
AnswerC

The 'Deny' rule for 'untrusted.exe' is explicit. In Windows Defender Application Control, deny rules are processed with higher priority than allow rules. No matter the version or whether the file is signed, the system will prevent 'untrusted.exe' from starting because it matches an entry in the policy's explicit deny list.

Why this answer

In WDAC policies, 'Deny' rules take absolute precedence over 'Allow' rules. Even if a file might otherwise be permitted by a broad allow rule or a signer rule, an explicit deny rule targeting the filename or hash will prevent the application from executing. This ensures that known malicious or unauthorized files can be strictly blocked regardless of other policy settings.

2
MCQmedium

Refer to the exhibit. An administrator is attempting to run a locally created, unsigned PowerShell script named 'Update-Config.ps1' on a Windows Server 2022. Based on the output of 'Get-ExecutionPolicy -List', what will happen when the administrator attempts to run the script in the current session?

A.The script will fail to run because the LocalMachine policy is set to AllSigned.
B.The script will run successfully without any prompts.
C.The script will prompt the user for confirmation before executing.
D.The script will only run if the administrator executes it from an elevated prompt.
AnswerB

Because the 'Process' scope is set to 'Bypass', PowerShell ignores all security restrictions for the current process. This scope has higher priority than 'LocalMachine'. Therefore, the unsigned script will execute immediately. This is often used by automated tasks or administrators who need to run scripts without changing permanent system settings.

Why this answer

PowerShell execution policies follow a specific order of precedence. In this exhibit, the 'Process' scope is set to 'Bypass', which takes precedence over the 'LocalMachine' scope's 'AllSigned' setting. When an execution policy is set to 'Bypass', nothing is blocked and there are no warnings or prompts, allowing unsigned scripts to execute freely.

3
MCQmedium

Your company is implementing a Tiered Administration Model to secure its Windows Server infrastructure. You need to deploy Privileged Access Workstations (PAWs) for all Domain Admins. What is the primary purpose of using a PAW in this environment?

A.To allow administrators to browse the internet safely while performing server updates.
B.To provide a dedicated environment that is isolated from the risks of email and web browsing.
C.To enable multiple users to share a single high-privilege account across the organization.
D.To automatically synchronize local administrator passwords across all domain controllers.
AnswerB

The core objective of a PAW is to isolate administrative functions from the most common attack vectors, such as phishing and drive-by downloads. By using a hardened, dedicated machine for administrative tasks, the likelihood of a Domain Admin's credentials being compromised by malware residing on a standard workstation is greatly reduced.

Why this answer

A Privileged Access Workstation (PAW) provides a dedicated, hardened environment for sensitive administrative tasks. By isolating high-privilege credentials from common threats like email, web browsing, and general-purpose applications, PAWs significantly reduce the risk of credential theft. This isolation is a critical defense-in-depth strategy for protecting high-value accounts in an Active Directory forest.

4
MCQmedium

You are planning the deployment of Shielded Virtual Machines in a Windows Server 2022 environment. You need to ensure that the Fabric Administrators cannot access the data within the VMs. Which component of the Host Guardian Service (HGS) is responsible for verifying that a Hyper-V host is authorized to run a Shielded VM?

A.The Key Protection Service
B.The Attestation Service
C.The Virtualization-based Security (VBS) engine
D.The TPM 2.0 Emulator
AnswerB

The Attestation Service is the component that validates the Hyper-V host's identity and configuration. It ensures that the host is running approved code and has not been tampered with. Only after a host successfully completes this attestation process is it considered 'healthy' and allowed to receive the keys to run Shielded VMs.

Why this answer

The Host Guardian Service (HGS) is the central authority for Shielded VMs. The Attestation Service within HGS evaluates the health and identity of the Hyper-V host. If the host passes attestation, the HGS Key Protection Service then provides the keys necessary to start or migrate the Shielded VM, ensuring it only runs on trusted hardware.

5
MCQmedium

Your organization implements Just Enough Administration (JEA) to manage Windows Servers. A junior administrator needs to restart the Print Spooler service on several print servers but should not have full administrative rights. You need to identify the specific file that defines which cmdlets and external commands the junior administrator can execute. Which file should you configure?

A.The Session Configuration file (.pssc)
B.The Role Capability file (.psrc)
C.The PowerShell Profile file (.ps1)
D.The Module Manifest file (.psd1)
AnswerB

The Role Capability file is a PowerShell data file that specifies what a user can do once they connect to a session. It explicitly lists cmdlets, functions, and provider capabilities permitted for the role. This allows administrators to grant specific permissions, like restarting a service, without granting full local administrative permissions on the server.

Why this answer

The Role Capability file defines exactly which cmdlets, functions, and external commands a user is allowed to run when connecting to a JEA endpoint. By restricting access to only the necessary tools for a specific task, you minimize the potential for lateral movement or accidental misconfiguration. This principle of least privilege is a cornerstone of securing administrative access in modern Windows Server environments.

6
MCQhard

You need to audit successful and failed attempts to modify user accounts in Active Directory. Which policy should you configure?

A.Audit Account Management.
B.Audit Directory Service Changes.
C.Audit Object Access.
D.Audit Logon/Logoff.
AnswerB

This specific subcategory tracks changes to Active Directory objects, including creation, deletion, and modification of users, groups, and computer accounts. It is the correct policy to enable for monitoring changes within the NTDS.dit database, providing detailed event IDs that capture exactly which attributes were modified and by whom.

Why this answer

To audit specific changes to Active Directory objects, you must enable Audit Directory Service Changes in the Advanced Audit Policy Configuration. This is part of a comprehensive auditing strategy to detect unauthorized modifications or administrative errors. By targeting the Directory Service category, you ensure that relevant events are logged to the Security log, which can then be forwarded to a SIEM for centralized monitoring and alerting on sensitive identity changes.

7
MCQhard

You are configuring Windows Defender Credential Guard on a fleet of Windows Server 2022 Hyper-V hosts. You want to protect the LSA process from being accessed by unauthorized users or malware. Which hardware-based security feature must be enabled in the BIOS/UEFI and supported by the CPU for Credential Guard to operate?

A.Direct Memory Access (DMA) Protection
B.Hyper-Threading Technology
C.Virtualization Extensions (Intel VT-x or AMD-V) and SLAT
D.Hardware-enforced Stack Protection
AnswerC

Credential Guard requires hardware virtualization extensions and Second Level Address Translation (SLAT) to run the LSA in a virtualized container. This isolation prevents even a compromised kernel from accessing the stored credentials. Without these CPU features, the system cannot create the secure 'Virtual Secure Mode' needed to protect the LSA secrets.

Why this answer

Windows Defender Credential Guard uses virtualization-based security (VBS) to isolate secrets, such as NTLM password hashes and Kerberos Ticket Granting Tickets, in a protected environment. This requires hardware support for virtualization and Second Level Address Translation (SLAT) to create the secure memory enclave that the Local Security Authority (LSA) uses to shield credentials.

8
Multi-Selectmedium

You are tasked with securing your Windows Server 2022 environment. Which TWO actions should you perform to implement Just Enough Administration (JEA)?

Select 2 answers
A.Define a Role Capability (.psrc) file.
B.Configure a Group Policy Object to enable NTLMv2 only.
C.Create a Session Configuration (.pssc) file.
D.Modify the local SAM database to include JEA roles.
E.Enable the Credential Guard feature.
AnswersA, C

The Role Capability file is the heart of JEA, specifying which PowerShell modules, cmdlets, and external executables are available to the user. Defining this file allows administrators to granularly control the commands allowed, ensuring that the user can only perform the specific tasks required for their designated role.

Why this answer

JEA allows you to restrict administrator access to only the commands necessary for specific tasks, reducing the risk of privilege escalation. By creating a Role Capability file and a Session Configuration file, you define exactly which cmdlets and functions a user can execute. This minimizes the attack surface by ensuring that users do not have broad, unrestricted access to the entire PowerShell environment or the underlying server operating system.

9
MCQmedium

You are using Azure Update Management to manage updates for both on-premises Windows Servers and Azure VMs. You need to ensure that a specific group of on-premises servers never receives a particular update that is known to cause application compatibility issues. How should you configure this in Azure Update Management?

A.Modify the local Registry on each server to block the KB ID.
B.Create an 'Excluded updates' list in the Update Deployment configuration.
C.Use a Group Policy Object (GPO) to disable the Windows Update service.
D.Uninstall the Log Analytics agent from the affected servers.
AnswerB

The 'Exclude updates' feature in the Azure Update Management deployment settings allows administrators to enter specific KB numbers. This prevents those updates from being deployed during that specific scheduled run. This is the standard and most effective method for managing known bad updates across a group of managed servers.

Why this answer

Azure Update Management allows for granular control over update deployments through deployment schedules. When creating a deployment, you can specify excluded updates by their Knowledge Base (KB) ID. This ensures that even if an update is critical or security-related, it will not be installed on the targeted machines, preventing known compatibility problems.

10
Multi-Selectmedium

You are configuring Azure Bastion to provide secure RDP access to your Windows Server VMs in an Azure Virtual Network. Which THREE requirements must be met for a successful deployment? (Select THREE)

Select 3 answers
A.A subnet named 'AzureBastionSubnet' must exist in the Virtual Network.
B.The 'AzureBastionSubnet' must have a prefix of at least /26.
C.A Public IP address must be associated with the Azure Bastion resource.
D.All target Windows Servers must have the Remote Desktop Gateway role installed.
E.A Site-to-Site VPN must be established between Azure and on-premises.
AnswersA, B, C

Azure Bastion requires a specifically named subnet, 'AzureBastionSubnet', to host the Bastion gateway resources. This subnet is reserved for the service and cannot contain other resources like virtual machines. Correct naming is mandatory for the Azure portal and backend services to identify and deploy the Bastion infrastructure correctly.

Why this answer

Azure Bastion is a managed PaaS service that provides secure RDP and SSH access. It requires a dedicated subnet named 'AzureBastionSubnet' with a minimum mask of /26. Additionally, it requires a Public IP address for the Bastion resource itself.

This setup ensures that your VMs do not need public IP addresses for administrative access.

11
MCQmedium

You need to ensure that only authorized administrative users can access the server via PowerShell Remoting. Which security control should you implement?

A.Modify the Session Configuration security descriptor.
B.Configure the local Administrators group only.
C.Enable Credential Guard for PowerShell.
D.Disable the WinRM service entirely.
AnswerA

The PowerShell session configuration (WSMan) includes a security descriptor that acts as an access control list. By using 'Set-PSSessionConfiguration', you can replace the default permissions with a custom security descriptor, effectively restricting which identities are allowed to connect to the server's PowerShell remoting endpoint, thereby hardening the remote management interface.

Why this answer

Restricting access to PowerShell Remoting is vital to prevent unauthorized remote management. By modifying the Security Descriptor of the WinRM session configuration, you can explicitly define which users or groups have the 'Access' and 'Execute' permissions. This is a critical step in maintaining a secure administrative surface, ensuring that only those with the necessary authorization can establish remote sessions, thereby mitigating the risk of lateral movement by attackers using PowerShell.

12
MCQhard

Refer to the exhibit. You need to ensure that all data transmitted over SMB between your file server and domain-joined clients is encrypted. You set the configuration to True, but users report connectivity issues. What is the most likely cause?

A.The SMB server service must be restarted for the change to take effect.
B.Clients are using an SMB version lower than 3.0.
C.The server's certificate for SMB encryption has expired.
D.The firewall is blocking TCP port 445.
AnswerB

SMB encryption was introduced in version 3.0. Clients attempting to connect using SMB 2.1 or earlier cannot perform the required cryptographic handshake when encryption is enforced globally. Consequently, the server terminates the connection attempt, preventing the client from accessing files, which explains the reported connectivity issues during the migration.

Why this answer

Enabling SMB encryption globally forces all connections to use encryption. Older clients or non-Windows systems that do not support SMB 3.0 or higher will fail to negotiate a connection, resulting in access errors. This transition requires careful planning, often involving auditing first or using per-share encryption instead of global settings to maintain backward compatibility while securing sensitive data transfers across the network infrastructure.

13
MCQhard

Refer to the exhibit. You are investigating why a secure connection is failing on your web server. Based on the output, what is the most likely reason?

A.The certificate has expired.
B.The server cannot reach the CRL distribution point.
C.The certificate chain is incomplete.
D.The private key is missing on the server.
AnswerB

The revocation check fails when the system cannot download the latest CRL or OCSP response to verify the certificate's status. This is commonly caused by firewall restrictions, missing proxy configurations, or an invalid URL within the certificate's Authority Information Access field, preventing the server from confirming it remains valid.

Why this answer

A failed revocation check indicates that the client or server cannot verify if the certificate has been prematurely invalidated by the issuing CA. This check is crucial for security because it ensures that compromised certificates are not being used. Connectivity failures here usually stem from the inability to reach the Certificate Revocation List (CRL) distribution point, often due to network blocking or incorrect DNS resolution for the URL defined in the certificate.

14
MCQmedium

You manage a Windows Server Update Services (WSUS) infrastructure with one upstream server and three downstream servers. You want the downstream servers to only download updates that have been approved on the upstream server. Which WSUS configuration mode should you use for the downstream servers?

A.Autonomous mode
B.Replica mode
C.Distributed mode
D.Disconnected mode
AnswerB

Replica mode ensures that the downstream server is a mirror of the upstream server regarding update approvals and deadlines. When an update is approved on the upstream server, it is automatically approved on the replica downstream server. This simplifies administration by allowing all update decisions to be made from a single central console.

Why this answer

WSUS supports two modes for downstream servers: Replica and Autonomous. In Replica mode, the downstream server mirrors the update approvals, settings, and classes of the upstream server. This centralizes management and ensures that only updates vetted and approved by the central administrator are distributed across the entire organization's branch offices or departments.

15
Multi-Selecthard

You need to create a Group Managed Service Account (gMSA) for a new web application cluster running on Windows Server 2022. Which TWO prerequisites must be met before you can successfully create and use the gMSA in your Active Directory domain? (Select TWO)

Select 2 answers
A.The Active Directory schema must be updated to at least Windows Server 2012.
B.A KDS Root Key must be created in the Active Directory forest.
C.Every server in the cluster must be running the Windows Insider preview build.
D.The Domain Functional Level must be set to Windows Server 2022.
E.An Azure AD Connect instance must be active and syncing to the cloud.
AnswersA, B

The gMSA feature was introduced with Windows Server 2012. Therefore, the Active Directory schema must be updated to a version that supports the necessary object classes and attributes for gMSAs. Without this schema version, the domain controllers will not recognize the gMSA object type or be able to manage its properties.

Why this answer

Creating a gMSA requires a specific environment setup. First, the Active Directory schema must be at least Windows Server 2012. Second, the Key Distribution Service (KDS) Root Key must be created to allow domain controllers to generate the passwords.

These steps ensure that the automated password management system has the necessary foundation to operate.

16
Multi-Selectmedium

You are securing Windows Admin Center (WAC) to manage your Windows Server 2022 environment. You want to implement granular access control for different IT teams. Which TWO methods can be used to control who has access to Windows Admin Center and what they can do? (Select TWO)

Select 2 answers
A.Active Directory groups for gateway access control.
B.Just Enough Administration (JEA) for granular tool-level access.
C.Azure Key Vault for storing the WAC login credentials.
D.NTFS permissions on the Windows Admin Center installation folder.
E.DHCP Reservations for the WAC gateway IP address.
AnswersA, B

You can define which users or groups are allowed to log into the Windows Admin Center gateway by configuring the 'Users' and 'Administrators' settings. By using Active Directory groups, you can centrally manage who has the right to access the WAC interface and perform management tasks across the fleet.

Why this answer

Windows Admin Center security is managed through two main layers: gateway access and tool access. Gateway access is controlled via local groups or Active Directory groups on the WAC server. For more granular control over specific server tasks, WAC integrates with Just Enough Administration (JEA) to limit the cmdlets and actions available to the user.

17
MCQeasy

An administrator is concerned about man-in-the-middle attacks where an attacker intercepts and modifies SMB traffic between a Windows Server 2022 file server and its clients. Which security feature should be enforced to ensure the integrity and authenticity of the SMB traffic?

A.NTFS Permissions
B.Access-Based Enumeration
C.SMB Signing
D.Disk Quotas
AnswerC

SMB Signing provides a digital signature for every SMB packet. If an attacker modifies a packet in transit, the signature will no longer match, and the receiving system will discard the tampered data. This effectively mitigates man-in-the-middle attacks by ensuring the authenticity and integrity of the communication channel between endpoints.

Why this answer

SMB Signing is a security mechanism in the SMB protocol that allows for the digital signing of SMB packets. This prevents the modification of data in transit and protects against man-in-the-middle attacks. Enforcing this feature ensures that both the client and the server can verify the origin and integrity of every packet exchanged during a session.

18
Multi-Selectmedium

You are securing a Windows Server 2022 instance against potential malware. Which THREE actions are recommended to minimize the attack surface?

Select 3 answers
A.Disable unnecessary services and features.
B.Install all available third-party toolbars and plugins.
C.Apply the Windows Defender Exploit Guard policy.
D.Configure Windows Firewall to allow all inbound traffic.
E.Implement AppLocker or Windows Defender Application Control.
AnswersA, C, E

Disabling unneeded services and features removes potential entry points and reduces the number of running processes. Each active service represents a potential vulnerability; by minimizing the count, you simplify the security footprint and significantly lower the probability of an attacker finding a weakness to exploit in background services.

Why this answer

Reducing the attack surface is a proactive security strategy that involves disabling unnecessary features and services. By removing unused software, restricting network exposure, and managing administrative privileges, you limit the vectors available for a potential intruder to gain a foothold. This process is essential for maintaining the integrity of the server and ensuring that only required code runs, thereby reducing the risk of exploitation and unauthorized system access.

Ready to test yourself?

Try a timed practice session using only Secure Windows Server Infrastructure questions.