All SAP exams

Free SAP Certified Associate - Generative AI Developer practice test: 30 questions with answers

30 original questions for SAP Certified Associate - Generative AI Developer, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
112 questions

SAP Certified Associate - Generative AI Developer exam guide: topics, cost and format

All 30 SAP Certified Associate - Generative AI Developer questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Large Language Models (8 questions)

  1. Question 1

    Which concept describes the text unit that a language model reads and produces, and that is counted for usage and limits?

    1. AHyperparameters, which are the settings chosen before training starts on the data
    2. BEmbeddings, which are the vectors that represent documents in a search index
    3. CTokens, which are the units of text that a model reads and generates
    4. DCheckpoints, which are the saved states of a model's weights during training
    Show answer and explanation
    Correct answer: C

    Tokens are the units a model reads and generates, and they drive usage and limits. Embeddings represent meaning, hyperparameters are training settings, and checkpoints save training states.

  2. Question 2

    What is a context window in a large language model?

    1. AThe period during which a model's training data was collected from public sources on the web
    2. BThe browser window that displays the chat between a user and the model in the application
    3. CThe time window during which a model is allowed to be called by the application each day
    4. DThe amount of input and output text the model can consider in one call, measured in tokens
    Show answer and explanation
    Correct answer: D

    The context window is the amount of text, in tokens, that the model can consider in one call. The other options describe a browser window, a call window and a data collection period, none of which is the context window.

  3. Question 3

    A language model sometimes produces confident statements that are not supported by any source. What is this called?

    1. AEmbedding, which is the process of converting text into numeric vectors for search
    2. BHallucination, where the model generates plausible but unsupported content
    3. CQuantisation, which reduces the precision of the model's weights to save memory
    4. DTokenisation, which splits the input text into the units the model reads
    Show answer and explanation
    Correct answer: B

    Hallucination is generated content that is plausible but not supported. Embedding, quantisation and tokenisation are technical processes, not the name for this problem.

  4. Question 4

    Which technique gives a model access to a company's own documents at answer time, instead of retraining the model?

    1. AIncreasing the number of model parameters, which stores the company's documents inside the model
    2. BPre-training from scratch on the company's documents, which takes months and creates a new base model
    3. CLowering the temperature, which makes the model draw on its memory of the company's documents
    4. DRetrieval-augmented generation (RAG), which retrieves relevant passages and adds them to the prompt
    Show answer and explanation
    Correct answer: D

    RAG retrieves relevant passages at answer time and adds them to the prompt, which avoids retraining. Pre-training, temperature and parameter counts do not give access to documents at answer time.

  5. Question 5

    What is the purpose of an embedding in a retrieval system?

    1. ATo encrypt the text of each document, so that only authorised users can read the content
    2. BTo represent the meaning of a text as a vector, so that similar texts can be found by distance
    3. CTo compress the document so that it takes less storage space in the database for the team
    4. DTo format the document for printing, so that the layout is preserved on each page of output
    Show answer and explanation
    Correct answer: B

    An embedding represents meaning as a vector, so similar texts can be found by distance. Encryption, compression and print formatting are different purposes.

  6. Question 6

    Which statement about fine-tuning a language model is correct?

    1. AFine-tuning removes the model's need for a context window, since the knowledge is stored in the weights
    2. BFine-tuning is required whenever a model needs to answer questions about current company documents
    3. CFine-tuning replaces the need for prompt design, since the model learns every instruction permanently
    4. DFine-tuning adapts a model with additional training examples, and is used when the behaviour or style must change
    Show answer and explanation
    Correct answer: D

    Fine-tuning adapts behaviour or style with training examples. Current documents are better served by retrieval, and fine-tuning does not replace prompts or context windows.

  7. Question 7

    Which prompting technique shows the model worked examples of the desired input and output before the real request?

    1. ASilent prompting, which sends the request without any instruction, so the model guesses the task
    2. BZero-shot prompting with no examples, which relies only on the instruction in the prompt
    3. CRandom prompting, which changes the wording of the request on every call to vary the output
    4. DFew-shot prompting, which includes example pairs of input and expected output
    Show answer and explanation
    Correct answer: D

    Few-shot prompting includes example input and output pairs before the real request. Zero-shot gives no examples, and random or silent prompting do not provide guidance.

  8. Question 8

    Which prompt element tells the model its role and the rules it must follow for every answer in a conversation?

    1. AThe completion, which is the text the model produces in response to the prompt it has received
    2. BThe user message, which carries the individual question asked by the person in the chat
    3. CThe system prompt, which sets the role, constraints and format for the model's responses
    4. DThe embedding, which is the vector form of the user's question used to search the index
    Show answer and explanation
    Correct answer: C

    The system prompt sets the role, constraints and format that the model follows. The user message carries the question, the completion is the output, and an embedding is a vector representation.

Generative AI Hub (8 questions)

  1. Question 9

    A developer wants to call a large language model from an SAP application through a central, governed access point, without storing each model provider's credentials in the application. Which SAP capability provides this?

    1. AA direct browser call to the model provider from the Fiori launchpad tile for the application
    2. BA custom ABAP report that stores each provider's API key in a table of the application
    3. CThe generative AI hub in SAP AI Core, which gives governed access to foundation models
    4. DAn SAP HANA stored procedure that copies the model weights into the database each night
    Show answer and explanation
    Correct answer: C

    The generative AI hub in SAP AI Core provides governed, centralised access to foundation models without spreading provider credentials into each application. Storing keys in ABAP tables, browser calls and copying weights into the database all weaken governance.

  2. Question 10

    Which element in the generative AI hub identifies a model that a developer can call, together with the version and the provider?

    1. AA transport request, which moves the model's configuration from development to production
    2. BA Fiori tile for the model, which displays the model name on the launchpad home page
    3. CA deployment configuration, which specifies the model, version and resource group used for calls
    4. DA user group in SAP Identity Authentication, which controls who can see the model's name
    Show answer and explanation
    Correct answer: C

    A deployment configuration names the model, version and resource group used for calls. A tile, a transport request and a user group do not identify the model for API calls.

  3. Question 11

    A developer needs to keep a prompt consistent across many applications, with its placeholders filled in at run time. Which artefact is appropriate?

    1. AA reusable prompt template with defined variables, managed centrally in the hub
    2. BA copy of the prompt pasted into each application's source code by the developer each time
    3. CA screenshot of the prompt stored in a shared document that teams read before calling the model
    4. DA comment in the calling code that describes what the prompt should say to the model
    Show answer and explanation
    Correct answer: A

    A reusable prompt template with defined variables keeps prompts consistent and centrally managed. Copies, screenshots and comments drift apart and cannot be governed.

  4. Question 12

    Which parameter controls how random the model's token choices are, so that lower values give more repeatable answers?

    1. ATemperature, where lower values make the output more deterministic and focused
    2. BThe maximum output tokens, which limit only the length of the answer the model returns
    3. CThe model's context window size, which limits how much input text the model can read
    4. DThe number of retrieved documents, which controls how many results a search returns
    Show answer and explanation
    Correct answer: A

    Temperature controls randomness, and lower values make outputs more repeatable. Output length, context window and retrieved documents control different aspects.

  5. Question 13

    A team wants responses from a model to be filtered for harmful content before they reach users. Which hub feature provides this control?

    1. AA longer system prompt that asks the model to avoid any harmful statements at all times
    2. BContent filtering configured on the model call, with thresholds for the categories filtered
    3. CA higher temperature, which makes the model more cautious about each word it chooses
    4. DA larger context window, which gives the model more space to reflect before answering
    Show answer and explanation
    Correct answer: B

    Content filtering with category thresholds applied to the call filters harmful content in a governed way. Prompts, temperature and context size do not filter outputs reliably.

  6. Question 14

    Before sending a prompt that contains personal data to a model, what should the developer do to limit exposure?

    1. AUse data masking so that personal identifiers are replaced before the prompt is sent
    2. BSend the full record, since the provider is trusted to handle personal data appropriately
    3. CRemove the data from the application's database, so that it cannot be sent at all
    4. DEncode the personal data in base64, which hides the values from the model and the logs
    Show answer and explanation
    Correct answer: A

    Data masking replaces personal identifiers before the prompt is sent, which limits exposure. Trusting the provider, deleting the data and base64 encoding do not protect it, since encoding is not a privacy control.

  7. Question 15

    Which deployment practice keeps a production AI application stable when a newer model version is released?

    1. APin the production deployment to a tested model version, and test the new version separately first
    2. BPoint production at the newest model automatically, so that improvements reach users at once
    3. CRecreate the deployment on every release without recording which model version it uses
    4. DSwitch the production model every day, so that the team can compare the results over time
    Show answer and explanation
    Correct answer: A

    Pinning production to a tested version and testing new versions separately keeps behaviour stable. Automatic upgrades, untracked redeployments and daily switches make results unpredictable.

  8. Question 16

    Which two practices reduce the risk of sensitive data leaking through a generative AI application? (Choose two.)

    1. AMask or remove personal and confidential fields before they are included in a prompt
    2. BLog every full prompt, including personal data, in a shared log that all developers can read
    3. CSend the entire customer database as context, so the model has every fact it might need
    4. DApply access checks so that retrieved content is limited to the users allowed to see it
    5. EUse the same production credentials in the development environment, so tests match production
    Show answer and explanation
    Correct answer: A, D

    Masking sensitive fields before prompts and restricting retrieved content to authorised users both limit leakage. Logging full personal data, sending whole databases and sharing production credentials all increase exposure.

SAP AI Core (7 questions)

  1. Question 17

    In SAP AI Core, what is a resource group used for?

    1. AStoring the source code of the application in the repository for the team to build from
    2. BGrouping the Fiori tiles on the launchpad home page, so that users find their apps more easily
    3. CIsolating AI resources and their configurations for a tenant or team, so that they are kept separate
    4. DRecording the working hours of the team members who develop the AI scenarios each week
    Show answer and explanation
    Correct answer: C

    A resource group isolates AI resources and their configurations for a tenant or team. Fiori tiles, source code and working hours are not what resource groups manage.

  2. Question 18

    What is a deployment in SAP AI Core?

    1. AA printed report of the model's usage, which is produced at the end of each month by the team
    2. BA transport request that moves the configuration of a model from one system to another
    3. CA user account that is granted access to the AI Launchpad for the team's development work
    4. DA running instance of a configured model or workflow, which exposes an endpoint for calls
    Show answer and explanation
    Correct answer: D

    A deployment is a running instance of a configured model or workflow that exposes an endpoint. Transports, accounts and printed reports are not deployments.

  3. Question 19

    Which SAP AI Core concept groups the executable workflow, its inputs and its parameters into a reusable definition?

    1. AA Fiori tile, which presents an application's entry point on the launchpad for the user to open
    2. BA scenario, which groups the executables and their configuration into a reusable definition
    3. CA table in SAP HANA, which stores the rows of data that the application reads and writes
    4. DA notification, which informs the user of the status of a background job in the launchpad
    Show answer and explanation
    Correct answer: B

    A scenario groups executables and their configuration into a reusable definition. Tiles, tables and notifications are not AI Core workflow definitions.

  4. Question 20

    A developer wants an application to call a deployed model securely, without storing a shared password in the code. What should be used?

    1. AService credentials for the deployment, obtained through OAuth client credentials and rotated
    2. BA password written into the source file, which is hidden from other developers by the team
    3. CA single administrator account that all applications share, so that access is simple to manage
    4. DAn anonymous endpoint with no authentication, protected only by the firewall rule on the server
    Show answer and explanation
    Correct answer: A

    Service credentials obtained through OAuth client credentials, and rotated, avoid stored passwords. Shared passwords, shared administrator accounts and anonymous endpoints each weaken security.

  5. Question 21

    Which step should a developer take before promoting an AI scenario from a development tenant to production?

    1. ATest the deployment with representative data and review its results against agreed criteria
    2. BPromote it directly, since the development results are guaranteed to match production behaviour
    3. CDelete the development deployment, so that only one version exists in the landscape at any time
    4. DCopy the production credentials into the development tenant, so that tests use the real data
    Show answer and explanation
    Correct answer: A

    Testing the deployment with representative data against agreed criteria is essential before promotion. Direct promotion, deleting development versions and copying production credentials are unsafe.

  6. Question 22

    Which two items are typically part of an SAP AI Core deployment setup? (Choose two.)

    1. AA resource group that isolates the configuration for the team or tenant
    2. BA printed copy of the model documentation kept in the team's office filing cabinet
    3. CA configuration that names the scenario and the executable to run
    4. DA list of all the employees who have attended the team's internal training course
    5. EA set of colour themes for the Fiori launchpad tiles used by the business users
    Show answer and explanation
    Correct answer: A, C

    A resource group isolates configurations and a configuration names the scenario and executable. Printed documentation, training attendance and colour themes are not part of the deployment setup.

  7. Question 23

    A scenario's workflow needs a new input parameter. Which change should the developer make?

    1. AAdd the parameter only in the developer's local notes, so that teammates know to set it manually
    2. BEdit the deployed model weights directly, so that the parameter is read from inside the model
    3. CChange the parameter in the Fiori tile label, which the workflow reads when it starts each time
    4. DUpdate the scenario's template to declare the parameter, then create a new configuration that supplies it
    Show answer and explanation
    Correct answer: D

    Declaring the parameter in the scenario template and supplying it through a new configuration keeps the workflow reproducible. Editing weights, tile labels and private notes do not define a workflow input.

SAP Business AI (7 questions)

  1. Question 24

    Which SAP Business AI capability embeds generative assistance directly into business applications for users?

    1. AA batch job that emails the user a summary of their open tasks at the end of each shift
    2. BA standalone spreadsheet macro that the user runs by hand on exported data each day
    3. CJoule, the generative assistant that is integrated into SAP applications for users
    4. DA database index that speeds up queries on the tables of the application for reporting
    Show answer and explanation
    Correct answer: C

    Joule is SAP's generative assistant integrated into SAP applications. Spreadsheet macros, batch emails and database indexes are not embedded assistance.

  2. Question 25

    Why should a business AI feature keep a human in the loop for high-impact decisions?

    1. ABecause the system cannot produce any output at all without a human typing the final answer each time
    2. BBecause a human review limits the risk of an incorrect or unfair output causing harm to the business
    3. CBecause human review makes the response faster, since people read the output more quickly than models generate it
    4. DBecause the regulator requires every AI feature to be turned off after the first business day of each month
    Show answer and explanation
    Correct answer: B

    Human review limits the impact of incorrect or unfair outputs on high-impact decisions. The other options are wrong about system capability, speed and regulation.

  3. Question 26

    A business process uses an AI feature that returns a recommendation. Which practice makes the recommendation trustworthy for the user?

    1. AHide the basis and show only the recommendation, so that the screen stays simple and uncluttered
    2. BShow the basis for the recommendation, such as the source data used, so the user can verify it
    3. CDisplay the recommendation as a fact with no indication that it came from a model at all
    4. DDisplay a random confidence number that is not linked to the model's actual evidence or performance
    Show answer and explanation
    Correct answer: B

    Showing the basis and source data lets users verify the recommendation. Hiding the basis, presenting it as fact and random confidence numbers all reduce trust and transparency.

  4. Question 27

    Which two practices make a business AI feature acceptable for regulated processes? (Choose two.)

    1. ADocumented testing with representative data, and recorded approval before release
    2. BDeploying the feature directly to all users at once, so that feedback arrives quickly
    3. CLogging the inputs and outputs needed to audit decisions, under the retention policy
    4. DAllowing the model to change master data without any review, to speed up the process
    5. EHiding the model's use from auditors, since it may change how they assess the process
    Show answer and explanation
    Correct answer: A, C

    Documented testing with approval and auditable logs support acceptance in regulated processes. Releasing to all users at once, unreviewed master data changes and hiding model use from auditors all undermine compliance.

  5. Question 28

    A business user asks an assistant to change a purchase order. Which design protects the business?

    1. ARequire the user to review and confirm the proposed change before the transaction is written
    2. BLet the assistant write the change immediately, so that the user does not need to confirm anything
    3. CAllow the assistant to change any document without checking the user's authorisation for it
    4. DHide the proposed change from the user, so that the assistant can act without interrupting the work
    Show answer and explanation
    Correct answer: A

    Reviewing and confirming a proposed transactional change keeps the human in control and respects authorisation. Immediate writes, unchecked authority and hidden changes each remove protection.

  6. Question 29

    An AI feature reads a customer's data to answer questions. Which control ensures it only uses data the user may access?

    1. AApply the user's own authorisations to the data retrieved for each answer
    2. BGive the AI feature a shared technical user with access to all customer data for simplicity
    3. CLet the feature read all data, and rely on the user to avoid asking about sensitive customers
    4. DCopy all customer data into a shared file that every AI call reads without any access checks
    Show answer and explanation
    Correct answer: A

    Applying the user's own authorisations to retrieved data prevents exposure. A shared all-access user, reliance on users and unchecked shared files each expose data.

  7. Question 30

    A team plans to launch a generative AI feature for customers. Which step should come before launch?

    1. AA risk assessment covering misuse, bias and data protection, with agreed mitigations and sign-off
    2. BA marketing campaign announcing the feature, so that customers expect it before it is tested
    3. CA decision to skip testing, since the model vendor has already tested it on public benchmarks
    4. DA plan to collect customer complaints after launch, instead of testing with representative users
    Show answer and explanation
    Correct answer: A

    A risk assessment with mitigations and sign-off comes before launch. Marketing first, skipped testing and post-launch complaint collection are unsafe sequencing.