Question.31 A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analysis. The company wants to classify the sentiment of text passages as positive or negative. Which prompt engineering strategy meets these requirements? (A) Provide examples of text passages with corresponding positive or negative labels in the prompt followed by the new text passage to be classified. (B) Provide a detailed explanation of sentiment analysis and how LLMs work in the prompt. (C) Provide the new text passage to be classified without any additional context or examples. (D) Provide the new text passage with a few examples of unrelated tasks, such as text summarization or question answering. |
31. Click here to View Answer
Correct Answer: A
Question.32 A security company is using Amazon Bedrock to run foundation models (FMs). The company wants to ensure that only authorized users invoke the models. The company needs to identify any unauthorized access attempts to set appropriate AWS Identity and Access Management (IAM) policies and roles for future iterations of the FMs. Which AWS service should the company use to identify unauthorized users that are trying to access Amazon Bedrock? A. AWS Audit Manager B. AWS CloudTrail C. Amazon Fraud Detector D. AWS Trusted Advisor |
32. Click here to View Answer
Correct Answer: B
Question.33 A company has developed an ML model for image classification. The company wants to deploy the model to production so that a web application can use the model. The company needs to implement a solution to host the model and serve predictions without managing any of the underlying infrastructure. Which solution will meet these requirements? (A) Use Amazon SageMaker Serverless Inference to deploy the model. (B) Use Amazon CloudFront to deploy the model. (C) Use Amazon API Gateway to host the model and serve predictions. (D) Use AWS Batch to host the model and serve predictions. |
33. Click here to View Answer
Correct Answer: A
Question.34 An AI company periodically evaluates its systems and processes with the help of independent software vendors (ISVs). The company needs to receive email message notifications when an ISV’s compliance reports become available. Which AWS service can the company use to meet this requirement? (A) AWS Audit Manager (B) AWS Artifact (C) AWS Trusted Advisor (D) AWS Data Exchange |
34. Click here to View Answer
Correct Answer: B
Question.35 A company wants to use a large language model (LLM) to develop a conversational agent. The company needs to prevent the LLM from being manipulated with common prompt engineering techniques to perform undesirable actions or expose sensitive information. Which action will reduce these risks? (A) Create a prompt template that teaches the LLM to detect attack patterns. (B) Increase the temperature parameter on invocation requests to the LLM. (C) Avoid using LLMs that are not listed in Amazon SageMaker. (D) Decrease the number of input tokens on invocations of the LLM. |
35. Click here to View Answer
Correct Answer: A