1Y0-312 Cheatsheet
Citrix Virtual Apps and Desktops 7 Advanced Administration
Download free PDFSite resilience and disaster recovery
FMA services and databases
- **FlexCast Management Architecture (FMA)** separates brokering, configuration, hosting, monitoring and delegated administration into services. Services establish their own database connections; the Configuration Service is not a universal SQL proxy.
- The **Site database** holds deployment configuration and operational state. **Monitoring** stores historical session and performance information; **Configuration Logging** records administrative changes. Protect all three databases.
- **Broker Service** handles registration and session brokering. **Host Service** integrates with virtualization hosts; **Delegated Administration** evaluates administrator permissions. A healthy Broker alone does not prove every Studio operation is healthy.
- **Configuration Logging** and **Monitoring** use their dedicated databases as well as the Site database. Troubleshoot the affected service's connection, SQL permissions and database availability rather than checking one connection string only.
SQL availability and Local Host Cache
- **Local Host Cache (LHC)** supports brokering when a Controller loses its Site database connection. Configuration Synchronizer maintains a local configuration copy; the High Availability Service supplies outage brokering.
- **LHC** uses cached site configuration, unlike **Connection Leasing**, which relied on previously established connection leases. An SQL outage can prevent Studio administration while supported resource launches remain possible.
- Existing **HDX sessions** do not depend on a continuous SQL connection. New launches still require available VDAs, authentication, StoreFront or Workspace, and application backends. LHC does not restore failed databases or application data.
- **Always On availability groups** replicate databases; a **failover cluster instance** protects a SQL instance using clustered storage. Backups provide recoverable history. Test outage brokering and catalog-specific power or assignment restrictions separately from SQL failover.
Zones, locality and launch preference
- A **multi-zone site** shares site configuration and databases across locations. The **primary zone** contains the Site database; satellite Controllers normally reach it across the WAN. Zones reduce administration but retain shared dependencies.
- Place **Controllers**, machine catalogs and their hosting connections deliberately. Satellite VDAs prefer local Controllers and can fall back to primary-zone Controllers. Redundant Controllers in each required zone improve local resilience.
- **Application home zones** keep execution near application data; **user home zones** express a user's preferred location. A **mandatory** home zone prevents fallback elsewhere, accepting launch failure to preserve locality or sovereignty requirements.
- **Reconnect** decisions consider existing sessions; a home-zone preference does not automatically relocate a disconnected session. Without a zone preference, do not assume the nearest geographic zone wins; eligible machines and load remain relevant.
- Choose **separate sites** when WAN latency, operational isolation or independent failure boundaries outweigh shared administration. Each site owns its databases. Failure of all primary-zone Controllers can block primary-zone launches and impair site administration.
Recovery, licensing and cloud boundaries
- A **DR plan** protects databases, StoreFront configuration, profiles, user data, master images, layered assets, authentication and network entry points. Back up before significant changes and after configuration changes; verify restores against recovery objectives.
- For **failover**, make recovery resources and registration targets ready, then redirect the published access URL through the planned DNS or traffic-management mechanism. An ICA file is not a replacement for a complete recovery access path.
- For **failback**, restore primary-site access, validate launches, and stop directing new launches to the recovery site. Drain or schedule closure of existing sessions deliberately; changing routing does not migrate running sessions.
- **License Server resilience** can use a correctly prepared standby or supported Windows clustering. Preserve license files and host-identity requirements. Gateway load balancing is not a substitute for a supported licensing recovery design.
- With **Citrix Cloud**, Citrix manages the hosted control services. Customers still protect resource locations, Cloud Connectors, VDAs, identity, profiles, apps and customer-managed gateways. Use redundant Connectors and test the selected service's outage mode.
StoreFront and multi-site access
Server groups and configuration
- A **StoreFront server group** shares configuration and subscription data. Use compatible, matching StoreFront installations and keep a group within one datacenter; use separate groups for geographically separate datacenters.
- **Load balance** the group behind a stable access name, configure the **Base URL**, and propagate configuration changes to all members. A load balancer distributes requests; configuration propagation keeps member behavior consistent.
- Scale by measuring **CPU**, memory, authentication and replication load. More group members create additional replication work; adding servers alone does not guarantee linear capacity growth.
- Use **configuration export/import** for backup and recovery. Match the supported StoreFront release and IIS site identity, protect backup secrets, and install required authentication extensions. Treat an import as a configuration replacement and validate it before use.
Subscriptions and replication
- **Subscriptions** are a user's selected or favorite resources. The **Citrix Subscriptions Store** service manages their storage and replication; the subscription database file is **PersistentDictionary.edb**.
- Subscription replication within a **server group** differs from synchronization between separate groups. Configure cross-group synchronization and its schedule with the StoreFront PowerShell interfaces.
- Subscription synchronization uses **TCP 808**. Cross-group configuration also requires appropriate authorization, including peer machine accounts in **CitrixSubscriptionsSyncUsers**; an open firewall port alone is insufficient.
Aggregation and Gateway routing
- **Multi-site aggregation** presents equivalent applications or desktops as one resource. Align resource identity and published names across participating deployments; compatible delivery settings matter more than matching an executable's filesystem path alone.
- Resource selection considers **existing sessions**, availability and the configured user mapping, load-balancing or failover rules. Aggregation merges presentation; it does not merge sites or their SQL databases.
- **Optimal Gateway Routing** selects the Gateway appropriate to the resource location. Users can enumerate resources through their entry StoreFront while the HDX connection uses a Gateway near the selected resource.
- Without **Optimal Gateway Routing**, launch routing normally follows the Gateway through which the user entered. Authentication, enumeration and the HDX data path are separate stages and can use different locations.
Gateway, STA and XML integration
- **Secure Ticket Authority (STA)** issues and validates short-lived launch tickets. On-premises Delivery Controllers provide STA; Cloud Connectors can provide it for a cloud control plane. Configure redundant STAs consistently on Gateway and StoreFront.
- StoreFront's **Delivery Controller transport and XML port** must match the Controller listener. Change the configured server entry through the StoreFront console or PowerShell, then propagate and test enumeration and launch.
- For **Gateway authentication failures**, check the session profile's StoreFront URL, HTTPS callback configuration, DNS reachability and certificate chain. A successful external TLS handshake does not prove StoreFront can validate the callback.
- **Domain pass-through** requires Workspace app SSO components and appropriate StoreFront authentication and trusted-domain settings. Where required, configure **TrustRequestsSentToTheXmlServicePort** on the Broker; limit XML trust to trusted infrastructure.
Authentication and session security
Federation and Windows logon
- **SAML** lets an identity provider authenticate a user and return an assertion to a service provider. A redirect to the identity provider and back can complete without another prompt when an identity-provider session already exists.
- A **SAML assertion** does not contain the user's Windows password. Successful Gateway or StoreFront authentication alone does not provide password-based Windows SSO to a VDA; **Federated Authentication Service (FAS)** supplies a certificate-based logon path.
- **FAS** integrates with AD Certificate Services to obtain authorized user logon certificates. During launch, the VDA communicates with FAS for the user certificate and associated logon operations; Gateway does not replace the issuing CA.
- Troubleshoot **FAS SSO** through applied FAS policy, authorized StoreFront and VDA rules, FAS server DNS and reachability, certificate enrollment and AD trust. The VDA must receive and resolve the intended FAS server configuration.
Smart cards and PIN behavior
- **Smart-card authentication** requires a functioning PKI, trusted certificate chains, suitable logon certificates and supported reader or middleware components. Validate endpoint and VDA support as well as Gateway and StoreFront authentication methods.
- **Smart-card pass-through** depends on reader, middleware and PIN-caching behavior. A BYOD endpoint can encounter separate certificate authentication and Windows logon operations; a fixed number of PIN prompts is not universal.
- **Fast smart card** optimizes cryptographic redirection for high-latency sessions compared with traditional PC/SC redirection. Use a compatible VDA and Workspace app pair; it does not support changing the card's PIN.
Encryption and certificate trust
- Protect each **TLS hop** separately: client to access endpoint, load balancer to StoreFront, StoreFront to Controllers, and the configured HDX path. Encryption at the load balancer does not automatically encrypt backend traffic.
- For **VDA TLS**, install an appropriate server certificate and private key on the VDA, enable its TLS listener, and align routing, names and trust. A certificate installed only on StoreFront or a Controller does not encrypt the VDA's listener.
- A **Session Recording** secure-channel trust error calls for certificate-chain, hostname, validity and trusted-root checks on the agent host. Distinguish TLS trust failures from an unreachable recording server or a policy that does not record.
- **HSTS** tells browsers to use HTTPS after a valid policy is received. Security response headers can constrain browser behavior. These controls complement patching, identity controls and endpoint protection; they do not guarantee prevention of phishing or ransomware.
Application control and HDX restrictions
- **SmartAccess** uses Gateway access conditions to select Citrix session policies. **SmartControl** applies ICA policies on Gateway, allowing central redirection controls for sessions that traverse it across multiple sites.
- For **clipboard direction**, client-to-session writes affect the **session clipboard**; session-to-client writes affect the **client clipboard**. Pair the appropriate restrict-write policy with its allowed-formats policy, and validate both transfer directions.
- **AppLocker** controls supported executables, scripts, installers, packaged apps and DLLs through rule collections. **Audit** records what would be blocked; enforcement blocks it. Avoid managing the same rules concurrently through conflicting WEM and native AppLocker interfaces.
- Reduce **session escape** impact using least privilege, NTFS permissions, application allow rules, antivirus and restricted administrative tools. Hiding a drive or dialog changes the interface; filesystem authorization controls actual access.
- Disable unnecessary **HDX channels** and redirections. An HTML5 browser launch avoids handing the user a conventional downloaded ICA file, but protecting launch artifacts still requires sound authentication, short-lived tickets and appropriate access controls.
Citrix App Layering and image management
ELM, repository and file shares
- The **Enterprise Layer Manager (ELM)** is a virtual appliance hosting the web management console. It orchestrates packaging, layer versions, templates and image publication through platform connectors.
- The **repository** retains OS, Platform and App layers and their versions. External **SMB storage** serves Elastic layer disks and assignment metadata, and stores User Layers. Distinguish repository storage from published output and user data.
- Plan **storage capacity**, network bandwidth, share availability and access rights independently. User Layer writes and Elastic layer attachment depend on the share; adding ELM disk capacity does not fix an unavailable SMB server.
- For another ELM appliance, use supported **layer export/import** through a share and retain dependencies. Do not assume that two appliances synchronize automatically or that copying live repository disks provides a valid recovery method.
OS, Platform and App layers
- An **OS Layer** supplies Windows; an **App Layer** supplies installed applications; a **Platform Layer** supplies destination-specific hypervisor, provisioning and connection-broker components. An image template selects the layers and versions to combine.
- Use a clean, prepared **OS Layer** and separate incompatible operating-system families or architectures. App and Platform layers are associated with the OS layer used to build them; a new OS family is not an interchangeable layer version.
- Use a **Platform Layer** appropriate to each destination hypervisor and provisioning method. Select the target platform and connector, install required platform components on its packaging machine, then finalize the layer.
- An **App Layer** may contain one application or a compatible application set. A **recipe** documents application-specific installation and preparation steps; it is guidance for packaging, not an infrastructure deployment script.
Packaging, finalization and versions
- Create a layer or add a **version**, select its OS dependency and connector, and let ELM prepare a **packaging machine**. Install from accessible installation media, complete configuration and prerequisites, then finalize.
- Resolve **pending reboots**, active MSI installations and unfinished driver operations before finalization. A deployable layer must capture completed installation work, not an interrupted setup state.
- Control **Windows and application updates** during packaging and in deployed images. Apply managed updates to the appropriate layer version, update templates to select it, publish and test. An OS update does not require rebuilding every App Layer automatically.
- **Layer priority** resolves overlapping files and registry entries; higher-priority content wins. Test dependent applications together and use supported priority tooling when necessary. Unrelated layers do not guarantee complete application isolation.
- For **Office**, follow its activation and packaging recipe and complete background optimization before finalizing. Deliver Office in the composed image rather than elastically. Manage antivirus definitions and major upgrades through a supported security-product and layer-update workflow.
Templates and image publication
- An **image template** is a repeatable selection of OS, Platform and App layer versions plus publishing settings. Updating a layer does not change provisioned desktops until the applicable image is republished and deployed.
- For **Machine Creation Services (MCS)**, publish the template through the destination connector to produce a master image or VM. Use the hypervisor output in the normal Studio catalog creation or update workflow.
- For **Citrix Provisioning**, publish the appropriate vDisk output. App Layering composes the image; MCS or Provisioning handles machine delivery. App layers are not individually published as normal Studio applications.
- Count **OS families** separately from **destination images**. Two OS families delivered to two hypervisors normally need two OS layers and four destination image combinations, with compatible platform layers and reusable App Layers. Retain recoverable master images and versions.
Elastic applications and User Layers
- **Elastic App Layers** attach entitled applications at logon rather than embedding them in every base image. Use them for compatible apps needed by selected users or groups; keep broadly required apps in the composed image when appropriate.
- Elastic delivery requires a configured **SMB share**, adequate network performance, enabled image settings and correct assignments. Boot drivers, network-stack changes and some enterprise applications are unsuitable for elastic delivery.
- A **Full User Layer** preserves a user's settings, data and supported locally installed applications on a nonpersistent, single-session desktop. It is not a general way to add boot-time drivers or give isolated personalization to every user of a shared server.
- The **Office 365** and **Session Office 365** User Layer types retain Outlook data and settings for desktop and session-host use respectively. These deprecated types are distinct from Full User Layers; use Profile Management for broader profile and Office requirements.
- Configure **User Layer folder permissions** on the file server, combining share access with NTFS permissions and inheritance. Users need suitable list, attribute and create-folder rights on the parent and control of their own data without access to other users' layers.
Workspace Environment Management and troubleshooting
WEM architecture and availability
- **Workspace Environment Management (WEM)** combines environment actions, profile settings and runtime resource optimization. The **Administration Console**, **Infrastructure Service**, SQL database and endpoint **Agent** have distinct roles.
- Multiple **WEM infrastructure servers** share a database; they do not elect a primary broker to copy settings between peers. Load balance required service endpoints through Citrix ADC and protect the database with a supported SQL HA design.
- Typical on-premises ports are **TCP 8284** for console access and **8286** for agent service traffic. Cache synchronization uses **8288** in newer deployments or **8285** in older deployments; check the configured listener rather than confusing either with the console port.
- The **WEM service** hosts its infrastructure and database in Citrix Cloud. Customer-managed agents, identity access and workloads remain necessary. On-premises migration uses the supported migration toolkit and export/import process, with source compatibility checked first.
Configuration sets, actions and filters
- A **configuration set** groups WEM settings and assignments for associated agents. An agent uses its assigned set; create separate sets when agent populations require different global behavior. A set is independent of a CVAD site boundary.
- Add appropriate **AD users, groups, machines or OUs**, define an **action**, build its **conditions and filter**, then assign it to the target identity. Enable processing for the action type; a correct assignment cannot compensate for disabled drive or printer processing.
- Distinguish **Client IP Address Match** and **Client OS** from the agent machine's IP or OS platform. Endpoint conditions identify where the user connects from; server conditions identify where the session runs.
- WEM queries **Active Directory** for identity information. Validate directory connectivity and search settings, and review existing **GPOs** for conflicts. Delegate **Assignment Manager** for resource allocation and **Action Manager** for action administration.
Agent cache, upgrades and processing
- The **WEM Agent** runs on supported Windows desktop or server workloads and caches configuration locally. **Offline mode** uses available cached data; it cannot retrieve new infrastructure changes while disconnected.
- A **nonpersistent machine** loses a cache stored only on its discarded OS disk at restart. Rebuild or refresh the cache through the Infrastructure Service, or use a supported persistent-cache design and prepare the master image correctly.
- Before a **WEM upgrade**, back up the database and configuration. Upgrade infrastructure services and the database before the console, then upgrade agents using the supported sequence and compatible components.
- If **Fast Logoff** does not apply, check the agent's configuration-set membership, exclusions, feature processing and current configuration. Confirm connectivity and cache freshness before assuming a resource assignment or a different VDA OS will resolve it.
CPU, memory, I/O and process control
- **CPU spike protection** reduces the priority of processes that sustain excessive CPU demand, helping preserve responsiveness. **CPU clamping** imposes a configured usage ceiling; **affinity** restricts the processors a process can use.
- A **single-threaded process** can saturate one core while showing modest total-server CPU usage. Choose thresholds and controls using core count and measured contention; affinity is not equivalent to a percentage usage limit.
- **Memory Management** trims eligible idle processes' excess working sets so memory can be reused. Exclude sensitive applications when needed and monitor paging; trimming does not create physical RAM.
- **I/O Management** changes process I/O priority to reduce contention. **Process Management** allows or blocks named executables; an allowlist blocks processes outside the list. Resource optimization and application security serve different purposes.
- **Citrix Optimizer** applies workload-oriented OS optimizations to a prepared image. **WEM** manages runtime resources and user settings. Measure both changes against a representative baseline instead of assuming every tuning option improves every workload.
Environment, profiles and Transformer
- **Environmental Settings** shape the desktop, Start menu, Explorer and other session behavior. **SBC/HVD Tuning** controls experience settings such as cursor blink and menu delay. Confirm environmental processing is enabled and GPOs do not counteract it.
- **Hide Specified Drives** removes a drive from the interface; **Restrict Specified Drives** restricts Explorer access. Use filesystem permissions to enforce security beyond Explorer and test application open/save behavior.
- **Streamed user profiles** retrieve profile content as needed instead of loading everything before the desktop appears. Combine this with appropriate exclusions and synchronization rules; the profile store still needs reliable access.
- **Profile Management Health Status** identifies configuration problems or suboptimal settings. Review **UpmConfigCheckOutput.xml** for check results and the Profile Management logs for runtime failures; a warning is not simply an agent-version indicator.
- **Transformer** turns the agent machine into a kiosk-style access environment. If the web portal logs off after session launch, configure StoreFront Workspace Control so portal logoff does not also log off the launched session.
Registration and diagnostic tools
- For **VDA registration**, check the Citrix Desktop Service (**BrokerAgent.exe**) on the VDA and Broker Service (**BrokerService.exe**) on Controllers. Validate DNS, domain trust, time synchronization, Controller discovery and the configured registration port.
- Inspect **ListOfDDCs**, policy-delivered Controller lists and **Controller auto-update** together. Registration needs name resolution and Kerberos authentication. Stale production-site targets can prevent DR registration even when recovery Controllers are healthy.
- Use **Director** for sessions, launch failures and trends; **Health Assistant** for focused VDA registration checks; **Scout** for environment and support-data collection; **CDF Control** for detailed traces on the VDA and relevant Controller.
- **Get-BrokerSite** inspects site configuration; **Get-BrokerController** inspects Controllers; **Get-BrokerSession** inspects sessions. **Get-BrokerConnectionLog** shows recent connection attempts; **Get-BrokerDBConnection** inspects the Broker database connection string.
- Use **Get-BrokerSite** licensing properties when checking site license state, and service-specific tests for database connectivity or transaction health. The VDA reports **load index** information used by the Broker for session distribution.
- For Gateway, **aaad.debug** traces authentication processing and **ns.log** contains system and audit events. **Citrix Analytics** adds behavior or performance insights; compare daily performance with a stable baseline and correlate alerts with infrastructure evidence.