AXS-C01 : AWS Certified Alexa Skill Builder – Specialty : Part 02
-
An Amazon Alexa skill fetches data for users from a third-party API and the wait for the response from that call is variable, often taking up to 5 seconds.
What is the recommended method for notifying users that a skill is working on the request and has not failed to respond?
- Prefetch the data that is expected to the required by the skill from the third-party API using Amazon CloudWatch Events.
- Call the Progressive Response API and send a directive, such as VoicePlayer.Speak
- Ask a follow-up question for clarification to engage the user while waiting for the initially requested response.
- Respond to the user stating that the data will be ready soon, and upon the next launch of the skill, provide the user with the response they initially requested.
-
An Alexa Skill Builder has created a custom skill about basketball including a HowToPlayBasketball intent. When looking at the Intent History page in the developer console, the Builder sees that a number of users are asking the skill how to play baseball. The Builder wants to add a relevant response directing the user back to the topic of basketball.
How should the Builder implement this?
- Add AMAZON.FallbackIntent and respond with a message about baseball in the handler
- Create a custom intent related to baseball, and when matched, provide a relevant response
- Add more sample utterances related to baseball in the HowToPlayBasketball intent
- Create a new custom baseball slot and add a slot-filling utterance to the HowToPlayBasketball intent.
-
An Alexa Skill Builder is using session attributes to maintain a user’s state.
What can the Builder do to ensure that a user’s session is not lost if they take too long to answer a question and the skill exists?
- Set shouldEndSession to false in the response object to prevent the skill from exiting.
- Handle the SessionEndedRequest request type and persist the user’s session to a database.
- Return false from the SessionEndedRequest handler so the session does not exist.
- Return a reprompt in the response object from the SessionEndedRequest handler.
-
An Alexa Skill Builder built a skill with the following interaction model:
Which utterance would invoke HelloIntent?
- “Alexa, use my first skill to say hello.”
- “Alexa, ask my first skill to say hello to John.”
- “Alexa, open my first skill.”
- “Alexa, say hello to my first skill.”
-
A travel booking skill has slot elicitation for fromCity, toCity, and travelDate inside of a dialog. After going live, the skill is getting negative reviews stating that the skill does not understand the city names when customers try to book travel.
The Alexa Skill Builder adds AMAZON.FallbackIntent to the interaction model with the goal of providing better messaging for out-of-domain utterances.
Why will the addition of AMAZON.FallbackIntent fail to resolve the customer issue?
- AMAZON.FallbackIntent will not be triggered in the middle of a dialog.
- A handler cannot be added to a Live skill.
- AMAZON.FallbackIntent will cause the slot values to be incorrectly mapped.
- AMAZON.FallbackIntent cannot be present in a skill with a Dialog directive.
-
An Alexa Skill Builder is developing a skill containing a multi-turn dialog that can be invoked with or without a specific intent request. On invocation, the skill needs to retrieve persistent attributes that have been saved by a previous invocation, and then copy them into session attributes.
How should the Builder implement this functionality?
- Place logic within the skill’s SessionEndedRequest intent handler to copy the persistent attributes into the session attributes.
- Implement ResponseInterceptor containing logic that takes the current persistent attributes and copies them into session attributes.
- Include logic within the LaunchRequest intent handler to retrieve persistent attributes and copy them into session attributes.
- Implement RequestInterceptor containing logic which for new sessions, retrieves persistent attributes and copies them into session attributes
-
An Alexa Skill Builder is developing a skill that must send an initial welcome email to each new user.
What combination of features would the Builder use to satisfy this requirement? (Choose two.)
- Alexa Settings API
- Entity resolution
- Customer Profile API
- Device Address API
- Data persistence
-
An Alexa Skill Builder is using Amazon S3 to stream large quantities of static audio and video content throughout the world with an Amazon Alexa skill.
Which additional AWS service will help the Builder decrease latency and improve the reliability of the streaming media content for the global audience?
- AWS Cloud9
- Amazon Kinesis
- Amazon Route 53
- Amazon CloudFront
-
An Alexa Skill Builder is creating a skill that will identify an actor who spoke a famous piece of movie dialog, given just the dialog text and an optional movie name. The Builder created the FindActorIntent as shown below, but Amazon Alexa returns an error when it builds the model.
Why is Alexa failing to build the model?
- Intents can have one built-in slot type only
- All sample utterances within an intent should have both slots
- SearchQuery is combined with another intent slot in an utterance.
- “Dialog” is a reserved keyword in the Alexa Interaction Model schema.
-
An Alexa Skill Builder needs to have knowledge of the previous prompt that was presented to the user in order to give context to the user’s response.
How can the Builder accomplish this?
- Find the corresponding prompt using the list events feature
- Store a reference to the prompt used as a session attribute
- Call the Intent Request History API to identify which prompt was used.
- Parse the context object from the skill request.
-
What are the prerequisites for implementing account linking for Amazon Alexa smart home skills?
- OAuth 2.0 with either implicit grant flow or authorization code grant flow
- OAuth 2.0 with authorization code grant flow
- OpenID Connect wit JSON.Web Token (JWT)
- OAuth 1.0/2.0 with implicit grant flow
-
An Alexa Skill Builder has built a new custom skill backed by an AWS Lambda function. The Lambda function executes successfully from the Lambda console, however, the Lambda function cannot be successfully invoked in the developer console or from an Amazon Alexa enabled device. No error messages show in the function’s Amazon CloudWatch Logs. The Builder confirmed the endpoint has the correct ARN.
What is likely causing this issue and how can it be corrected?
- The Lambda application code has a bug that is causing it to crash. Modify the code to fix the bug, then redeploy the Lambda function.
- The ASK SDK was not deployed with the Lambda function. Add the ASK SDK, then redeploy the Lambda function.
- The ASK trigger for the Lambda function has been restricted to the wrong skill ID. Re-create the trigger with the correct skill ID.
- The Lambda role does not have the correct AWS IAM permission. Update the IAM role associated with the Lambda function.
-
An Alexa Skill Builder is developing a skill that enables users to purchase train tickets. The Builder wants to give users the ability to modify the departure time if they are misunderstood, before the skill proceeds to purchase the tickets.
Which option should be used to implement this functionality within the session?
- Implement AMAZON.FallbackIntent so the user can stop the execution when they have been misunderstood.
- Implement AMAZON.StopIntent so the user can stop the execution and implement reprompt with a new invocation of the skill.
- Implement AMAZON.CancelIntent so the user can cancel the order, then set shouldEndSession to false, and prompt the user for the next action.
- Implement the welcome message, providing clear instructions to the user describing how to format an order.
-
A skill contains a PlanMyTrip intent configured to require slots fromCity and toCity. It contains the following interaction:
Alexa: What city are you leaving from?
User: I’m leaving from Seattle.
Alexa: You want to fly out of Seattle Tacoma International Airport, right?
User: YesWhich of the following should the Builder use to confirm the value of the fromCity slot only? (Choose two.)
- Use the Dialog.ConfirmSlot directive, including the full airport name in the outputSpeech object.
- Use the Dialog.ConfirmIntent directive, including the full airport name in the updatedIntent object.
- Use the Dialog.Delegate directive, including the full airport name in the updatedIntent object.
- Use the Dialog.Delegate directive, including the full airport name in the outputSpeech object.
- Use the Dialog.ElicitSlot directive, including the full airport name in the updatedIntent object.
-
An Alexa Skill Builder is troubleshooting issues with a custom skill backed by an AWS Lambda function that integrates with an external API controlling a light bulb. The Builder observes that when saying “Alexa, turn on the light” the response is “light is not responding” and 10 seconds later, the light turns on.
What is the MOST likely cause for this issue and how can it be solved?
- The Lambda function is not executing fast enough. Double the currently specified Lambda memory allocation in the Lambda basic settings section.
- The default Lambda function timeout setting is too short and the Lambda function times out before the response from the external API can be processed and a reply can be sent back to Amazon Alexa. Increase the Lambda timeout limit.
- There are too many concurrent Lambda functions running, causing the existing Lambda function to block and then time out before a response can be returned to Amazon Alexa. Increase the Lambda function reserve concurrency value to 30, then verify that the function can complete its work within 10 seconds.
- There is a bug in the Lambda function code preventing the external API from being called. Enable Lambda debugging and error handling and check Amazon CloudWatch Logs for the error, then modify the code accordingly.
-
An Alexa Skill Builder built a skill using AWS Lambda. The Lambda function works when running the code on a local machine with a runtime of 4.5 seconds, but during skill testing, the Builder receives an error response.
Which collection of steps will address the issue? (Choose two.)
- Change the Amazon Alexa default timeout to 5 seconds.
- Change the default timeout of the Lambda function to 5 seconds.
- Call the Progressive Response API and send a directive to reduce latency.
- Increase the size of the memory allocated to the Lambda function.
- Clone the Lambda function to another AWS Region.
-
An Alexa Skill Builder wants to name a skill using a company’s branded acronym, “NAT Systems.”
Which invocation name is valid?
- n a t systems
- n-a-t systems
- n. a. t. systems
- NAT Systems
-
An Alexa Skill Builder did not include a display template in a skill.
When the skill is used with an Amazon Alexa enabled device with a screen, cards used in the skill are:
- rendered as a gray screen.
- rendered using the skill icon as the foreground image.
- rendered using the skill icon as the background image.
- rendered using BodyTemplate1.
-
An Alexa Skill Builder is building an interactive storytelling skill where the user can choose their own path through the story. The Builder wants Amazon Alexa to narrate the story and use custom audio for the dialogue for each character, along with various sound effects.
How can these requirements be met?
- Record custom audio for each segment of the story, then stream audio files stored on Amazon S3 using the AudioPlayer interface for each segment of the story.
- Develop each response as text, and let Alexa speak each part differently using SSML markup for <amazon:effect> to alter the Alexa voice for each character.
- Record custom audio for each character voice and the sound effects in the story, then include the custom audio using SSML markup in the response.
- Record the entire story as custom audio and stream the audio stored on Amazon S3 using the AudioPlayer interface.
-
AMAZON.MoreIntent is comparable to which of the following Amazon Alexa intents? (Choose two.)
-
AMAZON.ResumeIntent
-
AMAZON.ScrollDownIntent
-
AMAZON.RepeatIntent
-
AMAZON.ScrollRightIntent
-
AMAZON.LoopOnIntent
-
Subscribe
0 Comments
Newest