An Identity and Access Management (IAM) Architect is recommending Identity Connect to integrate
Microsoft Active Directory (AD) with Salesforce for user provisioning, deprovisioning and single sign-on
(SSO).
Which feature of Identity Connect is applicable for this scenario?
Show answerHide answer
Correct answer: DWhen Identity Connect is in place, if a user is deprovisioned in an on-premise AD, the user’s Salesforce
session is revoked immediately.
Explanation
Explanation:
This question tests your understanding of Salesforce Identity Connect capabilities when integrating Microsoft Active Directory. It focuses on user lifecycle management and security controls that Identity Connect provides beyond basic provisioning and SSO between AD and Salesforce.
✔️ Correct Option:
D. When Identity Connect is in place, if a user is deprovisioned in an on-premise AD, the user’s Salesforce session is revoked immediately.
Identity Connect supports real-time deprovisioning. When a user is disabled or deleted in AD, Identity Connect immediately deactivates the Salesforce user and revokes active sessions via the Identity Connect Event Monitoring integration. This ensures terminated users lose Salesforce access instantly, which is critical for compliance.
❌ Incorrect options:
A. Identify Connect can be deployed as a managed package on Salesforce org, leveraging High Availability of Salesforce Platform out-of-the-box.
Identity Connect is not a managed package installed in the Salesforce org. It’s a separate on-premise Java application that you install and manage on your own servers. It does not automatically inherit Salesforce platform HA and must be clustered manually for high availability.
B. When configured, Identity Connect acts as an identity provider to both Active Directory and Salesforce, thus providing SSO as a default feature.
Identity Connect is not an identity provider. It acts as a provisioning bridge between AD and Salesforce. For SSO, you still need a separate SAML IdP like AD FS or Azure AD. Identity Connect itself doesn’t issue SAML assertions, so SSO is not a default feature of Identity Connect.
C. If the number of provisioned users exceeds Salesforce licence allowances, Identity Connect will start disabling the existing Salesforce users in First-in, First-out (FIFO) fashion.
Identity Connect does not automatically disable users based on license counts or use FIFO logic. Provisioning stops or fails if you hit license limits, and admins must resolve it. Salesforce will not auto-deactivate existing users, as that would cause data and access issues.
🔧 Reference:
→ Salesforce Help – Identity Connect – Confirms Identity Connect synchronizes user changes from AD to Salesforce and immediately deactivates users plus revokes sessions when they are removed from Active Directory.
Question 22Choose 1
Northern Trail Outfitters wants to enable single sign-on (SSO) for its Salesforce platform by integrating it
with an identity provider (IdP).
Which step should be performed to establish the trust between Salesforce and the identity provider (IdP)?
Show answerHide answer
Correct answer: CConfiguring a trust relationship by exchanging metadata XML files between Salesforce and the IdP.
Explanation
Explanation:
This question tests knowledge of establishing trust between Salesforce (as Service Provider) and an external identity provider for SAML-based SSO. SAML trust is established through metadata exchange, where both parties share XML files containing entity IDs, certificate public keys, endpoints, and binding configurations. This allows each system to cryptographically verify assertions and redirect URIs without custom code or network tunnels.
✔️ Correct Option:
✔️ C. Configuring a trust relationship by exchanging metadata XML files between Salesforce and the IdP.
SAML 2.0 defines metadata XML containing issuer URIs, X.509 certificates, endpoints (ACS for SP, SSO for IdP), and supported bindings. Admins upload IdP metadata into Salesforce's SAML SSO settings and provide Salesforce metadata to the IdP. This establishes cryptographic trust and correct message routing. This is the standard, code-free method recommended by Salesforce.
❌ Incorrect options:
❌ A. Setting up a VPN (Virtual Private Network) tunnel between Salesforce and the identity provider for secure communication.
SAML communications happen over standard HTTPS (port 443) with TLS, not VPN tunnels. VPN is unnecessary, often impossible (Salesforce cannot join customer VPNs), and adds operational overhead. SAML security relies on XML signatures and HTTPS, not network-layer tunnels.
❌ B. Embedding the identity provider's authentication code directly into Salesforce source code.
Salesforce is a multi-tenant cloud platform; customers cannot embed external authentication code into core Salesforce source code. This violates platform architecture, security boundaries, and upgradeability. SAML integration requires configuration, not code injection.
❌ D. Creating a custom login page within the Salesforce platform for user authentication.
A custom login page changes the UI but does not establish trust with an external IdP. In SAML SSO, authentication occurs at the IdP, not on a Salesforce login page. This option defeats SSO by keeping authentication within Salesforce instead of delegating to the IdP.
🔧 Reference:
→ Salesforce Help: Configure SAML SSO with Metadata Files
Confirms that admins can upload IdP metadata XML to Salesforce or download Salesforce SP metadata for the IdP to establish a trust relationship.
Question 23Choose 3
Universal Containers is creating a mobile application that will be secured by Salesforce Identity using the
OAuth 2.0 user-agent flow (this flow uses the OAuth 2.0 implicit grant type). Which three OAuth concepts
apply to this flow?
Choose 3 answers
Show answerHide answer
Correct answer: A, B, EScopesClient IDRefresh Token
Explanation
Explanation:
This question explores the fundamental components of the OAuth 2.0 User-Agent Flow, which is typically utilized by mobile and desktop applications. It tests the architect's ability to identify which parameters are required to define permissions and establish long-term access in a browser-based redirection model.
✅ Option A: Scopes:
Scopes are essential in the User-Agent flow as they define the specific permissions the mobile application is requesting, such as api, web, or refresh_token. During the flow, these scopes are presented to the user on the authorization screen, allowing them to explicitly grant or deny the application access to specific parts of their Salesforce data.
✅ Option B: Client ID:
The Client ID (known as the Consumer Key in Salesforce) is a unique identifier for the Connected App. In the User-Agent flow, the mobile app must provide this ID in the initial authorization request so Salesforce can identify which application is requesting access and apply the correct security policies and redirect URIs configured for that specific app.
✅ Option E: Refresh Token:
While the standard OAuth 2.0 Implicit Grant does not typically support refresh tokens, the Salesforce User-Agent flow does allow an application to request a refresh_token scope. If granted, Salesforce returns a refresh token alongside the access token, enabling the mobile app to maintain long-term access without requiring the user to re-authenticate every time the short-lived access token expires.
❌ Option C: Authorization Code:
The Authorization Code is a concept exclusive to the OAuth 2.0 Web Server Flow, where a temporary code is exchanged for an access token on a secure backend server. In the User-Agent flow (Implicit Grant), no intermediate code is used; the access token is returned directly in the URL fragment after the user authenticates.
❌ Option D: Verification Code:
A "Verification Code" is generally used in the Device Flow (for devices with no browser) or during Multi-Factor Authentication (MFA) challenges. It is not a core architectural component of the standard OAuth 2.0 User-Agent flow used to establish the identity and permission handshake between a mobile client and Salesforce.
🔧 Reference:
→ Salesforce Help: OAuth 2.0 User-Agent Flow
This documentation confirms that Client ID, Scopes, and Refresh Tokens are integral parts of the User-Agent flow used to secure mobile and desktop apps.
Question 24Choose 3
Northern Trail Outfitters (NTO) has an existing business-to-consumer (B2C) website that does NOT support
single sign-on standards, such as Security Assertion Markup Language (SAML) or OAuth. NTO wants to use
Salesforce Identity to register and authenticate new customers on the website.
Which three Salesforce features should an Identity architect use in order to provide social sign-in capabilities
for the website?
Choose 3 answers
Show answerHide answer
Correct answer: A, B, DConnected AppsAuthentication ProvidersEmbedded Login
Explanation
Explanation:
This scenario is about enabling social sign-in for a B2C website that does not support SAML or OAuth natively. Salesforce Identity must provide external authentication, user registration, and seamless login integration.
You need features that support:
Social identity federation
External app trust
Embedded customer login experience
🟢 Correct Options:
A. Connected Apps
Connected Apps establish the trust framework between Salesforce and external applications. They are required to configure authentication flows, define access policies, and enable secure integration for external websites using Salesforce Identity services.
B. Authentication Providers
Authentication Providers enable social login and external identity federation (Google, Facebook, etc.). They allow users to authenticate using third-party identity systems and map external identities into Salesforce customer records. This is the core feature for social sign-in.
D. Embedded Login
Embedded Login allows Salesforce authentication and registration UI to be embedded directly into a B2C website. It is essential when the external system does not support SAML or OAuth, providing seamless login without requiring protocol implementation on the website.
🔴 Incorrect Options:
C. Delegated Authentication
Delegated Authentication forwards password validation to an external system. It is not designed for social login or identity federation and does not support modern customer authentication experiences.
E. Identity Connect
Identity Connect is used for syncing enterprise users between Active Directory and Salesforce. It is intended for internal workforce identity management, not B2C social sign-in or customer authentication.
🔧 Reference:
→ Salesforce Identity – Authentication Providers and Social Sign-On
This document explains how Salesforce uses Authentication Providers, Connected Apps, and Embedded Login to enable social sign-in and external customer authentication for B2C websites.
Question 25Choose 1
Universal Containers (UC) is planning to add Wi-Fi enabled GPS tracking devices to its shipping containers
so that the GPS coordinates data can be sent from the tracking device to its Salesforce production org via a
custom API. The GPS devices have no direct user input or output capabilities.
Which OAuth flow should the identity architect recommend to meet the requirement?
This question tests the right OAuth flow for a device-to-Salesforce integration where no user interface exists. Since the GPS trackers have no direct user input or output, a device-focused flow is needed rather than a user interactive or server login flow.
Option A ✔️ OAuth 2.0 Asset Token Flow for Securing Connected Devices
This is the best choice because Salesforce designed the Asset Token flow for connected devices such as IoT hardware. It supports device identity and secure data exchange without user interaction, which matches GPS trackers sending coordinates through a custom API to Salesforce production org.
Option B ❌ OAuth 2.0 Web Server Flow for Web App Integration
The Web Server flow is meant for browser-based apps where a user can sign in interactively. These GPS devices have no user interface, so this flow is not suitable for machine-to-machine device authentication.
Option C ❌ OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration
JWT Bearer flow is useful for server-to-server integrations, but here the source is a connected device with no user input or output. Salesforce recommends Asset Token flow specifically for connected devices, so it is the more accurate fit.
Option D ❌ OAuth 2.0 Username-Password Flow for Special Scenarios
This flow requires storing a username and password, which is not appropriate for unattended IoT devices. It is also considered a special-case approach, not the recommended model for secure device-based integrations.
When designing a multi-branded Customer Identity and Access Management solution on the Salesforce
Platform, how should an identity architect ensure a specific brand experience in Salesforce is presented?
Show answerHide answer
Correct answer: AThe Experience ID, which can be included in OAuth/Open ID flows and Security Assertion Markup Language (SAML) flows as a URL parameter.
Explanation
Explanation:
This question tests knowledge of multi-branded Customer Identity and Access Management (CIAM) on the Salesforce Platform. When multiple brands share a single Salesforce org, an identity architect must ensure each brand's users land on the correct branded experience. Salesforce provides a native mechanism to handle this through Experience Cloud and its associated parameters.
✅ A. The Experience ID, which can be included in OAuth/Open ID flows and Security Assertion Markup Language (SAML) flows as a URL parameter.
Salesforce supports the community URL parameter (Experience ID) that can be passed in both OAuth/OpenID and SAML authentication flows. This natively directs users to the correct branded Experience Cloud site without any custom development, making it the cleanest and most architecturally sound approach for multi-brand CIAM implementations.
❌ B. The Audience ID, which can be set in a shared cookie.
There is no standard Salesforce concept called Audience ID used for brand routing via shared cookies. Shared cookies introduce security and cross-domain concerns and are not a recommended or supported Salesforce-native mechanism for directing users to specific branded experiences during authentication flows.
❌ C. Add a custom parameter to the service provider's OAuth/SAML call and implement logic on its login page to apply branding based on the parameters value.
While technically possible, this approach requires custom development and logic on the login page, adding unnecessary complexity and maintenance overhead. Salesforce already provides the native Experience ID parameter for this exact purpose, making this option redundant and inefficient.
❌ D. Provide a brand picker that the end user can use to select its sub-brand when they arrive on Salesforce.
Asking end users to manually select their brand creates a poor user experience and introduces the risk of users selecting the wrong brand. Authentication flows should be seamless and transparent — brand routing must happen automatically based on system parameters, not user input.
🔧 Reference:
→ Experience Cloud SSO and OAuth Configuration – Salesforce Help
Confirms use of the community URL parameter in SAML and OAuth flows to route users to specific branded Experience Cloud sites within a single Salesforce org.
Question 27Choose 2
A technology enterprise is planning to implement single sign-on login for users. When users log in to
Salesforce, data should be populated in User object custom fields.
Which two steps should an identity architect recommend?
Choose 2 answers
Show answerHide answer
Correct answer: A, CImplement Auth.SamJitHandler Interface.Create and update methods.
Explanation
Explanation:
This question tests SAML Just-in-Time provisioning in Salesforce. When users SSO into Salesforce via SAML, you can auto-create or update users and map assertion attributes to standard or custom fields on the User object. To populate custom fields, you must use a custom Apex handler class.
✔️ Correct Option:
A. Implement Auth.SamlJitHandler Interface
For SAML SSO, Salesforce provides Auth.SamlJitHandler to customize JIT provisioning. Implementing this interface lets you control how assertion attributes from the IdP map to Salesforce User fields, including custom fields. This is required when standard JIT field mapping is insufficient for custom logic or fields.
C. Create and update methods
The Auth.SamlJitHandler interface requires you to implement createUser and updateUser methods. Inside these methods you write Apex to read incoming SAML attributes and populate both standard and custom User fields. Without these methods, Salesforce cannot know how to set custom field values during JIT.
❌ Incorrect options:
B. Implement SessionManagement Class
SessionManagement is used for transaction security policies and monitoring active sessions. It has no role in SAML JIT provisioning or populating User fields during SSO login, so it doesn’t meet the requirement.
D. Implement RegistrationHandler Interface
Auth.RegistrationHandler is used for Social Sign-On and OpenID Connect with Auth Providers, mainly for Communities. For SAML JIT with Salesforce as the service provider, you must use Auth.SamlJitHandler, not RegistrationHandler. Using the wrong interface won’t work for SAML SSO.
🔧 Reference:
→ Salesforce Developer Guide – Auth.SamlJitHandler Interface – Confirms this interface is used to customize SAML JIT provisioning and requires createUser and updateUser methods to map attributes to User fields.
Universal Containers (UC) is building a custom employee hub application on Amazon Web Services (AWS)
and would like to store their users ' credentials there. Users will also need access to Salesforce for internal
operations. UC has tasked an identity architect with evaluating different solutions for authentication and
authorization between AWS and Salesforce.
How should an identity architect configure AWS to authenticate and authorize Salesforce users?
Show answerHide answer
Correct answer: DConfigure AWS as an OpenID Connect Provider.
Explanation
Explanation:
In this scenario, UC wants to:
Store user credentials in AWS (so AWS is the identity source).
Allow users to access Salesforce for internal operations using those AWS-stored credentials.
This means AWS will act as the Identity Provider (IdP), and Salesforce will be the Service Provider (SP) that trusts AWS to authenticate users. To integrate an external IdP (AWS) with Salesforce for user authentication and authorization, you configure the external IdP as an OpenID Connect (OIDC) Provider in Salesforce. This allows Salesforce to accept OIDC tokens from AWS and map them to Salesforce users for Single Sign-On (SSO).
Analysis of Other Options Create a custom external authentication provider: This is a misdirection. While you do create an Authentication Provider in Salesforce, it is not "custom" in the sense of building a new authentication system. Instead, you configure a standard OpenID Connect Authentication Provider in Salesforce and point it to AWS Cognito or another OIDC-compliant service.
Develop a custom Auth server in AWS: This approach is unnecessary and overly complex. AWS already provides managed identity services such as Amazon Cognito, which fully supports OpenID Connect. There is no need to build a custom authorization server when a standards-based solution already exists.
Configure the custom employee app as a connected app: A Connected App in Salesforce is used when Salesforce acts as the Identity Provider or when external applications need API access. In this case, AWS is the Identity Provider, so the employee app does not need to be configured as a Connected App for authentication into Salesforce. Instead, Salesforce must be configured to trust AWS.
Conclusion
The correct approach is to configure AWS (using Cognito User Pools) as an OpenID Connect Provider in Salesforce Authentication Provider settings. This establishes AWS as the identity source and allows users stored in AWS to authenticate seamlessly into Salesforce using Single Sign-On.
Reference
Salesforce Help: Set Up an OpenID Connect Authentication Provider
Salesforce Identity Implementation Guide: Authentication Providers for inbound SSO
Question 29Choose 1
Universal Containers wants to secure its Salesforce APIs by using an existing Security Assertion Markup
Language (SAML) configuration that supports the company ' s single signon process to Salesforce.
Which Salesforce OAuth authorization flow should be used?
Requirement: UC wants to secure Salesforce APIs while leveraging an existing SAML configuration that already supports their single sign-on (SSO) process to Salesforce.
Option B - OAuth 2.0 SAML Bearer Assertion Flow (Correct)
This flow allows a client application to obtain an OAuth access token by presenting a valid, signed SAML assertion that was issued by the company's existing SAML Identity Provider (IdP). Since UC already has a SAML configuration for SSO, this flow reuses that same IdP and trust relationship. The app gets a SAML assertion from the existing IdP, sends it to Salesforce's OAuth token endpoint, and receives an OAuth access token to call APIs. This perfectly fulfills the requirement of securing APIs using the existing SAML infrastructure.
Option A - OAuth 2.0 JWT Bearer Flow (Incorrect)
This flow uses a JSON Web Token (JWT) signed with a certificate, not a SAML assertion. While it is a valid OAuth flow for server-to-server integration, it does not leverage an existing SAML configuration. It requires separate certificate management and does not reuse the SAML SSO IdP.
Option C - OAuth 2.0 User-Agent Flow (Incorrect)
This flow is designed for client-side applications (like JavaScript SPAs or mobile apps) where the OAuth process runs entirely in the user agent (browser). It does not involve SAML at all and does not leverage an existing SAML configuration. It's typically used for browser-based apps that can't securely store a client secret.
Option D - SAML Assertion Flow (Incorrect)
"SAML Assertion Flow" is not a standard OAuth 2.0 authorization grant type defined in the Salesforce OAuth specification. The official name is OAuth 2.0 SAML Bearer Assertion Flow (sometimes called SAML 2.0 Bearer Assertion Flow for OAuth 2.0). This option appears to be a distractor that sounds similar but is not the precise technical term.
Summary
The OAuth 2.0 SAML Bearer Assertion Flow is purpose-built exactly for this scenario: it bridges SAML and OAuth, allowing an organization to reuse its existing SAML IdP investment to secure API access via OAuth tokens.
Reference
Salesforce Help: OAuth 2.0 SAML Bearer Assertion Flow — "Use this flow to get an access token using a SAML assertion when you already have a SAML single sign-on configuration."
Salesforce Developer Documentation: OAuth 2.0 SAML Bearer Assertion Flow — "This flow allows use of a SAML 2.0 identity provider to authorize API access to Salesforce."
Question 30Choose 1
A web service is developed that allows secure access to customer order status on the Salesforce Platform. The
service connects to Salesforce through a connected app with the web server flow. The following are the
required actions for the authorization flow:
1. User Authenticates and Authorizes Access
2. Request an Access Token
3. Salesforce Grants an Access Token
4. Request an Authorization Code
5. Salesforce Grants Authorization Code
What is the correct sequence for the authorization flow?
Show answerHide answer
Correct answer: A4, 1, 5, 2, 3
Explanation
Explanation:
The OAuth 2.0 Web Server Flow (also called the Authorization Code Grant flow) is designed for server-side applications that securely store client secrets. The correct sequence of steps is:
Step 4 — Request an Authorization Code
The client app redirects the user to Salesforce’s authorization endpoint.
Step 1 — User Authenticates and Authorizes Access
The user logs in (authenticates) and approves the app’s access request.
Step 5 — Salesforce Grants Authorization Code
Salesforce returns an authorization code to the client app via the redirect URI.
Step 2 — Request an Access Token
The client app sends the authorization code (along with client credentials) to Salesforce’s token endpoint.
Step 3 — Salesforce Grants an Access Token
Salesforce validates the request and issues an access token (and optionally a refresh token).
So the correct order is: 4 → 1 → 5 → 2 → 3.
Why the other sequences are incorrect
4, 5, 2, 3, 1: Places user authentication last, which is impossible.
1, 4, 5, 2, 3: User authentication must occur after the authorization request, not before.
2, 1, 3, 4, 5: Starts with token request, which cannot happen before authorization.
References
Salesforce Help: OAuth 2.0 Web Server Flow
Trailhead: Connected Apps and OAuth Flows
Full mock exam
Sit the Salesforce-Platform-Identity-and-Access-Management-Architect exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Platform-Identity-and-Access-Management-Architect exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.